Received: by 10.223.176.5 with SMTP id f5csp728864wra; Tue, 30 Jan 2018 18:37:18 -0800 (PST) X-Google-Smtp-Source: AH8x225hHnLi/Mbo+svtehyezQiHO8asQMoQI1FkzUECgJkkkHXIOXQvWuEKK88alnwKH+VbLF29 X-Received: by 10.101.81.68 with SMTP id g4mr24269352pgq.276.1517366237981; Tue, 30 Jan 2018 18:37:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517366237; cv=none; d=google.com; s=arc-20160816; b=aU4E25PnNEVkmsk5y/C4/zebxEBHOgdaZwbJ2H/+KOmHLZWvfDMXr1xPLRBNmS5F9f 3LFK5yJw0e1kw8vSVFgvgONJkgwoUu8nBB1TH4D1IN1lElkcaeEK3czLxGCvDD5mawNQ ej+RBrxV7ZGbr7cMVxWbqfmK7M091j9ty25J50lV4NHYoqZhJRFmpPLBKrHg1VDCIMTl VwhLOPQiGewqIf0I0B4MsTi9CbBlpd98YIJKjc/J95eCbOKTTv717QXUAMtKgpZVJmEq BK0S20uJAwpBW8cLuA+U5aux0/0b8kpiQTcqREvuLf6zGTx1q0zD5Pc6h7iOrZPltNgO 0Qjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=+wRO4mmY9OIwBbc9nVD7ITdIb6uWswcDRJ0rtlVo8wU=; b=BA+qk4rQc3SvhOh5fLdYsQOp5tNOmTWc1L3wQUbGpT6QyzD5e4y8eeoGcXx3oIIQOT seEct0/LILGSEQ5vWbCl398FbAJFNPh4GoFom9Gv7JV4qkggcEsF8fQieOqv8UOOK2Vt EqhOJDT2VRQSCkKtEPw7iglGjfknmlofBLkr9vE+2haw+3KZ/0EpPFUCaKaSWkOl85nq WbBfWn2RFr5wM/s6Hs/aGoI0sFq0IkQPRRHXDi6T3b/ZTva8TNLWXe8tHnmwnxhngwQE LB+jnD6bFR9KrToPpO9/67VlVj7avX5v2FOm6P4qMQGN7CcGWewiwU2r9dHpSXwY6+VA 6szg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EJleKNAC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a11si10321562pgd.549.2018.01.30.18.36.44; Tue, 30 Jan 2018 18:37:17 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EJleKNAC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752061AbeAaBb3 (ORCPT + 99 others); Tue, 30 Jan 2018 20:31:29 -0500 Received: from mail-io0-f171.google.com ([209.85.223.171]:43257 "EHLO mail-io0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751899AbeAaBb1 (ORCPT ); Tue, 30 Jan 2018 20:31:27 -0500 Received: by mail-io0-f171.google.com with SMTP id 72so13581436iom.10; Tue, 30 Jan 2018 17:31:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=+wRO4mmY9OIwBbc9nVD7ITdIb6uWswcDRJ0rtlVo8wU=; b=EJleKNACk2EVBwiZ1LmyiS0xRFjYLtMf9UJL8L90L1AcFjyQ4YIuow7JMMdwPldUel iqPtqsl5Z/UI53EvwPelL9IEk/AdC8fZQpQvlE13mgZq5ppbfVoSAbpxy3m3s2rW2GQ/ 75oCT7mFuPsK1HQhDJppQzofKqBH8shTM58QdfpAusJeNvVP7uQxqi6ah67C5bLq/QTs x5zCYYgOvVWVA7OfgGXEMXBhI60nub1Wg64kC2KQxUP5JcpNHkJd36GWEgNeDkTkegNc yshKObSZyhaS1Z72bRrO4N7CnAeqISl/Jb5pZCFIGg44oPVhwOa84InFgBlhc1rhWbeZ yYgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=+wRO4mmY9OIwBbc9nVD7ITdIb6uWswcDRJ0rtlVo8wU=; b=LEiL24RhUeVH3SXwowqzi5j3S20CphF3qjzItnfqAp+K9h2AdSa5DaUUXE0c/GQdS5 2REFjOs8WUEHPprb158EDnr2YvEHgRw3RbUOGCjulAlMbrHQWYBK8Oz/trMnJW7zphpl xoB3NvLAVdDfeMFEr049DkC3lluU6hT2RWB0dSuk5GsO1ftsbnqG6hXP2oSM29nxTLZe X6T4ImQrzEXXHWlmGNdGX/B4dDAjiorAHit8LMG5sUeRQurbf1ex9Tt5y045LgLx9XAy DO82g5WDeZSQWwys3tUt+zDkNx9pRW0Ch/gAADqpVSC/YAdtQt+9k5mLrdyNQ+G1HMoo HukA== X-Gm-Message-State: AKwxytd2M5igcAiZj7XDFUU7iuN4r39XbeJkaQTV+Ci4qeG7qu+8/6BL JoIpx1LsaaFxNualkqLwMq3E8a5eQWQ= X-Received: by 10.107.136.86 with SMTP id k83mr31050560iod.128.1517362286722; Tue, 30 Jan 2018 17:31:26 -0800 (PST) Received: from gmail.com ([2620:15c:17:3:dc28:5c82:b905:e8a8]) by smtp.gmail.com with ESMTPSA id u32sm6721688ioi.29.2018.01.30.17.31.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 30 Jan 2018 17:31:26 -0800 (PST) Date: Tue, 30 Jan 2018 17:31:24 -0800 From: Eric Biggers To: syzbot Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, viro@zeniv.linux.org.uk Subject: Re: kernel BUG at fs/userfaultfd.c:LINE! Message-ID: <20180131013124.obz3tgo3to4qxgsg@gmail.com> References: <001a113a6870f5fed40560f49d0a@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001a113a6870f5fed40560f49d0a@google.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 22, 2017 at 01:37:01PM -0800, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 6084b576dca2e898f5c101baef151f7bfdbb606d > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console output is attached. > C reproducer is attached > syzkaller reproducer is attached. See https://goo.gl/kgGztJ > for information about syzkaller reproducers > > > ------------[ cut here ]------------ > kernel BUG at fs/userfaultfd.c:142! > invalid opcode: 0000 [#1] SMP > Dumping ftrace buffer: > (ftrace buffer empty) > Modules linked in: > CPU: 0 PID: 3118 Comm: syzkaller879466 Not tainted 4.15.0-rc3-next-20171214+ > #67 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS > Google 01/01/2011 > RIP: 0010:userfaultfd_ctx_get+0x6d/0x70 fs/userfaultfd.c:142 > RSP: 0000:ffffc900012f7c30 EFLAGS: 00010293 > RAX: ffff8802134420c0 RBX: 0000000000000000 RCX: ffffffff8147a98d > RDX: 0000000000000000 RSI: 0000000000000200 RDI: ffff880213659c40 > RBP: ffffc900012f7c48 R08: 0000000000000000 R09: 0000000000000004 > R10: ffffc900012f7cc0 R11: 0000000000000004 R12: ffff880213659c40 > R13: ffff880214ed6000 R14: 0000000000000200 R15: 0000000000000000 > FS: 00007fdf76164700(0000) GS:ffff88021fc00000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 0000000020687000 CR3: 0000000211d48006 CR4: 00000000001606f0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > Call Trace: > handle_userfault+0xd3/0xa00 fs/userfaultfd.c:445 > do_huge_pmd_anonymous_page+0x571/0x850 mm/huge_memory.c:707 > create_huge_pmd mm/memory.c:3838 [inline] > __handle_mm_fault+0xc37/0x1930 mm/memory.c:4042 > handle_mm_fault+0x215/0x450 mm/memory.c:4108 > __do_page_fault+0x337/0x6b0 arch/x86/mm/fault.c:1429 > do_page_fault+0x52/0x330 arch/x86/mm/fault.c:1504 > page_fault+0x4c/0x60 arch/x86/entry/entry_64.S:1243 > RIP: 0033:0x4453e5 > RSP: 002b:0000000020687000 EFLAGS: 00010217 > RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00000000004453d9 > RDX: 0000000020b4c000 RSI: 0000000020687000 RDI: 0000000000000600 > RBP: 0000000000000000 R08: 00000000207a4f71 R09: 00007fdf76164700 > R10: 0000000020552ffc R11: 0000000000000202 R12: 0000000000000000 > R13: 00007ffc6b2b2c2f R14: 00007fdf761649c0 R15: 0000000000000000 > Code: 5b 41 5c 41 5d 5d c3 e8 d2 f9 e3 ff 85 db 74 16 e8 c9 f9 e3 ff 8d 53 > 01 89 d8 f0 41 0f b1 55 00 89 c3 74 d7 eb e1 e8 b3 f9 e3 ff <0f> 0b 90 55 48 > 89 e5 53 48 89 fb e8 a3 f9 e3 ff 48 83 3d 73 bb > RIP: userfaultfd_ctx_get+0x6d/0x70 fs/userfaultfd.c:142 RSP: > ffffc900012f7c30 > ---[ end trace c25da3c687899c5a ]--- > Kernel panic - not syncing: Fatal exception > Dumping ftrace buffer: > (ftrace buffer empty) > Kernel Offset: disabled > Rebooting in 86400 seconds.. > > > --- > This bug is generated by a dumb bot. It may contain errors. > See https://goo.gl/tpsmEJ for details. > Direct all questions to syzkaller@googlegroups.com. > Please credit me with: Reported-by: syzbot > > syzbot will keep track of this bug report. > Once a fix for this bug is merged into any tree, reply to this email with: > #syz fix: exact-commit-title This crash is no longer occurring, presumably was fixed by the following commit so telling syzbot: #syz fix: userfaultfd: clear the vma->vm_userfaultfd_ctx if UFFD_EVENT_FORK fails