Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp223244pxm; Wed, 2 Mar 2022 13:57:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJweELBBH1jAvcvdgASO1X2tYHR4RnCZlgjACuBzNxQ4N4TA/bHV4QZBWbjoPNMF4Wi0cQ2s X-Received: by 2002:a05:6402:1cae:b0:410:d3ae:3c8a with SMTP id cz14-20020a0564021cae00b00410d3ae3c8amr31369503edb.215.1646258249668; Wed, 02 Mar 2022 13:57:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646258249; cv=none; d=google.com; s=arc-20160816; b=BFjC0jeg4ZKZf7u+yiiHhAOn2nZKVHOVeGNzEs6r/MGTDCIr8pnHYEGNroD5LhjdKU hDXXbyKFPRgLFpJXc2mrpMAECVE2Wf38lOZrzAdKksmh4FY9cmhMSlc725U1IBi/5u0t gla58n1e2Arh+OBF4mITAKIIVKeWSNrl3cXy/gsHCQ75d1dxEVIfRAxnB1sJ2O8G0FqJ MkDATsviL6D9nyVk1jfOCL7fcTrfr6hjffvvztuS8ECyCaYL8jlxyTqdr8S/cW/BvKO/ 8AwBJEf6qVrn9I3H0XJ/S9I8O4s4SvJkFFf/S9t6idNJqlAIopd2D/fI+Sq/4oEnOZVr x1UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=O2Q5Z2Hl1hZvkszX7CBO5pUSGzGfZOYEQpwIVpdgtmQ=; b=WA7/s+0w1EMl9Iquzzo0dvel/mvzX+VI3RLWrxJsGnmSr97OPWatfpqioffTxa+5qC G9MDsf9AhVNIGhipgd5W2lLnDNbK/RMIG5rFoDtmWqQ0Ea0v7GPxA+ZHjzfGOjL1FXkz f0mrhMR2pe3n3WoQVgbIuDIBZjJkeel3RZtvTQPTPWow53346LRUt36H2fAp3XPMGcwc qeQQQYrC+pit7PDtjSD3zVtcHC/bcSp0h/Iyhh5w41ZGjR0pThiIvZ6EXoRNfaBqJjow C09gbIenvBwnL7yu0KXsNXFR4/X2VaU+nWgZzSXUvFfXQK/e3Nb8ADqOEc/nkC3gvXLi Aopw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=FP+bynfk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h10-20020a056402280a00b00415b4909770si177291ede.418.2022.03.02.13.57.05; Wed, 02 Mar 2022 13:57:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=FP+bynfk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235144AbiCBNx1 (ORCPT + 99 others); Wed, 2 Mar 2022 08:53:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242551AbiCBNwL (ORCPT ); Wed, 2 Mar 2022 08:52:11 -0500 Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDE99C7928 for ; Wed, 2 Mar 2022 05:51:05 -0800 (PST) Received: by mail-oi1-x234.google.com with SMTP id ay7so1725392oib.8 for ; Wed, 02 Mar 2022 05:51:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=O2Q5Z2Hl1hZvkszX7CBO5pUSGzGfZOYEQpwIVpdgtmQ=; b=FP+bynfk1ysyDiNnkC9KgX9jCfH7/TJOU9n+U4V9HaQx0WW2tRg7/2VqPHHR1608ta yyjeqmh+DBkf+OMWzqcVZarvvZ980C4trVBM4xU0FDThBiO0neJ1FzzmBTytFJYwv3fS USg8AIF/UZLbOT8WqvIE8ONJtF4fsWVefn7e/CrgXkSWydtIfEGC5MuK1A+V6JJquMoV +geNltCHATosYMoLnnCWkybTJe7n9Tdj+aua4tt9mFhKqfqwLrODV1XOScummJ7qvVZk EGGSKeSbvqf6HYRK1E4ELzTHicwL8fmtJboFGfc7e7LJRJwlZZZPAugeuhS+GnKsguMI 47cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=O2Q5Z2Hl1hZvkszX7CBO5pUSGzGfZOYEQpwIVpdgtmQ=; b=wLKNy1D1ZHotw0E4hhGkQJUXg8izBkaMHpopBbNZ+ZgwAd2kS8NgB8P0DWcguJZhFn /8nO1WMJU1ueAvk/C300oJU5upanD0NkGO70pR2iIqDh1tpjfdWdn1z353Vw5bPvgC3h 3YlaihKky7a/OcT+2CPVbXaHN81MH39k1VzTF10IqOSZ9ARF0GFPK7tmoMgHrm4QROHe pQjUBb+tfo38kJ2rPsKwS9O8swQzo/pKfAxcxL3uVEPDapS/UnqGDrriuUnxEfHJNlPf cJpjkut/qZExQCuDUODpSVo44CUi82uX9GIM1WC0PB7DGbRuABc6wx3b4iLhdi5CENCa KJ2A== X-Gm-Message-State: AOAM531ZzODsUy5v4ckl+wBPwkIDMLWD1A2183xOL6vsBpIQYKCHoLHj 8S0ovOq3JC7+5GOhReMMTR93vbRxYz/kAWfzbwPu+Q== X-Received: by 2002:a05:6808:ecd:b0:2cd:90e5:25cb with SMTP id q13-20020a0568080ecd00b002cd90e525cbmr17830278oiv.128.1646229064999; Wed, 02 Mar 2022 05:51:04 -0800 (PST) MIME-Version: 1.0 References: <0000000000009ee0ca05d9288b83@google.com> <5fb25913-c4be-123-b013-b76fc37994@google.com> In-Reply-To: <5fb25913-c4be-123-b013-b76fc37994@google.com> From: Dmitry Vyukov Date: Wed, 2 Mar 2022 14:50:53 +0100 Message-ID: Subject: Re: [syzbot] kernel BUG in hugepage_add_anon_rmap To: Hugh Dickins Cc: syzbot , akpm@linux-foundation.org, willy@infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-18.1 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 1 Mar 2022 at 18:31, 'Hugh Dickins' via syzkaller-bugs wrote: > > 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". Let's tell syzbot so that it will report new bugs: #syz fix: 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