syzbot


linux-next boot error: WARNING in prepare_kswapd_sleep

Status: upstream: reported on 2020/11/24 07:54
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+ce635500093181f39c1c@syzkaller.appspotmail.com
Fix commit: mm/memcg: warn on missing memcg on mem_cgroup_page_lruvec()
Patched on: [ci-upstream-linux-next-kasan-gce-root], missing on: [ci-qemu-gce-upstream-auto ci-qemu-native-arm64-kvm ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-snapshot-upstream-root ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci-upstream-rust-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb]
First crash: 2016d, last: 2015d
✨ AI Jobs (2)
ID Workflow Result Correct Bug Created Started Finished Revision Error
67221637-d32a-4356-a302-dc2a7ad290cc assessment-security 💥 linux-next boot error: WARNING in prepare_kswapd_sleep 2026/06/02 17:39 2026/06/02 17:39 2026/06/02 17:42 62fe15281f5011cd203d8845b8767b10e7443aa5 failed to run ["make" "KERNELVERSION=syzkaller" "KERNELRELEASE=syzkaller" "LOCALVERSION=-syzkaller" "-j" "32" "ARCH=x86_64" "CC=ccache clang" "LD=ld.lld" "O=/app/workdir/cache/build/8c55ee50694acd092bb143c6dcdef20c1d8414e3" "-s" "bzImage" "compile_commands.json"]: exit status 2 Root cause: init/Kconfig:52:warning: 'LLD_VERSION': number is invalid scripts/extract-cert.c:46:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] scripts/extract-cert.c:59:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] scripts/sign-file.c:89:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] scripts/sign-file.c:102:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] subcmd-util.h:58:31: error: pointer 'ptr' may be used after 'realloc' [-Werror=use-after-free] subcmd-util.h:56:23: error: pointer 'ptr' may be used after 'realloc' [-Werror=use-after-free] /app/workdir/cache/src/775214c3fdb47e39225705d950a0a32d4881754f/scripts/lld-version.sh: 20: printf: LLD: expected numeric value /app/workdir/cache/src/775214c3fdb47e39225705d950a0a32d4881754f/scripts/lld-version.sh: 20: printf: LLD: expected numeric value /app/workdir/cache/src/775214c3fdb47e39225705d950a0a32d4881754f/scripts/lld-version.sh: 20: printf: LLD: expected numeric value init/Kconfig:52:warning: 'LLD_VERSION': number is invalid * * Restart config... * * * Preload BPF file system with kernel specific program and map iterators * Preload BPF file system with kernel specific program and map iterators (BPF_PRELOAD) [Y/n/?] y bpf_preload kernel module with user mode driver (BPF_PRELOAD_UMD) [M/n/y/?] (NEW) Error in reading or end of file. * * Memory initialization * Initialize kernel stack variables at function entry > 1. no automatic initialization (weakest) (INIT_STACK_NONE) 2. 0xAA-init everything on the stack (strongest) (INIT_STACK_ALL_PATTERN) (NEW) choice[1-2?]: Error in reading or end of file. Enable heap memory zeroing on allocation by default (INIT_ON_ALLOC_DEFAULT_ON) [Y/n/?] y Enable heap memory zeroing on free by default (INIT_ON_FREE_DEFAULT_ON) [N/y/?] n * * KASAN: runtime memory debugger * KASAN: runtime memory debugger (KASAN) [Y/n/?] y KASAN mode > 1. Generic mode (KASAN_GENERIC) choice[1]: 1 Instrumentation type 1. Outline instrumentation (KASAN_OUTLINE) > 2. Inline instrumentation (KASAN_INLINE) choice[1-2?]: 2 Enable stack instrumentation (unsafe) (KASAN_STACK_ENABLE) [N/y/?] (NEW) Error in reading or end of file. Back mappings in vmalloc space with real shadow memory (KASAN_VMALLOC) [Y/n/?] y KUnit-incompatible tests of KASAN bug detection capabilities (TEST_KASAN_MODULE) [N/m/?] n /app/workdir/cache/src/775214c3fdb47e39225705d950a0a32d4881754f/scripts/extract-cert.c: In function 'display_openssl_errors': /app/workdir/cache/src/775214c3fdb47e39225705d950a0a32d4881754f/scripts/extract-cert.c:46:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 46 | while ((e = ERR_get_error_line(&file, &line))) { | ^~~~~ In file included from /app/workdir/cache/src/775214c3fdb47e39225705d950a0a32d4881754f/scripts/extract-cert.c:23: /usr/include/openssl/err.h:426:15: note: declared here 426 | unsigned long ERR_get_error_line(const char **file, int *line); | ^~~~~~~~~~~~~~~~~~ /app/workdir/cache/src/775214c3fdb47e39225705d950a0a32d4881754f/scripts/extract-cert.c: In function 'drain_openssl_errors': /app/workdir/cache/src/775214c3fdb47e39225705d950a0a32d4881754f/scripts/extract-cert.c:59:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 59 | while (ERR_get_error_line(&file, &line)) {} | ^~~~~ /usr/include/openssl/err.h:426:15: note: declared here 426 | unsigned long ERR_get_error_line(const char **file, int *line); | ^~~~~~~~~~~~~~~~~~ /app/workdir/cache/src/775214c3fdb47e39225705d950a0a32d4881754f/scripts/extra
684d5885-f9f6-47e8-8e84-457a845b3fd8 assessment-security 💥 linux-next boot error: WARNING in prepare_kswapd_sleep 2026/05/26 06:28 2026/05/26 06:28 2026/05/26 06:30 c69befb30ac10e158cc9d1557b508ee3f0eca1de failed to run ["make" "KERNELVERSION=syzkaller" "KERNELRELEASE=syzkaller" "LOCALVERSION=-syzkaller" "-j" "32" "ARCH=x86_64" "CC=ccache clang" "LD=ld.lld" "O=/app/workdir/cache/build/8c55ee50694acd092bb143c6dcdef20c1d8414e3" "-s" "bzImage" "compile_commands.json"]: exit status 2 Root cause: init/Kconfig:52:warning: 'LLD_VERSION': number is invalid scripts/extract-cert.c:46:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] scripts/extract-cert.c:59:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] scripts/sign-file.c:89:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] scripts/sign-file.c:102:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] subcmd-util.h:58:31: error: pointer 'ptr' may be used after 'realloc' [-Werror=use-after-free] subcmd-util.h:56:23: error: pointer 'ptr' may be used after 'realloc' [-Werror=use-after-free] /app/workdir/cache/src/bf8dde3d79afe5666bf18173d724387a11a98a60/scripts/lld-version.sh: 20: printf: LLD: expected numeric value /app/workdir/cache/src/bf8dde3d79afe5666bf18173d724387a11a98a60/scripts/lld-version.sh: 20: printf: LLD: expected numeric value /app/workdir/cache/src/bf8dde3d79afe5666bf18173d724387a11a98a60/scripts/lld-version.sh: 20: printf: LLD: expected numeric value init/Kconfig:52:warning: 'LLD_VERSION': number is invalid * * Restart config... * * * Preload BPF file system with kernel specific program and map iterators * Preload BPF file system with kernel specific program and map iterators (BPF_PRELOAD) [Y/n/?] y bpf_preload kernel module with user mode driver (BPF_PRELOAD_UMD) [M/n/y/?] (NEW) Error in reading or end of file. * * Memory initialization * Initialize kernel stack variables at function entry > 1. no automatic initialization (weakest) (INIT_STACK_NONE) 2. 0xAA-init everything on the stack (strongest) (INIT_STACK_ALL_PATTERN) (NEW) choice[1-2?]: Error in reading or end of file. Enable heap memory zeroing on allocation by default (INIT_ON_ALLOC_DEFAULT_ON) [Y/n/?] y Enable heap memory zeroing on free by default (INIT_ON_FREE_DEFAULT_ON) [N/y/?] n * * KASAN: runtime memory debugger * KASAN: runtime memory debugger (KASAN) [Y/n/?] y KASAN mode > 1. Generic mode (KASAN_GENERIC) choice[1]: 1 Instrumentation type 1. Outline instrumentation (KASAN_OUTLINE) > 2. Inline instrumentation (KASAN_INLINE) choice[1-2?]: 2 Enable stack instrumentation (unsafe) (KASAN_STACK_ENABLE) [N/y/?] (NEW) Error in reading or end of file. Back mappings in vmalloc space with real shadow memory (KASAN_VMALLOC) [Y/n/?] y KUnit-incompatible tests of KASAN bug detection capabilities (TEST_KASAN_MODULE) [N/m/?] n /app/workdir/cache/src/bf8dde3d79afe5666bf18173d724387a11a98a60/scripts/extract-cert.c: In function 'display_openssl_errors': /app/workdir/cache/src/bf8dde3d79afe5666bf18173d724387a11a98a60/scripts/extract-cert.c:46:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 46 | while ((e = ERR_get_error_line(&file, &line))) { | ^~~~~ In file included from /app/workdir/cache/src/bf8dde3d79afe5666bf18173d724387a11a98a60/scripts/extract-cert.c:23: /usr/include/openssl/err.h:426:15: note: declared here 426 | unsigned long ERR_get_error_line(const char **file, int *line); | ^~~~~~~~~~~~~~~~~~ /app/workdir/cache/src/bf8dde3d79afe5666bf18173d724387a11a98a60/scripts/extract-cert.c: In function 'drain_openssl_errors': /app/workdir/cache/src/bf8dde3d79afe5666bf18173d724387a11a98a60/scripts/extract-cert.c:59:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 59 | while (ERR_get_error_line(&file, &line)) {} | ^~~~~ /usr/include/openssl/err.h:426:15: note: declared here 426 | unsigned long ERR_get_error_line(const char **file, int *line); | ^~~~~~~~~~~~~~~~~~ /app/workdir/cache/src/bf8dde3d79afe5666bf18173d724387a11a98a60/scripts/extra
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] mm/memcg: warn on missing memcg on mem_cgroup_page_lruvec() 3 (3) 2020/11/25 22:27
linux-next boot error: WARNING in prepare_kswapd_sleep 3 (4) 2020/11/25 11:25

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 2193 at include/linux/memcontrol.h:621 arch_static_branch arch/x86/include/asm/jump_label.h:25 [inline]
WARNING: CPU: 0 PID: 2193 at include/linux/memcontrol.h:621 mem_cgroup_disabled include/linux/memcontrol.h:504 [inline]
WARNING: CPU: 0 PID: 2193 at include/linux/memcontrol.h:621 mem_cgroup_lruvec include/linux/memcontrol.h:616 [inline]
WARNING: CPU: 0 PID: 2193 at include/linux/memcontrol.h:621 clear_pgdat_congested mm/vmscan.c:3443 [inline]
WARNING: CPU: 0 PID: 2193 at include/linux/memcontrol.h:621 prepare_kswapd_sleep mm/vmscan.c:3480 [inline]
WARNING: CPU: 0 PID: 2193 at include/linux/memcontrol.h:621 prepare_kswapd_sleep+0xed/0x250 mm/vmscan.c:3456
Modules linked in:
CPU: 0 PID: 2193 Comm: kswapd0 Not tainted 5.10.0-rc5-next-20201125-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:mem_cgroup_lruvec include/linux/memcontrol.h:621 [inline]
RIP: 0010:clear_pgdat_congested mm/vmscan.c:3443 [inline]
RIP: 0010:prepare_kswapd_sleep mm/vmscan.c:3480 [inline]
RIP: 0010:prepare_kswapd_sleep+0xed/0x250 mm/vmscan.c:3456
Code: 89 ee 48 89 df e8 73 d3 ff ff 31 ff 41 89 c4 89 c6 e8 87 19 d7 ff 45 84 e4 74 cc e8 6d 21 d7 ff 0f 1f 44 00 00 e8 63 21 d7 ff <0f> 0b 48 c7 c0 a8 e0 ee 8c 48 ba 00 00 00 00 00 fc ff df 48 c1 e8
RSP: 0000:ffffc9000826fda0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88813fffb000 RCX: ffffffff81998ed9
RDX: ffff888017325040 RSI: ffffffff81998eed RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000ab3 R09: 0000000000000f89
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000000004 R14: 0000000000000000 R15: 0000000000000003
FS:  0000000000000000(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000000b08e000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 kswapd_try_to_sleep mm/vmscan.c:3784 [inline]
 kswapd+0x37d/0xdb0 mm/vmscan.c:3899
 kthread+0x3b1/0x4a0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 2193 Comm: kswapd0 Not tainted 5.10.0-rc5-next-20201125-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:79 [inline]
 dump_stack+0x107/0x163 lib/dump_stack.c:120
 panic+0x306/0x73d kernel/panic.c:231
 __warn.cold+0x35/0x44 kernel/panic.c:605
 report_bug+0x1bd/0x210 lib/bug.c:198
 handle_bug+0x3c/0x60 arch/x86/kernel/traps.c:239
 exc_invalid_op+0x14/0x40 arch/x86/kernel/traps.c:259
 asm_exc_invalid_op+0x12/0x20 arch/x86/include/asm/idtentry.h:578
RIP: 0010:mem_cgroup_lruvec include/linux/memcontrol.h:621 [inline]
RIP: 0010:clear_pgdat_congested mm/vmscan.c:3443 [inline]
RIP: 0010:prepare_kswapd_sleep mm/vmscan.c:3480 [inline]
RIP: 0010:prepare_kswapd_sleep+0xed/0x250 mm/vmscan.c:3456
Code: 89 ee 48 89 df e8 73 d3 ff ff 31 ff 41 89 c4 89 c6 e8 87 19 d7 ff 45 84 e4 74 cc e8 6d 21 d7 ff 0f 1f 44 00 00 e8 63 21 d7 ff <0f> 0b 48 c7 c0 a8 e0 ee 8c 48 ba 00 00 00 00 00 fc ff df 48 c1 e8
RSP: 0000:ffffc9000826fda0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88813fffb000 RCX: ffffffff81998ed9
RDX: ffff888017325040 RSI: ffffffff81998eed RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000ab3 R09: 0000000000000f89
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000000004 R14: 0000000000000000 R15: 0000000000000003
 kswapd_try_to_sleep mm/vmscan.c:3784 [inline]
 kswapd+0x37d/0xdb0 mm/vmscan.c:3899
 kthread+0x3b1/0x4a0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/25 21:59 linux-next 9d3e48f20e11 2f1cec62 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/11/25 21:59 linux-next 9d3e48f20e11 2f1cec62 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/11/25 21:59 linux-next 9d3e48f20e11 2f1cec62 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/11/25 11:46 linux-next 9d3e48f20e11 1a1f4bd8 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/11/25 11:46 linux-next 9d3e48f20e11 1a1f4bd8 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/11/25 11:46 linux-next 9d3e48f20e11 1a1f4bd8 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/11/25 05:56 linux-next d9137320ac06 1a1f4bd8 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/11/25 05:56 linux-next d9137320ac06 1a1f4bd8 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/11/25 05:56 linux-next d9137320ac06 1a1f4bd8 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/11/24 17:53 linux-next d9137320ac06 e34b696c .config console log report ci-upstream-linux-next-kasan-gce-root
2020/11/24 17:53 linux-next d9137320ac06 e34b696c .config console log report ci-upstream-linux-next-kasan-gce-root
2020/11/24 17:53 linux-next d9137320ac06 e34b696c .config console log report ci-upstream-linux-next-kasan-gce-root
2020/11/24 07:40 linux-next d9137320ac06 1ab681a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/11/24 07:40 linux-next d9137320ac06 1ab681a4 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/11/24 07:40 linux-next d9137320ac06 1ab681a4 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.