Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1233637

Re: [Linux v4.2] workqueue: llvmlinux: acpid: BUG: sleeping function called from invalid context at kernel/workqueue.c:2680

From Sedat Dilek <sedat.dilek@gmail.com>
Newsgroups linux.kernel
Subject Re: [Linux v4.2] workqueue: llvmlinux: acpid: BUG: sleeping function called from invalid context at kernel/workqueue.c:2680
Date 2015-09-27 10:40 +0200
Message-ID <qdfEZ-1QA-3@gated-at.bofh.it> (permalink)
References (11 earlier) <qcAiu-1fs-3@gated-at.bofh.it> <qcABQ-1BX-9@gated-at.bofh.it> <qcABR-1BX-19@gated-at.bofh.it> <qcB4T-2t3-23@gated-at.bofh.it> <qdflD-1tN-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun, Sep 27, 2015 at 10:10 AM, Sedat Dilek <sedat.dilek@gmail.com> wrote:
> On Fri, Sep 25, 2015 at 3:13 PM, Jiri Kosina <jikos@kernel.org> wrote:
>> On Fri, 25 Sep 2015, Sedat Dilek wrote:
>>
>>> > The sequence looks correct. So I don't really see what call sequence could
>>> > lead to calling flush_work() from __cancel_work_timer() with IRQs
>>> > disabled (which is what your stacktrace is suggesting).
>>> >
>>> > The fact that this doesn't happen with GCC-compiled kernels is really
>>> > suspicious.
>>> >
>>>
>>> Hm, and now?
>>
>> I guess one of the things to try is to generate ftrace graph trace to see
>> what exact function sequence leads to this warning.
>>
>
> Which kernel-config settings are helpful for ftrace and tracing at all?
>
> I have here...
>
> CONFIG_IRQSOFF_TRACER=n
>
> ...is that helpful to trigger why I see "irqs_disabled"...
>
> [   23.874836] BUG: sleeping function called from invalid context at
> kernel/workqueue.c:2678
> [   23.874902] in_atomic(): 0, irqs_disabled(): 1, pid: 1411, name: acpid
>
> Also independent of this issue I would like to set...
>
> CONFIG_LOCKDEP=y
> CONFIG_DEBUG_LOCKDEP=y <--- XXX: New setting
>
> I recall something like a trace/tracing filesystem?
> I cannot find or remember the Kconfig - do you?
>

It is CONFIG_TRACING=y (see [1] and "tracefs: Add new tracefs file
system" from [2]).

- Sedat -

[1] https://lwn.net/Articles/631798/
[2] http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=4282d60689d4f21b40692029080440cc58e8a17d
--
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/

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [Linux v4.2] workqueue: llvmlinux: acpid: BUG: sleeping function  called from invalid context at kernel/workqueue.c:2680 Jiri Kosina <jikos@kernel.org> - 2015-09-24 10:00 +0200
  Re: [Linux v4.2] workqueue: llvmlinux: acpid: BUG: sleeping function  called from invalid context at kernel/workqueue.c:2680 Jiri Kosina <jikos@kernel.org> - 2015-09-24 10:10 +0200
    Re: [Linux v4.2] workqueue: llvmlinux: acpid: BUG: sleeping function  called from invalid context at kernel/workqueue.c:2680 Sedat Dilek <sedat.dilek@gmail.com> - 2015-09-24 10:20 +0200
      Re: [Linux v4.2] workqueue: llvmlinux: acpid: BUG: sleeping function  called from invalid context at kernel/workqueue.c:2680 Jiri Kosina <jikos@kernel.org> - 2015-09-24 10:30 +0200
        Re: [Linux v4.2] workqueue: llvmlinux: acpid: BUG: sleeping function  called from invalid context at kernel/workqueue.c:2680 Sedat Dilek <sedat.dilek@gmail.com> - 2015-09-25 08:50 +0200
        Re: [Linux v4.2] workqueue: llvmlinux: acpid: BUG: sleeping function  called from invalid context at kernel/workqueue.c:2680 Jiri Kosina <jikos@kernel.org> - 2015-09-25 14:10 +0200
          Re: [Linux v4.2] workqueue: llvmlinux: acpid: BUG: sleeping function  called from invalid context at kernel/workqueue.c:2680 Sedat Dilek <sedat.dilek@gmail.com> - 2015-09-25 14:20 +0200
            Re: [Linux v4.2] workqueue: llvmlinux: acpid: BUG: sleeping function  called from invalid context at kernel/workqueue.c:2680 Jiri Kosina <jikos@kernel.org> - 2015-09-25 14:20 +0200
              Re: [Linux v4.2] workqueue: llvmlinux: acpid: BUG: sleeping function  called from invalid context at kernel/workqueue.c:2680 Jiri Kosina <jikos@kernel.org> - 2015-09-25 14:50 +0200
                Re: [Linux v4.2] workqueue: llvmlinux: acpid: BUG: sleeping function  called from invalid context at kernel/workqueue.c:2680 Sedat Dilek <sedat.dilek@gmail.com> - 2015-09-25 14:50 +0200
                Re: [Linux v4.2] workqueue: llvmlinux: acpid: BUG: sleeping function  called from invalid context at kernel/workqueue.c:2680 Jiri Kosina <jikos@kernel.org> - 2015-09-25 15:20 +0200
                Re: [Linux v4.2] workqueue: llvmlinux: acpid: BUG: sleeping function  called from invalid context at kernel/workqueue.c:2680 Sedat Dilek <sedat.dilek@gmail.com> - 2015-09-25 15:20 +0200
                Re: [Linux v4.2] workqueue: llvmlinux: acpid: BUG: sleeping function  called from invalid context at kernel/workqueue.c:2680 Sedat Dilek <sedat.dilek@gmail.com> - 2015-09-27 10:40 +0200
          Re: [Linux v4.2] workqueue: llvmlinux: acpid: BUG: sleeping function  called from invalid context at kernel/workqueue.c:2680 Sedat Dilek <sedat.dilek@gmail.com> - 2015-09-25 14:40 +0200
  Re: [Linux v4.2] workqueue: llvmlinux: acpid: BUG: sleeping function  called from invalid context at kernel/workqueue.c:2680 Sedat Dilek <sedat.dilek@gmail.com> - 2015-09-24 10:10 +0200

csiph-web