Repository navigation
Commit 22c8ca7
[PATCH] fs: fix nobh data leak
nobh_prepare_write leaks data similarly to how simple_prepare_write did. Fix
by not marking the page uptodate until nobh_commit_write time. Again, this
could break weird use-cases, but none appear to exist in the tree.
We can safely remove the set_page_dirty, because as the comment says,
nobh_commit_write does set_page_dirty. If a filesystem wants to allocate
backing store for a page dirtied via mmap, page_mkwrite is the suggested
approach.
Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent 955eff5 commit 22c8ca7
1 file changed
Lines changed: 3 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2248 | 2248 | | |
2249 | 2249 | | |
2250 | 2250 | | |
2251 | | - | |
2252 | 2251 | | |
2253 | 2252 | | |
2254 | 2253 | | |
| |||
2285 | 2284 | | |
2286 | 2285 | | |
2287 | 2286 | | |
2288 | | - | |
| 2287 | + | |
2289 | 2288 | | |
2290 | | - | |
2291 | | - | |
2292 | | - | |
| 2289 | + | |
2293 | 2290 | | |
2294 | | - | |
2295 | | - | |
2296 | 2291 | | |
2297 | 2292 | | |
2298 | 2293 | | |
| |||
2347 | 2342 | | |
2348 | 2343 | | |
2349 | 2344 | | |
2350 | | - | |
2351 | | - | |
2352 | | - | |
2353 | | - | |
2354 | | - | |
2355 | | - | |
2356 | | - | |
2357 | | - | |
2358 | | - | |
2359 | | - | |
2360 | | - | |
2361 | 2345 | | |
2362 | 2346 | | |
2363 | 2347 | | |
| |||
2387 | 2371 | | |
2388 | 2372 | | |
2389 | 2373 | | |
| 2374 | + | |
2390 | 2375 | | |
2391 | 2376 | | |
2392 | 2377 | | |
| |||
0 commit comments