commit | ef9d965bc8b6fce5bcc0ae76a4a5b3ed91ee81eb | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Tue Jun 09 19:08:19 2020 +0200 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Wed Jun 10 14:11:33 2020 -0400 |
tree | b8c9350abed0e245cbda54b026158f78a977cbe0 | |
parent | 8c46fa96822c28ca81036e26c2d963f1fac9a961 [diff] |
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>