Skip to contentSkip to conversation

Unpatched return thunk in use. This should not happen!

DISCUSSION Heiner Kallweit 1 participant 1 message Mar 26, 2025

lore
Share & tools
lore
#0 lore raw

On latest linux-next I get the following, linux-next from March 12th was still ok. System is a N100-based mini pc.

calling iommu_dma_init+0x0/0x40 @ 1

------------[ cut here ]------------
Unpatched return thunk in use. This should not happen!
WARNING: CPU: 0 PID: 1 at arch/x86/kernel/cpu/bugs.c:3107 __warn_thunk+0x26/0x30
Modules linked in:
CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.14.0-next-20250326+ #1 PREEMPT(undef)
Hardware name: Default string Default string/Default string, BIOS ADLN.M6.SODIMM.ZB.CY.015 08/08/2023
RIP: 0010:__warn_thunk+0x26/0x30
Code: 90 90 90 90 55 48 89 e5 80 3d a2 20 3a 01 00 74 06 5d c3 cc cc cc cc 48 c7 c7 18 d0 d6 90 c6 05 8c 20 3a 01 01 e8 da f0 03 00 <0f> 0b 5d c3 cc cc cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0000:ffffa5960006fe18 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffffffff90576220 RCX: 0000000000000000
RDX: 0000000000000002 RSI: 0000000000000003 RDI: 00000000ffffffff
RBP: ffffa5960006fe18 R08: 0000000000000000 R09: ffffffff9114ece8
R10: ffffffff9111eca8 R11: 0000000000000003 R12: 0000000000000000
R13: 0000000000000053 R14: ffffffff9137e798 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff9dfa66568000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff9df8a3601000 CR3: 0000000122650001 CR4: 0000000000770ef0
PKRU: 55555554
Call Trace:
 <TASK>
 warn_thunk_thunk+0x16/0x30
 ? __cpuhp_setup_state_cpuslocked+0x65/0x310
 do_one_initcall+0x54/0x390
 ? debug_smp_processor_id+0x17/0x20
 ? rcu_is_watching+0x11/0x50
 kernel_init_freeable+0x268/0x2b0
 ? __pfx_kernel_init+0x10/0x10
 kernel_init+0x15/0x120
 ret_from_fork+0x35/0x60
 ? __pfx_kernel_init+0x10/0x10
 ret_from_fork_asm+0x1a/0x30
RIP: 1f0f:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0000:0000000000000000 EFLAGS: 841f0f2e66 ORIG_RAX: 1f0f2e6600000000
RAX: 0000000000000000 RBX: 1f0f2e6600000000 RCX: 2e66000000000084
RDX: 0000000000841f0f RSI: 000000841f0f2e66 RDI: 00841f0f2e660000
RBP: 00841f0f2e660000 R08: 00841f0f2e660000 R09: 000000841f0f2e66
R10: 0000000000841f0f R11: 2e66000000000084 R12: 000000841f0f2e66
R13: 0000000000841f0f R14: 2e66000000000084 R15: 1f0f2e6600000000
 </TASK>
irq event stamp: 6953
hardirqs last  enabled at (6961): [<ffffffff8ff6ce6e>] __up_console_sem+0x5e/0x80
hardirqs last disabled at (6968): [<ffffffff8ff6ce53>] __up_console_sem+0x43/0x80
softirqs last  enabled at (6192): [<ffffffff9068a468>] release_sock+0x98/0xb0
softirqs last disabled at (6190): [<ffffffff9068a3e9>] release_sock+0x19/0xb0
---[ end trace 0000000000000000 ]---
initcall iommu_dma_init+0x0/0x40 returned 0 after 1000 usecs