syzbot


KASAN: null-ptr-deref Read in fuse_copy_args

Status: upstream: reported on 2024/12/02 01:05
Subsystems: fuse
[Documentation on labels]
Reported-by: syzbot+63ba511937b4080e2ff3@syzkaller.appspotmail.com
First crash: 23d, last: 8d14h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [fuse?] KASAN: null-ptr-deref Read in fuse_copy_args 0 (1) 2024/12/02 01:05

Sample crash report:
==================================================================
BUG: KASAN: null-ptr-deref in fuse_copy_one fs/fuse/dev.c:1065 [inline]
BUG: KASAN: null-ptr-deref in fuse_copy_args+0x2d8/0x9c0 fs/fuse/dev.c:1083
Read of size 16 at addr 0000000000000000 by task syz.8.2115/13524

CPU: 0 UID: 0 PID: 13524 Comm: syz.8.2115 Not tainted 6.13.0-rc1-syzkaller-00316-gb5f217084ab3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
 print_report+0xe8/0x550 mm/kasan/report.c:492
 kasan_report+0x143/0x180 mm/kasan/report.c:602
 kasan_check_range+0x282/0x290 mm/kasan/generic.c:189
 __asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105
 fuse_copy_one fs/fuse/dev.c:1065 [inline]
 fuse_copy_args+0x2d8/0x9c0 fs/fuse/dev.c:1083
 fuse_dev_do_read+0xcbd/0x11e0 fs/fuse/dev.c:1357
 fuse_dev_read+0x170/0x220 fs/fuse/dev.c:1424
 new_sync_read fs/read_write.c:484 [inline]
 vfs_read+0x991/0xb70 fs/read_write.c:565
 ksys_read+0x18f/0x2b0 fs/read_write.c:708
 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:0x7f9341d7e8ec
Code: ec 28 48 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 99 93 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 31 c0 0f 05 <48> 3d 00 f0 ff ff 77 34 44 89 c7 48 89 44 24 08 e8 ef 93 02 00 48
RSP: 002b:00007f9342c6efd0 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 0000000020002100 RCX: 00007f9341d7e8ec
RDX: 0000000000002000 RSI: 0000000020002100 RDI: 0000000000000005
RBP: 00007f9341df3cc8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000246 R12: 0000000000000005
R13: 0000000020000c80 R14: 00007f9341f45fa0 R15: 00007ffc99a31c58
 </TASK>
==================================================================

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/07 14:37 upstream b5f217084ab3 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: null-ptr-deref Read in fuse_copy_args
2024/12/03 17:28 upstream cdd30ebb1b9f 578925bc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: null-ptr-deref Read in fuse_copy_args
2024/12/01 20:24 upstream bcc8eda6d349 68914665 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: null-ptr-deref Read in fuse_copy_args
2024/11/28 18:19 upstream b86545e02e8c 5df23865 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: null-ptr-deref Read in fuse_copy_args
2024/11/28 00:56 upstream aaf20f870da0 5df23865 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: null-ptr-deref Read in fuse_copy_args
2024/11/30 01:14 upstream 509f806f7f70 68914665 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 KASAN: null-ptr-deref Read in fuse_copy_args
2024/11/28 14:23 linux-next f486c8aa16b8 5df23865 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: null-ptr-deref Read in fuse_copy_args
2024/11/28 08:19 linux-next f486c8aa16b8 5df23865 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: null-ptr-deref Read in fuse_copy_args
2024/12/12 23:14 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2e7aff49b5da 941924eb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: null-ptr-deref Read in fuse_copy_args
* Struck through repros no longer work on HEAD.