Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753645AbaDEG0v (ORCPT ); Sat, 5 Apr 2014 02:26:51 -0400 Received: from mail-oa0-f44.google.com ([209.85.219.44]:38063 "EHLO mail-oa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753353AbaDEG0t (ORCPT ); Sat, 5 Apr 2014 02:26:49 -0400 MIME-Version: 1.0 In-Reply-To: <533F86D4.10007@intel.com> References: <20140404031928.GC11828@localhost> <533E635F.9050803@intel.com> <533F86D4.10007@intel.com> Date: Sat, 5 Apr 2014 11:56:48 +0530 Message-ID: Subject: Re: WARNING: CPU: 0 PID: 1935 at kernel/timer.c:1621 migrate_timer_list() From: Viresh Kumar To: Jet Chen Cc: Thomas Gleixner , Fengguang Wu , Linux Kernel Mailing List Content-Type: multipart/mixed; boundary=089e0118254420864a04f645b8b2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --089e0118254420864a04f645b8b2 Content-Type: text/plain; charset=ISO-8859-1 On 5 April 2014 10:00, Jet Chen wrote: > vmlinuz from our build system doesn't have debug information. It is hard to > use objdump to identify which routine is timer->function. I see... > But after several times trials, I get below dmesg messages. > It is clear to see address of "timer->function" is 0xffffffff810d7010. > In calling stack, " [] ? > clocksource_watchdog_kthread+0x40/0x40 ". So I guess timer->function is > clocksource_watchdog_kthread. Hmm.. not exactly this function as this isn't timer->function for any timer. But I think I have found the right function with this hint: clocksource_watchdog() Can you please try to test the attached patch, which must fix it. Untested. I will then post it with your Tested-by :) -- viresh --089e0118254420864a04f645b8b2 Content-Type: text/x-patch; charset=US-ASCII; name="0001-clocksource-register-cpu-notifier-to-remove-timer-fr.patch" Content-Disposition: attachment; filename="0001-clocksource-register-cpu-notifier-to-remove-timer-fr.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_htmiq8ik1 RnJvbSBhYmQzODE1NWY4MjkzOTIzZGU1OTUzY2MwNjNmOW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YXRjaGRvZzsKIAl3YXRjaGRvZ190 aW1lci5leHBpcmVzID0gamlmZmllcyArIFdBVENIRE9HX0lOVEVSVkFMOwotCWFkZF90aW1lcl9v bigmd2F0Y2hkb2dfdGltZXIsIGNwdW1hc2tfZmlyc3QoY3B1X29ubGluZV9tYXNrKSk7CisJYWRk X3RpbWVyX29uKCZ3YXRjaGRvZ190aW1lciwgdGltZXJfY3B1KTsKIAl3YXRjaGRvZ19ydW5uaW5n ID0gMTsKIH0KIApAQCAtMzY1LDYgKzQwNiw3IEBAIHN0YXRpYyBpbmxpbmUgdm9pZCBjbG9ja3Nv dXJjZV9zdG9wX3dhdGNoZG9nKHZvaWQpCiAJaWYgKCF3YXRjaGRvZ19ydW5uaW5nIHx8ICh3YXRj aGRvZyAmJiAhbGlzdF9lbXB0eSgmd2F0Y2hkb2dfbGlzdCkpKQogCQlyZXR1cm47CiAJZGVsX3Rp bWVyKCZ3YXRjaGRvZ190aW1lcik7CisJdW5yZWdpc3Rlcl9jcHVfbm90aWZpZXIoJmNsb2Nrc291 cmNlX25iKTsKIAl3YXRjaGRvZ19ydW5uaW5nID0gMDsKIH0KIAotLSAKMS43LjEyLnJjMi4xOC5n NjFiNDcyZQoK --089e0118254420864a04f645b8b2-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/