linux/drivers/md/bcache
Eric Wheeler f8b11260a4 bcache: fix cache_set_flush() NULL pointer dereference on OOM
When bch_cache_set_alloc() fails to kzalloc the cache_set, the
asyncronous closure handling tries to dereference a cache_set that
hadn't yet been allocated inside of cache_set_flush() which is called
by __cache_set_unregister() during cleanup.  This appears to happen only
during an OOM condition on bcache_register.

Signed-off-by: Eric Wheeler <bcache@linux.ewheeler.net>
Cc: stable@vger.kernel.org
2016-03-08 09:19:10 -07:00
..
Kconfig
Makefile
alloc.c
bcache.h bcache: remove driver private bio splitting code 2015-08-13 12:31:40 -06:00
bset.c
bset.h
btree.c bcache: Add a cond_resched() call to gc 2015-12-30 20:23:06 -07:00
btree.h
closure.c bcache: Really show state of work pending bit 2015-11-06 15:06:05 +01:00
closure.h block: add a bi_error field to struct bio 2015-07-29 08:55:15 -06:00
debug.c
debug.h
extents.c
extents.h
io.c bcache: remove driver private bio splitting code 2015-08-13 12:31:40 -06:00
journal.c bcache: remove driver private bio splitting code 2015-08-13 12:31:40 -06:00
journal.h
movinggc.c block: add a bi_error field to struct bio 2015-07-29 08:55:15 -06:00
request.c block: change ->make_request_fn() and users to return a queue cookie 2015-11-07 10:40:46 -07:00
request.h
stats.c
stats.h
super.c bcache: fix cache_set_flush() NULL pointer dereference on OOM 2016-03-08 09:19:10 -07:00
sysfs.c
sysfs.h
trace.c
util.c md: more open-coded offset_in_page() 2016-01-04 10:29:12 -05:00
util.h bcache: remove driver private bio splitting code 2015-08-13 12:31:40 -06:00
writeback.c bcache: Change refill_dirty() to always scan entire disk if necessary 2015-12-30 20:23:16 -07:00
writeback.h bcache: prevent crash on changing writeback_running 2015-12-30 20:23:14 -07:00