syzbot


kernel BUG in fuse_dev_do_write

Status: upstream: reported C repro on 2024/10/20 08:11
Subsystems: fuse
[Documentation on labels]
Reported-by: syzbot+65d101735df4bb19d2a3@syzkaller.appspotmail.com
First crash: 6d12h, last: 1d20h
Cause bisection: introduced by (bisect log) :
commit 5d9e1455630d0f464f169bbd637dbb264cbd8ac8
Author: Josef Bacik <josef@toxicpanda.com>
Date: Mon Sep 30 13:45:18 2024 +0000

  fuse: convert fuse_notify_store to use folios

Crash: kernel BUG in fuse_dev_do_write (log)
Repro: C syz .config
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] fuse: zero folio correctly in fuse_notify_store() 2 (2) 2024/10/21 20:59
[syzbot] [fuse?] kernel BUG in fuse_dev_do_write 2 (5) 2024/10/21 03:49
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/10/20 09:39 27m hdanton@sina.com patch linux-next OK log

Sample crash report:
------------[ cut here ]------------
kernel BUG at include/linux/highmem.h:269!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 0 UID: 0 PID: 5238 Comm: syz-executor755 Not tainted 6.12.0-rc3-next-20241016-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:zero_user_segments include/linux/highmem.h:269 [inline]
RIP: 0010:folio_zero_range include/linux/highmem.h:641 [inline]
RIP: 0010:fuse_notify_store fs/fuse/dev.c:1671 [inline]
RIP: 0010:fuse_notify fs/fuse/dev.c:1908 [inline]
RIP: 0010:fuse_dev_do_write+0x5d6d/0x5da0 fs/fuse/dev.c:1992
Code: c6 a0 11 41 8c e8 43 fc c9 fe 90 0f 0b e8 ab 55 7e fe 4c 89 ef 48 c7 c6 40 11 41 8c e8 2c fc c9 fe 90 0f 0b e8 94 55 7e fe 90 <0f> 0b e8 8c 55 7e fe eb 0c e8 85 55 7e fe eb c1 e8 7e 55 7e fe 4c
RSP: 0018:ffffc90003e67860 EFLAGS: 00010293
RAX: ffffffff83168cbc RBX: 0000000000001001 RCX: ffff88802178bc00
RDX: 0000000000000000 RSI: 0000000000001001 RDI: 0000000000001000
RBP: ffffc90003e67bb0 R08: ffffffff8316685c R09: 1ffffd40003defd8
R10: dffffc0000000000 R11: fffff940003defd9 R12: 0000000000001000
R13: ffffea0001ef7ec0 R14: 1ffffd40003defd8 R15: 0000000000000001
FS:  000055557fdec380(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001f80 CR3: 000000007a4ca000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 fuse_dev_write+0x148/0x1d0 fs/fuse/dev.c:2076
 new_sync_write fs/read_write.c:590 [inline]
 vfs_write+0xa6d/0xc90 fs/read_write.c:683
 ksys_write+0x183/0x2b0 fs/read_write.c:736
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ffaa74606e9
Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff9501f418 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007ffaa74a9029 RCX: 00007ffaa74606e9
RDX: 000000000000002a RSI: 0000000020001f80 RDI: 0000000000000003
RBP: 00007ffaa74d3610 R08: 00007fff9501f5e8 R09: 00007fff9501f5e8
R10: 0000000020000200 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fff9501f5d8 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:zero_user_segments include/linux/highmem.h:269 [inline]
RIP: 0010:folio_zero_range include/linux/highmem.h:641 [inline]
RIP: 0010:fuse_notify_store fs/fuse/dev.c:1671 [inline]
RIP: 0010:fuse_notify fs/fuse/dev.c:1908 [inline]
RIP: 0010:fuse_dev_do_write+0x5d6d/0x5da0 fs/fuse/dev.c:1992
Code: c6 a0 11 41 8c e8 43 fc c9 fe 90 0f 0b e8 ab 55 7e fe 4c 89 ef 48 c7 c6 40 11 41 8c e8 2c fc c9 fe 90 0f 0b e8 94 55 7e fe 90 <0f> 0b e8 8c 55 7e fe eb 0c e8 85 55 7e fe eb c1 e8 7e 55 7e fe 4c
RSP: 0018:ffffc90003e67860 EFLAGS: 00010293
RAX: ffffffff83168cbc RBX: 0000000000001001 RCX: ffff88802178bc00
RDX: 0000000000000000 RSI: 0000000000001001 RDI: 0000000000001000
RBP: ffffc90003e67bb0 R08: ffffffff8316685c R09: 1ffffd40003defd8
R10: dffffc0000000000 R11: fffff940003defd9 R12: 0000000000001000
R13: ffffea0001ef7ec0 R14: 1ffffd40003defd8 R15: 0000000000000001
FS:  000055557fdec380(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055874a56a790 CR3: 000000007a4ca000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (41):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/17 10:51 linux-next 15e7d45e786a 666f77ed .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/21 00:47 linux-next 15e7d45e786a cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/21 00:46 linux-next 15e7d45e786a cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/20 21:24 linux-next 15e7d45e786a cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/20 21:22 linux-next 15e7d45e786a cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/20 13:34 linux-next 15e7d45e786a cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/20 13:34 linux-next 15e7d45e786a cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/19 02:59 linux-next 15e7d45e786a cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/19 02:59 linux-next 15e7d45e786a cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/19 02:43 linux-next 15e7d45e786a cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/19 02:41 linux-next 15e7d45e786a cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/19 01:28 linux-next 15e7d45e786a cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/19 01:28 linux-next 15e7d45e786a cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/18 09:30 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/18 09:29 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/18 09:26 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/18 09:26 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/18 07:24 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/18 07:24 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/17 14:34 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/17 14:34 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/17 08:04 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/17 08:03 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/17 03:56 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/17 03:47 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/17 03:46 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/17 03:36 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/17 03:11 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/17 02:35 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/17 02:32 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/17 02:13 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/17 00:47 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/17 00:46 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/16 21:44 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/16 21:44 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/16 21:31 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/16 21:31 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/16 19:35 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/16 19:34 linux-next 15e7d45e786a 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/16 08:04 linux-next 15e7d45e786a bde2d81c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
2024/10/16 08:04 linux-next 15e7d45e786a bde2d81c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in fuse_dev_do_write
* Struck through repros no longer work on HEAD.