Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3532680imm; Sun, 13 May 2018 13:41:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoRX+aSiJnEhX/7xGU7ria8YQJ1FljEpjAMfBwnRdw4w87XyVlnakUK0CBkqaZsw6+3+bCh X-Received: by 2002:a63:7405:: with SMTP id p5-v6mr6096750pgc.289.1526244101535; Sun, 13 May 2018 13:41:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526244101; cv=none; d=google.com; s=arc-20160816; b=HI++hs9wzlXvdRmg3xJgWdunbrgsKQki5ugbL7bUJ9UKtiCInVes+1BeMIrjw58Pih kEPVfwk0oMSskg4rO+vy52lIJ3BAKGKI2YVdxx5gtFjGkTs8rJWFYKgGqeNE+myyEoe1 tJpqG/HH96v0+9H1nn2a5dUfOE+nDI9Q/InaT0r3BpnMDL8NymzCcsvnJ1GrUWj8QLZ6 UI94o1JJpg7ojtwIJgciJqeMAGWcSBZZH2wv56fePBf9hrRqltgFt/Mp7Lxo6SBHRRPd IkappOWWGAHh6MoFTGHWbi0CO//y8b1AS8Cp32zC3RR1rJQD9az5VgXE5UXpXA0DVBMY Xk4Q== 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=vQ2XLbbIJWLd5vVeGuXkwioWm2hDFStxPJbklm8f9eA=; b=0Hi9FM1UqTEZSR+fXk2RSmykgO8LlPPjLyUvYRvjZLdKjqxAFD3EBlPlPIUi1ctoOQ oom/JBwVchyiiTQubq0Lu3KtmHzwNQM76IrL2u+MCYsTJR5yzAsqiD6FVLsjKJSrDBQb /Zg6lzllmTAi0raTdfYWQ/7L4oYLDU/k+7gNSes9lgZClULhNyPWhVw89dT5fY25VIcO nG7ih7euQI8nxpmQ07hZG1qXQafrDHgERbv3EN+qP7UQKD82Nr/sS64Iq8L+MgrGRZuE TsB7rUuwgJyDmAeusKWRwo3ZHTuvWaHd/LX8FCtmjut+RsfhqCavdftYfVh5W6+rzxFo zyMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kafBoGL1; 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=QUARANTINE 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 r8-v6si7825117pli.119.2018.05.13.13.41.25; Sun, 13 May 2018 13:41:41 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kafBoGL1; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751774AbeEMUlQ (ORCPT + 99 others); Sun, 13 May 2018 16:41:16 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:35890 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751295AbeEMUlO (ORCPT ); Sun, 13 May 2018 16:41:14 -0400 Received: by mail-pf0-f176.google.com with SMTP id w129-v6so5023644pfd.3 for ; Sun, 13 May 2018 13:41:14 -0700 (PDT) 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=vQ2XLbbIJWLd5vVeGuXkwioWm2hDFStxPJbklm8f9eA=; b=kafBoGL1NUtn20IvyCBwwWojAlHC28UL3/MhtXxRaBmtFxMJq7l7bseqtO1T2yYWfq MWTtUiARov6jnI3zdI++xphO1Dgi2SbKzlX9MGJPG4JELftum0ay1WF9chHj05o8d9vI BSUIah44+tevtvHwujiyVeIySlf0WNFyUmtUti/F/AIWP0tXBuc5Tvflue3O1SZcwLFI YGLm1FU3Oc1doZyCTmt6xc3vXsaY3j9qrzDUqtlFkVKR0rcMfY0oPtQ0nlvjsr/2h0uz v9F1BE0w/nYxBN7W+quDv24UiqlhxwW73mwkntAkAlC2xx88ZhLtZVgAfF7qALpHF1hv Ty3w== 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=vQ2XLbbIJWLd5vVeGuXkwioWm2hDFStxPJbklm8f9eA=; b=ZQSlKLtznY6p1QuBCERj6KBsUjF8s57PVNiPRUkq9B5UHmY3To6p5Fr/OLbG8h1WEQ FLaclLxO0uF/apQzx05ookVWQ6VfAT2KwbYoLDQatH8FnK1V4UF9CesiHhdKc1D21I77 BiLEh1DhHlcGewgTVdMJQErgwYjGjfMYzu/8ytFqxfF8NisAVyx7P2tLTC7Gg1H7btuH y39vI6sHs3dyc0J7TwORGd+4y/7YVoyn6l+rnmcfDogf9c3nAn2s7NRZtpml+nzmXmFQ in311orgPjuudvwKi2hRSAumDuV6mVYSlWxBCLjPMFxQhZnOZ1x+WctCR1EPx+01IycQ p6kQ== X-Gm-Message-State: ALKqPwdqeqzLs9FDkVQmUEXvLoAHzITFrbIOCTEXcZ4hRPmL/6VF16RR lYqTAjuHHboG2XoGtPp8ViG6MmrHKqM= X-Received: by 2002:a62:679a:: with SMTP id t26-v6mr7748367pfj.24.1526244074055; Sun, 13 May 2018 13:41:14 -0700 (PDT) Received: from sol.localdomain (c-67-185-97-198.hsd1.wa.comcast.net. [67.185.97.198]) by smtp.gmail.com with ESMTPSA id 29-v6sm15753382pfj.14.2018.05.13.13.41.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 13 May 2018 13:41:13 -0700 (PDT) Date: Sun, 13 May 2018 13:43:20 -0700 From: Eric Biggers To: syzbot Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, perex@perex.cz, syzkaller-bugs@googlegroups.com, tiwai@suse.com Subject: Re: BUG: unable to handle kernel paging request in memset_erms (2) Message-ID: <20180513204320.GD677@sol.localdomain> References: <001a114099b0994a5e0563282c1c@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001a114099b0994a5e0563282c1c@google.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 19, 2018 at 01:58:01PM -0800, syzbot wrote: > Hello, > > syzbot hit the following crash on mmots commit > 2164355612187e55e8d60a28d2cc6b2337841a7e (Fri Jan 19 01:07:54 2018 +0000) > pci: test for unexpectedly disabled bridges > > So far this crash happened 2 times on mmots. > C reproducer is attached. > syzkaller reproducer is attached. > Raw console output is attached. > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached. > > IMPORTANT: if you fix the bug, please add the following tag to the commit: > Reported-by: syzbot+29f08ad5cb6820798dfe@syzkaller.appspotmail.com > It will help syzbot understand when the bug is fixed. See footer for > details. > If you forward the report, please keep this part and the footer. > > BUG: unable to handle kernel paging request at ffffc90001691000 > IP: memset_erms+0x9/0x10 arch/x86/lib/memset_64.S:65 > PGD 1dad2c067 P4D 1dad2c067 PUD 1dad2d067 PMD 1c6a8f067 PTE 0 > Oops: 0002 [#1] SMP KASAN > Dumping ftrace buffer: > (ftrace buffer empty) > Modules linked in: > CPU: 1 PID: 5739 Comm: syzkaller592073 Not tainted 4.15.0-rc8-mm1+ #57 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS > Google 01/01/2011 > RIP: 0010:memset_erms+0x9/0x10 arch/x86/lib/memset_64.S:65 > RSP: 0018:ffff8801cbbdfb78 EFLAGS: 00010246 > RAX: fffff520002d3f00 RBX: ffffc90001691000 RCX: 000000000000ee51 > RDX: 000000000000ee51 RSI: 0000000000000000 RDI: ffffc90001691000 > RBP: ffff8801cbbdfb98 R08: fffff520002d3fcb R09: ffffc90001691000 > R10: 0000000000001dcb R11: fffff520002d3fca R12: 000000000000ee51 > R13: 0000000000000000 R14: 00007ffffffff000 R15: 000000002001be51 > FS: 00007f88ae7d7700(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: ffffc90001691000 CR3: 00000001ccefa005 CR4: 00000000001606e0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > Call Trace: > memset include/linux/string.h:329 [inline] > _copy_from_user+0xe9/0x110 lib/usercopy.c:16 > copy_from_user include/linux/uaccess.h:147 [inline] > snd_pcm_oss_write1 sound/core/oss/pcm_oss.c:1347 [inline] > snd_pcm_oss_write+0x438/0x880 sound/core/oss/pcm_oss.c:2659 > __vfs_write+0xef/0x970 fs/read_write.c:480 > vfs_write+0x189/0x510 fs/read_write.c:544 > SYSC_write fs/read_write.c:589 [inline] > SyS_write+0xef/0x220 fs/read_write.c:581 > entry_SYSCALL_64_fastpath+0x29/0xa0 > RIP: 0033:0x44a559 > RSP: 002b:00007f88ae7d6da8 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 > RAX: ffffffffffffffda RBX: 00000000006dcc24 RCX: 000000000044a559 > RDX: 000000000000fe51 RSI: 000000002000c000 RDI: 0000000000000003 > RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 > R10: 0000000000000000 R11: 0000000000000293 R12: 00000000006dcc20 > R13: 7073642f7665642f R14: 00800000c0045006 R15: 0000000000000001 > Code: 48 c1 e9 03 40 0f b6 f6 48 b8 01 01 01 01 01 01 01 01 48 0f af c6 f3 > 48 ab 89 d1 f3 aa 4c 89 c8 c3 90 49 89 f9 40 88 f0 48 89 d1 aa 4c 89 c8 > c3 90 49 89 fa 40 0f b6 ce 48 b8 01 01 01 01 01 > RIP: memset_erms+0x9/0x10 arch/x86/lib/memset_64.S:65 RSP: ffff8801cbbdfb78 > CR2: ffffc90001691000 > ---[ end trace 8f421641f3e10f44 ]--- > 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. > > syzbot will keep track of this bug report. > If you forgot to add the Reported-by tag, once the fix for this bug is > merged > into any tree, please reply to this email with: > #syz fix: exact-commit-title The reproducer is unreliable, but this is another one that seems to have been fixed by commit 02a5d6925cd34: #syz fix: ALSA: pcm: Avoid potential races between OSS ioctls and read/write The reproducer is opening /dev/dsp1, then concurrently doing write() and ioctl(SNDCTL_DSP_CHANNELS). - Eric