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


Groups > linux.kernel > #1232768

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

From Jiri Kosina <jikos@kernel.org>
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-25 14:50 +0200
Message-ID <qcABQ-1BX-9@gated-at.bofh.it> (permalink)
References (7 earlier) <qczZ8-T1-15@gated-at.bofh.it> <qczZ8-T1-13@gated-at.bofh.it> <qcA8P-14l-31@gated-at.bofh.it> <qcA8P-14l-33@gated-at.bofh.it> <qcAiu-1fs-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, 25 Sep 2015, Sedat Dilek wrote:

> >> $ egrep -nr 'save|restore|acquire|release'
> >> objdump-Dr_kernel-workqueue_o_CLANG-3-7.txt | egrep 'irq|map'
> >> 5718:                   4601: R_X86_64_PC32     _raw_spin_unlock_irqrestore-0x4
> >> 5766:                   4699: R_X86_64_PC32     _raw_spin_lock_irqsave-0x4
> >> 6173:                   4bd9: R_X86_64_PC32     _raw_spin_lock_irqsave-0x4
> >> 6265:                   4d05: R_X86_64_PC32     _raw_spin_unlock_irqrestore-0x4
> >>
> >> ...this is what I have.
> >>
> >> Does that help?
> >
> > It doesn't. I am asking for disassembly of del_timer_sync() (that's in
> > kernel/time/timer.o).
> >
> 
> See attached file.

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.

-- 
Jiri Kosina
SUSE Labs

--
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 | NextPrevious 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