diff options
author | Aleksa Sarai <[email protected]> | 2024-10-10 07:40:36 +1100 |
---|---|---|
committer | Christian Brauner <[email protected]> | 2024-10-10 12:09:03 +0200 |
commit | f92f0a1b05698340836229d791b3ffecc71b265a (patch) | |
tree | a57b2aea69ecc14183643d65892741dc35739ea1 /scripts/generate_rust_analyzer.py | |
parent | 368196e5019464c7bf81c797a415d09e53f5792a (diff) |
openat2: explicitly return -E2BIG for (usize > PAGE_SIZE)
While we do currently return -EFAULT in this case, it seems prudent to
follow the behaviour of other syscalls like clone3. It seems quite
unlikely that anyone depends on this error code being EFAULT, but we can
always revert this if it turns out to be an issue.
Cc: [email protected] # v5.6+
Fixes: fddb5d430ad9 ("open: introduce openat2(2) syscall")
Signed-off-by: Aleksa Sarai <[email protected]>
Link: https://lore.kernel.org/r/20241010-extensible-structs-check_fields-v3-3-d2833dfe6edd@cyphar.com
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions