https://github.com/torvalds/linux
Revision 538722ca3b762023ac65cec214901a1ebff8b575 authored by Steven J. Magnani on 06 May 2010, 21:38:33 UTC, committed by Michal Simek on 13 May 2010, 07:21:14 UTC
The Microblaze implementations of get_user() and (MMU) put_user() evaluate
the address argument more than once. This causes unexpected side-effects for
invocations that include increment operators, i.e. get_user(foo, bar++).

This patch also removes the distinction between MMU and noMMU put_user().

Without the patch:
  $ echo 1234567890 > /proc/sys/kernel/core_pattern
  $ cat /proc/sys/kernel/core_pattern
  12345

Signed-off-by: Steven J. Magnani <steve@digidescorp.com>
1 parent 0d5961b
History
Tip revision: 538722ca3b762023ac65cec214901a1ebff8b575 authored by Steven J. Magnani on 06 May 2010, 21:38:33 UTC
microblaze: fix get_user/put_user side-effects
Tip revision: 538722c
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 930 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.8 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 166.4 KB
Makefile -rw-r--r-- 51.9 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top