syzbot


kernel BUG in internal_create_group

Status: upstream: reported C repro on 2021/12/20 18:51
Reported-by: syzbot+9c1d8f585c53781718fd@syzkaller.appspotmail.com
First crash: 1096d, last: 718d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 kernel BUG in internal_create_group C error 3 721d 969d 0/1 upstream: reported C repro on 2022/04/27 01:00

Sample crash report:
RDX: 0000000000000000 RSI: 0000000000004c80 RDI: 0000000000000003
RBP: 00007ffe2fb606f0 R08: 0000000000000002 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000
------------[ cut here ]------------
kernel BUG at fs/sysfs/group.c:115!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8813 Comm: syz-executor419 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:internal_create_group+0x8ef/0xb20 fs/sysfs/group.c:115
Code: fc ff ff e8 33 46 9d ff 48 8b 7c 24 08 e8 99 1f ff ff e9 55 fe ff ff e8 1f 46 9d ff 48 85 db 0f 85 eb f7 ff ff e8 11 46 9d ff <0f> 0b 41 bd ea ff ff ff e9 35 fe ff ff e8 ff 45 9d ff 48 83 7c 24
RSP: 0018:ffff888095ecf9f8 EFLAGS: 00010293
RAX: ffff888095744140 RBX: 0000000000000000 RCX: ffffffff81c5372e
RDX: 0000000000000000 RSI: ffffffff81c53f5f RDI: 0000000000000005
RBP: ffff8880b40c9350 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880b40c9310 R14: ffff8880b40c9320 R15: 0000000000000000
FS:  0000555555a13300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe1b172a740 CR3: 000000009a84f000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 blk_register_queue+0x12c/0x5b0 block/blk-sysfs.c:919
 __device_add_disk+0xe1d/0x10c0 block/genhd.c:725
 add_disk include/linux/genhd.h:409 [inline]
 loop_add+0x628/0x8a0 drivers/block/loop.c:2048
 loop_control_ioctl drivers/block/loop.c:2149 [inline]
 loop_control_ioctl+0x16c/0x480 drivers/block/loop.c:2131
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688
 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f06838f9079
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 00 00 90 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe2fb606d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f06838f9079
RDX: 0000000000000000 RSI: 0000000000004c80 RDI: 0000000000000003
RBP: 00007ffe2fb606f0 R08: 0000000000000002 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace e174ab29914034bb ]---
RIP: 0010:internal_create_group+0x8ef/0xb20 fs/sysfs/group.c:115
Code: fc ff ff e8 33 46 9d ff 48 8b 7c 24 08 e8 99 1f ff ff e9 55 fe ff ff e8 1f 46 9d ff 48 85 db 0f 85 eb f7 ff ff e8 11 46 9d ff <0f> 0b 41 bd ea ff ff ff e9 35 fe ff ff e8 ff 45 9d ff 48 83 7c 24
RSP: 0018:ffff888095ecf9f8 EFLAGS: 00010293
RAX: ffff888095744140 RBX: 0000000000000000 RCX: ffffffff81c5372e
RDX: 0000000000000000 RSI: ffffffff81c53f5f RDI: 0000000000000005
RBP: ffff8880b40c9350 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880b40c9310 R14: ffff8880b40c9320 R15: 0000000000000000
FS:  0000555555a13300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe1b172a740 CR3: 000000009a84f000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/02 18:31 linux-4.19.y 3f8a27f9e27b ab32d508 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in internal_create_group
2022/04/27 20:21 linux-4.19.y 3f8a27f9e27b 1fa34c1b .config console log report syz C ci2-linux-4-19 kernel BUG in internal_create_group
2022/04/27 01:25 linux-4.19.y 3f8a27f9e27b 1fa34c1b .config console log report syz C ci2-linux-4-19 kernel BUG in internal_create_group
2021/12/20 18:51 linux-4.19.y 3f8a27f9e27b 021b36cb .config console log report syz C ci2-linux-4-19 kernel BUG in internal_create_group
* Struck through repros no longer work on HEAD.