diff options
author | Hao Lee <[email protected]> | 2022-03-23 16:05:20 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2022-03-23 19:00:33 -0700 |
commit | 3a72917ccfbb2eecabefc86aade8acd4a1e85888 (patch) | |
tree | a08cbeb6bcba18c9553b5d517d3146d7e196a814 /scripts/gdb/linux/mm.py | |
parent | f443e374ae131c168a065ea1748feac6b2e76613 (diff) |
proc: alloc PATH_MAX bytes for /proc/${pid}/fd/ symlinks
It's not a standard approach that use __get_free_page() to alloc path
buffer directly. We'd better use kmalloc and PATH_MAX.
PAGE_SIZE is different on different archs. An unlinked file
with very long canonical pathname will readlink differently
because "(deleted)" eats into a buffer. --adobriyan
[[email protected]: remove now-unneeded cast]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Hao Lee <[email protected]>
Signed-off-by: Alexey Dobriyan <[email protected]>
Cc: Christian Brauner <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: James Morris <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/mm.py')
0 files changed, 0 insertions, 0 deletions