syzbot


WARNING in __fsnotify_recalc_mask

Status: fixed on 2018/09/11 03:31
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+c34692a51b9a6ca93540@syzkaller.appspotmail.com
Fix commit: d3bc0fa8411c fsnotify: fix false positive warning on inode delete
First crash: 2100d, last: 2073d
Discussions (3)
Title Replies (including bot) Last reply
[PATCH] fsnotify: fix false positive warning on inode delete 2 (2) 2018/08/20 13:48
[PATCH] fsnotify: fix false positive warning on inode delete 3 (3) 2018/08/20 10:32
WARNING in __fsnotify_recalc_mask 1 (3) 2018/08/19 11:23

Sample crash report:
8021q: adding VLAN 0 to HW filter on device team0
WARNING: CPU: 1 PID: 11654 at fs/notify/mark.c:139 __fsnotify_recalc_mask+0x2d7/0x350 fs/notify/mark.c:139
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 11654 Comm: syz-executor0 Not tainted 4.18.0+ #195
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+0x1c9/0x2b4 lib/dump_stack.c:113
 panic+0x238/0x4e7 kernel/panic.c:184
 __warn.cold.8+0x163/0x1ba kernel/panic.c:536
 report_bug+0x252/0x2d0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 do_error_trap+0x1fc/0x4d0 arch/x86/kernel/traps.c:296
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:993
RIP: 0010:__fsnotify_recalc_mask+0x2d7/0x350 fs/notify/mark.c:139
Code: 90 00 00 00 48 83 c4 68 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 eb 2d a2 ff 49 83 ec 04 eb 82 e8 e0 2d a2 ff 0f 0b e8 d9 2d a2 ff <0f> 0b eb a5 e8 60 24 e1 ff e9 11 ff ff ff 48 89 df e8 f3 24 e1 ff
RSP: 0018:ffff8801c84675c8 EFLAGS: 00010293
RAX: ffff8801c867a240 RBX: 0000000000000002 RCX: ffffffff81dabc96
RDX: 0000000000000000 RSI: ffffffff81dabd67 RDI: 0000000000000005
RBP: ffff8801c8467658 R08: ffff8801c867a240 R09: ffffed00371a2c0e
R10: ffffed00371a2c0e R11: ffff8801b8d16073 R12: dffffc0000000000
R13: ffff8801b8d16070 R14: 0000000000000000 R15: 0000000000000000
 fsnotify_put_mark+0x523/0xab0 fs/notify/mark.c:240
 fsnotify_destroy_marks+0x2d1/0x5c0 fs/notify/mark.c:741
 fsnotify_clear_marks_by_inode fs/notify/fsnotify.h:39 [inline]
 __fsnotify_inode_delete+0x19/0x20 fs/notify/fsnotify.c:35
 fsnotify_inoderemove include/linux/fsnotify.h:136 [inline]
 dentry_unlink_inode+0x48b/0x5e0 fs/dcache.c:370
 __dentry_kill+0x44c/0x7a0 fs/dcache.c:566
 dentry_kill+0xc9/0x5a0 fs/dcache.c:685
 dput.part.26+0x66b/0x7a0 fs/dcache.c:846
 dput+0x15/0x20 fs/dcache.c:828
 __fput+0x4c2/0x860 fs/file_table.c:264
 ____fput+0x15/0x20 fs/file_table.c:282
 task_work_run+0x1e8/0x2a0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:193 [inline]
 exit_to_usermode_loop+0x318/0x380 arch/x86/entry/common.c:166
 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:268 [inline]
 do_syscall_64+0x6be/0x820 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457089
Code: fd b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 cb b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f5383dbfc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000021
RAX: 000000000000000a RBX: 00007f5383dc06d4 RCX: 0000000000457089
RDX: 0000000000000000 RSI: 000000000000000a RDI: 0000000000000008
RBP: 00000000009300a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000004cb6d0 R14: 00000000004c31f3 R15: 0000000000000000
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/08/18 10:04 upstream 1f7a4c73a739 db1858f6 .config console log report syz ci-upstream-kasan-gce-root
2018/08/18 09:23 upstream 1f7a4c73a739 db1858f6 .config console log report syz ci-upstream-kasan-gce
2018/08/18 10:06 upstream 1f7a4c73a739 db1858f6 .config console log report syz ci-upstream-kasan-gce-386
2018/08/20 04:18 upstream 2ad0d5269970 2dc4378f .config console log report ci-upstream-kasan-gce
2018/08/19 19:05 upstream 08b5fa819970 2dc4378f .config console log report ci-upstream-kasan-gce
2018/08/18 08:37 upstream 1f7a4c73a739 db1858f6 .config console log report ci-upstream-kasan-gce
2018/08/18 01:36 upstream edb0a2000936 738da825 .config console log report ci-upstream-kasan-gce
2018/08/12 01:04 linux-next 4110b42356f3 7a88b141 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/24 15:39 linux-next 3946cd385042 375a3e31 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.