diff options
author | Miklos Szeredi <[email protected]> | 2024-05-27 15:44:48 +0200 |
---|---|---|
committer | Miklos Szeredi <[email protected]> | 2024-05-28 10:06:55 +0200 |
commit | db03d39053a97d2f2a6baec025ebdacbab5886d2 (patch) | |
tree | 96a91584e0e0655c8e6adb46dfe1e251889833bd /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 (diff) |
ovl: fix copy-up in tmpfile
Move ovl_copy_up() call outside of ovl_want_write()/ovl_drop_write()
region, since copy up may also call ovl_want_write() resulting in recursive
locking on sb->s_writers.
Reported-and-tested-by: [email protected]
Closes: https://lore.kernel.org/all/[email protected]/
Fixes: 9a87907de359 ("ovl: implement tmpfile")
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