From mboxrd@z Thu Jan 1 00:00:00 1970 From: Meelis Roos Subject: Re: parisc 4.13-git, BUG: sleeping function called from invalid context at mm/slab.h:416 Date: Tue, 1 Aug 2017 10:52:20 +0300 (EEST) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: linux-parisc@vger.kernel.org To: John David Anglin Return-path: In-Reply-To: List-ID: List-Id: linux-parisc.vger.kernel.org > Since this code hasn't changed in a long time, it should be possible to bisect problem. I know the patch works, but out of curiosity I bisected it and found that the BUG is brough out with the following commit. Seems to make sense. ma1c3c5eab171590f86edd8d31389d61dd1efe3037 is the first bad commit commit 1c3c5eab171590f86edd8d31389d61dd1efe3037 Author: Thomas Gleixner Date: Tue May 16 20:42:48 2017 +0200 sched/core: Enable might_sleep() and smp_processor_id() checks early might_sleep() and smp_processor_id() checks are enabled after the boot process is done. That hides bugs in the SMP bringup and driver initialization code. Enable it right when the scheduler starts working, i.e. when init task and kthreadd have been created and right before the idle task enables preemption. Tested-by: Mark Rutland Signed-off-by: Thomas Gleixner Signed-off-by: Peter Zijlstra (Intel) Acked-by: Mark Rutland Cc: Greg Kroah-Hartman Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Steven Rostedt Link: http://lkml.kernel.org/r/20170516184736.272225698@linutronix.de Signed-off-by: Ingo Molnar -- Meelis Roos (mroos@linux.ee)