syzbot


kernel BUG in dnotify_free_mark

Status: upstream: reported C repro on 2022/10/28 23:45
Reported-by: syzbot+06cc05ddc896f12b7ec5@syzkaller.appspotmail.com
First crash: 33d, last: 22d

Cause bisection: failed (bisect log)
Patch testing requests:
Created Duration User Patch Repo Result
2022/10/29 07:31 26m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 247f34f7b803 OK log
2022/10/29 06:03 16m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 247f34f7b803 report log

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/notify/dnotify/dnotify.c:136!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 11 Comm: kworker/u4:1 Not tainted 6.1.0-rc3-syzkaller-00152-gf2f32f8af2b0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
Workqueue: events_unbound fsnotify_mark_destroy_workfn
RIP: 0010:dnotify_free_mark+0x4b/0x60 fs/notify/dnotify/dnotify.c:136
Code: 80 3c 02 00 75 26 48 83 bd 80 00 00 00 00 75 15 e8 8a 51 92 ff 48 89 ee 48 8b 3d d0 f4 f7 0b 5d e9 4a 62 de ff e8 75 51 92 ff <0f> 0b e8 ee a3 de ff eb d3 66 66 2e 0f 1f 84 00 00 00 00 00 90 41
RSP: 0018:ffffc90000107c50 EFLAGS: 00010293
RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: ffff888011a53a80 RSI: ffffffff81ea5b1b RDI: ffff888079d1f080
RBP: ffff888079d1f000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 000000000008c07e R12: ffff888145fd4000
R13: ffffc90000107c90 R14: ffff888079d1f010 R15: ffff888079d1f018
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055d18dda9288 CR3: 00000000721b7000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 fsnotify_final_mark_destroy fs/notify/mark.c:278 [inline]
 fsnotify_mark_destroy_workfn+0x22e/0x3c0 fs/notify/mark.c:902
 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289
 worker_thread+0x665/0x1080 kernel/workqueue.c:2436
 kthread+0x2e4/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:dnotify_free_mark+0x4b/0x60 fs/notify/dnotify/dnotify.c:136
Code: 80 3c 02 00 75 26 48 83 bd 80 00 00 00 00 75 15 e8 8a 51 92 ff 48 89 ee 48 8b 3d d0 f4 f7 0b 5d e9 4a 62 de ff e8 75 51 92 ff <0f> 0b e8 ee a3 de ff eb d3 66 66 2e 0f 1f 84 00 00 00 00 00 90 41
RSP: 0018:ffffc90000107c50 EFLAGS: 00010293

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/11/04 05:18 upstream f2f32f8af2b0 6d752409 .config log report syz C kernel BUG in dnotify_free_mark
ci2-upstream-fs 2022/10/25 00:02 upstream 247f34f7b803 faae2fda .config log report syz C kernel BUG in dnotify_free_mark
ci2-upstream-fs 2022/10/24 23:39 upstream 247f34f7b803 faae2fda .config log report info kernel BUG in dnotify_free_mark
* Struck through repros no longer work on HEAD.