]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Revert commit 8bd274934987 ("block: fix bdi vs gendisk lifetime mismatch")
authorAshish Samant <ashish.samant@oracle.com>
Sat, 24 Nov 2018 22:04:13 +0000 (14:04 -0800)
committerBrian Maly <brian.maly@oracle.com>
Tue, 27 Nov 2018 19:35:37 +0000 (14:35 -0500)
commitcdd844fd90aa1f9724858de0aa6e06c0774a0212
tree34fb2aeb362b6c022ab11a8bbefe7344d1d230f1
parent556289539b00bdc5673a8cf4a9c39c02996faac4
Revert commit 8bd274934987 ("block: fix bdi vs gendisk lifetime mismatch")

Orabug: 28968102

8bd274934987 adds a new element at the end of struct backing_dev_info.
struct backing_dev_info is embedded inside struct request_queue
and is usually allocated during request_queue allocation. However, some
out of tree modules also allocate this struct separately using
sizeof() or via direct inclusion in their own structs. This patch
essentially breaks KABI for such modules and can cause a mismatch in the
size of the allocated struct and lead to kernel crashes.

Signed-off-by: Ashish Samant <ashish.samant@oracle.com>
Reviewed-by: Jianchao Wang <jianchao.w.wang@oracle.com>
Reviewed-by: Shan Hai <shan.hai@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
block/genhd.c
include/linux/backing-dev.h
mm/backing-dev.c