syzbot


kernel BUG in internal_create_group

Status: upstream: reported C repro on 2022/04/27 01:00
Reported-by: syzbot+056863edfef2593853e0@syzkaller.appspotmail.com
First crash: 962d, last: 715d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 kernel BUG in internal_create_group C error 4 712d 1090d 0/1 upstream: reported C repro on 2021/12/20 18:51
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2022/10/13 02:09 0m bisect fix linux-4.14.y error job log
2022/08/29 19:42 31m bisect fix linux-4.14.y OK (0) job log log
2022/07/26 22:56 29m bisect fix linux-4.14.y OK (0) job log log
2022/06/26 22:14 25m bisect fix linux-4.14.y OK (0) job log log
2022/05/27 21:32 30m bisect fix linux-4.14.y OK (0) job log log

Sample crash report:
RDX: 0000000000000000 RSI: 0000000000004c80 RDI: 0000000000000003
RBP: 00007f23b7a214a0 R08: 0000000000000002 R09: 0000000000003138
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f23b794a300
R13: 0000000000000002 R14: 00007f23b794a400 R15: 0000000000022000
------------[ cut here ]------------
kernel BUG at fs/sysfs/group.c:113!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 8781 Comm: syz-executor347 Not tainted 4.14.302-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
task: ffff8880b41b44c0 task.stack: ffff8880981e8000
RIP: 0010:internal_create_group+0x55f/0x710 fs/sysfs/group.c:113
RSP: 0018:ffff8880981efb00 EFLAGS: 00010297
RAX: ffff8880b41b44c0 RBX: ffff8880b4242da0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8880b4242da0
RBP: ffff8880968704c0 R08: ffffffff8b9c5390 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff88fafbe0
R13: ffff888096870708 R14: 0000000000000000 R15: ffff8880b4242dd0
FS:  00007f23b794a700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f23b79d9d50 CR3: 000000009a471000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 blk_register_queue+0xd3/0x350 block/blk-sysfs.c:891
 device_add_disk+0x97c/0xdc0 block/genhd.c:683
 add_disk include/linux/genhd.h:396 [inline]
 loop_add+0x615/0x830 drivers/block/loop.c:1909
 loop_control_ioctl+0x11a/0x3f0 drivers/block/loop.c:2006
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:500 [inline]
 do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684
 SYSC_ioctl fs/ioctl.c:701 [inline]
 SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7f23b7998ba9
RSP: 002b:00007f23b794a2f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f23b7a214a8 RCX: 00007f23b7998ba9
RDX: 0000000000000000 RSI: 0000000000004c80 RDI: 0000000000000003
RBP: 00007f23b7a214a0 R08: 0000000000000002 R09: 0000000000003138
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f23b794a300
R13: 0000000000000002 R14: 00007f23b794a400 R15: 0000000000022000
Code: 48 c1 ea 03 80 3c 02 00 0f 84 9c fd ff ff e8 e9 fe da ff e9 92 fd ff ff e8 df 3d b1 ff 4d 85 f6 0f 85 16 fb ff ff e8 d1 3d b1 ff <0f> 0b e8 ca 3d b1 ff 49 83 fe ef 74 18 e8 bf 3d b1 ff 45 89 f7 
RIP: internal_create_group+0x55f/0x710 fs/sysfs/group.c:113 RSP: ffff8880981efb00
---[ end trace baad0b108e6d5736 ]---

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/30 16:28 linux-4.14.y c4215ee4771b 44712fbc .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-4-14 kernel BUG in internal_create_group
2022/04/27 20:43 linux-4.14.y e3a56aaade89 1fa34c1b .config console log report syz C ci2-linux-4-14 kernel BUG in internal_create_group
2022/04/27 01:00 linux-4.14.y 15a1c6b6f516 1fa34c1b .config console log report syz C ci2-linux-4-14 kernel BUG in internal_create_group
* Struck through repros no longer work on HEAD.