Wind River Support Network

HomeDefectsLIN5-3201
Fixed

LIN5-3201 : WRL5: BUG: sleeping function called from invalid context at kernel/rtmutex.c, at strange call.

Created: Nov 7, 2013    Updated: Dec 19, 2017
Resolved Date: Dec 5, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.10
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: Kernel

Description

This simple program....

/*
  * cortexa15t-neon-wrswrap-linux-gnueabi-gcc -o a a.c
  */
int main() {
   *((char*)0xc0001000) = 0;
};

...gives:

  512.742724] BUG: sleeping function called from invalid context at
kernel/rtmutex.c:658
[  512.743000] in_atomic(): 0, irqs_disabled(): 128, pid: 994, name: a
[  512.743217] INFO: lockdep is turned off.
[  512.743360] irq event stamp: 0
[  512.743482] hardirqs last  enabled at (0): [<  (null)>]   (null)
[  512.743714] hardirqs last disabled at (0): [<c0426370>]
copy_process+0x3b0/0x11c0
[  512.744013] softirqs last  enabled at (0): [<c0426370>]
copy_process+0x3b0/0x11c0
[  512.744303] softirqs last disabled at (0): [<  (null)>]   (null)
[  512.744631] [<c041872c>] (unwind_backtrace+0x0/0x104) from
[<c09af0c4>] (dump_stack+0x20/0x24)
[  512.745001] [<c09af0c4>] (dump_stack+0x20/0x24) from [<c0462490>]
(__might_sleep+0x1dc/0x1e0)
[  512.745355] [<c0462490>] (__might_sleep+0x1dc/0x1e0) from
[<c09b6770>] (rt_spin_lock+0x34/0x6c)
[  512.745717] [<c09b6770>] (rt_spin_lock+0x34/0x6c) from [<c0441bf0>]
(do_force_sig_info+0x34/0xf0)
[  512.746073] [<c0441bf0>] (do_force_sig_info+0x34/0xf0) from
[<c0442668>] (force_sig_info+0x18/0x1c)
[  512.746457] [<c0442668>] (force_sig_info+0x18/0x1c) from
[<c041d880>] (__do_user_fault+0x9c/0xd8)
[  512.746829] [<c041d880>] (__do_user_fault+0x9c/0xd8) from
[<c041d938>] (do_bad_area+0x7c/0x94)
[  512.747185] [<c041d938>] (do_bad_area+0x7c/0x94) from [<c041d990>]
(do_sect_fault+0x40/0x48)
[  512.747536] [<c041d990>] (do_sect_fault+0x40/0x48) from
[<c040841c>] (do_DataAbort+0x40/0xa0)
[  512.747898] [<c040841c>] (do_DataAbort+0x40/0xa0) from [<c09b7798>]
(__dabt_usr+0x38/0x40)
[  512.748181] Exception stack(0xecaa1fb0 to 0xecaa1ff8)
[  512.748375] 1fa0:                                     00000001
beea9e24 00000000 c0001000
[  512.748651] 1fc0: 00000000 000000d4 4eb2d3f0 beea9cd4 b6fcd4c0
00000000 4ea31000 00000000
[  512.748928] 1fe0: 4ea60381 beea9cd4 4ea50431 00008328 60000030
ffffffff

Steps to Reproduce

Probably happends on all ARM, with
-PREEMPT_RT
-CONFIG_DEBUG_LOCKDEP

Discovered on BSP axm5516.

Other Downloads


Live chat
Online