syzbot


WARNING in kernfs_active

Status: upstream: reported C repro on 2022/10/10 07:16
Reported-by: syzbot+590ce62b128e79cf0a35@syzkaller.appspotmail.com
Fix commit: 1edfe4ea16ca kernfs: Fix spurious lockdep warning in kernfs_find_and_get_node_by_id()
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 113d, last: 71d

Cause bisection: failed (bisect log)

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3613 at fs/kernfs/dir.c:36 kernfs_active+0x119/0x150 fs/kernfs/dir.c:36
Modules linked in:
CPU: 1 PID: 3613 Comm: syz-executor187 Not tainted 6.1.0-rc4-syzkaller-00356-g8f2975c2bb4c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:kernfs_active+0x119/0x150 fs/kernfs/dir.c:36
Code: e8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 1f 8b 5b 04 31 ff 89 de e8 e6 6d 7e ff 89 d8 5b f7 d0 5d c1 e8 1f c3 e8 07 71 7e ff <0f> 0b eb a5 48 89 ef e8 5b c7 ca ff eb d7 48 c7 c7 4c 65 e2 8d e8
RSP: 0018:ffffc90003c7fbc0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff8881400f3570 RCX: 0000000000000000
RDX: ffff888020a6ba80 RSI: ffffffff81fe3b79 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8881400f3570
R13: ffff888079626000 R14: 0000000000000000 R15: 0000000000000002
FS:  00005555572c8300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 000000001d099000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 kernfs_find_and_get_node_by_id+0x84/0x170 fs/kernfs/dir.c:708
 __kernfs_fh_to_dentry+0xdb/0x270 fs/kernfs/mount.c:102
 exportfs_decode_fh_raw+0x127/0x7d0 fs/exportfs/expfs.c:435
 exportfs_decode_fh+0x38/0x90 fs/exportfs/expfs.c:575
 do_handle_to_path fs/fhandle.c:152 [inline]
 handle_to_path fs/fhandle.c:207 [inline]
 do_handle_open+0x2b6/0x8b0 fs/fhandle.c:223
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f8dc5726be9
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe9cd315d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000130
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f8dc5726be9
RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000005
RBP: 00007f8dc56ead90 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f8dc56eae20
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (149):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce-root 2022/11/13 02:40 upstream 8f2975c2bb4c 3ead01ad .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in kernfs_active
ci-upstream-linux-next-kasan-gce-root 2022/11/03 02:48 linux-next 61c3426aca2c 08977f5d .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in kernfs_active
ci-upstream-kasan-gce-selinux-root 2022/11/19 02:13 upstream 84368d882b96 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_active
ci-upstream-kasan-gce-root 2022/11/18 19:51 upstream 84368d882b96 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_active
ci-upstream-kasan-gce-selinux-root 2022/11/18 11:15 upstream 81ac25651a62 4ba8ab94 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_active
ci-upstream-kasan-gce-selinux-root 2022/11/16 12:40 upstream 81e7cfa3a9eb 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_active
ci-upstream-kasan-gce-root 2022/11/15 13:48 upstream e01d50cbd6ee 97de9cfc .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_active
ci-upstream-kasan-gce-selinux-root 2022/11/14 01:50 upstream af7a05689189 3ead01ad .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_active
ci-upstream-kasan-gce-root 2022/11/14 00:40 upstream af7a05689189 3ead01ad .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_active
ci-upstream-kasan-gce-root 2022/11/13 08:21 upstream fef7fd48922d 3ead01ad .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_active
ci-qemu-upstream 2022/11/13 07:42 upstream fef7fd48922d f42ee5d8 .config console log report info WARNING in kernfs_active
ci-upstream-kasan-gce-root 2022/11/12 20:03 upstream 8f2975c2bb4c 3ead01ad .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_active
ci-qemu-upstream 2022/11/12 16:52 upstream 8f2975c2bb4c f42ee5d8 .config console log report info WARNING in kernfs_active
ci-upstream-kasan-gce-selinux-root 2022/11/10 00:03 upstream f141df371335 5fa28208 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_active
ci-upstream-kasan-gce-selinux-root 2022/11/09 04:29 upstream f141df371335 060f945e .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_active
ci-qemu-upstream 2022/11/07 18:23 upstream f0c4d9fc9cc9 a779b11a .config console log report info WARNING in kernfs_active
ci-qemu-upstream 2022/11/07 12:26 upstream f0c4d9fc9cc9 a779b11a .config console log report info WARNING in kernfs_active
ci-qemu-upstream 2022/11/07 08:37 upstream f0c4d9fc9cc9 6d752409 .config console log report info WARNING in kernfs_active
ci-qemu-upstream 2022/11/06 17:24 upstream 2f5065a0bc9d 6d752409 .config console log report info WARNING in kernfs_active
ci-qemu-upstream 2022/11/05 17:33 upstream b208b9fbbcba 6d752409 .config console log report info WARNING in kernfs_active
ci-qemu-upstream 2022/11/05 08:37 upstream 64c3dd0b98f5 6d752409 .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/18 16:06 upstream 84368d882b96 5bb70014 .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/18 05:52 upstream 84368d882b96 5bb70014 .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/17 08:54 upstream cc675d22e422 bfcab33d .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/16 21:19 upstream 59d0d52c30d4 bfcab33d .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/16 02:20 upstream 81e7cfa3a9eb bfcab33d .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/15 18:02 upstream e01d50cbd6ee bfcab33d .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/15 09:56 upstream e01d50cbd6ee 97de9cfc .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/15 02:50 upstream e01d50cbd6ee 97de9cfc .config console log report info WARNING in kernfs_active
ci-qemu-upstream-386 2022/11/14 12:16 upstream 094226ad94f4 943f4cb8 .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/13 20:50 upstream af7a05689189 7ba4d859 .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/13 09:43 upstream fef7fd48922d f42ee5d8 .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/13 06:41 upstream fef7fd48922d f42ee5d8 .config console log report info WARNING in kernfs_active
ci-qemu-upstream-386 2022/11/12 23:11 upstream fef7fd48922d f42ee5d8 .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/11 22:01 upstream eb037f16f7e8 f42ee5d8 .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/11 16:55 upstream 4bbf3422df78 f42ee5d8 .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/11 15:00 upstream 4bbf3422df78 f42ee5d8 .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/10 09:58 upstream f67dd6ce0723 b2488a87 .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/09 22:40 upstream f67dd6ce0723 bebca8b7 .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/09 13:47 upstream f141df371335 bebca8b7 .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/09 12:10 upstream f141df371335 5fa28208 .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/09 10:41 upstream f141df371335 5fa28208 .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/08 22:10 upstream f141df371335 060f945e .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/08 18:14 upstream 59f2f4b8a757 060f945e .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/08 00:50 upstream 59f2f4b8a757 6feb842b .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/07 16:06 upstream f0c4d9fc9cc9 a779b11a .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/06 22:13 upstream 089d1c31224e 6d752409 .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/06 18:42 upstream 2f5065a0bc9d 6d752409 .config console log report info WARNING in kernfs_active
ci-qemu-upstream-386 2022/11/06 17:31 upstream 2f5065a0bc9d 6d752409 .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/06 11:23 upstream 2f5065a0bc9d 6d752409 .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/06 03:13 upstream b208b9fbbcba 6d752409 .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/11/05 15:58 upstream b208b9fbbcba 6d752409 .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/10/10 06:08 upstream 4899a36f91a9 aea5da89 .config console log report info WARNING in kernfs_active
ci-qemu2-arm64-compat 2022/10/08 13:48 upstream e8bc52cb8df8 aea5da89 .config console log report info WARNING in kernfs_active
ci-upstream-linux-next-kasan-gce-root 2022/11/09 01:43 linux-next 0cdb3579f1ee 060f945e .config console log report info [disk image] [vmlinux] [kernel image] WARNING in kernfs_active
* Struck through repros no longer work on HEAD.