aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorAmir Goldstein <[email protected]>2023-08-22 20:50:59 +0300
committerAmir Goldstein <[email protected]>2023-09-04 18:27:38 +0300
commit724768a39374d35b70eaeae8dd87048a2ec7ae8e (patch)
tree3eb0e43379094a80cdbcb87f47517d3119db7b7a /lib/test_fortify/write_overflow-strncpy-src.c
parentab048302026d7701e7fbd718917e0dbcff0c4223 (diff)
ovl: fix incorrect fdput() on aio completion
ovl_{read,write}_iter() always call fdput(real) to put one or zero refcounts of the real file, but for aio, whether it was submitted or not, ovl_aio_put() also calls fdput(), which is not balanced. This is only a problem in the less common case when FDPUT_FPUT flag is set. To fix the problem use get_file() to take file refcount and use fput() instead of fdput() in ovl_aio_put(). Fixes: 2406a307ac7d ("ovl: implement async IO routines") Cc: <[email protected]> # v5.6 Reviewed-by: Miklos Szeredi <[email protected]> Signed-off-by: Amir Goldstein <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions