syzbot


general protection fault in fuse_dev_do_write

Status: fixed on 2019/03/06 07:43
Reported-by: syzbot+c1e36d30ee3416289cc0@syzkaller.appspotmail.com
Fix commit: 97e1532ef81a fuse: handle zero sized retrieve correctly
First crash: 1408d, last: 1282d

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 7976 Comm: syz-executor856 Not tainted 5.0.0-rc2+ #30
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:fuse_retrieve fs/fuse/dev.c:1745 [inline]
RIP: 0010:fuse_notify_retrieve fs/fuse/dev.c:1807 [inline]
RIP: 0010:fuse_notify fs/fuse/dev.c:1840 [inline]
RIP: 0010:fuse_dev_do_write+0x1e44/0x3780 fs/fuse/dev.c:1919
Code: 00 48 c1 e0 2a 80 3c 02 00 0f 85 d5 18 00 00 49 8b 9f 58 01 00 00 b8 ff ff 37 00 48 c1 e0 2a 48 8d 7b 04 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 39
RSP: 0018:ffff88808b0276d8 EFLAGS: 00010247
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff828b9c2a
RDX: 0000000000000000 RSI: ffffffff828b9c3c RDI: 0000000000000004
RBP: ffff88808b027aa8 R08: ffff88808d2d4180 R09: ffffed101327617f
R10: ffffed101327617e R11: ffff8880993b0bf3 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000030 R15: ffff8880993b0bd0
FS:  00000000020c5880(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000455060 CR3: 00000000925d8000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 fuse_dev_write+0x191/0x240 fs/fuse/dev.c:2003
 call_write_iter include/linux/fs.h:1862 [inline]
 new_sync_write fs/read_write.c:474 [inline]
 __vfs_write+0x764/0xb40 fs/read_write.c:487
 vfs_write+0x20c/0x580 fs/read_write.c:549
 ksys_write+0x105/0x260 fs/read_write.c:598
 __do_sys_write fs/read_write.c:610 [inline]
 __se_sys_write fs/read_write.c:607 [inline]
 __x64_sys_write+0x73/0xb0 fs/read_write.c:607
 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x440279
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc8d535288 EFLAGS: 00000217 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440279
RDX: 0000000000000030 RSI: 0000000020000080 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8
R10: 00000000004002c8 R11: 0000000000000217 R12: 0000000000401b00
R13: 0000000000401b90 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace f0ac3e25ad2661db ]---
RIP: 0010:fuse_retrieve fs/fuse/dev.c:1745 [inline]
RIP: 0010:fuse_notify_retrieve fs/fuse/dev.c:1807 [inline]
RIP: 0010:fuse_notify fs/fuse/dev.c:1840 [inline]
RIP: 0010:fuse_dev_do_write+0x1e44/0x3780 fs/fuse/dev.c:1919
Code: 00 48 c1 e0 2a 80 3c 02 00 0f 85 d5 18 00 00 49 8b 9f 58 01 00 00 b8 ff ff 37 00 48 c1 e0 2a 48 8d 7b 04 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 39
RSP: 0018:ffff88808b0276d8 EFLAGS: 00010247
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff828b9c2a
RDX: 0000000000000000 RSI: ffffffff828b9c3c RDI: 0000000000000004
RBP: ffff88808b027aa8 R08: ffff88808d2d4180 R09: ffffed101327617f
R10: ffffed101327617e R11: ffff8880993b0bf3 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000030 R15: ffff8880993b0bd0
FS:  00000000020c5880(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000455060 CR3: 00000000925d8000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (134):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2019/01/17 22:57 upstream 7fbfee7c80de 769e75ed .config log report syz C
ci-upstream-kasan-gce-selinux-root 2019/01/17 21:10 upstream 7fbfee7c80de 769e75ed .config log report syz C
ci-upstream-kasan-gce 2019/01/17 21:10 upstream 7fbfee7c80de 769e75ed .config log report syz C
ci-upstream-kasan-gce-root 2019/01/17 21:09 upstream 7fbfee7c80de 769e75ed .config log report syz C
ci-upstream-kasan-gce-386 2019/01/17 23:01 upstream 7fbfee7c80de 769e75ed .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2018/10/02 11:42 linux-next 62f3d25900c9 e06f7713 .config log report syz C
ci-upstream-kasan-gce-root 2019/02/06 03:34 upstream 8834f5600cf3 d672172c .config log report
ci-upstream-kasan-gce-smack-root 2019/02/05 14:47 upstream 8834f5600cf3 d672172c .config log report
ci-upstream-kasan-gce-root 2019/02/04 22:44 upstream 8834f5600cf3 d672172c .config log report
ci-upstream-kasan-gce 2019/02/02 00:22 upstream 5eeb63359b1e 564f9a4f .config log report
ci-upstream-kasan-gce-selinux-root 2019/01/31 06:25 upstream 1c0490ce9022 aa432daf .config log report
ci-upstream-kasan-gce 2019/01/29 03:51 upstream 4aa9fc2a435a aa432daf .config log report
ci-upstream-kasan-gce 2019/01/23 07:03 upstream 787a3b432276 b1ff06b2 .config log report
ci-upstream-kasan-gce 2019/01/22 06:09 upstream 52e60b754438 badbbeee .config log report
ci-upstream-kasan-gce 2019/01/21 06:44 upstream 49a57857aeea fd37a550 .config log report
ci-upstream-kasan-gce-selinux-root 2019/01/21 05:19 upstream 6e693b3ffecb fd37a550 .config log report
ci-upstream-kasan-gce-selinux-root 2019/01/18 22:55 upstream d7393226d15a 2103a236 .config log report
ci-upstream-kasan-gce 2019/01/18 22:49 upstream d7393226d15a 2103a236 .config log report
ci-upstream-kasan-gce 2019/01/17 17:42 upstream 7fbfee7c80de 769e75ed .config log report
ci-upstream-kasan-gce-root 2019/01/17 17:41 upstream 7fbfee7c80de 769e75ed .config log report
ci-upstream-kasan-gce-selinux-root 2019/01/13 17:25 upstream e1706720408e c3f3344c .config log report
ci-upstream-kasan-gce-smack-root 2019/01/06 20:22 upstream b5aef86e089a 94f8adb5 .config log report
ci-upstream-kasan-gce 2019/01/06 09:48 upstream f1c2f8857c5a 53be0a37 .config log report
ci-upstream-kasan-gce-root 2019/01/01 08:56 upstream f12e840c819b 3d85f48c .config log report
ci-upstream-kasan-gce-root 2018/12/30 19:25 upstream 195303136f19 9942de5f .config log report
ci-upstream-kasan-gce-selinux-root 2018/12/27 03:57 upstream eed9688f8513 e747ec98 .config log report
ci-upstream-kasan-gce 2018/12/25 11:45 upstream 8fe28cb58bcb 8a41a0ad .config log report
ci-upstream-kasan-gce-smack-root 2018/12/25 03:43 upstream 8fe28cb58bcb 8a41a0ad .config log report
ci-upstream-kasan-gce 2018/12/23 12:00 upstream 9105b8aa50c1 e3bd7ab8 .config log report
ci-upstream-kasan-gce-root 2018/12/22 09:58 upstream 5092adb2272e 603b5124 .config log report
ci-upstream-kasan-gce 2018/12/20 23:56 upstream 1d51b4b1d3f2 aaf59e84 .config log report
ci-upstream-kasan-gce-selinux-root 2018/12/19 04:18 upstream ddfbab46539f 4edaba93 .config log report
ci-upstream-kasan-gce-selinux-root 2018/12/19 02:55 upstream ddfbab46539f 4edaba93 .config log report
ci-upstream-kasan-gce-selinux-root 2018/12/18 22:29 upstream ddfbab46539f 4edaba93 .config log report
ci-upstream-kasan-gce-root 2018/12/16 16:33 upstream 6531e115b7ab def91db3 .config log report
ci-upstream-kasan-gce-root 2018/12/15 01:48 upstream eb6cf9f8cb9d 7624ddd6 .config log report
ci-upstream-kasan-gce-smack-root 2018/12/14 05:51 upstream 65e08c5e8631 fe7127be .config log report
ci-upstream-kasan-gce-selinux-root 2018/12/13 08:16 upstream f5d582777bcb 02613a41 .config log report
ci-upstream-kasan-gce-selinux-root 2018/12/12 14:34 upstream f5d582777bcb c3b10a5d .config log report
ci-upstream-kasan-gce 2018/12/11 23:06 upstream f5d582777bcb 7795ae03 .config log report
ci-upstream-kasan-gce-selinux-root 2018/12/11 07:23 upstream f5d582777bcb 4093e33b .config log report
ci-upstream-kasan-gce-root 2018/12/09 09:19 upstream 8214bdf7d3e6 c7918378 .config log report
ci-upstream-kasan-gce 2018/12/06 15:32 upstream cf76c364a1e1 3ab38479 .config log report
ci-upstream-kasan-gce 2018/12/06 09:25 upstream d08970904582 764b42c4 .config log report
ci-upstream-kasan-gce-smack-root 2018/12/05 08:23 upstream 0072a0c14d5b f162ad97 .config log report
ci-upstream-kasan-gce-root 2018/12/03 12:52 upstream 2595646791c3 819002b0 .config log report
ci-upstream-kasan-gce-smack-root 2018/12/02 01:46 upstream d8f190ee836a 5a581673 .config log report
ci-upstream-kasan-gce-root 2018/12/01 12:16 upstream b6839ef26e54 d8988561 .config log report
ci-upstream-kasan-gce-386 2019/01/21 08:06 upstream 49a57857aeea fd37a550 .config log report
ci-upstream-kasan-gce-386 2019/01/03 07:02 upstream 85f78456f286 06a2b89f .config log report
ci-upstream-linux-next-kasan-gce-root 2018/12/09 05:54 linux-next 74c4a24df7ca c7918378 .config log report
ci-upstream-linux-next-kasan-gce-root 2018/12/04 21:49 linux-next 442b8cea2477 6ad0ae61 .config log report
ci-upstream-linux-next-kasan-gce-root 2018/12/03 02:06 linux-next 442b8cea2477 7dcaeaf3 .config log report
ci-upstream-linux-next-kasan-gce-root 2018/10/02 10:07 linux-next 62f3d25900c9 e06f7713 .config log report