<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/base, branch v2.6.33.5</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>Revert "memory-hotplug: add 0x prefix to HEX block_size_bytes"</title>
<updated>2010-05-12T22:02:43+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2010-04-09T17:05:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=4bb6362e180555652885d52000fc156936b6ffe9'/>
<id>4bb6362e180555652885d52000fc156936b6ffe9</id>
<content type='text'>
commit 4dc86ae1f925b2121d4e75058675895f83e54c71 upstream.

This reverts commit ba168fc37dea145deeb8fa9e7e71c748d2e00d74.

It changes user-visible sysfs interfaces, and breaks some existing user
space applications which apparently rely on the fact that the output
does not contain the "0x" prefix.

Requested-by: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
Acked-by: KOSAKI Motohiro &lt;kosaki.motohiro@jp.fujitsu.com&gt;
Acked-by: Wu Fengguang &lt;fengguang.wu@intel.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 4dc86ae1f925b2121d4e75058675895f83e54c71 upstream.

This reverts commit ba168fc37dea145deeb8fa9e7e71c748d2e00d74.

It changes user-visible sysfs interfaces, and breaks some existing user
space applications which apparently rely on the fact that the output
does not contain the "0x" prefix.

Requested-by: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
Acked-by: KOSAKI Motohiro &lt;kosaki.motohiro@jp.fujitsu.com&gt;
Acked-by: Wu Fengguang &lt;fengguang.wu@intel.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>Driver-Core: devtmpfs - reset inode permissions before unlinking</title>
<updated>2010-03-15T16:06:23+00:00</updated>
<author>
<name>Kay Sievers</name>
<email>kay.sievers@vrfy.org</email>
</author>
<published>2010-01-13T13:16:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=b7d0e6b45107dfc86224c4f72bee12051d1fdb54'/>
<id>b7d0e6b45107dfc86224c4f72bee12051d1fdb54</id>
<content type='text'>
commit 5e31d76f2817bd50258a092a7c5b15b3006fd61c upstream.

Before unlinking the inode, reset the current permissions of possible
references like hardlinks, so granted permissions can not be retained
across the device lifetime by creating hardlinks, in the unusual case
that there is a user-writable directory on the same filesystem.

Signed-off-by: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 5e31d76f2817bd50258a092a7c5b15b3006fd61c upstream.

Before unlinking the inode, reset the current permissions of possible
references like hardlinks, so granted permissions can not be retained
across the device lifetime by creating hardlinks, in the unusual case
that there is a user-writable directory on the same filesystem.

Signed-off-by: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>driver-core: fix race condition in get_device_parent()</title>
<updated>2010-03-15T16:06:23+00:00</updated>
<author>
<name>Tejun Heo</name>
<email>tj@kernel.org</email>
</author>
<published>2010-02-05T08:57:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=b1d7e73ab2696d013b696cec61252cab8dcb3a48'/>
<id>b1d7e73ab2696d013b696cec61252cab8dcb3a48</id>
<content type='text'>
commit 77d3d7c1d561f49f755d7390f0764dff90765974 upstream.

