diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2023-06-26 00:02:25 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2023-06-27 19:42:35 +0300 |
commit | a425ac5365f6cb3cc47bf83e6bff0213c10445f7 (patch) | |
tree | 5f770d9d2db6915b31d6c47c6529944374555e89 /Documentation/filesystems/ext4/blocks.rst | |
parent | 8d7071af890768438c14db6172cc8f9f4d04e184 (diff) | |
download | linux-a425ac5365f6cb3cc47bf83e6bff0213c10445f7.tar.xz |
gup: add warning if some caller would seem to want stack expansion
It feels very unlikely that anybody would want to do a GUP in an
unmapped area under the stack pointer, but real users sometimes do some
really strange things. So add a (temporary) warning for the case where
a GUP fails and expanding the stack might have made it work.
It's trivial to do the expansion in the caller as part of getting the mm
lock in the first place - see __access_remote_vm() for ptrace, for
example - it's just that it's unnecessarily painful to do it deep in the
guts of the GUP lookup when we might have to drop and re-take the lock.
I doubt anybody actually does anything quite this strange, but let's be
proactive: adding these warnings is simple, and will make debugging it
much easier if they trigger.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/filesystems/ext4/blocks.rst')
0 files changed, 0 insertions, 0 deletions