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 12C2CCD1292 for ; Mon, 8 Apr 2024 09:19:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 80B066B0092; Mon, 8 Apr 2024 05:19:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7BB196B0093; Mon, 8 Apr 2024 05:19:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6A96B6B0095; Mon, 8 Apr 2024 05:19:30 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 47DF46B0092 for ; Mon, 8 Apr 2024 05:19:30 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id EDEE31C098E for ; Mon, 8 Apr 2024 09:19:29 +0000 (UTC) X-FDA: 81985816458.06.C385945 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf12.hostedemail.com (Postfix) with ESMTP id 48C2740011 for ; Mon, 8 Apr 2024 09:19:28 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Qbszd7Aj; spf=pass (imf12.hostedemail.com: domain of cem@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=cem@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1712567968; a=rsa-sha256; cv=none; b=yXHak4+7KGj06eeJd/gk4OMsISWRqmB1A9HoUKCfSGLLzD8wMakmYzGQY/AqM7t8uuGUPm fc6tkmxkfIX+ZRny7VKPIBIp9PeskivEFbTylvZpDaZ3aHaFSKprrt1GzVFKHoNwXUUXBW wwV1dGhqigdWcXWG4J+bf202pQbtFiQ= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Qbszd7Aj; spf=pass (imf12.hostedemail.com: domain of cem@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=cem@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1712567968; 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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=ItJB6zqp0a1PzidjdFiY+iYnH7Wgs5ryS1VEmll+TDA=; b=IA9Xi2KfoFahsG/iKGLtW/Ulj28xxoNIpThzButJrB5fKAdvTxP3j8ph0hoawL4jlXn8n7 c7VzWuDCHY2yqgpuMdxcJhD/9PH1v5Z10oHw0cVq+euBsAtRmoBvYZR8UAIEDnRLr/iuse xTQJV5AgJVA/6krzWupSGdc+nA7Deho= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 2E81F60F0D; Mon, 8 Apr 2024 09:19:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1119AC433C7; Mon, 8 Apr 2024 09:19:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712567966; bh=lM8w3tn5AAvQKCD7yYmQlWmfw+1oLvifWiwW0bJQ7Zw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Qbszd7AjYBdlafO7ZjZkGWxSifIDGZLkgYTyZaHKJE5D8J8olVWGFWqIgLOjyIoyc FReMbxW077bk4cIHG/1XIOJkycForZUSN8torcljMEgGfXPu1j9FHJqLmAMJB3txw/ LfyKlKITheQR/spI8FU3oNzVPHegEE0hxHSoGAGeMREz7I3AJv7g/QA4Rdn1HAh07w jDz8APqrVjwUKMRtDvT1p9YI9MWXwR0QTkSwmiuwpuUGriCRltsvzvB7w/mtL2Y6f0 9rXp+lyZra/HVWf6dqO7tvkosSUixhPejzSsmCBkwbvufDSGWNqtQCYEs+QH4U/d+6 3SWVRP3dN4v5Q== Date: Mon, 8 Apr 2024 11:19:21 +0200 From: Carlos Maiolino To: Andrew Morton Cc: syzbot , linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com, Christian Brauner Subject: Re: [syzbot] [mm?] general protection fault in shmem_get_next_id Message-ID: References: <000000000000a1ff78061517a148@google.com> <20240403183339.7a257066e79ac04a7d6e33fd@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240403183339.7a257066e79ac04a7d6e33fd@linux-foundation.org> X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 48C2740011 X-Stat-Signature: qwikrasuz8fz7mfhztwxwaosoqoer77b X-Rspam-User: X-HE-Tag: 1712567968-506748 X-HE-Meta: U2FsdGVkX1+l0enFM/KWxQH1nYUHkpD8vGLMUwbKjH8BZqQKsSnIhIX0K8MBxlX8+I56Y8IdgetxHP4LATOSQ7qNDzcEXMyyA85KvfJmtMNUwMC4tkeeLiEusiskLnTl6nbkgYSNOZ2sut5Dh93Zx+BFyVukBITrbXzRwFeS6ZL4SGcS6alpVfviMDmWuGxuAIronTPGS8d1QTteVAJYnv8zneaB/XuspU7fMjkIbqPHRJIh7TV/jh+RozYRLo9bk7SKIFIifDj5ylTjrMLxkCAisrJ0p2UVs/kLw5lfOpCa191qV1awTlg+keRNF86gj9XsrKXP6oMIDvl6pwxPKQ78Kwdq9y71QidYquy2ujlPjnbEEpuGuBSqGHhD3EGi1TuMuI6cuYXeoHKSYulYZfwx7qBH/irBztH6ldAWH2oT9/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2ES5DV3QRLBxphs7y6bKOAB2OsbLeBQmfW20qMPwFFFnAArld75LbPUeVZXliXYnzHJgc0WBj6hGLAJCwu35VyITCicoFZgN3Bp9mgdE7JLRFhO0/iZkO4gkOaOhMkuSIUCzMSniHjl5PYpbmSW8fjjWgSfJXNSrRaMa3PfRWgy4t6AmU99krcv/FblMTbWubxTkmxF/9rzJ2FTigAvRF4KidFOeWu1dm2prZUwp5ZMgt7eJh3JSfc/bH+ogVdNSwMR9Bp4H3JmLKzAYWayEm9U031TF1qgH/R2zQZZzPgis7BLXW8rlLN3W4OEMzKszKXDuqyLTxhVDHVmPiTHlMFG7iNsEst79Kd0LAqScV1SUU7u+6bjtJkJ/uG1hGbnjLc7nyK/sIhe7nuevOnnVdnL3AdrSwxZUNNcCd0e2jtsRMPma3RJymnYTm3j2TUby8fn9z1feeyJ21MTXKOhXgclxky17A+RLh sRcOVR1j ZD/BSxU8CnlaZy60/McFrA== 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: List-Subscribe: List-Unsubscribe: On Wed, Apr 03, 2024 at 06:33:39PM -0700, Andrew Morton wrote: > On Mon, 01 Apr 2024 23:58:20 -0700 syzbot wrote: > > > Hello, > > Hello. > > Seems that the new TMPFS_QUOTA code has blown up. Cc's added, thanks > for the report and the reproducer! Thanks Andrew, I'm adding it to my todo list, and will take a look on it ASAP. Carlos > > > syzbot found the following issue on: > > > > HEAD commit: fe46a7dd189e Merge tag 'sound-6.9-rc1' of git://git.kernel.. > > git tree: upstream > > console+strace: https://syzkaller.appspot.com/x/log.txt?x=10c90795180000 > > kernel config: https://syzkaller.appspot.com/x/.config?x=fe78468a74fdc3b7 > > dashboard link: https://syzkaller.appspot.com/bug?extid=05e63c0981a31f35f3fa > > compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17f51129180000 > > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=150d3cee180000 > > > > Downloadable assets: > > disk image: https://storage.googleapis.com/syzbot-assets/0f7abe4afac7/disk-fe46a7dd.raw.xz > > vmlinux: https://storage.googleapis.com/syzbot-assets/82598d09246c/vmlinux-fe46a7dd.xz > > kernel image: https://storage.googleapis.com/syzbot-assets/efa23788c875/bzImage-fe46a7dd.xz > > > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > > Reported-by: syzbot+05e63c0981a31f35f3fa@syzkaller.appspotmail.com > > > > general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN NOPTI > > KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] > > CPU: 0 PID: 5070 Comm: syz-executor253 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0 > > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 > > RIP: 0010:shmem_get_next_id+0x92/0x5c0 mm/shmem_quota.c:119 > > Code: 04 db 49 8d 9c c6 90 02 00 00 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 f8 66 1b 00 48 8b 1b 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 df 66 1b 00 4c 8b 23 48 8d 5d 07 > > RSP: 0018:ffffc900043a7be0 EFLAGS: 00010256 > > RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8880266c8000 > > RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000004 > > RBP: ffffc900043a7d00 R08: ffffffff81dcdd47 R09: ffffffff822e7d5a > > R10: 0000000000000003 R11: ffffffff81dcdcf0 R12: 1ffff92000874fa0 > > R13: ffff888022110000 R14: ffff888022110000 R15: dffffc0000000000 > > FS: 0000555578677380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 > > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > > CR2: 0000000020001000 CR3: 000000007a384000 CR4: 0000000000350ef0 > > Call Trace: > > > > dquot_get_next_dqblk+0x75/0x3a0 fs/quota/dquot.c:2705 > > quota_getnextquota+0x2c7/0x6c0 fs/quota/quota.c:250 > > __do_sys_quotactl_fd fs/quota/quota.c:1002 [inline] > > __se_sys_quotactl_fd+0x2a1/0x440 fs/quota/quota.c:973 > > do_syscall_64+0xfd/0x240 > > entry_SYSCALL_64_after_hwframe+0x6d/0x75 > > RIP: 0033:0x7f5c0349b329 > > Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 > > RSP: 002b:00007ffc39d71138 EFLAGS: 00000246 ORIG_RAX: 00000000000001bb > > RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f5c0349b329 > > RDX: 0000000000000000 RSI: ffffffff80000901 RDI: 0000000000000003 > > RBP: 00007f5c0350e610 R08: 0000000000000000 R09: 00007ffc39d71308 > > R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 > > R13: 00007ffc39d712f8 R14: 0000000000000001 R15: 0000000000000001 > > > > Modules linked in: > > ---[ end trace 0000000000000000 ]--- > > RIP: 0010:shmem_get_next_id+0x92/0x5c0 mm/shmem_quota.c:119 > > Code: 04 db 49 8d 9c c6 90 02 00 00 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 f8 66 1b 00 48 8b 1b 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 df 66 1b 00 4c 8b 23 48 8d 5d 07 > > RSP: 0018:ffffc900043a7be0 EFLAGS: 00010256 > > RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8880266c8000 > > RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000004 > > RBP: ffffc900043a7d00 R08: ffffffff81dcdd47 R09: ffffffff822e7d5a > > R10: 0000000000000003 R11: ffffffff81dcdcf0 R12: 1ffff92000874fa0 > > R13: ffff888022110000 R14: ffff888022110000 R15: dffffc0000000000 > > FS: 0000555578677380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 > > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > > CR2: 0000000020001000 CR3: 000000007a384000 CR4: 0000000000350ef0 > > ---------------- > > Code disassembly (best guess): > > 0: 04 db add $0xdb,%al > > 2: 49 8d 9c c6 90 02 00 lea 0x290(%r14,%rax,8),%rbx > > 9: 00 > > a: 48 89 d8 mov %rbx,%rax > > d: 48 c1 e8 03 shr $0x3,%rax > > 11: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) > > 16: 74 08 je 0x20 > > 18: 48 89 df mov %rbx,%rdi > > 1b: e8 f8 66 1b 00 call 0x1b6718 > > 20: 48 8b 1b mov (%rbx),%rbx > > 23: 48 89 d8 mov %rbx,%rax > > 26: 48 c1 e8 03 shr $0x3,%rax > > * 2a: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) <-- trapping instruction > > 2f: 74 08 je 0x39 > > 31: 48 89 df mov %rbx,%rdi > > 34: e8 df 66 1b 00 call 0x1b6718 > > 39: 4c 8b 23 mov (%rbx),%r12 > > 3c: 48 8d 5d 07 lea 0x7(%rbp),%rbx > > > > > > --- > > This report is generated by a bot. It may contain errors. > > See https://goo.gl/tpsmEJ for more information about syzbot. > > syzbot engineers can be reached at syzkaller@googlegroups.com. > > > > syzbot will keep track of this issue. See: > > https://goo.gl/tpsmEJ#status for how to communicate with syzbot. > > > > If the report is already addressed, let syzbot know by replying with: > > #syz fix: exact-commit-title > > > > If you want syzbot to run the reproducer, reply with: > > #syz test: git://repo/address.git branch-or-commit-hash > > If you attach or paste a git patch, syzbot will apply it before testing. > > > > If you want to overwrite report's subsystems, reply with: > > #syz set subsystems: new-subsystem > > (See the list of subsystem names on the web dashboard) > > > > If the report is a duplicate of another one, reply with: > > #syz dup: exact-subject-of-another-report > > > > If you want to undo deduplication, reply with: > > #syz undup