aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorMiklos Szeredi <[email protected]>2023-06-07 17:49:21 +0200
committerMiklos Szeredi <[email protected]>2023-06-21 11:17:36 +0200
commit6a567e920fd0451bf29abc418df96c3365925770 (patch)
tree8bc6c9ccfcebc13d71eb7cea4f958411ffb88620 /lib/test_fortify/write_overflow-strncpy-src.c
parenta9d1c4c6df0e568207907c04aed9e7beb1294c42 (diff)
fuse: ioctl: translate ENOSYS in outarg
Fuse shouldn't return ENOSYS from its ioctl implementation. If userspace responds with ENOSYS it should be translated to ENOTTY. There are two ways to return an error from the IOCTL request: - fuse_out_header.error - fuse_ioctl_out.result Commit 02c0cab8e734 ("fuse: ioctl: translate ENOSYS") already fixed this issue for the first case, but missed the second case. This patch fixes the second case. Reported-by: Jonathan Katz <[email protected]> Closes: https://lore.kernel.org/all/CALKgVmcC1VUV_gJVq70n--omMJZUb4HSh_FqvLTHgNBc+HCLFQ@mail.gmail.com/ Fixes: 02c0cab8e734 ("fuse: ioctl: translate ENOSYS") Cc: <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions