aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_lib.c
diff options
context:
space:
mode:
authorLinus Torvalds <[email protected]>2025-01-21 17:27:22 +0000
committerLinus Torvalds <[email protected]>2025-01-22 04:30:19 +0000
commit5f537664e705b0bf8b7e329861f20128534f6a83 (patch)
tree6a72107580c34ce2636fe9cd5ea834a881f40889 /drivers/net/ethernet/intel/ice/ice_lib.c
parentMerge tag 'audit-pr-20250121' of git://git.kernel.org/pub/scm/linux/kernel/gi... (diff)
downloadkernel-5f537664e705b0bf8b7e329861f20128534f6a83.tar.gz
kernel-5f537664e705b0bf8b7e329861f20128534f6a83.zip
cachestat: fix page cache statistics permission checking
When the 'cachestat()' system call was added in commit cf264e1329fb ("cachestat: implement cachestat syscall"), it was meant to be a much more convenient (and performant) version of mincore() that didn't need mapping things into the user virtual address space in order to work. But it ended up missing the "check for writability or ownership" fix for mincore(), done in commit 134fca9063ad ("mm/mincore.c: make mincore() more conservative"). This just adds equivalent logic to 'cachestat()', modified for the file context (rather than vma). Reported-by: Sudheendra Raghav Neela <[email protected]> Fixes: cf264e1329fb ("cachestat: implement cachestat syscall") Tested-by: Johannes Weiner <[email protected]> Acked-by: Johannes Weiner <[email protected]> Acked-by: Nhat Pham <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
0 files changed, 0 insertions, 0 deletions