syzbot


kernel BUG in kpagecount_read

Status: upstream: reported on 2025/01/10 14:33
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+3d7dc5eaba6b932f8535@syzkaller.appspotmail.com
First crash: 28d, last: 6h07m
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [fs?] kernel BUG in kpagecount_read 2 (3) 2025/01/10 15:18

Sample crash report:
 tcp_rcv_established+0xcf5/0x20d0 net/ipv4/tcp_input.c:6173
 tcp_v4_do_rcv+0x5ca/0xa90 net/ipv4/tcp_ipv4.c:1916
 sk_backlog_rcv include/net/sock.h:1121 [inline]
 __release_sock+0x31b/0x400 net/core/sock.c:3086
 release_sock+0x5a/0x220 net/core/sock.c:3640
 tcp_sendmsg+0x38/0x50 net/ipv4/tcp.c:1359
 inet_sendmsg+0xb9/0x140 net/ipv4/af_inet.c:851
 sock_sendmsg_nosec net/socket.c:711 [inline]
 __sock_sendmsg net/socket.c:726 [inline]
 sock_write_iter+0x4ac/0x5b0 net/socket.c:1147
 new_sync_write fs/read_write.c:586 [inline]
 vfs_write+0x5ae/0x1150 fs/read_write.c:679
 ksys_write+0x207/0x250 fs/read_write.c:731
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
------------[ cut here ]------------
kernel BUG at ./include/linux/mm.h:1222!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 1 UID: 0 PID: 7357 Comm: syz.2.410 Not tainted 6.13.0-rc7-syzkaller-00039-gc3812b15000c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:folio_entire_mapcount include/linux/mm.h:1222 [inline]
RIP: 0010:folio_precise_page_mapcount fs/proc/internal.h:172 [inline]
RIP: 0010:kpagecount_read+0x477/0x570 fs/proc/page.c:71
Code: 31 ff 49 29 c4 48 8b 44 24 08 4c 01 20 e8 e1 60 61 ff eb 92 e8 aa 65 61 ff 48 8b 3c 24 48 c7 c6 a0 ea 61 8b e8 ea 25 a8 ff 90 <0f> 0b 4c 89 ff e8 3f d6 c3 ff e9 5a ff ff ff e8 85 65 61 ff 48 8b
RSP: 0018:ffffc9000bbf7c98 EFLAGS: 00010246
RAX: 0000000000080000 RBX: 0000000000000000 RCX: ffffc9000c54b000
RDX: 0000000000080000 RSI: ffffffff8237e8a6 RDI: ffff888034b05e44
RBP: 000000000116e408 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff901cf6d7 R11: 0000000000000003 R12: 0000000020091c38
R13: 000000000001237f R14: dffffc0000000000 R15: 0000000000000000
FS:  00007fc3416326c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000008 CR3: 0000000030dc2000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 pde_read fs/proc/inode.c:308 [inline]
 proc_reg_read+0x11d/0x330 fs/proc/inode.c:318
 vfs_read+0x1df/0xbe0 fs/read_write.c:563
 ksys_pread64 fs/read_write.c:756 [inline]
 __do_sys_pread64 fs/read_write.c:764 [inline]
 __se_sys_pread64 fs/read_write.c:761 [inline]
 __x64_sys_pread64+0x1f6/0x250 fs/read_write.c:761
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc340785d29
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007fc341632038 EFLAGS: 00000246 ORIG_RAX: 0000000000000011
RAX: ffffffffffffffda RBX: 00007fc340975fa0 RCX: 00007fc340785d29
RDX: 000000007fffffff RSI: 0000000020000040 RDI: 0000000000000005
RBP: 00007fc340801b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fc340975fa0 R15: 00007fff6c1daef8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:folio_entire_mapcount include/linux/mm.h:1222 [inline]
RIP: 0010:folio_precise_page_mapcount fs/proc/internal.h:172 [inline]
RIP: 0010:kpagecount_read+0x477/0x570 fs/proc/page.c:71
Code: 31 ff 49 29 c4 48 8b 44 24 08 4c 01 20 e8 e1 60 61 ff eb 92 e8 aa 65 61 ff 48 8b 3c 24 48 c7 c6 a0 ea 61 8b e8 ea 25 a8 ff 90 <0f> 0b 4c 89 ff e8 3f d6 c3 ff e9 5a ff ff ff e8 85 65 61 ff 48 8b
RSP: 0018:ffffc9000bbf7c98 EFLAGS: 00010246
RAX: 0000000000080000 RBX: 0000000000000000 RCX: ffffc9000c54b000
RDX: 0000000000080000 RSI: ffffffff8237e8a6 RDI: ffff888034b05e44
RBP: 000000000116e408 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff901cf6d7 R11: 0000000000000003 R12: 0000000020091c38
R13: 000000000001237f R14: dffffc0000000000 R15: 0000000000000000
FS:  00007fc3416326c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f52bf948178 CR3: 0000000030dc2000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/15 02:50 upstream c3812b15000c 7315a7cf .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto kernel BUG in kpagecount_read
2024/12/19 04:43 upstream c061cf420ded 1432fc84 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto kernel BUG in kpagecount_read
2024/12/18 07:28 upstream aef25be35d23 a0626d3a .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto kernel BUG in kpagecount_read
* Struck through repros no longer work on HEAD.