summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorSteven J. Magnani <steve@digidescorp.com>2011-02-10 19:12:13 +0100
committerMichal Simek <monstr@monstr.eu>2011-03-09 08:09:59 +0100
commit6f3946b421395ff853bc0bcdab9c26b50ebbba8f (patch)
tree1a0e73e7d933d1cae4b84ba720332f55d378952c /block
parentmicroblaze: Convert irq_chip to new functions (diff)
downloadlinux-6f3946b421395ff853bc0bcdab9c26b50ebbba8f.tar.xz
linux-6f3946b421395ff853bc0bcdab9c26b50ebbba8f.zip
microblaze: Fix /dev/zero corruption from __clear_user()
A userland read of more than PAGE_SIZE bytes from /dev/zero results in (a) not all of the bytes returned being zero, and (b) memory corruption due to zeroing of bytes beyond the user buffer. This is caused by improper constraints on the assembly __clear_user function. The constrints don't indicate to the compiler that the pointer argument is modified. Since the function is inline, this results in double-incrementing of the pointer when __clear_user() is invoked through a multi-page read() of /dev/zero. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Acked-by: Michal Simek <monstr@monstr.eu> CC: stable@kernel.org
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions