Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1208186imm; Tue, 2 Oct 2018 04:43:25 -0700 (PDT) X-Google-Smtp-Source: ACcGV611qyz0nTE08i5zXmR0WPGzxytvvRAt8SFeCpNbQvsctpQkJO9hRVWgwy+pyN3RpEP9gAfl X-Received: by 2002:a17:902:6f16:: with SMTP id w22-v6mr12165829plk.261.1538480605622; Tue, 02 Oct 2018 04:43:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538480605; cv=none; d=google.com; s=arc-20160816; b=i69DjKIW0b2SqOjfvkqddkfyKXGnWFZ9bF/zmv6RwWHmTqrlTz+ew22lEOl5R6VEyn BHH0AErmPtLQiiUxVF7bHL6uK9CkIWwufB+ZrhE8eBR8lZ0jAUKFeo9SjH/Hl4kmyCYE PYvy0WCKWgaeF0DEwdzBXrEUVisgbVhdizFHJkSv+1HCdOq2LSjk2PxomiZWcCavLHBm f6iVkvMinmfNegkiOxGVuQMRV71UIxi3oLNG6mLYhBKvIMjvp4RFHwcgdy6Kugfv6/57 dRL2HDqJk+RMI8jOUCqpT4UajN8UzWYGNy3eHfGVeFftawG5oXMo9AxoKJJyGKOaldpJ Qw1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:subject:message-id:in-reply-to :date:mime-version; bh=/4cfpHU4knTs/0mok5SL3tvjZlpcqUWNozsLj69OLbE=; b=M53gZ6XCMY6OhTa6nV9K/7mCAgHa4hMk/sRXTejBRullTo6uxormNrleZdI0rwbn+d Y561Rs12S+e92/2uQ33HJKwNtLygerHp7RULG/CGBumAOzAx/DoDHKNJEv2MfA+Zk4uF 9LB413BZCG3pD3T7nHJ3sNHajE3v5vZnxZJ8jJsempK0Rc9lEgXNmEUcZ/klpbrGxSH+ zI5xln2uYFDMyfLxU+wfUEqaasf6VSZ93tc3Us0rhip0yQ7LXk+Kf1MuH4ScmYitE5B6 uWPJhFn1vQimLuCjCsabTNHnHfJ5eGYncKW49pZu1kcfXI0Na+iHtkjGkkH0sUzNGchb qKaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11-v6si9376594pfl.233.2018.10.02.04.43.10; Tue, 02 Oct 2018 04:43:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727579AbeJBSZ5 (ORCPT + 99 others); Tue, 2 Oct 2018 14:25:57 -0400 Received: from mail-io1-f69.google.com ([209.85.166.69]:51923 "EHLO mail-io1-f69.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727485AbeJBSZ4 (ORCPT ); Tue, 2 Oct 2018 14:25:56 -0400 Received: by mail-io1-f69.google.com with SMTP id w23-v6so1998427iob.18 for ; Tue, 02 Oct 2018 04:43:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:in-reply-to:message-id:subject :from:to; bh=/4cfpHU4knTs/0mok5SL3tvjZlpcqUWNozsLj69OLbE=; b=BjSDTSLWP4tnXKnE2yqQRX7DuJO+IW4p4bFtQ87qSbphCMgJ8m5kBWtoEoWJ9iOIyk bEJJwJZufYh90Mgno36tmOkeGHJNhUx2edmPJJkbhH3Y4QUuRhcttxlOLeUOVjJ4rSHz UA9Ff5CUwT1Qpil9UYcpGh2O4r2FaoiMDa+siXryGaQZ5QVtHVkSvJP3JMsf43Cr2iE8 xOG2QRuEBagd1RgrFhe78AUXjzprtlFeU15HeN942XUo1Ga+olbXxvgK500xcafXulDz 9zUkUj26Uw9i71/pYgpI2KQobuP0QlCnRVqfNBX44VFq3csaxJ21pAK23Y4CGoENnIav TQ2w== X-Gm-Message-State: ABuFfogwA9C3AebykmYcnRPa0iq5Chz6EzrknYX/0Y0TM1t0OVa7P6gU 4U5mntHQ83Z30hJiSr61c5AK4Cm0e7yfujyNXUiga9KUUuWW MIME-Version: 1.0 X-Received: by 2002:a24:5495:: with SMTP id t143-v6mr1455457ita.34.1538480582961; Tue, 02 Oct 2018 04:43:02 -0700 (PDT) Date: Tue, 02 Oct 2018 04:43:02 -0700 In-Reply-To: <000000000000f7af8605773cc09f@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000a4360105773d6c8b@google.com> Subject: Re: general protection fault in fuse_dev_do_write From: syzbot To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, miklos@szeredi.hu, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org syzbot has found a reproducer for the following crash on: HEAD commit: 62f3d25900c9 Add linux-next specific files for 20181002 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=16e2a94e400000 kernel config: https://syzkaller.appspot.com/x/.config?x=77a6dfae97d4b496 dashboard link: https://syzkaller.appspot.com/bug?extid=c1e36d30ee3416289cc0 compiler: gcc (GCC) 8.0.1 20180413 (experimental) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10b46781400000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13a54b81400000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+c1e36d30ee3416289cc0@syzkaller.appspotmail.com 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: 6059 Comm: syz-executor343 Not tainted 4.19.0-rc6-next-20181002+ #85 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:fuse_retrieve fs/fuse/dev.c:1741 [inline] RIP: 0010:fuse_notify_retrieve fs/fuse/dev.c:1801 [inline] RIP: 0010:fuse_notify fs/fuse/dev.c:1834 [inline] RIP: 0010:fuse_dev_do_write+0x1dc2/0x3810 fs/fuse/dev.c:1913 Code: 00 48 c1 e0 2a 80 3c 02 00 0f 85 dc 17 00 00 49 8b 9d 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 82 RSP: 0018:ffff8801bb6ff4b8 EFLAGS: 00010247 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff8287fbc1 RDX: 0000000000000000 RSI: ffffffff8287fbd3 RDI: 0000000000000004 RBP: ffff8801bb6ffa50 R08: ffff8801bb5d4500 R09: ffffed003a915b7e R10: ffffed003a915b7e R11: ffff8801d48adbf3 R12: 0000000000000000 R13: ffff8801d48adbd0 R14: 0000000000000000 R15: 0000000000000030 FS: 0000000002337880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000455080 CR3: 00000001d3b53000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: fuse_dev_write+0x19a/0x240 fs/fuse/dev.c:1997 call_write_iter include/linux/fs.h:1844 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x6b8/0x9f0 fs/read_write.c:487 vfs_write+0x1fc/0x560 fs/read_write.c:549 ksys_write+0x101/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+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x440299 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:00007ffef8f938a8 EFLAGS: 00000213 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440299 RDX: 0000000000000030 RSI: 0000000020000080 RDI: 0000000000000003 RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8 R10: 00000000004002c8 R11: 0000000000000213 R12: 0000000000401b20 R13: 0000000000401bb0 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 6ca075609cbc5a19 ]--- RIP: 0010:fuse_retrieve fs/fuse/dev.c:1741 [inline] RIP: 0010:fuse_notify_retrieve fs/fuse/dev.c:1801 [inline] RIP: 0010:fuse_notify fs/fuse/dev.c:1834 [inline] RIP: 0010:fuse_dev_do_write+0x1dc2/0x3810 fs/fuse/dev.c:1913 Code: 00 48 c1 e0 2a 80 3c 02 00 0f 85 dc 17 00 00 49 8b 9d 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 82 RSP: 0018:ffff8801bb6ff4b8 EFLAGS: 00010247 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff8287fbc1 RDX: 0000000000000000 RSI: ffffffff8287fbd3 RDI: 0000000000000004 RBP: ffff8801bb6ffa50 R08: ffff8801bb5d4500 R09: ffffed003a915b7e R10: ffffed003a915b7e R11: ffff8801d48adbf3 R12: 0000000000000000 R13: ffff8801d48adbd0 R14: 0000000000000000 R15: 0000000000000030 FS: 0000000002337880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000455080 CR3: 00000001d3b53000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400