syzbot


kernel BUG in ring_buffer_map

Status: upstream: reported C repro on 2024/12/17 11:56
Subsystems: trace
[Documentation on labels]
Reported-by: syzbot+b565bf4a6ba3a0fc072c@syzkaller.appspotmail.com
First crash: 8d02h, last: 3d12h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [trace?] kernel BUG in ring_buffer_map 0 (1) 2024/12/17 11:56

Sample crash report:
------------[ cut here ]------------
kernel BUG at arch/x86/mm/physaddr.c:28!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 1 UID: 0 PID: 5822 Comm: syz-executor519 Not tainted 6.13.0-rc3-syzkaller-00026-g59dbb9d81adf #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024
RIP: 0010:__phys_addr+0xd8/0x150 arch/x86/mm/physaddr.c:28
Code: 48 d3 e8 48 89 c5 48 89 c6 e8 c4 c7 4e 00 48 85 ed 75 11 e8 4a c5 4e 00 48 89 d8 5b 5d 41 5c c3 cc cc cc cc e8 39 c5 4e 00 90 <0f> 0b e8 31 c5 4e 00 48 c7 c0 10 80 ba 8d 48 ba 00 00 00 00 00 fc
RSP: 0018:ffffc90003ddf770 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 000077800000003b RCX: ffffffff814a8930
RDX: ffff88807a2d1e00 RSI: ffffffff814a89b7 RDI: 0000000000000006
RBP: 000000008000003b R08: 0000000000000006 R09: 000000008000003b
R10: 000077800000003b R11: ffffffff81fb8dda R12: 0000000000000000
R13: ffff888076f97308 R14: 0000000000000013 R15: 0000000000000001
FS:  000055555a9e5480(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000080 CR3: 0000000072a3a000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __rb_map_vma+0x5b3/0xae0 kernel/trace/ring_buffer.c:7058
 ring_buffer_map+0x56e/0x9b0 kernel/trace/ring_buffer.c:7138
 tracing_buffers_mmap+0xa6/0x120 kernel/trace/trace.c:8482
 call_mmap include/linux/fs.h:2183 [inline]
 mmap_file mm/internal.h:124 [inline]
 __mmap_new_file_vma mm/vma.c:2291 [inline]
 __mmap_new_vma mm/vma.c:2355 [inline]
 __mmap_region+0x1786/0x2670 mm/vma.c:2456
 mmap_region+0x127/0x320 mm/mmap.c:1348
 do_mmap+0xc00/0xfc0 mm/mmap.c:496
 vm_mmap_pgoff+0x1ba/0x360 mm/util.c:580
 ksys_mmap_pgoff+0x32c/0x5c0 mm/mmap.c:542
 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:89 [inline]
 __se_sys_mmap arch/x86/kernel/sys_x86_64.c:82 [inline]
 __x64_sys_mmap+0x125/0x190 arch/x86/kernel/sys_x86_64.c:82
 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:0x7fe2e399f9b9
Code: d8 5b 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff5193f3a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007fff5193f400 RCX: 00007fe2e399f9b9
RDX: 0000000000000009 RSI: 0000000000001000 RDI: 0000000020ffe000
RBP: 00007fff5193f408 R08: 0000000000000003 R09: 0000000400002000
R10: 0000000000000011 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 000000000000001d R15: 00007fe2e3a17380
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__phys_addr+0xd8/0x150 arch/x86/mm/physaddr.c:28
Code: 48 d3 e8 48 89 c5 48 89 c6 e8 c4 c7 4e 00 48 85 ed 75 11 e8 4a c5 4e 00 48 89 d8 5b 5d 41 5c c3 cc cc cc cc e8 39 c5 4e 00 90 <0f> 0b e8 31 c5 4e 00 48 c7 c0 10 80 ba 8d 48 ba 00 00 00 00 00 fc
RSP: 0018:ffffc90003ddf770 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 000077800000003b RCX: ffffffff814a8930
RDX: ffff88807a2d1e00 RSI: ffffffff814a89b7 RDI: 0000000000000006
RBP: 000000008000003b R08: 0000000000000006 R09: 000000008000003b
R10: 000077800000003b R11: ffffffff81fb8dda R12: 0000000000000000
R13: ffff888076f97308 R14: 0000000000000013 R15: 0000000000000001
FS:  000055555a9e5480(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000080 CR3: 0000000072a3a000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/18 02:04 upstream 59dbb9d81adf a0626d3a .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto kernel BUG in ring_buffer_map
2024/12/16 15:39 upstream 78d4f34e2115 eec85da6 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto kernel BUG in ring_buffer_map
2024/12/13 11:45 upstream f932fb9b4074 b1b5e51a .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto kernel BUG in ring_buffer_map
2024/12/17 02:21 upstream f44d154d6e3d f93b2b55 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto kernel BUG in ring_buffer_map
2024/12/16 15:17 upstream 78d4f34e2115 eec85da6 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto kernel BUG in ring_buffer_map
* Struck through repros no longer work on HEAD.