diff options
author | Ming Lei <ming.lei@canonical.com> | 2015-01-20 11:00:56 +0800 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-01-20 09:28:33 -0700 |
commit | 76d697d10769048e5721510100bf3a9413a56385 (patch) | |
tree | e7d78afb91e9f7ff47f7e1e558f762908c50f49e /lib | |
parent | 6222d1721dd7d533b43747642419a8ff78ad6f99 (diff) | |
download | op-kernel-dev-76d697d10769048e5721510100bf3a9413a56385.zip op-kernel-dev-76d697d10769048e5721510100bf3a9413a56385.tar.gz |
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>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions