diff options
| author | Christian Brauner <[email protected]> | 2023-04-20 08:57:43 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-04-27 20:42:16 +0000 |
| commit | 01106e140835ff94fdef79d66f166b87b0c89824 (patch) | |
| tree | 4a0cfc25e0915655523eeb108e47cae5c61ac3e6 /lib/test_vmalloc.c | |
| parent | mm/khugepaged: fix conflicting mods to collapse_file() (diff) | |
| download | kernel-01106e140835ff94fdef79d66f166b87b0c89824.tar.gz kernel-01106e140835ff94fdef79d66f166b87b0c89824.zip | |
shmem: restrict noswap option to initial user namespace
Prevent tmpfs instances mounted in an unprivileged namespaces from evading
accounting of locked memory by using the "noswap" mount option.
Link: https://lkml.kernel.org/r/20230420-faxen-advokat-40abb4c1a152@brauner
Signed-off-by: Christian Brauner <[email protected]>
Reported-by: Hugh Dickins <[email protected]>
Link: https://lore.kernel.org/lkml/[email protected]
Reviewed-by: Luis Chamberlain <[email protected]>
Cc: Adam Manzanares <[email protected]>
Cc: Davidlohr Bueso <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Cc: Pankaj Raghav <[email protected]>
Cc: Yosry Ahmed <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/test_vmalloc.c')
0 files changed, 0 insertions, 0 deletions
