kernel_optimize_test/drivers/md/bcache
Coly Li 09c9902cd8 bcache: memset on stack variables in bch_btree_check() and bch_sectors_dirty_init()
commit 7d6b902ea0e02b2a25c480edf471cbaa4ebe6b3c upstream.

The local variables check_state (in bch_btree_check()) and state (in
bch_sectors_dirty_init()) should be fully filled by 0, because before
allocating them on stack, they were dynamically allocated by kzalloc().

Signed-off-by: Coly Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20220527152818.27545-2-colyli@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-07-02 16:39:23 +02:00
..
alloc.c bcache: remove embedded struct cache_sb from struct cache_set 2020-10-02 14:25:30 -06:00
bcache.h bcache: Move journal work to new flush wq 2021-03-04 11:38:26 +01:00
bset.c bcache: allocate meta data pages as compound pages 2020-07-25 07:38:19 -06:00
bset.h bcache: explicity type cast in bset_bkey_last() 2020-02-01 07:55:39 -07:00
btree.c bcache: memset on stack variables in bch_btree_check() and bch_sectors_dirty_init() 2022-07-02 16:39:23 +02:00
btree.h bcache: improve multithreaded bch_btree_check() 2022-06-09 10:21:27 +02:00
closure.c bcache: Convert to DEFINE_SHOW_ATTRIBUTE 2020-10-02 14:25:29 -06:00
closure.h
debug.c bcache: only use block_bytes() on struct cache 2020-10-02 14:25:30 -06:00
debug.h
extents.c bcache: remove embedded struct cache_sb from struct cache_set 2020-10-02 14:25:30 -06:00
extents.h
features.c bcache: introduce BCH_FEATURE_INCOMPAT_LOG_LARGE_BUCKET_SIZE for large bucket 2021-01-12 20:18:25 +01:00
features.h bcache: only check feature sets when sb->version >= BCACHE_SB_VERSION_CDEV_WITH_FEATURES 2021-02-03 23:28:39 +01:00
io.c bcache: remove embedded struct cache_sb from struct cache_set 2020-10-02 14:25:30 -06:00
journal.c bcache: avoid journal no-space deadlock by reserving 1 journal bucket 2022-06-09 10:21:28 +02:00
journal.h bcache: avoid journal no-space deadlock by reserving 1 journal bucket 2022-06-09 10:21:28 +02:00
Kconfig bcache: Fix typo in Kconfig name 2020-07-25 07:38:19 -06:00
Makefile bcache: add sysfs file to display feature sets information of cache set 2020-07-25 07:38:21 -06:00
movinggc.c bcache: remove for_each_cache() 2020-10-02 14:25:29 -06:00
request.c md: bcache: check the return value of kzalloc() in detached_dev_do_request() 2022-06-09 10:21:31 +02:00
request.h block: move ->make_request_fn to struct block_device_operations 2020-07-01 07:27:24 -06:00
stats.c bcache: fix memory corruption in bch_cache_accounting_clear() 2020-02-01 07:55:39 -07:00
stats.h
super.c bcache: avoid journal no-space deadlock by reserving 1 journal bucket 2022-06-09 10:21:28 +02:00
sysfs.c bcache: check and set sync status on cache's in-memory super block 2020-10-02 14:25:30 -06:00
sysfs.h
trace.c
util.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
util.h
writeback.c bcache: memset on stack variables in bch_btree_check() and bch_sectors_dirty_init() 2022-07-02 16:39:23 +02:00
writeback.h bcache: improve multithreaded bch_sectors_dirty_init() 2022-06-09 10:21:27 +02:00