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 90163C433F5 for ; Tue, 1 Mar 2022 17:31:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E15E98D0002; Tue, 1 Mar 2022 12:31:04 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D9E808D0001; Tue, 1 Mar 2022 12:31:04 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C17988D0002; Tue, 1 Mar 2022 12:31:04 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0105.hostedemail.com [216.40.44.105]) by kanga.kvack.org (Postfix) with ESMTP id AF10B8D0001 for ; Tue, 1 Mar 2022 12:31:04 -0500 (EST) Received: from smtpin30.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 6A14A181B04AD for ; Tue, 1 Mar 2022 17:31:04 +0000 (UTC) X-FDA: 79196508048.30.B9EED95 Received: from mail-oo1-f54.google.com (mail-oo1-f54.google.com [209.85.161.54]) by imf01.hostedemail.com (Postfix) with ESMTP id C064E4000A for ; Tue, 1 Mar 2022 17:31:03 +0000 (UTC) Received: by mail-oo1-f54.google.com with SMTP id x6-20020a4a4106000000b003193022319cso23264909ooa.4 for ; Tue, 01 Mar 2022 09:31:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:in-reply-to:message-id:references :mime-version; bh=o/78n2aarY86rKcvOA8UmQUR3xchXhCUCyiacOlJ4v0=; b=JuTl3MYhm7IzUIIdKDt0fj8jIwUW8/3tKoJpI22zC0St2Mgw2+mL8B61kdnxJHPT1F PN7IZDodvzossRZw+x/yYAdP0e8K04J4yMOR8kEuvbvJjTA3w19NTBQts//yuG9FtgY0 FacCIbPwqCRZrkgJWT1fuwh7bB+Q0TtQOO6TERvpPcu3jUGO2boLV9BFwofE2ue495u4 XNHfX6w8Vp5Og2lR6Um4WEvBadHHTvpSdstTqeRu1f81VFKkW/t9vEC2WW6hZI0r2ZaG MsGPJAuZ4x2ime+TEASCJ/LRPHWKf7+RX/hUHU3D4ikhXhopyQdikEZamZBut6h94AxF sl5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version; bh=o/78n2aarY86rKcvOA8UmQUR3xchXhCUCyiacOlJ4v0=; b=06MXiCCf1OZnrJFgc+4GlLcfVw4o+1lNMACnwGiYzp6Q/bw7PAN5GXNh5eAT3Pi5gi WtQmnNcy4P94+q/MPlAwTnUueENcvstMPeX1zILaaNMqgaQf1YBxgPpI0yzd0dDEGaaN F8C32vVLULxk4TPtsxiX8FTQm/cYa/PUvHWMXsB9qQzyU9PjstQIPO2kwQNFjZNYZbMd 5hmiBh/cTzuVG/1mVWsYbFFfVXHpdu+5XVOoE9uEI21Ih8GRMQGT9584d+WAj9BLKWqc mnxRKo21jI4iLn4GHafdxSYBgCJ6JjxaSdgoXTLmayPtAmXwbspalUkzZEwKREBpQZgq FFpg== X-Gm-Message-State: AOAM53384usy9iGo4+3Bg+7RFUtTpDTlLczT+fFQMHP5x1NK8RItUq8F Y/6ZAqe3E9487KiSHyrUP7v01Q== X-Google-Smtp-Source: ABdhPJzCQfdYR6oGqfZIQy2ESibsO/SewDOX7QYisxM3flIJtrv/0xUGGhx4jSMUOpmcak+uQ+X0qg== X-Received: by 2002:a05:6870:e997:b0:ce:c0c9:61d with SMTP id r23-20020a056870e99700b000cec0c9061dmr12290739oao.111.1646155862632; Tue, 01 Mar 2022 09:31:02 -0800 (PST) Received: from ripple.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id 35-20020a9d0026000000b005ad363440a2sm6583209ota.64.2022.03.01.09.31.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Mar 2022 09:31:01 -0800 (PST) Date: Tue, 1 Mar 2022 09:30:48 -0800 (PST) From: Hugh Dickins X-X-Sender: hugh@ripple.anvils To: syzbot cc: akpm@linux-foundation.org, willy@infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] kernel BUG in hugepage_add_anon_rmap In-Reply-To: <0000000000009ee0ca05d9288b83@google.com> Message-ID: <5fb25913-c4be-123-b013-b76fc37994@google.com> References: <0000000000009ee0ca05d9288b83@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: C064E4000A X-Stat-Signature: hssmtppz7iqycg7o6857849iqjkoa1id Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=JuTl3MYh; spf=pass (imf01.hostedemail.com: domain of hughd@google.com designates 209.85.161.54 as permitted sender) smtp.mailfrom=hughd@google.com; dmarc=pass (policy=reject) header.from=google.com X-Rspam-User: X-HE-Tag: 1646155863-433545 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: On Tue, 1 Mar 2022, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: 196d330d7fb1 Add linux-next specific files for 20220222 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=15b0618a700000 > kernel config: https://syzkaller.appspot.com/x/.config?x=45b71d0aea81d553 > dashboard link: https://syzkaller.appspot.com/bug?extid=d7ed29a6231d3747fb31 > compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 > > Unfortunately, I don't have any reproducer for this issue yet. > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+d7ed29a6231d3747fb31@syzkaller.appspotmail.com > > ------------[ cut here ]------------ > kernel BUG at mm/rmap.c:2330! > invalid opcode: 0000 [#1] PREEMPT SMP KASAN > CPU: 1 PID: 4289 Comm: syz-executor.0 Not tainted 5.17.0-rc5-next-20220222-syzkaller #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 > RIP: 0010:hugepage_add_anon_rmap+0x1f5/0x240 mm/rmap.c:2330 Already fixed in next-20220301 by latest version (16f06327291e) of "mm/migrate: Convert remove_migration_ptes() to folios". > Code: 89 ef e8 6e ad f8 ff 0f 0b e8 77 b2 c4 ff 48 83 eb 01 e9 a6 fe ff ff e8 69 b2 c4 ff 48 83 eb 01 e9 ff fe ff ff e8 5b b2 c4 ff <0f> 0b e8 54 b2 c4 ff 0f 0b e8 4d b2 c4 ff 49 8d 6c 24 ff eb b4 48 > RSP: 0018:ffffc9000fa8f9b8 EFLAGS: 00010216 > RAX: 0000000000002b78 RBX: 0000000000000000 RCX: ffffc90003bd1000 > RDX: 0000000000040000 RSI: ffffffff81b47f75 RDI: 0000000000000003 > RBP: ffffea0001008040 R08: 0000000000000000 R09: 0000000000000000 > R10: ffffffff81b47eab R11: 0000000000000000 R12: ffff88801e231210 > R13: 0000000020400000 R14: ffff8880738f8700 R15: 0000000000000000 > FS: 00007f1a19594700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 00007f33cc0df300 CR3: 000000001ca70000 CR4: 00000000003506e0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > Call Trace: > > remove_migration_pte+0x5fd/0xc50 mm/migrate.c:234 > rmap_walk_anon+0x44b/0x9e0 mm/rmap.c:2236 > rmap_walk+0x92/0xd0 mm/rmap.c:2302 > remove_migration_ptes mm/migrate.c:271 [inline] > unmap_and_move_huge_page mm/migrate.c:1259 [inline] > migrate_pages+0x1709/0x4030 mm/migrate.c:1379 > do_mbind mm/mempolicy.c:1334 [inline] > kernel_mbind+0x4d7/0x7d0 mm/mempolicy.c:1481 > 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+0x44/0xae > RIP: 0033:0x7f1a18489059 > Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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:00007f1a19594168 EFLAGS: 00000246 ORIG_RAX: 00000000000000ed > RAX: ffffffffffffffda RBX: 00007f1a1859c030 RCX: 00007f1a18489059 > RDX: 0000000000000000 RSI: 0000000000800000 RDI: 0000000020001000 > RBP: 00007f1a184e308d R08: 0000000000000000 R09: 0000000000000002 > R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 > R13: 00007ffe5da8cc9f R14: 00007f1a19594300 R15: 0000000000022000 > > Modules linked in: > ---[ end trace 0000000000000000 ]--- > RIP: 0010:hugepage_add_anon_rmap+0x1f5/0x240 mm/rmap.c:2330 > Code: 89 ef e8 6e ad f8 ff 0f 0b e8 77 b2 c4 ff 48 83 eb 01 e9 a6 fe ff ff e8 69 b2 c4 ff 48 83 eb 01 e9 ff fe ff ff e8 5b b2 c4 ff <0f> 0b e8 54 b2 c4 ff 0f 0b e8 4d b2 c4 ff 49 8d 6c 24 ff eb b4 48 > RSP: 0018:ffffc9000fa8f9b8 EFLAGS: 00010216 > RAX: 0000000000002b78 RBX: 0000000000000000 RCX: ffffc90003bd1000 > RDX: 0000000000040000 RSI: ffffffff81b47f75 RDI: 0000000000000003 > RBP: ffffea0001008040 R08: 0000000000000000 R09: 0000000000000000 > R10: ffffffff81b47eab R11: 0000000000000000 R12: ffff88801e231210 > R13: 0000000020400000 R14: ffff8880738f8700 R15: 0000000000000000 > FS: 00007f1a19594700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 00007f33cc0df300 CR3: 000000001ca70000 CR4: 00000000003506e0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > > > --- > 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.