Commit 184429a
Miklos Szeredi
Revert "fuse: move initialization of fuse_file to fuse_writepages() instead of in callback"
This reverts commit 672c3b7.
fuse_writepages() might be called with no dirty pages after all writable
opens were closed. In this case __fuse_write_file_get() will return NULL
which will trigger the WARNING.
The exact conditions under which this is triggered is unclear and syzbot
didn't find a reproducer yet.
Reported-by: [email protected]
Link: https://lore.kernel.org/all/CAJnrk1aQwfvb51wQ5rUSf9N8j1hArTFeSkHqC_3T-mU6_BCD=A@mail.gmail.com/
Signed-off-by: Miklos Szeredi <[email protected]>1 parent 20121d3 commit 184429a
1 file changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2288 | 2288 | | |
2289 | 2289 | | |
2290 | 2290 | | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
| 2296 | + | |
| 2297 | + | |
2291 | 2298 | | |
2292 | 2299 | | |
2293 | 2300 | | |
| |||
2351 | 2358 | | |
2352 | 2359 | | |
2353 | 2360 | | |
2354 | | - | |
2355 | 2361 | | |
2356 | 2362 | | |
2357 | 2363 | | |
2358 | 2364 | | |
| 2365 | + | |
2359 | 2366 | | |
2360 | | - | |
| 2367 | + | |
2361 | 2368 | | |
2362 | 2369 | | |
2363 | 2370 | | |
2364 | 2371 | | |
2365 | 2372 | | |
2366 | 2373 | | |
2367 | 2374 | | |
2368 | | - | |
2369 | | - | |
2370 | | - | |
| 2375 | + | |
2371 | 2376 | | |
2372 | 2377 | | |
2373 | 2378 | | |
| |||
2381 | 2386 | | |
2382 | 2387 | | |
2383 | 2388 | | |
| 2389 | + | |
| 2390 | + | |
2384 | 2391 | | |
2385 | 2392 | | |
2386 | 2393 | | |
2387 | | - | |
2388 | 2394 | | |
2389 | 2395 | | |
2390 | 2396 | | |
| |||
0 commit comments