https://github.com/torvalds/linux
Revision e825196d48d2b89a6ec3a8eff280098d2a78207e authored by Al Viro on 23 March 2014, 04:28:40 UTC, committed by Al Viro on 23 March 2014, 04:28:40 UTC
In all callchains leading to prepend_name(), the value left in *buflen
is eventually discarded unused if prepend_name() has returned a negative.
So we are free to do what prepend() does, and subtract from *buflen
*before* checking for underflow (which turns into checking the sign
of subtraction result, of course).

Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 99aea68
History
Tip revision: e825196d48d2b89a6ec3a8eff280098d2a78207e authored by Al Viro on 23 March 2014, 04:28:40 UTC
make prepend_name() work correctly when called with negative *buflen
Tip revision: e825196
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-- 1.1 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.3 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 267.2 KB
Makefile -rw-r--r-- 49.1 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top