syzbot


WARNING in sysfs_remove_group

Status: fixed on 2018/07/09 18:05
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+9f03168400f56df89dbc6f1751f4458fe739ff29@syzkaller.appspotmail.com
Fix commit: d3349b6b3c37 loop: remember whether sysfs_create_group() was done
First crash: 2651d, last: 2329d
Discussions (7)
Title Replies (including bot) Last reply
[PATCH 4.4 00/43] 4.4.141-stable review 53 (53) 2018/08/22 21:43
[PATCH 3.18 00/29] 3.18.116-stable review 32 (32) 2018/07/22 11:42
[PATCH 4.17 00/67] 4.17.7-stable review 74 (74) 2018/07/17 09:41
[PATCH 4.9 00/32] 4.9.113-stable review 53 (53) 2018/07/17 08:14
[PATCH 4.14 00/54] 4.14.56-stable review 57 (57) 2018/07/17 08:04
[PATCH] loop: remember whether sysfs_create_group() succeeded 13 (13) 2018/05/09 12:31
WARNING in sysfs_remove_group 3 (3) 2018/05/02 14:24
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING in sysfs_remove_group C done 1 1955d 1955d 1/1 fixed on 2019/12/02 18:02
upstream WARNING in sysfs_remove_group (2) fs C 1725 1887d 2254d 0/28 closed as dup on 2018/11/25 13:06
linux-4.19 WARNING in sysfs_remove_group 1 1897d 1897d 0/1 auto-closed as invalid on 2020/01/10 17:21

Sample crash report:
R13: 0000000000000007 R14: 0030656c69662f2e R15: 0000000000000000
------------[ cut here ]------------
FAT-fs (loop7): bogus number of reserved sectors
sysfs group 'loop' not found for kobject 'loop6'
FAT-fs (loop7): Can't find a valid FAT filesystem
WARNING: CPU: 0 PID: 4537 at fs/sysfs/group.c:235 sysfs_remove_group+0x15b/0x1b0 fs/sysfs/group.c:233
------------[ cut here ]------------
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 4537 Comm: syz-executor023 Not tainted 4.17.0-rc5+ #54
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1b9/0x294 lib/dump_stack.c:113
sysfs group 'loop' not found for kobject 'loop0'
 panic+0x22f/0x4de kernel/panic.c:184
WARNING: CPU: 1 PID: 4534 at fs/sysfs/group.c:235 sysfs_remove_group+0x15b/0x1b0 fs/sysfs/group.c:233
Modules linked in:
CPU: 1 PID: 4534 Comm: syz-executor023 Not tainted 4.17.0-rc5+ #54
 __warn.cold.8+0x163/0x1b3 kernel/panic.c:536
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:sysfs_remove_group+0x15b/0x1b0 fs/sysfs/group.c:233
 report_bug+0x252/0x2d0 lib/bug.c:186
