Hello,
kernel test robot noticed "RIP:__mod_node_page_state" on:
commit: 4b5f69459c0988d3b292aceb74633e04eea84c7f ("[PATCH 1/2] mm/mempolicy:
track page allocations per mempolicy")
url:
https://github.com/intel-lab-lkp/linux/commits/JP-Kobryn/mm-mempolicy-track-page-allocations-per-mempolicy/20260212-142941
base: https://git.kernel.org/cgit/linux/kernel/git/akpm/mm.git mm-everything
patch link:
https://lore.kernel.org/all/[email protected]/
patch subject: [PATCH 1/2] mm/mempolicy: track page allocations per mempolicy
in testcase: boot
config: x86_64-randconfig-007-20250327
compiler: gcc-14
test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 32G
(please refer to attached dmesg/kmsg for entire log/backtrace)
+------------------------------------------------------------------+------------+------------+
| | 5cbf93e36f
| 4b5f69459c |
+------------------------------------------------------------------+------------+------------+
| boot_successes | 244
| 0 |
| boot_failures | 0
| 244 |
| RIP:__mod_node_page_state | 0
| 244 |
| BUG:using__this_cpu_read()in_preemptible | 0
| 244 |
| BUG:using__this_cpu_write()in_preemptible[#]code:kthreadd | 0
| 244 |
| BUG:using__this_cpu_write()in_preemptible[#]code:swapper | 0
| 187 |
| BUG:using__this_cpu_write()in_preemptible[#]code:kdevtmpfs | 0
| 79 |
| BUG:using__this_cpu_write()in_preemptible[#]code:kworker/u8 | 0
| 229 |
| BUG:using__this_cpu_write()in_preemptible[#]code:udevd | 0
| 62 |
| BUG:using__this_cpu_write()in_preemptible[#]code:tail | 0
| 21 |
| BUG:using__this_cpu_write()in_preemptible[#]code:syslogd | 0
| 54 |
| BUG:using__this_cpu_write()in_preemptible[#]code:klogd | 0
| 113 |
| BUG:using__this_cpu_write()in_preemptible[#]code:sleep | 0
| 98 |
| BUG:using__this_cpu_write()in_preemptible[#]code:post-run | 0
| 39 |
| BUG:using__this_cpu_write()in_preemptible[#]code:rsync | 0
| 9 |
| BUG:using__this_cpu_write()in_preemptible[#]code:modprobe | 0
| 6 |
| BUG:using__this_cpu_write()in_preemptible[#]code | 0
| 32 |
| BUG:using__this_cpu_write()in_preemptible[#]code:udevadm | 0
| 78 |
| BUG:using__this_cpu_write()in_preemptible[#]code:systemd | 0
| 39 |
| BUG:using__this_cpu_write()in_preemptible[#]code:(udev-worker) | 0
| 53 |
| RIP:rep_movs_alternative | 0
| 5 |
| BUG:using__this_cpu_write()in_preemptible[#]code:cat | 0
| 7 |
| BUG:using__this_cpu_write()in_preemptible[#]code:sed | 0
| 98 |
| BUG:using__this_cpu_write()in_preemptible[#]code:systemd-udevd | 0
| 19 |
| BUG:using__this_cpu_write()in_preemptible[#]code:systemd-journal | 0
| 54 |
| BUG:using__this_cpu_write()in_preemptible[#]code:systemd-random | 0
| 4 |
| BUG:using__this_cpu_write()in_preemptible[#]code:journalctl | 0
| 8 |
| BUG:using__this_cpu_write()in_preemptible[#]code:start_getty | 0
| 4 |
| RIP:__put_user_4 | 0
| 24 |
| BUG:using__this_cpu_write()in_preemptible[#]code:wget | 0
| 82 |
| BUG:using__this_cpu_write()in_preemptible[#]code:run-lkp | 0
| 32 |
| BUG:using__this_cpu_write()in_preemptible[#]code:boot-#-yocto-i3 | 0
| 24 |
| BUG:using__this_cpu_write()in_preemptible[#]code:one-shot-monito | 0
| 4 |
| BUG:using__this_cpu_write()in_preemptible[#]code:vmstat | 0
| 29 |
| BUG:using__this_cpu_write()in_preemptible[#]code:rs:main_Q:Reg | 0
| 9 |
| RIP:rep_stos_alternative | 0
| 11 |
| BUG:using__this_cpu_write()in_preemptible[#]code:lkp-setup-rootf | 0
| 21 |
| BUG:using__this_cpu_write()in_preemptible[#]code:stty | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:tee | 0
| 7 |
| BUG:using__this_cpu_write()in_preemptible[#]code:systemd-rc-loca | 0
| 2 |
| BUG:using__this_cpu_write()in_preemptible[#]code:(exec-inner) | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:groupadd | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:(sd-exec-strv) | 0
| 2 |
| BUG:using__this_cpu_write()in_preemptible[#]code:rc | 0
| 14 |
| BUG:using__this_cpu_write()in_preemptible[#]code:getty | 0
| 18 |
| BUG:using__this_cpu_write()in_preemptible[#]code:boot-#-debian | 0
| 4 |
| BUG:using__this_cpu_write()in_preemptible[#]code:monitor | 0
| 3 |
| BUG:using__this_cpu_write()in_preemptible[#]code:systemd-tmpfile | 0
| 6 |
| BUG:using__this_cpu_write()in_preemptible[#]code:lscpu | 0
| 2 |
| BUG:using__this_cpu_write()in_preemptible[#]code:dirname | 0
| 2 |
| BUG:using__this_cpu_write()in_preemptible[#]code:systemd-sysuser | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:(d-sysctl) | 0
| 2 |
| BUG:using__this_cpu_write()in_preemptible[#]code:mount | 0
| 3 |
| BUG:using__this_cpu_write()in_preemptible[#]code:ls | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:pgrep | 0
| 4 |
| BUG:using__this_cpu_write()in_preemptible[#]code:grep | 0
| 8 |
| BUG:using__this_cpu_write()in_preemptible[#]code:S77lkp-bootstra | 0
| 3 |
| BUG:using__this_cpu_write()in_preemptible[#]code:date | 0
| 3 |
| BUG:using__this_cpu_write()in_preemptible[#]code:systemd-sysctl | 0
| 3 |
| BUG:using__this_cpu_write()in_preemptible[#]code:find | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:sshd | 0
| 3 |
| BUG:using__this_cpu_write()in_preemptible[#]code:systemd-system | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:systemd-sysv-ge | 0
| 3 |
| BUG:using__this_cpu_write()in_preemptible[#]code:systemd-hiberna | 0
| 2 |
| BUG:using__this_cpu_write()in_preemptible[#]code:journal-offline | 0
| 3 |
| BUG:using__this_cpu_write()in_preemptible[#]code:sysctl | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:init | 0
| 7 |
| BUG:using__this_cpu_write()in_preemptible[#]code:mkdir | 0
| 6 |
| BUG:using__this_cpu_write()in_preemptible[#]code:mountpoint | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:systemd-logind | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:dmesg | 0
| 2 |
| BUG:using__this_cpu_write()in_preemptible[#]code:systemd-ssh-gen | 0
| 3 |
| BUG:using__this_cpu_write()in_preemptible[#]code:cp | 0
| 3 |
| BUG:using__this_cpu_write()in_preemptible[#]code:wakeup | 0
| 3 |
| BUG:using__this_cpu_write()in_preemptible[#]code:dpkg-deb | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:dpkg | 0
| 3 |
| BUG:using__this_cpu_write()in_preemptible[#]code:(modprobe) | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:sync | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:systemd-update | 0
| 4 |
| BUG:using__this_cpu_write()in_preemptible[#]code:kmod | 0
| 1 |
| RIP:strncpy_from_user | 0
| 2 |
| BUG:using__this_cpu_write()in_preemptible[#]code:sm-notify | 0
| 2 |
| BUG:using__this_cpu_write()in_preemptible[#]code:systemd-remount | 0
| 2 |
| BUG:using__this_cpu_write()in_preemptible[#]code:blkmapd | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:mkfifo | 0
| 2 |
| BUG:using__this_cpu_write()in_preemptible[#]code:ln | 0
| 3 |
| BUG:using__this_cpu_write()in_preemptible[#]code:sh | 0
| 5 |
| BUG:using__this_cpu_write()in_preemptible[#]code:bootlogd | 0
| 2 |
| BUG:using__this_cpu_write()in_preemptible[#]code:run-test | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:S07bootlogd | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:hwclock.sh | 0
| 2 |
| BUG:using__this_cpu_write()in_preemptible[#]code:(sd-mkdcreds) | 0
| 1 |
| RIP:filldir64 | 0
| 2 |
| BUG:using__this_cpu_write()in_preemptible[#]code:chmod | 0
| 2 |
| BUG:using__this_cpu_write()in_preemptible[#]code:ps | 0
| 3 |
| BUG:using__this_cpu_write()in_preemptible[#]code:which | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:ip | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:start-stop-daem | 0
| 2 |
| BUG:using__this_cpu_write()in_preemptible[#]code:S20syslog | 0
| 2 |
| BUG:using__this_cpu_write()in_preemptible[#]code:systemd-gpt-aut | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:systemd-debug-g | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:(rpcbind) | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:seq | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:systemd-run-gen | 0
| 2 |
| BUG:using__this_cpu_write()in_preemptible[#]code:wait | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:addgroup | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:rm | 0
| 2 |
| BUG:using__this_cpu_write()in_preemptible[#]code:in:imklog | 0
| 2 |
| BUG:using__this_cpu_write()in_preemptible[#]code:basename | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:touch | 0
| 1 |
| RIP:ia32_setup_frame | 0
| 2 |
| BUG:using__this_cpu_write()in_preemptible[#]code:no-stdout-monit | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:systemd-tpm#-ge | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:(mount) | 0
| 1 |
| BUG:using__this_cpu_write()in_preemptible[#]code:ldconfig | 0
| 1 |
+------------------------------------------------------------------+------------+------------+
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 <[email protected]>
| Closes: https://lore.kernel.org/oe-lkp/[email protected]
[ 0.624787][ T2] ------------[ cut here ]------------
[ 0.625191][ T2] WARNING: mm/vmstat.c:396 at
__mod_node_page_state+0x88/0x1c0, CPU#0: kthreadd/2
[ 0.625887][ T2] Modules linked in:
[ 0.626070][ T2] CPU: 0 UID: 0 PID: 2 Comm: kthreadd Tainted: G
T 6.19.0-rc6-00596-g4b5f69459c09 #1 PREEMPT(lazy)
a55f7fce8adbfb8e52612c1f0ea71f4db1a1df23
[ 0.626084][ T2] Tainted: [T]=RANDSTRUCT
[ 0.626402][ T2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[ 0.627150][ T2] RIP: 0010:__mod_node_page_state (mm/vmstat.c:396
(discriminator 34))
[ 0.627592][ T2] Code: 8b 05 88 b9 73 02 48 c7 c7 d8 b0 b4 83 85 c0 89 45
d0 40 0f 95 c6 31 c9 31 d2 40 0f b6 f6 e8 3f 96 e4 ff 8b 45 d0 85 c0 74 1b <0f>
0b be 01 00 00 00 eb 14 31 c9 31 d2 31 f6 48 c7 c7 d8 b0 b4 83
All code
========
0: 8b 05 88 b9 73 02 mov 0x273b988(%rip),%eax # 0x273b98e
6: 48 c7 c7 d8 b0 b4 83 mov $0xffffffff83b4b0d8,%rdi
d: 85 c0 test %eax,%eax
f: 89 45 d0 mov %eax,-0x30(%rbp)
12: 40 0f 95 c6 setne %sil
16: 31 c9 xor %ecx,%ecx
18: 31 d2 xor %edx,%edx
1a: 40 0f b6 f6 movzbl %sil,%esi
1e: e8 3f 96 e4 ff call 0xffffffffffe49662
23: 8b 45 d0 mov -0x30(%rbp),%eax
26: 85 c0 test %eax,%eax
28: 74 1b je 0x45
2a:* 0f 0b ud2 <-- trapping instruction
2c: be 01 00 00 00 mov $0x1,%esi
31: eb 14 jmp 0x47
33: 31 c9 xor %ecx,%ecx
35: 31 d2 xor %edx,%edx
37: 31 f6 xor %esi,%esi
39: 48 c7 c7 d8 b0 b4 83 mov $0xffffffff83b4b0d8,%rdi
Code starting with the faulting instruction
===========================================
0: 0f 0b ud2
2: be 01 00 00 00 mov $0x1,%esi
7: eb 14 jmp 0x1d
9: 31 c9 xor %ecx,%ecx
b: 31 d2 xor %edx,%edx
d: 31 f6 xor %esi,%esi
f: 48 c7 c7 d8 b0 b4 83 mov $0xffffffff83b4b0d8,%rdi
[ 0.629418][ T2] RSP: 0000:ffff88810039fa20 EFLAGS: 00010202
[ 0.629869][ T2] RAX: 0000000000000001 RBX: 0000000000000002 RCX:
0000000000000000
[ 0.630445][ T2] RDX: 0000000000000000 RSI: 0000000000000000 RDI:
0000000000000000
[ 0.631089][ T2] RBP: ffff88810039fa50 R08: 0000000000000000 R09:
0000000000000000
[ 0.631671][ T2] R10: 0000000000000000 R11: 0000000000000000 R12:
ffff88883ffe02c0
[ 0.632247][ T2] R13: ffffffff83f18971 R14: ffffffff83f18940 R15:
0000000000000030
[ 0.632746][ T2] FS: 0000000000000000(0000) GS:ffff88889bd1c000(0000)
knlGS:0000000000000000
[ 0.633394][ T2] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 0.633875][ T2] CR2: ffff88883ffff000 CR3: 000000000343d000 CR4:
00000000000406b0
[ 0.634478][ T2] Call Trace:
[ 0.634723][ T2] <TASK>
[ 0.634951][ T2] alloc_pages_mpol (mm/mempolicy.c:2513 (discriminator 1))
[ 0.635326][ T2] alloc_frozen_pages_noprof (mm/mempolicy.c:2584)
[ 0.635746][ T2] allocate_slab (mm/slub.c:3075 (discriminator 2)
mm/slub.c:3248 (discriminator 2))
[ 0.636086][ T2] new_slab (mm/slub.c:3304)
[ 0.636394][ T2] ___slab_alloc (mm/slub.c:4657)
[ 0.636749][ T2] ? dup_task_struct (kernel/fork.c:184 (discriminator 2)
kernel/fork.c:915 (discriminator 2))
[ 0.637114][ T2] __slab_alloc+0x8a/0x180
[ 0.637519][ T2] slab_alloc_node+0x189/0x340
[ 0.637919][ T2] ? dup_task_struct (kernel/fork.c:184 (discriminator 2)
kernel/fork.c:915 (discriminator 2))
[ 0.638285][ T2] kmem_cache_alloc_node_noprof (mm/slub.c:5317
(discriminator 1))
[ 0.638710][ T2] dup_task_struct (kernel/fork.c:184 (discriminator 2)
kernel/fork.c:915 (discriminator 2))
[ 0.639058][ T2] ? ftrace_likely_update (arch/x86/include/asm/smap.h:90
kernel/trace/trace_branch.c:223)
[ 0.639416][ T2] copy_process (kernel/fork.c:2052 (discriminator 1))
[ 0.639773][ T2] kernel_clone (include/linux/random.h:26
kernel/fork.c:2652)
[ 0.640115][ T2] ? kthread_fetch_affinity (kernel/kthread.c:412)
[ 0.640552][ T2] kernel_thread (kernel/fork.c:2713)
[ 0.640892][ T2] ? kthread_fetch_affinity (kernel/kthread.c:412)
[ 0.641310][ T2] kthreadd (kernel/kthread.c:486 kernel/kthread.c:844)
[ 0.641621][ T2] ? kthreadd (kernel/kthread.c:830 (discriminator 5))
[ 0.641938][ T2] ? kthread_is_per_cpu (kernel/kthread.c:816)
[ 0.642316][ T2] ret_from_fork (arch/x86/kernel/process.c:164)
[ 0.642657][ T2] ? kthread_is_per_cpu (kernel/kthread.c:816)
[ 0.642744][ T2] ? kthread_is_per_cpu (kernel/kthread.c:816)
[ 0.643127][ T2] ret_from_fork_asm (arch/x86/entry/entry_64.S:256)
[ 0.643502][ T2] </TASK>
[ 0.643755][ T2] irq event stamp: 393
[ 0.644054][ T2] hardirqs last enabled at (401): __up_console_sem
(arch/x86/include/asm/irqflags.h:42 arch/x86/include/asm/irqflags.h:119
arch/x86/include/asm/irqflags.h:159 kernel/printk/printk.c:345)
[ 0.644730][ T2] hardirqs last disabled at (408): __up_console_sem
(kernel/printk/printk.c:343 (discriminator 3))
[ 0.645406][ T2] softirqs last enabled at (54): handle_softirqs
(kernel/softirq.c:469 (discriminator 1) kernel/softirq.c:650 (discriminator 1))
[ 0.646077][ T2] softirqs last disabled at (49): __irq_exit_rcu
(kernel/softirq.c:657 kernel/softirq.c:496 kernel/softirq.c:723)
[ 0.646741][ T2] ---[ end trace 0000000000000000 ]---
The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20260218/[email protected]
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki