aboutsummaryrefslogtreecommitdiffstats
path: root/samples/binderfs/binderfs_example.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2020-06-09 17:08:19 +0000
committerAl Viro <[email protected]>2020-06-10 18:11:33 +0000
commitef9d965bc8b6fce5bcc0ae76a4a5b3ed91ee81eb (patch)
treeb8c9350abed0e245cbda54b026158f78a977cbe0 /samples/binderfs/binderfs_example.c
parentcdrom: fix an incorrect __user annotation on cdrom_sysctl_info (diff)
downloadkernel-ef9d965bc8b6fce5bcc0ae76a4a5b3ed91ee81eb.tar.gz
kernel-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 <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'samples/binderfs/binderfs_example.c')
0 files changed, 0 insertions, 0 deletions