aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-06-09 19:08:19 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2020-06-10 14:11:33 -0400
commitef9d965bc8b6fce5bcc0ae76a4a5b3ed91ee81eb (patch)
treeb8c9350abed0e245cbda54b026158f78a977cbe0 /include
parentcdrom: fix an incorrect __user annotation on cdrom_sysctl_info (diff)
downloadwireguard-linux-ef9d965bc8b6fce5bcc0ae76a4a5b3ed91ee81eb.tar.xz
wireguard-linux-ef9d965bc8b6fce5bcc0ae76a4a5b3ed91ee81eb.zip
sysctl: reject gigantic reads/write to sysctl files
Instead of triggering a WARN_ON deep down in the page allocator just give up early on allocations that are way larger than the usual sysctl values. Fixes: 32927393dc1c ("sysctl: pass kernel pointers to ->proc_handler") Reported-by: Vegard Nossum <vegard.nossum@oracle.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions