syzbot


kernel panic: stack is corrupted in lock_acquire (4)

Status: moderation: reported on 2024/12/26 17:16
Subsystems: mm cgroups
[Documentation on labels]
Reported-by: syzbot+5b0649b647bf72f815b9@syzkaller.appspotmail.com
First crash: 4d14h, last: 4d14h
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 kernel panic: stack is corrupted in lock_acquire (2) 2 20d 20d 0/3 upstream: reported on 2024/12/06 12:26
upstream kernel panic: stack is corrupted in lock_acquire kernel 2 2181d 2183d 0/28 closed as dup on 2019/01/04 11:23
upstream kernel panic: stack is corrupted in lock_acquire (2) ntfs3 C error done 27 453d 824d 0/28 auto-obsoleted due to no activity on 2024/01/14 06:22
linux-5.15 kernel panic: stack is corrupted in lock_acquire origin:upstream missing-backport C 20 27d 586d 0/3 upstream: reported C repro on 2023/05/20 12:30
upstream kernel panic: stack is corrupted in lock_acquire (3) 1 126d 126d 0/28 closed as invalid on 2024/09/13 10:29
linux-6.1 kernel panic: stack is corrupted in lock_acquire 1 614d 614d 0/3 auto-obsoleted due to no activity on 2023/08/20 17:52

Sample crash report:
No such timeout policy "syz0"
loop0: detected capacity change from 0 to 4096
ntfs3(loop0): Different NTFS sector size (1024) and media sector size (512).
Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: lock_acquire+0x53e/0x550
CPU: 0 UID: 0 PID: 5317 Comm: syz.0.0 Not tainted 6.13.0-rc3-syzkaller-00289-g48f506ad0b68 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
 panic+0x349/0x880 kernel/panic.c:354
 __stack_chk_fail+0x15/0x20 kernel/panic.c:836
 lock_acquire+0x53e/0x550
 rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
 rcu_read_lock include/linux/rcupdate.h:849 [inline]
 percpu_ref_tryget_many include/linux/percpu-refcount.h:241 [inline]
 percpu_ref_tryget+0x31/0x180 include/linux/percpu-refcount.h:266
 css_tryget include/linux/cgroup_refcnt.h:45 [inline]
 get_mem_cgroup_from_mm+0x103/0x2a0 mm/memcontrol.c:948
 __mem_cgroup_charge+0x16/0x80 mm/memcontrol.c:4511
 mem_cgroup_charge include/linux/memcontrol.h:646 [inline]
 filemap_add_folio+0xb7/0x380 mm/filemap.c:966
 do_read_cache_folio+0x349/0x5b0 mm/filemap.c:3793
 do_read_cache_page mm/filemap.c:3892 [inline]
 read_cache_page+0x5b/0x170 mm/filemap.c:3901
 read_mapping_page include/linux/pagemap.h:1005 [inline]
 inode_read_data+0x85/0x450 fs/ntfs3/inode.c:1074
 ntfs_fill_super+0x3f29/0x4730 fs/ntfs3/super.c:1491
 get_tree_bdev_flags+0x48c/0x5c0 fs/super.c:1636
 vfs_get_tree+0x90/0x2b0 fs/super.c:1814
 do_new_mount+0x2be/0xb40 fs/namespace.c:3507
 do_mount fs/namespace.c:3847 [inline]
 __do_sys_mount fs/namespace.c:4057 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4034
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f974b5874ca
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f974affde68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f974affdef0 RCX: 00007f974b5874ca
RDX: 000000002001f800 RSI: 000000002001f840 RDI: 00007f974affdeb0
RBP: 000000002001f800 R08: 00007f974affdef0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000002001f840
R13: 00007f974affdeb0 R14: 000000000001f7f9 R15: 000000002001f880
 </TASK>
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/22 17:12 upstream 48f506ad0b68 b4fbdbd4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel panic: stack is corrupted in lock_acquire
* Struck through repros no longer work on HEAD.