<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/um, branch linux-2.6.32.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.32.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.32.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2014-05-19T05:54:32Z</updated>
<entry>
<title>uml: check length in exitcode_proc_write()</title>
<updated>2014-05-19T05:54:32Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2013-10-29T19:06:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4b500c7ff030f35aa6f8badf2f243bc259021e39'/>
<id>urn:sha1:4b500c7ff030f35aa6f8badf2f243bc259021e39</id>
<content type='text'>
commit 201f99f170df14ba52ea4c52847779042b7a623b upstream

We don't cap the size of buffer from the user so we could write past the
end of the array here.  Only root can write to this file.

Reported-by: Nico Golde &lt;nico@ngolde.de&gt;
Reported-by: Fabian Yamaguchi &lt;fabs@goesec.de&gt;
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Willy Tarreau &lt;w@1wt.eu&gt;
</content>
</entry>
<entry>
<title>um: fix ubd cow size</title>
<updated>2011-11-07T20:32:38Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2011-11-02T12:17:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=610fba92198e257bb039e49c391bb73cd0c1b2b1'/>
<id>urn:sha1:610fba92198e257bb039e49c391bb73cd0c1b2b1</id>
<content type='text'>
commit 8535639810e578960233ad39def3ac2157b0c3ec upstream.

ubd_file_size() cannot use ubd_dev-&gt;cow.file because at this time
ubd_dev-&gt;cow.file is not initialized.
Therefore, ubd_file_size() will always report a wrong disk size when
COW files are used.
Reading from /dev/ubd* would crash the kernel.

We have to read the correct disk size from the COW file's backing
file.

Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>um: os-linux/mem.c needs sys/stat.h</title>
<updated>2011-07-13T03:29:26Z</updated>
<author>
<name>Liu Aleaxander</name>
</author>
<published>2010-06-29T22:05:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2b71587b0da22ec843730baceae7dca082650bd6'/>
<id>urn:sha1:2b71587b0da22ec843730baceae7dca082650bd6</id>
<content type='text'>
commit fb967ecc584c20c74a007de749ca597068b0fcac upstream.

The os-linux/mem.c file calls fchmod function, which is declared in sys/stat.h
header file, so include it.  Fixes build breakage under FC13.

Signed-off-by: Liu Aleaxander &lt;Aleaxander@gmail.com&gt;
Acked-by: Boaz Harrosh &lt;bharrosh@panasas.com&gt;
Cc: Jeff Dike &lt;jdike@addtoit.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>uml: fix CONFIG_STATIC_LINK=y build failure with newer glibc</title>
<updated>2011-07-13T03:29:26Z</updated>
<author>
<name>Roland McGrath</name>
</author>
<published>2010-10-26T21:22:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3bbcb3edf0ede7fc35639b1c73434b55f969f5b0'/>
<id>urn:sha1:3bbcb3edf0ede7fc35639b1c73434b55f969f5b0</id>
<content type='text'>
commit aa5fb4dbfd121296ca97c68cf90043a7ea97579d upstream.

With glibc 2.11 or later that was built with --enable-multi-arch, the UML
link fails with undefined references to __rel_iplt_start and similar
symbols.  In recent binutils, the default linker script defines these
symbols (see ld --verbose).  Fix the UML linker scripts to match the new
defaults for these sections.

Signed-off-by: Roland McGrath &lt;roland@redhat.com&gt;
Cc: Jeff Dike &lt;jdike@addtoit.com&gt;
Cc: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>uml: disable winch irq before freeing handler data</title>
<updated>2010-12-09T21:27:01Z</updated>
<author>
<name>Will Newton</name>
</author>
<published>2010-11-24T20:56:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=20fa2a2005e86e5628941c5e23fbc4682824473e'/>
<id>urn:sha1:20fa2a2005e86e5628941c5e23fbc4682824473e</id>
<content type='text'>
commit 69e83dad5207f8f03c9699e57e1febb114383cb8 upstream.

