https://github.com/torvalds/linux
Revision 2d87b309a5d66c3ec0b4d985fe29b547282e7427 authored by Randy Dunlap on 10 April 2018, 23:35:14 UTC, committed by Linus Torvalds on 11 April 2018, 17:28:37 UTC
Fix sizeof argument to be the same as the data variable name.  Probably
a copy/paste error.

Mostly harmless since both variables are unsigned int.

Fixes kernel bugzilla #197371:
  Possible access to unintended variable in "kernel/sysctl.c" line 1339
https://bugzilla.kernel.org/show_bug.cgi?id=197371

Link: http://lkml.kernel.org/r/e0d0531f-361e-ef5f-8499-32743ba907e1@infradead.org
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: Petru Mihancea <petrum@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent bbd876a
History
Tip revision: 2d87b309a5d66c3ec0b4d985fe29b547282e7427 authored by Randy Dunlap on 10 April 2018, 23:35:14 UTC
kernel/sysctl.c: fix sizeof argument to match variable name
Tip revision: 2d87b30
File Mode Size
Documentation
LICENSES
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.clang-format -rw-r--r-- 12.8 KB
.cocciconfig -rw-r--r-- 59 bytes
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitattributes -rw-r--r-- 30 bytes
.gitignore -rw-r--r-- 1.6 KB
.mailmap -rw-r--r-- 9.2 KB
COPYING -rw-r--r-- 423 bytes
CREDITS -rw-r--r-- 96.3 KB
Kbuild -rw-r--r-- 2.2 KB
Kconfig -rw-r--r-- 287 bytes
MAINTAINERS -rw-r--r-- 440.2 KB
Makefile -rw-r--r-- 60.8 KB
README -rw-r--r-- 800 bytes

README

back to top