Files
kernel_amazon_mt8127-common/drivers/md/bcache
Eric Wheeler f5b0d85307 bcache: fix cache_set_flush() NULL pointer dereference on OOM
commit f8b11260a445169989d01df75d35af0f56178f95 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2016-06-07 10:42:46 +02:00
..
2013-04-30 19:14:40 -07:00
2014-02-06 11:08:16 -08:00
2013-10-05 07:13:09 -07:00
2013-07-28 16:30:09 -07:00
2013-05-15 00:42:51 -07:00