Disable the winch irq early to make sure we don't take an interrupt part
way through the freeing of the handler data, resulting in a crash on
shutdown:

  winch_interrupt : read failed, errno = 9
  fd 13 is losing SIGWINCH support
  ------------[ cut here ]------------
  WARNING: at lib/list_debug.c:48 list_del+0xc6/0x100()
  list_del corruption, next is LIST_POISON1 (00100100)
  082578c8:  [&lt;081fd77f&gt;] dump_stack+0x22/0x24
  082578e0:  [&lt;0807a18a&gt;] warn_slowpath_common+0x5a/0x80
  08257908:  [&lt;0807a23e&gt;] warn_slowpath_fmt+0x2e/0x30
  08257920:  [&lt;08172196&gt;] list_del+0xc6/0x100
  08257940:  [&lt;08060244&gt;] free_winch+0x14/0x80
  08257958:  [&lt;080606fb&gt;] winch_interrupt+0xdb/0xe0
  08257978:  [&lt;080a65b5&gt;] handle_IRQ_event+0x35/0xe0
  08257998:  [&lt;080a8717&gt;] handle_edge_irq+0xb7/0x170
  082579bc:  [&lt;08059bc4&gt;] do_IRQ+0x34/0x50
  082579d4:  [&lt;08059e1b&gt;] sigio_handler+0x5b/0x80
  082579ec:  [&lt;0806a374&gt;] sig_handler_common+0x44/0xb0
  08257a68:  [&lt;0806a538&gt;] sig_handler+0x38/0x50
  08257a78:  [&lt;0806a77c&gt;] handle_signal+0x5c/0xa0
  08257a9c:  [&lt;0806be28&gt;] hard_handler+0x18/0x20
  08257aac:  [&lt;00c14400&gt;] 0xc14400

Signed-off-by: Will Newton &lt;will.newton@gmail.com&gt;
Acked-by: WANG Cong &lt;xiyou.wangcong@gmail.com&gt;
Cc: Jeff Dike &lt;jdike@addtoit.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>um: fix global timer issue when using CONFIG_NO_HZ</title>
<updated>2010-12-09T21:26:38Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2010-10-26T21:21:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=87e8f969fc693c8ccb8ecb440634f84c87428fd7'/>
<id>urn:sha1:87e8f969fc693c8ccb8ecb440634f84c87428fd7</id>
<content type='text'>
commit 482db6df1746c4fa7d64a2441d4cb2610249c679 upstream.

