From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5A85EC00140 for ; Mon, 8 Aug 2022 22:32:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C18AD6B0071; Mon, 8 Aug 2022 18:32:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BC8686B0072; Mon, 8 Aug 2022 18:32:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A67F08E0001; Mon, 8 Aug 2022 18:32:49 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 94F176B0071 for ; Mon, 8 Aug 2022 18:32:49 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 621F0A9710 for ; Mon, 8 Aug 2022 22:32:49 +0000 (UTC) X-FDA: 79777876458.01.0E2108F Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf24.hostedemail.com (Postfix) with ESMTP id DA05818005E for ; Mon, 8 Aug 2022 22:32:46 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id F10B460F1F; Mon, 8 Aug 2022 22:32:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F61FC433C1; Mon, 8 Aug 2022 22:32:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1659997965; bh=tT2nHk8kie8KrVXBrb9W4wk2Eht/0qrzqXMKsz1P64U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=hArJTpZvNAkIDG5YEDcYvXpCW3ecJsIPoOtJ3nCsDaWCogROdd1rVILS6BcD66VEN 23RdCmeMDLvVn89BYx7Y0guSWphgFtMg4S4t1M5HIDeys1/aLBCnLGHhL72ddvKpDQ sdjOmLXvQIVKw429FVW/GsYKKr1SBT2Fgxybp7EY= Date: Mon, 8 Aug 2022 15:32:43 -0700 From: Andrew Morton To: syzbot Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com, Ondrej Mosnacek , "Liam R. Howlett" , Minchan Kim , "Christian Brauner (Microsoft)" , Greg Kroah-Hartman , Hridya Valsaraju , Joel Fernandes , Martijn Coenen , Suren Baghdasaryan , Todd Kjos , "Matthew Wilcox (Oracle)" , Arve =?ISO-8859-1?Q?Hj=F8nnev=E5g?= , Carlos Llamas Subject: Re: [syzbot] WARNING in find_vma Message-Id: <20220808153243.6a80c73ce4f14c50efef086f@linux-foundation.org> In-Reply-To: <0000000000007cda2705e5bfe389@google.com> References: <00000000000085cb1705e5b5d9f6@google.com> <0000000000007cda2705e5bfe389@google.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=hArJTpZv; spf=pass (imf24.hostedemail.com: domain of akpm@linux-foundation.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1659997967; a=rsa-sha256; cv=none; b=Ar8wm6gzvPigt3GhLwWHnvSrTBtArvapyS3zmuiIOvAosdqK8h/mWsJ3cKxDM6ET2HFIS2 6cHci1ZgXX1exiAOrMB6n4s6UdtweZN99nwd+fHIJm09TyqLHAis7BvttvHTdcrQnmUXS3 X8MPN9rSbrSlWQ0/rI/2ehJCh95hRhk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1659997967; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=zcZMc9oZSGvTUzFyzCX2k/HyKX/hThZQTqSIW5Kg3nE=; b=r7TEOZOFAgpePMsjOA0KTvtXBdSHPM/lyxTmUoVf9jyWis0s2e+SCjl5MNhaZ/j0TTHcwP gsYxBL9E+WURe4BW37nJNmwtswlrD5lGFfyryH31e/PJRfxzE8nH6xdAw6Cc5Qk8J8ecUR FP2ulF0Uki/99UzLeeDbiqY52ha9Ggw= X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: DA05818005E X-Rspam-User: Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=hArJTpZv; spf=pass (imf24.hostedemail.com: domain of akpm@linux-foundation.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-Stat-Signature: ozycapaan4i1mnaik61szz8ppo6mfor9 X-HE-Tag: 1659997966-591498 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: (cc people from the thread "Binder regression caused by commit a43cfc87caaf") On Mon, 08 Aug 2022 12:33:21 -0700 syzbot wrote: > syzbot has found a reproducer for the following issue on: > > HEAD commit: ca688bff68bc Add linux-next specific files for 20220808 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=14807dfa080000 > kernel config: https://syzkaller.appspot.com/x/.config?x=4c20e006003cdecb > dashboard link: https://syzkaller.appspot.com/bug?extid=a7b60a176ec13cafb793 > compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12999232080000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15452c12080000 > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+a7b60a176ec13cafb793@syzkaller.appspotmail.com > > binder: 7796:7797 ioctl c0306201 20001480 returned -14 > ------------[ cut here ]------------ > WARNING: CPU: 1 PID: 7797 at include/linux/mmap_lock.h:155 mmap_assert_locked include/linux/mmap_lock.h:155 [inline] > WARNING: CPU: 1 PID: 7797 at include/linux/mmap_lock.h:155 find_vma+0xf8/0x270 mm/mmap.c:2255 > Modules linked in: > CPU: 1 PID: 7797 Comm: syz-executor269 Not tainted 5.19.0-next-20220808-syzkaller #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 > RIP: 0010:mmap_assert_locked include/linux/mmap_lock.h:155 [inline] > RIP: 0010:find_vma+0xf8/0x270 mm/mmap.c:2255 > Code: 49 8d bc 24 28 01 00 00 be ff ff ff ff e8 40 2e c8 07 31 ff 89 c3 89 c6 e8 85 e2 c4 ff 85 db 0f 85 61 ff ff ff e8 b8 e5 c4 ff <0f> 0b e9 55 ff ff ff e8 ac e5 c4 ff 4c 89 e7 e8 54 38 fb ff 0f 0b > RSP: 0018:ffffc9000cee7530 EFLAGS: 00010293 > RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 > RDX: ffff88807c278000 RSI: ffffffff81b72058 RDI: 0000000000000005 > RBP: 0000000020ffc000 R08: 0000000000000005 R09: 0000000000000000 > R10: 0000000000000000 R11: 0000000000000000 R12: ffff88807dda3100 > R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000000 > FS: 00007f5fdf1fb700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 0000000000000000 CR3: 000000007d391000 CR4: 00000000003506f0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > Call Trace: > > vma_lookup include/linux/mm.h:2743 [inline] > binder_alloc_get_vma drivers/android/binder_alloc.c:340 [inline] > binder_alloc_new_buf_locked drivers/android/binder_alloc.c:405 [inline] > binder_alloc_new_buf+0xd6/0x18b0 drivers/android/binder_alloc.c:590 > binder_transaction+0x242e/0x9a80 drivers/android/binder.c:3187 > binder_thread_write+0x8a9/0x3220 drivers/android/binder.c:3963 > binder_ioctl_write_read drivers/android/binder.c:5024 [inline] > binder_ioctl+0x3470/0x6d00 drivers/android/binder.c:5311 > vfs_ioctl fs/ioctl.c:51 [inline] > __do_sys_ioctl fs/ioctl.c:870 [inline] > __se_sys_ioctl fs/ioctl.c:856 [inline] > __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856 > do_syscall_x64 arch/x86/entry/common.c:50 [inline] > do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 > entry_SYSCALL_64_after_hwframe+0x63/0xcd > RIP: 0033:0x7f5fdf24ae19 > Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 15 00 00 90 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 > RSP: 002b:00007f5fdf1fb318 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 > RAX: ffffffffffffffda RBX: 00007f5fdf2d34e8 RCX: 00007f5fdf24ae19 > RDX: 0000000020000680 RSI: 00000000c0306201 RDI: 0000000000000003 > RBP: 00007f5fdf2d34e0 R08: 0000000000000000 R09: 0000000000000000 > R10: 0000000000000000 R11: 0000000000000246 R12: 00007f5fdf2a02c0 > R13: 00007ffc598955af R14: 00007f5fdf1fb400 R15: 0000000000022000 >