diff options
author | Brian Behlendorf <behlendorf1@llnl.gov> | 2013-05-25 00:55:28 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-25 01:22:52 +0200 |
commit | dfd20b2b174d3a9b258ea3b7a35ead33576587b1 (patch) | |
tree | afa033d613e8eca4bdaf6f9be2b990318a886b36 /fs/nilfs2 | |
parent | fbdev: FB_GOLDFISH should depend on HAS_DMA (diff) | |
download | linux-dfd20b2b174d3a9b258ea3b7a35ead33576587b1.tar.xz linux-dfd20b2b174d3a9b258ea3b7a35ead33576587b1.zip |
drivers/block/brd.c: fix brd_lookup_page() race
The index on the page must be set before it is inserted in the radix
tree. Otherwise there is a small race which can occur during lookup
where the page can be found with the incorrect index. This will trigger
the BUG_ON() in brd_lookup_page().
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reported-by: Chris Wedgwood <cw@f00f.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/nilfs2')
0 files changed, 0 insertions, 0 deletions