RSP: 0018:ffff8801cf277848 EFLAGS: 00010286
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 do_error_trap+0x1de/0x490 arch/x86/kernel/traps.c:296
RAX: 0000000000000030 RBX: ffffffff892dc900 RCX: ffffffff8160aa5d
RDX: 0000000000000000 RSI: ffffffff8160f711 RDI: ffff8801cf2773a8
RBP: ffff8801cf277870 R08: ffff8801d0200100 R09: 0000000000000006
R10: ffff8801d0200100 R11: 0000000000000000 R12: 0000000000000000
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:315
R13: ffff8801d2818b20 R14: ffffffff88279e00 R15: ffff8801d2807e68
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:992
FS:  0000000001dd6880(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
RIP: 0010:sysfs_remove_group+0x15b/0x1b0 fs/sysfs/group.c:233
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
RSP: 0018:ffff8801c6b47848 EFLAGS: 00010286
CR2: 00007f6d2d0c5af0 CR3: 00000001d9b78000 CR4: 00000000001406e0
RAX: 0000000000000030 RBX: ffffffff892dc900 RCX: ffffffff8160aa5d
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8160f711 RDI: ffff8801c6b473a8
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
RBP: ffff8801c6b47870 R08: ffff8801ad20e1c0 R09: 0000000000000006
Call Trace:
R10: ffff8801ad20e1c0 R11: 0000000000000000 R12: 0000000000000000
 loop_sysfs_exit drivers/block/loop.c:820 [inline]
 loop_clr_fd+0x51e/0xb80 drivers/block/loop.c:1073
R13: ffff8801d2a50e20 R14: ffffffff88279e00 R15: ffff8801d2a019a8
 lo_ioctl+0x642/0x2130 drivers/block/loop.c:1404
 loop_sysfs_exit drivers/block/loop.c:820 [inline]
 loop_clr_fd+0x51e/0xb80 drivers/block/loop.c:1073
 __blkdev_driver_ioctl block/ioctl.c:303 [inline]
 blkdev_ioctl+0x9b6/0x2020 block/ioctl.c:601
 lo_ioctl+0x642/0x2130 drivers/block/loop.c:1404
 __blkdev_driver_ioctl block/ioctl.c:303 [inline]
 blkdev_ioctl+0x9b6/0x2020 block/ioctl.c:601
 block_ioctl+0xee/0x130 fs/block_dev.c:1877
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:500 [inline]
 do_vfs_ioctl+0x1cf/0x16a0 fs/ioctl.c:684
 block_ioctl+0xee/0x130 fs/block_dev.c:1877
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:500 [inline]
 do_vfs_ioctl+0x1cf/0x16a0 fs/ioctl.c:684
 ksys_ioctl+0xa9/0xd0 fs/ioctl.c:701
 __do_sys_ioctl fs/ioctl.c:708 [inline]
 __se_sys_ioctl fs/ioctl.c:706 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:706
 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
 ksys_ioctl+0xa9/0xd0 fs/ioctl.c:701
 __do_sys_ioctl fs/ioctl.c:708 [inline]
 __se_sys_ioctl fs/ioctl.c:706 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:706
 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x441147
RSP: 002b:00007ffc662c71c8 EFLAGS: 00000207
 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000016 RCX: 0000000000441147
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RDX: 0000000000000000 RSI: 0000000000004c01 RDI: 0000000000000008
RIP: 0033:0x441147
RBP: 00007ffc662c71e0 R08: 0000000020000240 R09: 000000000000000a
RSP: 002b:00007ffc662c71c8 EFLAGS: 00000207
R10: 0000000000000000 R11: 0000000000000207 R12: 0000000000000008
 ORIG_RAX: 0000000000000010
R13: 0000000000000007 R14: 0030656c69662f2e R15: 0000000000000000
RAX: ffffffffffffffda RBX: 0000000000000016 RCX: 0000000000441147
Code: 
RDX: 0000000000000000 RSI: 0000000000004c01 RDI: 0000000000000008
6e 
RBP: 00007ffc662c71e0 R08: 0000000020000240 R09: 000000000000000a
R10: 0000000000000000 R11: 0000000000000207 R12: 0000000000000008
48 
R13: 0000000000000007 R14: 0030656c69662f2e R15: 0000000000000000
89 d9 49 8b 55 00 48 b8 00 00 00 00 00 fc ff df 48 c1 e9 03 80 3c 01 00 75 41 48 8b 33 48 c7 c7 40 c6 d5 87 e8 d5 4a 5e ff <0f> 0b eb 92 e8 8c 7c ce ff e9 d0 fe ff ff 48 89 df e8 7f 7c ce 
irq event stamp: 2629706
hardirqs last  enabled at (2629705): [<ffffffff878009d5>] restore_regs_and_return_to_kernel+0x0/0x2b
hardirqs last disabled at (2629706): [<ffffffff87801166>] error_entry+0x76/0xd0 arch/x86/entry/entry_64.S:1262
softirqs last  enabled at (2629704): [<ffffffff87a00778>] __do_softirq+0x778/0xaf5 kernel/softirq.c:311
softirqs last disabled at (2629697): [<ffffffff81475281>] invoke_softirq kernel/softirq.c:365 [inline]
softirqs last disabled at (2629697): [<ffffffff81475281>] irq_exit+0x1d1/0x200 kernel/softirq.c:405
---[ end trace 224ecd5ebacc3e2f ]---
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (11125):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/05/17 15:17 upstream e6506eb24187 90c54c49 .config console log report syz C ci-upstream-kasan-gce-root
2018/05/17 13:31 upstream e6506eb24187 90c54c49 .config console log report syz C ci-upstream-kasan-gce-root
2018/05/17 07:11 upstream e6506eb24187 a367c1d7 .config console log report syz C ci-upstream-kasan-gce-root
2018/04/04 15:10 upstream 17dec0a94915 676bd07e .config console log report syz C ci-upstream-kasan-gce-root
2017/12/23 20:49 upstream 9c294ec08408 73aba437 .config console log report syz C ci-upstream-kasan-gce-386
2018/06/04 08:56 upstream 29dcea88779c 6cbe7c26 .config console log report ci-upstream-kasan-gce-root
2018/05/30 00:44 upstream 3d661e2a2d1c 2f93b54f .config console log report ci-upstream-kasan-gce
2018/05/30 18:38 upstream d60d61f36b8f 2f93b54f .config console log report ci-upstream-kasan-gce-386
2018/07/08 07:30 https://github.com/google/kmsan.git master a00de5aa4da3 c9a7a4dc .config console log report ci-upstream-kmsan-gce
2018/07/07 19:39 https://github.com/google/kmsan.git master a00de5aa4da3 ab89aea9 .config console log report ci-upstream-kmsan-gce
2018/07/07 16:49 https://github.com/google/kmsan.git master a00de5aa4da3 ab89aea9 .config console log report ci-upstream-kmsan-gce
2018/07/07 12:41 https://github.com/google/kmsan.git master a00de5aa4da3 6c0c0099 .config console log report ci-upstream-kmsan-gce
2018/07/07 06:29 https://github.com/google/kmsan.git master a00de5aa4da3 6c0c0099 .config console log report ci-upstream-kmsan-gce
2018/07/07 03:41 https://github.com/google/kmsan.git master a00de5aa4da3 6c0c0099 .config console log report ci-upstream-kmsan-gce
2018/07/06 18:24 https://github.com/google/kmsan.git master a00de5aa4da3 9636bc93 .config console log report ci-upstream-kmsan-gce
2018/07/06 12:57 https://github.com/google/kmsan.git master 9c9df9f275f0 18403e65 .config console log report ci-upstream-kmsan-gce
2018/07/05 07:29 https://github.com/google/kmsan.git master c1adbc427188 f525fd72 .config console log report ci-upstream-kmsan-gce
2018/07/05 02:27 https://github.com/google/kmsan.git master accdc89e1dc3 e1b966c6 .config console log report ci-upstream-kmsan-gce
2018/07/04 08:38 https://github.com/google/kmsan.git master 4ca559bbdeaf 317fc8ea .config console log report ci-upstream-kmsan-gce
2018/07/03 11:08 https://github.com/google/kmsan.git master 4ca559bbdeaf 317fc8ea .config console log report ci-upstream-kmsan-gce
2018/07/03 08:44 https://github.com/google/kmsan.git master 4ca559bbdeaf 317fc8ea .config console log report ci-upstream-kmsan-gce
2018/07/02 18:50 https://github.com/google/kmsan.git master 6c3632ffef26 574780b0 .config console log report ci-upstream-kmsan-gce
2018/07/02 10:27 https://github.com/google/kmsan.git master 123906095e30 dba0b50e .config console log report ci-upstream-kmsan-gce
2018/07/01 11:53 https://github.com/google/kmsan.git master 123906095e30 dba0b50e .config console log report ci-upstream-kmsan-gce
2018/06/30 08:53 https://github.com/google/kmsan.git master 123906095e30 dba0b50e .config console log report ci-upstream-kmsan-gce
2018/06/28 18:06 https://github.com/google/kmsan.git master 123906095e30 dba0b50e .config console log report ci-upstream-kmsan-gce
2018/06/28 16:46 https://github.com/google/kmsan.git master 123906095e30 dba0b50e .config console log report ci-upstream-kmsan-gce
2018/06/28 14:09 https://github.com/google/kmsan.git master 123906095e30 dba0b50e .config console log report ci-upstream-kmsan-gce
2018/06/28 10:56 https://github.com/google/kmsan.git master 123906095e30 dba0b50e .config console log report ci-upstream-kmsan-gce
2018/06/28 06:50 https://github.com/google/kmsan.git master 123906095e30 43e60f7e .config console log report ci-upstream-kmsan-gce
2018/06/27 23:11 https://github.com/google/kmsan.git master 123906095e30 43e60f7e .config console log report ci-upstream-kmsan-gce
2018/06/27 18:23 https://github.com/google/kmsan.git master 123906095e30 43e60f7e .config console log report ci-upstream-kmsan-gce
2018/06/27 12:37 https://github.com/google/kmsan.git master 123906095e30 43e60f7e .config console log report ci-upstream-kmsan-gce
2018/06/27 11:01 https://github.com/google/kmsan.git master 123906095e30 43e60f7e .config console log report ci-upstream-kmsan-gce
2018/06/27 03:50 https://github.com/google/kmsan.git master 123906095e30 b0294c53 .config console log report ci-upstream-kmsan-gce
2018/06/26 22:15 https://github.com/google/kmsan.git master 123906095e30 b0294c53 .config console log report ci-upstream-kmsan-gce
2018/06/26 17:17 https://github.com/google/kmsan.git master 123906095e30 b0294c53 .config console log report ci-upstream-kmsan-gce
2018/06/26 13:47 https://github.com/google/kmsan.git master 123906095e30 089f1181 .config console log report ci-upstream-kmsan-gce
2018/06/25 16:38 https://github.com/google/kmsan.git master 123906095e30 2064fc5c .config console log report ci-upstream-kmsan-gce
2018/06/25 03:12 https://github.com/google/kmsan.git master 123906095e30 2064fc5c .config console log report ci-upstream-kmsan-gce
2018/06/24 08:47 https://github.com/google/kmsan.git master 123906095e30 2064fc5c .config console log report ci-upstream-kmsan-gce
2018/06/24 06:22 https://github.com/google/kmsan.git master 123906095e30 2064fc5c .config console log report ci-upstream-kmsan-gce
2018/06/24 01:00 https://github.com/google/kmsan.git master 123906095e30 2064fc5c .config console log report ci-upstream-kmsan-gce
2018/06/23 21:42 https://github.com/google/kmsan.git master 123906095e30 2064fc5c .config console log report ci-upstream-kmsan-gce
2018/06/23 19:51 https://github.com/google/kmsan.git master 123906095e30 2064fc5c .config console log report ci-upstream-kmsan-gce
2018/06/20 12:02 https://github.com/google/kmsan.git master 123906095e30 095ef806 .config console log report ci-upstream-kmsan-gce
2018/01/17 20:22 linux-next 1fec57a31e56 b8970f31 .config console log report ci-upstream-next-kasan-gce
2018/01/10 06:25 mmots 69eed2290e1d 1f60c828 .config console log report ci-upstream-mmots-kasan-gce
* Struck through repros no longer work on HEAD.