Re: Emitting an ignore_int() handled interrupt and system response

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ahmed S. Darwish wrote:
[...]
> Here's the BUG() - faulty_int is the above module:
> 
[...]
> Mar 19 00:42:08 localhost kernel: [  395.697923] BUG: sleeping function called from invalid context at kernel/rwsem.c:20

It complains sleeping in interrupt context.

> Mar 19 00:42:08 localhost kernel: [  395.697931] in_atomic():0, irqs_disabled():1
> Mar 19 00:42:08 localhost kernel: [  395.697938] no locks held by insmod/3684.
> Mar 19 00:42:08 localhost kernel: [  395.697943] irq event stamp: 12668
> Mar 19 00:42:08 localhost kernel: [  395.697949] hardirqs last  enabled at (12667): [<c02ed715>] __mutex_unlock_slowpath+0xb5/0x170
> Mar 19 00:42:08 localhost kernel: [  395.697965] hardirqs last disabled at (12668): [<c02ef4d5>] _spin_lock_irqsave+0x15/0x50
> Mar 19 00:42:08 localhost kernel: [  395.697980] softirqs last  enabled at (12262): [<c0120285>] do_softirq+0x45/0x50
> Mar 19 00:42:08 localhost kernel: [  395.697996] softirqs last disabled at (12253): [<c0120285>] do_softirq+0x45/0x50
> Mar 19 00:42:08 localhost kernel: [  395.698012]  [<c0131b95>] down_read+0x15/0x50
> Mar 19 00:42:08 localhost kernel: [  395.698026]  [<c013174f>] hrtimer_try_to_cancel+0x3f/0xa0
> Mar 19 00:42:08 localhost kernel: [  395.698039]  [<c0143b62>] acct_collect+0x32/0x150
> Mar 19 00:42:08 localhost kernel: [  395.698052]  [<c011d86c>] do_exit+0xec/0x7d0
> Mar 19 00:42:08 localhost kernel: [  395.698065]  [<c0117018>] __wake_up+0x38/0x50
> Mar 19 00:42:08 localhost kernel: [  395.698085]  [<c010576b>] die+0x21b/0x220
> Mar 19 00:42:08 localhost kernel: [  395.698105]  [<c0105aef>] do_int3+0x6f/0x80
> Mar 19 00:42:08 localhost kernel: [  395.698122]  [<c02ef87f>] int3+0x27/0x2c

Here are something interesting:

> Mar 19 00:42:08 localhost kernel: [  395.698137]  [<e07d9000>] init_module+0x0/0x10 [faulty_int]

we have ignore_int here:

> Mar 19 00:42:08 localhost kernel: [  395.698152]  [<c03ce23d>] ignore_int+0x1/0x44
> Mar 19 00:42:08 localhost kernel: [  395.698164]  [<e07d9002>]
init_module+0x2/0x10 [faulty_int]

I guess the kernel just don't expect an interrupt in init_module?


> Mar 19 00:42:08 localhost kernel: [  395.698176]  [<c013dd93>] sys_init_module+0x143/0x1590
> Mar 19 00:42:08 localhost kernel: [  395.698225]  [<c0103f10>] sysenter_past_esp+0x5d/0x99
> Mar 19 00:42:08 localhost kernel: [  395.698246]  =======================
> 
> Thanks,
> 


-- 
This space was intended to be left blank.


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux