syzbot


WARNING in ring_buffer_map

Status: upstream: reported C repro on 2024/12/16 08:56
Subsystems: trace
[Documentation on labels]
Reported-by: syzbot+648bb824605554d08bff@syzkaller.appspotmail.com
First crash: 9d05h, last: 1d21h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [trace?] WARNING in ring_buffer_map 0 (1) 2024/12/16 08:56

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5834 at kernel/trace/ring_buffer.c:7061 __rb_map_vma+0x881/0xae0 kernel/trace/ring_buffer.c:7061
Modules linked in:
CPU: 1 UID: 0 PID: 5834 Comm: syz-executor239 Not tainted 6.13.0-rc2-syzkaller-00031-gf92f4749861b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024
RIP: 0010:__rb_map_vma+0x881/0xae0 kernel/trace/ring_buffer.c:7061
Code: 04 25 28 00 00 00 0f 85 11 02 00 00 48 81 c4 b0 00 00 00 89 d8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 cc cc cc cc e8 40 7c fd ff 90 <0f> 0b 90 bb ea ff ff ff eb 96 e8 30 7c fd ff 48 8b 44 24 20 be ff
RSP: 0018:ffffc90003a27790 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 00000000000007ff RCX: ffffffff819bbf0b
RDX: ffff888059005a00 RSI: ffffffff819bc1b0 RDI: 0000000000000006
RBP: ffff888078d9c578 R08: 0000000000000006 R09: 00000000000007ff
R10: 0000000000000003 R11: ffffffff8b200130 R12: ffffea000007bb80
R13: ffff88807ab41bc0 R14: 0000000000000003 R15: 0000000000000001
FS:  0000555581f4d480(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f183f3b20f0 CR3: 0000000032d56000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 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:0x7f183f33c5d9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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:00007ffd6456a698 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f183f33c5d9
RDX: 0000000000000009 RSI: 0000000000001000 RDI: 0000000020ffe000
RBP: 00007f183f3831e4 R08: 0000000000000003 R09: 0000000000800000
R10: 0000000000000011 R11: 0000000000000246 R12: 00007f183f38917c
R13: 00007f183f383169 R14: 00007ffd6456a6f0 R15: 00007f183f3b441c
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/12 08:46 upstream f92f4749861b 6f1b0fa8 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in ring_buffer_map
2024/12/18 00:32 upstream 59dbb9d81adf a0626d3a .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in ring_buffer_map
2024/12/19 16:43 upstream eabcdba3ad40 1d58202c .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in ring_buffer_map
* Struck through repros no longer work on HEAD.