Re: [PATCH block/for-3.4/core] cfq: fix cfqg ref handling whenBLK_CGROUP && !CFQ_GROUP_IOSCHED

From: Fengguang Wu
Date: Fri Mar 16 2012 - 00:21:53 EST


On Thu, Mar 15, 2012 at 09:35:46AM -0700, Tejun Heo wrote:
> When BLK_CGROUP is enabled but CFQ_GROUP_IOSCHED is, cfq ends up
> calling blkg_get/put() on dummy cfqg leading to the following crash.
>
> BUG: unable to handle kernel NULL pointer dereference at 00000000000000b0
> IP: [<ffffffff813d44d8>] cfq_init_queue+0x258/0x430

> Reported-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>
> Signed-off-by: Tejun Heo <tj@xxxxxxxxxx>

Tested-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>

Thanks for the quick fix!

> ---
> Yeap, forgot to test that config combination. Fengguang, can you
> please test this patch? Jens, once Fengguang confirms the fix, can
> you please apply this on top of for-3.4/core along with the pending
> stats updates?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/