[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202504171640.c81d6f67-lkp@intel.com>
Date: Thu, 17 Apr 2025 21:13:28 +0800
From: kernel test robot <oliver.sang@...el.com>
To: Peter Zijlstra <peterz@...radead.org>
CC: <oe-lkp@...ts.linux.dev>, <lkp@...el.com>, <linux-kernel@...r.kernel.org>,
<x86@...nel.org>, Ingo Molnar <mingo@...nel.org>, Andy Lutomirski
<luto@...nel.org>, Rik van Riel <riel@...riel.com>, "H. Peter Anvin"
<hpa@...or.com>, Linus Torvalds <torvalds@...ux-foundation.org>, "Andrew
Morton" <akpm@...ux-foundation.org>, <oliver.sang@...el.com>
Subject: [tip:x86/alternatives] [x86/mm] 4873f494bb:
WARNING:at_arch/x86/mm/tlb.c:#switch_mm_irqs_off
Hello,
kernel test robot noticed "WARNING:at_arch/x86/mm/tlb.c:#switch_mm_irqs_off" on:
commit: 4873f494bbe4670f353a9b76ce44e6028c811cbb ("x86/mm: Remove 'mm' argument from unuse_temporary_mm() again")
https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git x86/alternatives
in testcase: boot
config: x86_64-randconfig-161-20250413
compiler: gcc-12
test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G
(please refer to attached dmesg/kmsg for entire log/backtrace)
+--------------------------------------------------+------------+------------+
| | d376972c98 | 4873f494bb |
+--------------------------------------------------+------------+------------+
| WARNING:at_arch/x86/mm/tlb.c:#switch_mm_irqs_off | 0 | 12 |
| RIP:switch_mm_irqs_off | 0 | 12 |
+--------------------------------------------------+------------+------------+
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <oliver.sang@...el.com>
| Closes: https://lore.kernel.org/oe-lkp/202504171640.c81d6f67-lkp@intel.com
[ 1.746877][ T9] ------------[ cut here ]------------
[ 1.747460][ T9] WARNING: CPU: 0 PID: 9 at arch/x86/mm/tlb.c:913 switch_mm_irqs_off (kbuild/obj/consumer/x86_64-randconfig-161-20250413/arch/x86/mm/tlb.c:913)
[ 1.748353][ T9] Modules linked in:
[ 1.748774][ T9] CPU: 0 UID: 0 PID: 9 Comm: kworker/0:0 Not tainted 6.15.0-rc1-00055-g4873f494bbe4 #1 PREEMPT(undef) e8aa378fdd0841698e07350fa58f890f8e93d36c
[ 1.749754][ T9] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[ 1.749754][ T9] Workqueue: events once_deferred
[ 1.749754][ T9] RIP: 0010:switch_mm_irqs_off (kbuild/obj/consumer/x86_64-randconfig-161-20250413/arch/x86/mm/tlb.c:913)
[ 1.749754][ T9] Code: 44 8b 6c 24 14 be 08 00 00 00 4c 89 e8 48 c1 e8 06 49 8d bc c4 00 07 00 00 e8 66 1d 6e 00 4d 0f a3 ac 24 00 07 00 00 72 04 90 <0f> 0b 90 48 81 fb 40 af 65 86 74 2f 44 8b 6c 24 14 4c 8d b3 00 07
All code
========
0: 44 8b 6c 24 14 mov 0x14(%rsp),%r13d
5: be 08 00 00 00 mov $0x8,%esi
a: 4c 89 e8 mov %r13,%rax
d: 48 c1 e8 06 shr $0x6,%rax
11: 49 8d bc c4 00 07 00 lea 0x700(%r12,%rax,8),%rdi
18: 00
19: e8 66 1d 6e 00 call 0x6e1d84
1e: 4d 0f a3 ac 24 00 07 bt %r13,0x700(%r12)
25: 00 00
27: 72 04 jb 0x2d
29: 90 nop
2a:* 0f 0b ud2 <-- trapping instruction
2c: 90 nop
2d: 48 81 fb 40 af 65 86 cmp $0xffffffff8665af40,%rbx
34: 74 2f je 0x65
36: 44 8b 6c 24 14 mov 0x14(%rsp),%r13d
3b: 4c rex.WR
3c: 8d .byte 0x8d
3d: b3 00 mov $0x0,%bl
3f: 07 (bad)
Code starting with the faulting instruction
===========================================
0: 0f 0b ud2
2: 90 nop
3: 48 81 fb 40 af 65 86 cmp $0xffffffff8665af40,%rbx
a: 74 2f je 0x3b
c: 44 8b 6c 24 14 mov 0x14(%rsp),%r13d
11: 4c rex.WR
12: 8d .byte 0x8d
13: b3 00 mov $0x0,%bl
15: 07 (bad)
[ 1.749754][ T9] RSP: 0000:ffff888103e779f8 EFLAGS: 00010046
[ 1.749754][ T9] RAX: 0000000000000001 RBX: ffffffff8665af40 RCX: 0000000000000000
[ 1.749754][ T9] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[ 1.749754][ T9] RBP: 1ffff110207cef42 R08: 0000000000000000 R09: 0000000000000000
[ 1.749754][ T9] R10: 0000000000000000 R11: 0000000000000000 R12: ffff888100058040
[ 1.749754][ T9] R13: 0000000000000000 R14: 0000000000000000 R15: ffff888103e68490
[ 1.749754][ T9] FS: 0000000000000000(0000) GS:0000000000000000(0000) knlGS:0000000000000000
[ 1.749754][ T9] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1.749754][ T9] CR2: ffff88843ffff000 CR3: 000000010005c000 CR4: 00000000000406f0
[ 1.749754][ T9] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 1.749754][ T9] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 1.749754][ T9] Call Trace:
[ 1.749754][ T9] <TASK>
[ 1.749754][ T9] ? cr4_update_pce (kbuild/obj/consumer/x86_64-randconfig-161-20250413/arch/x86/mm/tlb.c:778)
[ 1.749754][ T9] unuse_temporary_mm (kbuild/obj/consumer/x86_64-randconfig-161-20250413/arch/x86/include/asm/debugreg.h:115 (discriminator 31) kbuild/obj/consumer/x86_64-randconfig-161-20250413/arch/x86/mm/tlb.c:1034 (discriminator 31))
[ 1.749754][ T9] ? serial8250_isa_init_ports (kbuild/obj/consumer/x86_64-randconfig-161-20250413/arch/x86/include/asm/jump_label.h:46 kbuild/obj/consumer/x86_64-randconfig-161-20250413/drivers/tty/serial/8250/8250_platform.c:104)
[ 1.749754][ T9] __text_poke (kbuild/obj/consumer/x86_64-randconfig-161-20250413/arch/x86/kernel/alternative.c:2221)
[ 1.749754][ T9] ? add_nop (kbuild/obj/consumer/x86_64-randconfig-161-20250413/arch/x86/kernel/alternative.c:2119)
[ 1.749754][ T9] ? optimize_nops (kbuild/obj/consumer/x86_64-randconfig-161-20250413/arch/x86/kernel/alternative.c:2132)
[ 1.749754][ T9] ? serial8250_isa_init_ports (kbuild/obj/consumer/x86_64-randconfig-161-20250413/arch/x86/include/asm/jump_label.h:46 kbuild/obj/consumer/x86_64-randconfig-161-20250413/drivers/tty/serial/8250/8250_platform.c:104)
[ 1.749754][ T9] smp_text_poke_batch_finish (kbuild/obj/consumer/x86_64-randconfig-161-20250413/arch/x86/kernel/alternative.c:2563 (discriminator 3))
[ 1.749754][ T9] ? mutex_trylock (kbuild/obj/consumer/x86_64-randconfig-161-20250413/kernel/locking/mutex.c:901)
[ 1.749754][ T9] ? mutex_lock_io_nested (kbuild/obj/consumer/x86_64-randconfig-161-20250413/kernel/locking/mutex.c:745)
[ 1.749754][ T9] ? smp_text_poke_sync_each_cpu (kbuild/obj/consumer/x86_64-randconfig-161-20250413/arch/x86/kernel/alternative.c:2527)
[ 1.749754][ T9] arch_jump_label_transform_apply (kbuild/obj/consumer/x86_64-randconfig-161-20250413/arch/x86/kernel/jump_label.c:147)
[ 1.749754][ T9] static_key_disable_cpuslocked (kbuild/obj/consumer/x86_64-randconfig-161-20250413/kernel/jump_label.c:32 kbuild/obj/consumer/x86_64-randconfig-161-20250413/kernel/jump_label.c:241)
[ 1.749754][ T9] once_deferred (kbuild/obj/consumer/x86_64-randconfig-161-20250413/lib/once.c:21 (discriminator 5))
[ 1.749754][ T9] process_one_work (kbuild/obj/consumer/x86_64-randconfig-161-20250413/kernel/workqueue.c:3243)
[ 1.749754][ T9] ? process_one_work (kbuild/obj/consumer/x86_64-randconfig-161-20250413/kernel/workqueue.c:3245)
[ 1.749754][ T9] ? show_cpu_pools_hogs (kbuild/obj/consumer/x86_64-randconfig-161-20250413/kernel/workqueue.c:3140)
[ 1.749754][ T9] ? assign_work (kbuild/obj/consumer/x86_64-randconfig-161-20250413/kernel/workqueue.c:1200)
[ 1.749754][ T9] worker_thread (kbuild/obj/consumer/x86_64-randconfig-161-20250413/kernel/workqueue.c:3313 kbuild/obj/consumer/x86_64-randconfig-161-20250413/kernel/workqueue.c:3400)
[ 1.749754][ T9] ? rescuer_thread (kbuild/obj/consumer/x86_64-randconfig-161-20250413/kernel/workqueue.c:3346)
[ 1.749754][ T9] kthread (kbuild/obj/consumer/x86_64-randconfig-161-20250413/kernel/kthread.c:464)
[ 1.749754][ T9] ? local_clock_noinstr (kbuild/obj/consumer/x86_64-randconfig-161-20250413/kernel/sched/clock.c:270 kbuild/obj/consumer/x86_64-randconfig-161-20250413/kernel/sched/clock.c:306)
[ 1.749754][ T9] ? kthread_is_per_cpu (kbuild/obj/consumer/x86_64-randconfig-161-20250413/kernel/kthread.c:413)
[ 1.749754][ T9] ? ret_from_fork (kbuild/obj/consumer/x86_64-randconfig-161-20250413/arch/x86/kernel/process.c:152)
[ 1.749754][ T9] ? lockdep_hardirqs_on_prepare (kbuild/obj/consumer/x86_64-randconfig-161-20250413/kernel/locking/lockdep.c:472 kbuild/obj/consumer/x86_64-randconfig-161-20250413/kernel/locking/lockdep.c:4412)
[ 1.749754][ T9] ? kthread_is_per_cpu (kbuild/obj/consumer/x86_64-randconfig-161-20250413/kernel/kthread.c:413)
[ 1.749754][ T9] ret_from_fork (kbuild/obj/consumer/x86_64-randconfig-161-20250413/arch/x86/kernel/process.c:159)
[ 1.749754][ T9] ? kthread_is_per_cpu (kbuild/obj/consumer/x86_64-randconfig-161-20250413/kernel/kthread.c:413)
[ 1.749754][ T9] ret_from_fork_asm (kbuild/obj/consumer/x86_64-randconfig-161-20250413/arch/x86/entry/entry_64.S:258)
[ 1.749754][ T9] </TASK>
[ 1.749754][ T9] irq event stamp: 68
[ 1.749754][ T9] hardirqs last enabled at (67): _raw_spin_unlock_irq (kbuild/obj/consumer/x86_64-randconfig-161-20250413/arch/x86/include/asm/paravirt.h:686 kbuild/obj/consumer/x86_64-randconfig-161-20250413/include/linux/spinlock_api_smp.h:159 kbuild/obj/consumer/x86_64-randconfig-161-20250413/kernel/locking/spinlock.c:202)
[ 1.749754][ T9] hardirqs last disabled at (68): __text_poke (kbuild/obj/consumer/x86_64-randconfig-161-20250413/arch/x86/kernel/alternative.c:2179 (discriminator 1))
[ 1.749754][ T9] softirqs last enabled at (0): copy_process (kbuild/obj/consumer/x86_64-randconfig-161-20250413/kernel/fork.c:2375)
[ 1.749754][ T9] softirqs last disabled at (0): 0x0
[ 1.749754][ T9] ---[ end trace 0000000000000000 ]---
[ 1.754021][ T1] Performance Events: unsupported CPU family 6 model 42 no PMU driver, software events only.
The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20250417/202504171640.c81d6f67-lkp@intel.com
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists