Kent Overstreet
7ff8f2104c
dm: Use kzalloc for all structs with embedded biosets/mempools
...
[ Upstream commit d377535405686f735b90a8ad4ba269484cd7c96e ]
mempool_init()/bioset_init() require that the mempools/biosets be zeroed
first; they probably should not _require_ this, but not allocating those
structs with kzalloc is a fairly nonsensical thing to do (calling
mempool_exit()/bioset_exit() on an uninitialized mempool/bioset is legal
and safe, but only works if said memory was zeroed.)
Acked-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-06 12:18:01 +01:00
..
bcache
bcache: check c->gc_thread by IS_ERR_OR_NULL in cache_set_flush()
2019-08-04 09:33:23 +02:00
persistent-data
dm space map metadata: fix missing store of apply_bops() return value
2019-09-06 10:19:38 +02:00
bitmap.c
md: free unused memory after bitmap resize
2017-12-16 16:25:47 +01:00
bitmap.h
dm-bio-prison.c
dm: Use kzalloc for all structs with embedded biosets/mempools
2019-11-06 12:18:01 +01:00
dm-bio-prison.h
dm-bio-record.h
dm-bufio.c
Revert "dm bufio: fix deadlock with loop device"
2019-09-06 10:19:36 +02:00
dm-bufio.h
dm-builtin.c
dm-cache-block-types.h
dm-cache-metadata.c
dm cache metadata: ignore hints array being too small during resize
2018-10-13 09:18:55 +02:00
dm-cache-metadata.h
dm-cache-policy-cleaner.c
dm-cache-policy-internal.h
dm-cache-policy-smq.c
dm-cache-policy.c
dm-cache-policy.h
dm-cache-target.c
dm cache: fix resize crash if user doesn't reload cache table
2018-10-13 09:18:55 +02:00
dm-core.h
dm: allocate struct mapped_device with kvzalloc
2017-11-30 08:39:02 +00:00
dm-crypt.c
dm crypt: mark key as invalid until properly loaded
2017-01-06 10:40:15 +01:00
dm-delay.c
dm delay: fix a crash when invalid device is specified
2019-05-25 18:26:54 +02:00
dm-era-target.c
dm era: save spacemap metadata root after the pre-commit
2017-05-20 14:28:37 +02:00
dm-exception-store.c
dm-exception-store.h
dm-flakey.c
dm flakey: return -EINVAL on interval bounds error in flakey_ctr()
2017-01-06 10:40:15 +01:00
dm-io.c
dm: Use kzalloc for all structs with embedded biosets/mempools
2019-11-06 12:18:01 +01:00
dm-ioctl.c
dm ioctl: harden copy_params()'s copy_from_user() from malicious users
2018-11-13 11:17:02 -08:00
dm-kcopyd.c
dm: Use kzalloc for all structs with embedded biosets/mempools
2019-11-06 12:18:01 +01:00
dm-linear.c
dm-log-userspace-base.c
dm-log-userspace-transfer.c
dm-log-userspace-transfer.h
dm-log-writes.c
dm-log.c
dm-mpath.c
dm mpath: cleanup -Wbool-operation warning in choose_pgpath()
2017-07-27 15:07:55 -07:00
dm-mpath.h
dm-path-selector.c
dm-path-selector.h
dm-queue-length.c
dm-raid.c
dm raid: fix rebuild of specific devices by updating superblock
2018-10-10 08:53:21 +02:00
dm-raid1.c
dm-region-hash.c
dm: Use kzalloc for all structs with embedded biosets/mempools
2019-11-06 12:18:01 +01:00
dm-round-robin.c
dm round robin: revert "use percpu 'repeat_count' and 'current_path'"
2017-03-12 06:41:44 +01:00
dm-rq.c
dm rq: check blk_mq_register_dev() return value in dm_mq_init_request_queue()
2017-05-20 14:28:37 +02:00
dm-rq.h
dm-service-time.c
dm-snap-persistent.c
dm-snap-transient.c
dm-snap.c
dm: Use kzalloc for all structs with embedded biosets/mempools
2019-11-06 12:18:01 +01:00
dm-stats.c
dm stats: fix a leaked s->histogram_boundaries array
2017-03-12 06:41:44 +01:00
dm-stats.h
dm-stripe.c
dm-switch.c
dm-sysfs.c
dm-table.c
dm table: fix invalid memory accesses with too high sector number
2019-09-06 10:19:39 +02:00
dm-target.c
dm-thin-metadata.c
dm thin: fix passdown_double_checking_shared_status()
2019-01-31 08:12:36 +01:00
dm-thin-metadata.h
dm thin: fix passdown_double_checking_shared_status()
2019-01-31 08:12:36 +01:00
dm-thin.c
dm: Use kzalloc for all structs with embedded biosets/mempools
2019-11-06 12:18:01 +01:00
dm-uevent.c
dm-uevent.h
dm-verity-fec.c
dm verity fec: fix bufio leaks
2017-04-12 12:41:12 +02:00
dm-verity-fec.h
dm verity fec: limit error correction recursion
2017-04-12 12:41:12 +02:00
dm-verity-target.c
dm verity: use message limit for data block corruption message
2019-07-21 09:06:07 +02:00
dm-verity.h
dm-zero.c
dm.c
dm: correctly handle chained bios in dec_pending()
2018-02-22 15:43:51 +01:00
dm.h
faulty.c
Kconfig
dm raid: select the Kconfig option CONFIG_MD_RAID0
2017-05-25 15:44:33 +02:00
linear.c
md/linear: shutup lockdep warnning
2017-10-21 17:21:35 +02:00
linear.h
md linear: fix a race between linear_add() and linear_congested()
2017-03-12 06:41:52 +01:00
Makefile
md-cluster.c
md-cluster: clear another node's suspend_area after the copy is finished
2018-10-03 17:01:43 -07:00
md-cluster.h
md.c
md: don't set In_sync if array is frozen
2019-10-05 12:30:21 +02:00
md.h
multipath.c
multipath.h
raid0.c
raid0.h
raid1.c
md/raid1: fail run raid1 array when active disk less than one
2019-10-05 12:30:26 +02:00
raid1.h
raid5-cache.c
raid5-cache: correct condition for empty metadata write
2016-10-28 22:04:03 -07:00
raid5.c
md/raid6: Set R5_ReadError when there is read failure on parity disk
2019-10-05 12:30:34 +02:00
raid5.h
raid10.c
md: Fix failed allocation of md_register_thread
2019-03-23 13:19:53 +01:00
raid10.h