sysfs is creating several devices in cuse class concurrently and with
CONFIG_SYSFS_DEPRECATED turned off, it triggers the following oops.

 BUG: unable to handle kernel NULL pointer dereference at 0000000000000038
 IP: [&lt;ffffffff81158b0a&gt;] sysfs_addrm_start+0x4a/0xf0
 PGD 75bb067 PUD 75be067 PMD 0
 Oops: 0000 [#1] PREEMPT SMP
 last sysfs file: /sys/devices/system/cpu/cpu7/topology/core_siblings
 CPU 1
 Modules linked in: cuse fuse
 Pid: 4737, comm: osspd Not tainted 2.6.31-work #77
 RIP: 0010:[&lt;ffffffff81158b0a&gt;]  [&lt;ffffffff81158b0a&gt;] sysfs_addrm_start+0x4a/0xf0
 RSP: 0018:ffff88000042f8f8  EFLAGS: 00010296
 RAX: ffff88000042ffd8 RBX: 0000000000000000 RCX: 0000000000000000
 RDX: 0000000000000000 RSI: ffff880007eef660 RDI: 0000000000000001
 RBP: ffff88000042f918 R08: 0000000000000000 R09: 0000000000000000
 R10: 0000000000000001 R11: ffffffff81158b0a R12: ffff88000042f928
 R13: 00000000fffffff4 R14: 0000000000000000 R15: ffff88000042f9a0
 FS:  00007fe93905a950(0000) GS:ffff880008600000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
 CR2: 0000000000000038 CR3: 00000000077c9000 CR4: 00000000000006e0
 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
 Process osspd (pid: 4737, threadinfo ffff88000042e000, task ffff880007eef040)
 Stack:
  ffff880005da10e8 0000000011cc8d6e ffff88000042f928 ffff880003d28a28
 &lt;0&gt; ffff88000042f988 ffffffff811592d7 0000000000000000 0000000000000000
 &lt;0&gt; 0000000000000000 0000000000000000 ffff88000042f958 0000000011cc8d6e
 Call Trace:
  [&lt;ffffffff811592d7&gt;] create_dir+0x67/0xe0
  [&lt;ffffffff811593a8&gt;] sysfs_create_dir+0x58/0xb0
  [&lt;ffffffff8128ca7c&gt;] ? kobject_add_internal+0xcc/0x220
  [&lt;ffffffff812942e1&gt;] ? vsnprintf+0x3c1/0xb90
  [&lt;ffffffff8128cab7&gt;] kobject_add_internal+0x107/0x220
  [&lt;ffffffff8128cd37&gt;] kobject_add_varg+0x47/0x80
  [&lt;ffffffff8128ce53&gt;] kobject_add+0x53/0x90
  [&lt;ffffffff81357d84&gt;] device_add+0xd4/0x690
  [&lt;ffffffff81356c2b&gt;] ? dev_set_name+0x4b/0x70
  [&lt;ffffffffa001a884&gt;] cuse_process_init_reply+0x2b4/0x420 [cuse]
  ...

The problem is that kobject_add_internal() first adds a kobject to the
kset and then try to create sysfs directory for it.  If the creation
fails, it remove the kobject from the kset.  get_device_parent()
accesses class_dirs kset while only holding class_dirs.list_lock to
see whether the cuse class dir exists.  But when it exists, it may not
have finished initialization yet or may fail and get removed soon.  In
the above case, the former happened so the second one ends up trying
to create subdirectory under NULL sysfs_dirent.

Fix it by grabbing a mutex in get_device_parent().

Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
Reported-by: Colin Guthrie &lt;cguthrie@mandriva.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 77d3d7c1d561f49f755d7390f0764dff90765974 upstream.

sysfs is creating several devices in cuse class concurrently and with
CONFIG_SYSFS_DEPRECATED turned off, it triggers the following oops.

 BUG: unable to handle kernel NULL pointer dereference at 0000000000000038
 IP: [&lt;ffffffff81158b0a&gt;] sysfs_addrm_start+0x4a/0xf0
 PGD 75bb067 PUD 75be067 PMD 0
 Oops: 0000 [#1] PREEMPT SMP
 last sysfs file: /sys/devices/system/cpu/cpu7/topology/core_siblings
 CPU 1
 Modules linked in: cuse fuse
 Pid: 4737, comm: osspd Not tainted 2.6.31-work #77
 RIP: 0010:[&lt;ffffffff81158b0a&gt;]  [&lt;ffffffff81158b0a&gt;] sysfs_addrm_start+0x4a/0xf0
 RSP: 0018:ffff88000042f8f8  EFLAGS: 00010296
 RAX: ffff88000042ffd8 RBX: 0000000000000000 RCX: 0000000000000000
 RDX: 0000000000000000 RSI: ffff880007eef660 RDI: 0000000000000001
 RBP: ffff88000042f918 R08: 0000000000000000 R09: 0000000000000000
 R10: 0000000000000001 R11: ffffffff81158b0a R12: ffff88000042f928
 R13: 00000000fffffff4 R14: 0000000000000000 R15: ffff88000042f9a0
 FS:  00007fe93905a950(0000) GS:ffff880008600000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
 CR2: 0000000000000038 CR3: 00000000077c9000 CR4: 00000000000006e0
 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
 Process osspd (pid: 4737, threadinfo ffff88000042e000, task ffff880007eef040)
 Stack:
  ffff880005da10e8 0000000011cc8d6e ffff88000042f928 ffff880003d28a28
 &lt;0&gt; ffff88000042f988 ffffffff811592d7 0000000000000000 0000000000000000
 &lt;0&gt; 0000000000000000 0000000000000000 ffff88000042f958 0000000011cc8d6e
 Call Trace:
  [&lt;ffffffff811592d7&gt;] create_dir+0x67/0xe0
  [&lt;ffffffff811593a8&gt;] sysfs_create_dir+0x58/0xb0
  [&lt;ffffffff8128ca7c&gt;] ? kobject_add_internal+0xcc/0x220
  [&lt;ffffffff812942e1&gt;] ? vsnprintf+0x3c1/0xb90
  [&lt;ffffffff8128cab7&gt;] kobject_add_internal+0x107/0x220
  [&lt;ffffffff8128cd37&gt;] kobject_add_varg+0x47/0x80
  [&lt;ffffffff8128ce53&gt;] kobject_add+0x53/0x90
  [&lt;ffffffff81357d84&gt;] device_add+0xd4/0x690
  [&lt;ffffffff81356c2b&gt;] ? dev_set_name+0x4b/0x70
  [&lt;ffffffffa001a884&gt;] cuse_process_init_reply+0x2b4/0x420 [cuse]
  ...

The problem is that kobject_add_internal() first adds a kobject to the
kset and then try to create sysfs directory for it.  If the creation
fails, it remove the kobject from the kset.  get_device_parent()
accesses class_dirs kset while only holding class_dirs.list_lock to
see whether the cuse class dir exists.  But when it exists, it may not
have finished initialization yet or may fail and get removed soon.  In
the above case, the former happened so the second one ends up trying
to create subdirectory under NULL sysfs_dirent.

Fix it by grabbing a mutex in get_device_parent().

Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
Reported-by: Colin Guthrie &lt;cguthrie@mandriva.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>class: Free the class private data in class_release</title>
<updated>2010-02-16T23:43:00+00:00</updated>
<author>
<name>Laurent Pinchart</name>
<email>laurent.pinchart@ideasonboard.com</email>
</author>
<published>2010-02-10T12:32:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=18d19c96457d172d913510c083bc7411ed40cb10'/>
<id>18d19c96457d172d913510c083bc7411ed40cb10</id>
<content type='text'>
Fix a memory leak by freeing the memory allocated in __class_register
for the class private data.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Acked-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
Cc: stable &lt;stable@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix a memory leak by freeing the memory allocated in __class_register
for the class private data.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Acked-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
Cc: stable &lt;stable@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "sysdev: fix prototype for memory_sysdev_class show/store functions"</title>
<updated>2010-01-20T23:02:13+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2010-01-19T21:08:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=bd796671f093d5b1841d383674d5650f5ec6c9c6'/>
<id>bd796671f093d5b1841d383674d5650f5ec6c9c6</id>
<content type='text'>
This reverts commit 8ff410daa009c4b44be445ded5b0cec00abc0426

It should not have been sent to Linus's tree yet, as it depends
on changes that are queued up in my driver-core for the .34 kernel
merge.

Cc: Wu Fengguang &lt;fengguang.wu@intel.com&gt;
Cc: Andi Kleen &lt;andi@firstfloor.org&gt;
Cc: "Zheng, Shaohui" &lt;shaohui.zheng@intel.com&gt;
Cc: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Cc: Linus Torvalds
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 8ff410daa009c4b44be445ded5b0cec00abc0426

It should not have been sent to Linus's tree yet, as it depends
on changes that are queued up in my driver-core for the .34 kernel
merge.

Cc: Wu Fengguang &lt;fengguang.wu@intel.com&gt;
Cc: Andi Kleen &lt;andi@firstfloor.org&gt;
Cc: "Zheng, Shaohui" &lt;shaohui.zheng@intel.com&gt;
Cc: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Cc: Linus Torvalds
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>driver-core: fix devtmpfs crash on s390</title>
<updated>2010-01-20T23:02:05+00:00</updated>
<author>
<name>Heiko Carstens</name>
<email>heiko.carstens@de.ibm.com</email>
</author>
<published>2010-01-18T13:36:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=f776c5ec4690b21b3668ad5956774a22c86f541a'/>
<id>f776c5ec4690b21b3668ad5956774a22c86f541a</id>
<content type='text'>
On Mon, Jan 18, 2010 at 05:26:20PM +0530, Sachin Sant wrote:
&gt; Hello Heiko,
&gt;
&gt; Today while trying to boot next-20100118 i came across
&gt; the following Oops :
&gt;
&gt; Brought up 4 CPUs
&gt; Unable to handle kernel pointer dereference at virtual kernel address 0000000000
&gt; 543000
&gt; Oops: 0004 #1 SMP
&gt; Modules linked in:
&gt; CPU: 0 Not tainted 2.6.33-rc4-autotest-next-20100118-5-default #1
&gt; Process swapper (pid: 1, task: 00000000fd792038, ksp: 00000000fd797a30)
&gt; Krnl PSW : 0704200180000000 00000000001eb0b8 (shmem_parse_options+0xc0/0x328)
&gt;           R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:0 CC:2 PM:0 EA:3
&gt; Krnl GPRS: 000000000054388a 000000000000003d 0000000000543836 000000000000003d
&gt;           0000000000000000 0000000000483f28 0000000000536112 00000000fd797d00
&gt;           00000000fd4ba100 0000000000000100 0000000000483978 0000000000543832
&gt;           0000000000000000 0000000000465958 00000000001eb0b0 00000000fd797c58
&gt; Krnl Code: 00000000001eb0aa: c0e5000994f1       brasl   %r14,31da8c
&gt;           00000000001eb0b0: b9020022           ltgr    %r2,%r2
&gt;           00000000001eb0b4: a784010b           brc     8,1eb2ca
&gt;          &gt;00000000001eb0b8: 92002000           mvi     0(%r2),0
&gt;           00000000001eb0bc: a7080000           lhi     %r0,0
&gt;           00000000001eb0c0: 41902001           la      %r9,1(%r2)
&gt;           00000000001eb0c4: b9040016           lgr     %r1,%r6
&gt;           00000000001eb0c8: b904002b           lgr     %r2,%r11
&gt; Call Trace:
&gt; (&lt;00000000fd797c50&gt; 0xfd797c50)
&gt; &lt;00000000001eb5da&gt; shmem_fill_super+0x13a/0x25c
&gt; &lt;0000000000228cfa&gt; get_sb_single+0xbe/0xdc
&gt; &lt;000000000034ffc0&gt; dev_get_sb+0x2c/0x38
&gt; &lt;000000000066c602&gt; devtmpfs_init+0x46/0xc0
&gt; &lt;000000000066c53e&gt; driver_init+0x22/0x60
&gt; &lt;000000000064d40a&gt; kernel_init+0x24e/0x3d0
&gt; &lt;000000000010a7ea&gt; kernel_thread_starter+0x6/0xc
&gt; &lt;000000000010a7e4&gt; kernel_thread_starter+0x0/0xc
&gt;
&gt; I never tried to boot a kernel with DEVTMPFS enabled on a s390 box.
&gt; So am wondering if this is supported or not ? If you think this
&gt; is supported i will send a mail to community on this.

There is nothing arch specific to devtmpfs. This part crashes because the
kernel tries to modify the data read-only section which is write protected
on s390.

Signed-off-by: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
Acked-by: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On Mon, Jan 18, 2010 at 05:26:20PM +0530, Sachin Sant wrote:
&gt; Hello Heiko,
&gt;
&gt; Today while trying to boot next-20100118 i came across
&gt; the following Oops :
&gt;
&gt; Brought up 4 CPUs
&gt; Unable to handle kernel pointer dereference at virtual kernel address 0000000000
&gt; 543000
&gt; Oops: 0004 #1 SMP
&gt; Modules linked in:
&gt; CPU: 0 Not tainted 2.6.33-rc4-autotest-next-20100118-5-default #1
&gt; Process swapper (pid: 1, task: 00000000fd792038, ksp: 00000000fd797a30)
&gt; Krnl PSW : 0704200180000000 00000000001eb0b8 (shmem_parse_options+0xc0/0x328)
&gt;           R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:0 CC:2 PM:0 EA:3
&gt; Krnl GPRS: 000000000054388a 000000000000003d 0000000000543836 000000000000003d
&gt;           0000000000000000 0000000000483f28 0000000000536112 00000000fd797d00
&gt;           00000000fd4ba100 0000000000000100 0000000000483978 0000000000543832
&gt;           0000000000000000 0000000000465958 00000000001eb0b0 00000000fd797c58
&gt; Krnl Code: 00000000001eb0aa: c0e5000994f1       brasl   %r14,31da8c
&gt;           00000000001eb0b0: b9020022           ltgr    %r2,%r2
&gt;           00000000001eb0b4: a784010b           brc     8,1eb2ca
&gt;          &gt;00000000001eb0b8: 92002000           mvi     0(%r2),0
&gt;           00000000001eb0bc: a7080000           lhi     %r0,0
&gt;           00000000001eb0c0: 41902001           la      %r9,1(%r2)
&gt;           00000000001eb0c4: b9040016           lgr     %r1,%r6
&gt;           00000000001eb0c8: b904002b           lgr     %r2,%r11
&gt; Call Trace:
&gt; (&lt;00000000fd797c50&gt; 0xfd797c50)
&gt; &lt;00000000001eb5da&gt; shmem_fill_super+0x13a/0x25c
&gt; &lt;0000000000228cfa&gt; get_sb_single+0xbe/0xdc
&gt; &lt;000000000034ffc0&gt; dev_get_sb+0x2c/0x38
&gt; &lt;000000000066c602&gt; devtmpfs_init+0x46/0xc0
&gt; &lt;000000000066c53e&gt; driver_init+0x22/0x60
&gt; &lt;000000000064d40a&gt; kernel_init+0x24e/0x3d0
&gt; &lt;000000000010a7ea&gt; kernel_thread_starter+0x6/0xc
&gt; &lt;000000000010a7e4&gt; kernel_thread_starter+0x0/0xc
&gt;
&gt; I never tried to boot a kernel with DEVTMPFS enabled on a s390 box.
&gt; So am wondering if this is supported or not ? If you think this
&gt; is supported i will send a mail to community on this.

There is nothing arch specific to devtmpfs. This part crashes because the
kernel tries to modify the data read-only section which is write protected
on s390.

Signed-off-by: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
Acked-by: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>sysdev: fix prototype for memory_sysdev_class show/store functions</title>
<updated>2010-01-16T20:15:39+00:00</updated>
<author>
<name>Wu Fengguang</name>
<email>fengguang.wu@intel.com</email>
</author>
<published>2010-01-16T01:01:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=8ff410daa009c4b44be445ded5b0cec00abc0426'/>
<id>8ff410daa009c4b44be445ded5b0cec00abc0426</id>
<content type='text'>
The function prototype mismatches in call stack:

                [&lt;ffffffff81494268&gt;] print_block_size+0x58/0x60
                [&lt;ffffffff81487e3f&gt;] sysdev_class_show+0x1f/0x30
                [&lt;ffffffff811d629b&gt;] sysfs_read_file+0xcb/0x1f0
                [&lt;ffffffff81176328&gt;] vfs_read+0xc8/0x180

Due to prototype mismatch, print_block_size() will sprintf() into
*attribute instead of *buf, hence user space will read the initial
zeros from *buf:
	$ hexdump /sys/devices/system/memory/block_size_bytes
	0000000 0000 0000 0000 0000
	0000008

After patch:
	cat /sys/devices/system/memory/block_size_bytes
	0x8000000

This complements commits c29af9636 and 4a0b2b4dbe.

Signed-off-by: Wu Fengguang &lt;fengguang.wu@intel.com&gt;
Cc: Andi Kleen &lt;andi@firstfloor.org&gt;
Cc: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
Cc: "Zheng, Shaohui" &lt;shaohui.zheng@intel.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The function prototype mismatches in call stack:

                [&lt;ffffffff81494268&gt;] print_block_size+0x58/0x60
                [&lt;ffffffff81487e3f&gt;] sysdev_class_show+0x1f/0x30
                [&lt;ffffffff811d629b&gt;] sysfs_read_file+0xcb/0x1f0
                [&lt;ffffffff81176328&gt;] vfs_read+0xc8/0x180

Due to prototype mismatch, print_block_size() will sprintf() into
*attribute instead of *buf, hence user space will read the initial
zeros from *buf:
	$ hexdump /sys/devices/system/memory/block_size_bytes
	0000000 0000 0000 0000 0000
	0000008

After patch:
	cat /sys/devices/system/memory/block_size_bytes
	0x8000000

This complements commits c29af9636 and 4a0b2b4dbe.

Signed-off-by: Wu Fengguang &lt;fengguang.wu@intel.com&gt;
Cc: Andi Kleen &lt;andi@firstfloor.org&gt;
Cc: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
Cc: "Zheng, Shaohui" &lt;shaohui.zheng@intel.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>memory-hotplug: add 0x prefix to HEX block_size_bytes</title>
<updated>2010-01-16T20:15:39+00:00</updated>
<author>
<name>Wu Fengguang</name>
<email>fengguang.wu@intel.com</email>
</author>
<published>2010-01-16T01:01:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=ba168fc37dea145deeb8fa9e7e71c748d2e00d74'/>
<id>ba168fc37dea145deeb8fa9e7e71c748d2e00d74</id>
<content type='text'>
Signed-off-by: Wu Fengguang &lt;fengguang.wu@intel.com&gt;
Cc: Andi Kleen &lt;andi@firstfloor.org&gt;
Cc: Greg KH &lt;greg@kroah.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Wu Fengguang &lt;fengguang.wu@intel.com&gt;
Cc: Andi Kleen &lt;andi@firstfloor.org&gt;
Cc: Greg KH &lt;greg@kroah.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>power: fix kernel-doc notation</title>
<updated>2010-01-11T17:34:06+00:00</updated>
<author>
<name>Randy Dunlap</name>
<email>randy.dunlap@oracle.com</email>
</author>
<published>2010-01-08T22:42:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=0a88422312f5bf7b9e3450e27d8ddc385af38789'/>
<id>0a88422312f5bf7b9e3450e27d8ddc385af38789</id>
<content type='text'>
Warning(drivers/base/power/main.c:453): No description found for parameter 'dev'
Warning(drivers/base/power/main.c:453): No description found for parameter 'cb'
Warning(drivers/base/power/main.c:719): No description found for parameter 'dev'
Warning(drivers/base/power/main.c:719): No description found for parameter 'state'
Warning(drivers/base/power/main.c:719): No description found for parameter 'cb'

Signed-off-by: Randy Dunlap &lt;randy.dunlap@oracle.com&gt;
Cc: Rafael J. Wysocki &lt;rjw@sisk.pl&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Warning(drivers/base/power/main.c:453): No description found for parameter 'dev'
Warning(drivers/base/power/main.c:453): No description found for parameter 'cb'
Warning(drivers/base/power/main.c:719): No description found for parameter 'dev'
Warning(drivers/base/power/main.c:719): No description found for parameter 'state'
Warning(drivers/base/power/main.c:719): No description found for parameter 'cb'

Signed-off-by: Randy Dunlap &lt;randy.dunlap@oracle.com&gt;
Cc: Rafael J. Wysocki &lt;rjw@sisk.pl&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>devtmpfs: unlock mutex in case of string allocation error</title>
<updated>2009-12-23T19:23:44+00:00</updated>
<author>
<name>Kay Sievers</name>
<email>kay.sievers@vrfy.org</email>
</author>
<published>2009-12-22T21:25:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=8042273801059884da2d53bbca34575d090b6f4e'/>
<id>8042273801059884da2d53bbca34575d090b6f4e</id>
<content type='text'>
Reported-by: Kirill A. Shutemov &lt;kirill@shutemov.name&gt;
Signed-off-by: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reported-by: Kirill A. Shutemov &lt;kirill@shutemov.name&gt;
Signed-off-by: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
</feed>
