https://bugzilla.kernel.org/show_bug.cgi?id=197827
Bug ID: 197827
Summary: drivers/acpi/apei/ghes.c calling ioremap_page_range()
which might sleep
Product: ACPI
Version: 2.5
Kernel Version: 4.14.0-rc7
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Other
Assignee: [email protected]
Reporter: [email protected]
Regression: No
Booting up a debug kernel on a HP ProLiant BL460c Gen9 system with 2 Intel(R)
Xeon(R) CPU E5-2699 v3 CPUs, I saw the following warning message in the kernel
log:
BUG: sleeping function called from invalid context at lib/ioremap.c:164
[ 1808.265193] in_atomic(): 1, irqs_disabled(): 1, pid: 0, name: swapper/16
[ 1808.265194] no locks held by swapper/16/0.
[ 1808.265194] irq event stamp: 2079978
[ 1808.265199] hardirqs last enabled at (2079977): [<ffffffffae329eab>]
rcu_idle_exit+0x2b/0x50
[ 1808.265201] hardirqs last disabled at (2079978): [<ffffffffae2ef839>]
do_idle+0x89/0x210
[ 1808.265204] softirqs last enabled at (2079966): [<ffffffffaea425e7>]
__do_softirq+0x377/0x505
[ 1808.265207] softirqs last disabled at (2079961): [<ffffffffae2a2a15>]
irq_exit+0xf5/0x110
[ 1808.265209] CPU: 16 PID: 0 Comm: swapper/16 Tainted: G W OE
4.14.0-rc7-tip-debug+ #1
[ 1808.265209] Hardware name: HP ProLiant BL460c Gen9, BIOS I36 06/14/2017
[ 1808.265210] Call Trace:
[ 1808.265212] <NMI>
[ 1808.265215] dump_stack+0x7c/0xb8
[ 1808.265217] ___might_sleep+0x225/0x260
[ 1808.265219] ioremap_page_range+0x32/0x430
[ 1808.265224] ghes_copy_tofrom_phys+0x98/0x1f0
[ 1808.265226] ghes_read_estatus+0x91/0x160
[ 1808.265228] ghes_notify_nmi+0x7a/0x1b0
[ 1808.265230] nmi_handle+0xbf/0x300
[ 1808.265231] ? nmi_handle+0x5/0x300
[ 1808.265233] default_do_nmi+0x42/0x120
[ 1808.265234] do_nmi+0x14e/0x1d0
[ 1808.265236] end_repeat_nmi+0x1a/0x1e
[ 1808.265238] RIP: 0010:intel_idle+0x78/0xe0
[ 1808.265239] RSP: 0018:ffffb996c635be68 EFLAGS: 00000046
[ 1808.265240] RAX: 0000000000000020 RBX: 0000000000000008 RCX:
0000000000000001
[ 1808.265241] RDX: 0000000000000000 RSI: ffffffffaf2742e0 RDI:
ffffd996be805cd8
[ 1808.265242] RBP: 0000000000000004 R08: 0000000000000005 R09:
000000000003bba8
[ 1808.265242] R10: 000000000001e7c0 R11: 0000000000000018 R12:
0000000000000020
[ 1808.265243] R13: 0000000008004000 R14: 000001a4fd8dba44 R15:
ffffffffaf2742e0
[ 1808.265246] ? intel_idle+0x78/0xe0
[ 1808.265248] ? intel_idle+0x78/0xe0
[ 1808.265248] </NMI>
[ 1808.265252] cpuidle_enter_state+0xa9/0x360
[ 1808.265254] do_idle+0x18d/0x210
[ 1808.265255] cpu_startup_entry+0x6f/0x80
[ 1808.265257] start_secondary+0x194/0x1f0
[ 1808.265259] secondary_startup_64+0xa5/0xb0
Obviously, a NMI handler cannot call a function that might sleep.
-Longman
--
You are receiving this mail because:
You are watching the assignee of the bug.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
acpi-bugzilla mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla