From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756001AbcBBOoa (ORCPT ); Tue, 2 Feb 2016 09:44:30 -0500 Received: from mail-wm0-f49.google.com ([74.125.82.49]:33755 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755807AbcBBOo2 (ORCPT ); Tue, 2 Feb 2016 09:44:28 -0500 Message-ID: <1454424264.11183.46.camel@gmail.com> Subject: mod_delayed_work() explosion due to 874bbfe6 From: Mike Galbraith To: Tejun Heo Cc: LKML Date: Tue, 02 Feb 2016 15:44:24 +0100 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.5 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tejun, I'm looking at a crash analysis that fingers 874bbfe6 as being the culprit. (I didn't do the analysis, but it appears to be correct) Scenario: CPU168 calls mod_delayed_work(), is taken offline before the timer expires. Due to 874bbfe6, dwork->cpu is the now offline CPU168 vs the previous WORK_CPU_UNBOUND, timer fires on CPU131, it tries to __queue_work() with cpu == the now offline CPU168, gets to... } else pwq = unbound_pwq_by_node(wq, cpu_to_node(cpu)); ... and goes boom. crash> p numa_node | grep 168 [168]: ffff8c03fdf0e328 crash> rd ffff8c03fdf0e328 ffff8c03fdf0e328: 00000000ffffffff ........ Thus, pwq becomes 000000000. Then, as the result of reference to pwq->pool, NULL reference occurs at (*PANIC). What if anything is supposed to prevent this? -Mike