From: Eric Sandeen Date: Tue, 16 Dec 2014 22:25:28 +0000 (-0600) Subject: sched/debug: Check for stack overflow in ___might_sleep() X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~163^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8b686b3af4419f92e0ea5be1c76fb68363df8e6;p=pandora-kernel.git sched/debug: Check for stack overflow in ___might_sleep() Sometimes a "BUG: sleeping function called from invalid context" message is not indicative of locking problems, but is the result of a stack overflow corrupting the thread info. Witness http://oss.sgi.com/archives/xfs/2014-02/msg00325.html for example, which took a few go-rounds to sort out. If we're printing the warning, things are wonky already, and it'd be informative to check for the stack end corruption at this point, too. Signed-off-by: Eric Sandeen Signed-off-by: Peter Zijlstra (Intel) Cc: Linus Torvalds Link: http://lkml.kernel.org/r/5490B158.4060005@redhat.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed