linux/block
Ming Lei 76d697d107 blk-mq: fix hctx/ctx kobject use-after-free
The kobject memory shouldn't have been freed before the kobject
is released because driver core can access it freely before its
release.

This patch frees hctx in its release callback. For ctx, they
share one single per-cpu variable which is associated with
the request queue, so free ctx in q->mq_kobj's release handler.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(fix ctx kobjects)
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-01-20 09:28:33 -07:00
..
partitions
bio-integrity.c
bio.c bio: modify __bio_add_page() to accept pages that don't start a new segment 2014-12-11 09:11:52 -07:00
blk-cgroup.c
blk-cgroup.h
blk-core.c block: wake up waiters when a queue is marked dying 2014-12-31 09:39:16 -07:00
blk-exec.c
blk-flush.c
blk-integrity.c
blk-ioc.c
blk-iopoll.c
blk-lib.c
blk-map.c
blk-merge.c
blk-mq-cpu.c
blk-mq-cpumap.c blk-mq: Use all available hardware queues 2014-12-09 09:08:21 -07:00
blk-mq-sysfs.c blk-mq: fix hctx/ctx kobject use-after-free 2015-01-20 09:28:33 -07:00
blk-mq-tag.c block: wake up waiters when a queue is marked dying 2014-12-31 09:39:16 -07:00
blk-mq-tag.h block: wake up waiters when a queue is marked dying 2014-12-31 09:39:16 -07:00
blk-mq.c blk-mq: fix hctx/ctx kobject use-after-free 2015-01-20 09:28:33 -07:00
blk-mq.h block: wake up waiters when a queue is marked dying 2014-12-31 09:39:16 -07:00
blk-settings.c
blk-softirq.c
blk-sysfs.c blk-mq: Fix a use-after-free 2014-12-09 09:07:13 -07:00
blk-tag.c
blk-throttle.c
blk-timeout.c blk-mq: Allow requests to never expire 2015-01-08 08:59:01 -07:00
blk.h
bounce.c
bsg-lib.c
bsg.c
cfq-iosched.c
cmdline-parser.c
compat_ioctl.c
deadline-iosched.c
elevator.c
genhd.c
ioctl.c
ioprio.c
Kconfig
Kconfig.iosched
Makefile
noop-iosched.c
partition-generic.c
scsi_ioctl.c
t10-pi.c