This fixes a issue which was introduced by fe2cc53e ("uml: track and make
up lost ticks").

timeval_to_ns() returns long long and not int.  Due to that UML's timer
did not work properlt and caused timer freezes.

Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Acked-by: Pekka Enberg &lt;penberg@kernel.org&gt;
Cc: Jeff Dike &lt;jdike@addtoit.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>um: remove PAGE_SIZE alignment in linker script causing kernel segfault.</title>
<updated>2010-12-09T21:26:37Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2010-10-26T21:21:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f412651038adcf93ed76a138a934a88481fecef5'/>
<id>urn:sha1:f412651038adcf93ed76a138a934a88481fecef5</id>
<content type='text'>
commit 6915e04f8847bea16d0890f559694ad8eedd026c upstream.

The linker script cleanup that I did in commit 5d150a97f93 ("um: Clean up
linker script using standard macros.") (2.6.32) accidentally introduced an
ALIGN(PAGE_SIZE) when converting to use INIT_TEXT_SECTION; Richard
Weinberger reported that this causes the kernel to segfault with
CONFIG_STATIC_LINK=y.

I'm not certain why this extra alignment is a problem, but it seems likely
it is because previously

__init_begin = _stext = _text = _sinittext

and with the extra ALIGN(PAGE_SIZE), _sinittext becomes different from the
rest.  So there is likely a bug here where something is assuming that
_sinittext is the same as one of those other symbols.  But reverting the
accidental change fixes the regression, so it seems worth committing that
now.

Signed-off-by: Tim Abbott &lt;tabbott@ksplice.com&gt;
Reported-by: Richard Weinberger &lt;richard@nod.at&gt;
Cc: Jeff Dike &lt;jdike@addtoit.com&gt;
Tested by: Antoine Martin &lt;antoine@nagafix.co.uk&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>ubd: fix incorrect sector handling during request restart</title>
<updated>2010-10-29T04:44:00Z</updated>
<author>
<name>Tejun Heo</name>
</author>
<published>2010-10-15T10:56:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=78552ddd1dc0a63b864895bee4157b2da770e0dc'/>
<id>urn:sha1:78552ddd1dc0a63b864895bee4157b2da770e0dc</id>
<content type='text'>
commit 47526903feb52f4c26a6350370bdf74e337fcdb1 upstream.

Commit f81f2f7c (ubd: drop unnecessary rq-&gt;sector manipulation)
dropped request-&gt;sector manipulation in preparation for global request
handling cleanup; unfortunately, it incorrectly assumed that the
updated sector wasn't being used.

ubd tries to issue as many requests as possible to io_thread.  When
issuing fails due to memory pressure or other reasons, the device is
put on the restart list and issuing stops.  On IO completion, devices
on the restart list are scanned and IO issuing is restarted.

ubd issues IOs sg-by-sg and issuing can be stopped in the middle of a
request, so each device on the restart queue needs to remember where
to restart in its current request.  ubd needs to keep track of the
issue position itself because,

* blk_rq_pos(req) is now updated by the block layer to keep track of
  _completion_ position.

* Multiple io_req's for the current request may be in flight, so it's
  difficult to tell where blk_rq_pos(req) currently is.

Add ubd-&gt;rq_pos to keep track of the issue position and use it to
correctly restart io_req issue.

Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
Reported-by: Richard Weinberger &lt;richard@nod.at&gt;
Tested-by: Richard Weinberger &lt;richard@nod.at&gt;
Tested-by: Chris Frey &lt;cdfrey@foursquare.net&gt;
Signed-off-by: Jens Axboe &lt;jaxboe@fusionio.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>x86: Fix breakage of UML from the changes in the rwsem system</title>
<updated>2010-04-26T14:41:28Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2010-01-17T18:24:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f9a05e26cad0db0dd9299bb43443319e79a6de7e'/>
<id>urn:sha1:f9a05e26cad0db0dd9299bb43443319e79a6de7e</id>
<content type='text'>
commit 4126faf0ab7417fbc6eb99fb0fd407e01e9e9dfe upstream.

The patches 5d0b7235d83eefdafda300656e97d368afcafc9a and
bafaecd11df15ad5b1e598adc7736afcd38ee13d broke the UML build:

On Sun, 17 Jan 2010, Ingo Molnar wrote:
&gt;
&gt; FYI, -tip testing found that these changes break the UML build:
&gt;
&gt; kernel/built-in.o: In function `__up_read':
&gt; /home/mingo/tip/arch/x86/include/asm/rwsem.h:192: undefined reference to `call_rwsem_wake'
&gt; kernel/built-in.o: In function `__up_write':
&gt; /home/mingo/tip/arch/x86/include/asm/rwsem.h:210: undefined reference to `call_rwsem_wake'
&gt; kernel/built-in.o: In function `__downgrade_write':
&gt; /home/mingo/tip/arch/x86/include/asm/rwsem.h:228: undefined reference to `call_rwsem_downgrade_wake'
&gt; kernel/built-in.o: In function `__down_read':
&gt; /home/mingo/tip/arch/x86/include/asm/rwsem.h:112: undefined reference to `call_rwsem_down_read_failed'
&gt; kernel/built-in.o: In function `__down_write_nested':
&gt; /home/mingo/tip/arch/x86/include/asm/rwsem.h:154: undefined reference to `call_rwsem_down_write_failed'
&gt; collect2: ld returned 1 exit status

Add lib/rwsem_64.o to the UML subarch objects to fix.

LKML-Reference: &lt;alpine.LFD.2.00.1001171023440.13231@localhost.localdomain&gt;
Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>untangle the do_mremap() mess</title>
<updated>2010-01-18T18:19:11Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2010-01-14T19:39:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1f51eb3a881359e97dc2c228e55c83fba598e349'/>
<id>urn:sha1:1f51eb3a881359e97dc2c228e55c83fba598e349</id>
<content type='text'>
This backports the following upstream commits all as one patch:
	54f5de709984bae0d31d823ff03de755f9dcac54
	ecc1a8993751de4e82eb18640d631dae1f626bd6
	1a0ef85f84feb13f07b604fcf5b90ef7c2b5c82f
	f106af4e90eadd76cfc0b5325f659619e08fb762
	097eed103862f9c6a97f2e415e21d1134017b135
	935874141df839c706cd6cdc438e85eb69d1525e
	0ec62d290912bb4b989be7563851bc364ec73b56
	c4caa778157dbbf04116f0ac2111e389b5cd7a29
	2ea1d13f64efdf49319e86c87d9ba38c30902782
	570dcf2c15463842e384eb597a87c1e39bead99b
	564b3bffc619dcbdd160de597b0547a7017ea010
	0067bd8a55862ac9dd212bd1c4f6f5bff1ca1301
	f8b7256096a20436f6d0926747e3ac3d64c81d24
	8c7b49b3ecd48923eb64ff57e07a1cdb74782970
	9206de95b1ea68357996ec02be5db0638a0de2c1
	2c6a10161d0b5fc047b5bd81b03693b9af99fab5
	05d72faa6d13c9d857478a5d35c85db9adada685
	bb52d6694002b9d632bb355f64daa045c6293a4e
	e77414e0aad6a1b063ba5e5750c582c75327ea6a
	aa65607373a4daf2010e8c3867b6317619f3c1a3

Backport done by Greg Kroah-Hartman.  Only minor tweaks were needed.

Cc: David S. Miller &lt;davem@davemloft.net&gt;
Cc: Hugh Dickins &lt;hugh.dickins@tiscali.co.uk&gt;
Cc: Paul Mundt &lt;lethal@linux-sh.org&gt;
Cc: Russell King &lt;rmk+kernel@arm.linux.org.uk&gt;
Cc: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
</feed>
