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 3DE47C47077 for ; Thu, 11 Jan 2024 10:00:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9DFB26B0087; Thu, 11 Jan 2024 05:00:17 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 9667A6B008A; Thu, 11 Jan 2024 05:00:17 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7921F6B0093; Thu, 11 Jan 2024 05:00:17 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 633EF6B0087 for ; Thu, 11 Jan 2024 05:00:17 -0500 (EST) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 2C0A1C01B0 for ; Thu, 11 Jan 2024 10:00:17 +0000 (UTC) X-FDA: 81666584874.10.57F1061 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf28.hostedemail.com (Postfix) with ESMTP id 352FAC001B for ; Thu, 11 Jan 2024 10:00:14 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b="YHUe9/Px"; spf=pass (imf28.hostedemail.com: domain of peterx@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=peterx@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1704967214; 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=Yxh7OAtpXjhWhrb5Lb4IVy5zJU0ZbS4Z/SE7rEMRqfA=; b=G7JqddX4Yo/3bXcbaNhAwEnaknd6spFSy7b0bZUqyokfgAb49KSWVVVyo67zx6XO9V7eU1 KfQn66Io2uWqe7y7FRFYwqlDaWXT69my8NX6Dh9NpZyz16bznrC088Bn7pHptrWVG6HTNO XQCZegyvBNt50am6nh0Wl3RwZy5jSes= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1704967214; a=rsa-sha256; cv=none; b=UM0ClV4LjB/bSlSkFHLd5z+hNtT4uSCHGo/f7dr3uD51JawLFFI1E6i9dQI5WhEE7+Pz2i LX72UUi7QEoAGPqxToFJiuLdGX4nDPZVg/09HLYyPWH42q1Xy4p5uSXOeKsjG/s2c2pGa1 KUJfA4t6OPwsMV0eQoBSpedcI1zbG4c= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b="YHUe9/Px"; spf=pass (imf28.hostedemail.com: domain of peterx@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=peterx@redhat.com; dmarc=pass (policy=none) header.from=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704967213; h=from:from: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; bh=Yxh7OAtpXjhWhrb5Lb4IVy5zJU0ZbS4Z/SE7rEMRqfA=; b=YHUe9/PxlAUGt/LxTYYwpNN5nXo3J1nUIVBmocAplOIXpYlifsk1NvfTq4TvkAQ9ftlWbW eyz1sa66JHNEQDy9O/i10UAgw/WcHugZ0Ak7HyEb8a/occIVdPyXsCKVJa0+ykDAN1apsv YAAgMgkbfOx+wzAtJbniJ5kEgdBgCUg= Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-192-16wYBKGZOnCk1iO3rcHFKw-1; Thu, 11 Jan 2024 05:00:11 -0500 X-MC-Unique: 16wYBKGZOnCk1iO3rcHFKw-1 Received: by mail-pl1-f197.google.com with SMTP id d9443c01a7336-1d53d51c62aso8104865ad.0 for ; Thu, 11 Jan 2024 02:00:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704967211; x=1705572011; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Yxh7OAtpXjhWhrb5Lb4IVy5zJU0ZbS4Z/SE7rEMRqfA=; b=tSQkSsH4AaZHp71jSIyWAOzSIrGWkg5Rkoq5gVJkuvexlxdiAxPnD+ZRwlreE2Os3z c5TmxQPqc1crPMMcbRvU2YU5uAbZ7fgkzeQ0Cww52C2u+N+ohHdOFeaWFgLe3Nd+b8gX XK/uiRPFDdz8Z9DpSnKrqn0e4oQf4IEUUSDaY7nxE0Ny6IRPVZZ3JBEflJ6iXjmUCPue uVJGuI0Q9IFqtjeTvQCJvw3U62wFwhwPjKz9WJjPoft0bmM0JJLOdIpxW8bHn2JDsGtM iHnsNZflzG9wu0rt9Wr622KjOBjQBjBf2Pj0PTC3U1rpSaZaf+Ua9qLaYCZGScAk/Dce zx0Q== X-Gm-Message-State: AOJu0YyBGaOzOVH7LoAt2oHO3KUzlFYfKy3zncQoce8YT3MEtH+mi1x4 Vyh+M27EdquIHuTry+rHswlFqDx4rk1RcriRZ8QH2OLmmsVq+lILUDGG+wCtF7E7n5ahESv5w74 Bm78DrSIZ2RLfGBTMYn0= X-Received: by 2002:a05:6a20:96c2:b0:19a:49c8:b9e6 with SMTP id hq2-20020a056a2096c200b0019a49c8b9e6mr1301357pzc.0.1704967210605; Thu, 11 Jan 2024 02:00:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IHApU70VEHsEtSfmXf84B0tjCpY8EWYVBKF1g3uQ4+rdeDHHv3WtZTs0yUU9WjGyRM0uf6cTQ== X-Received: by 2002:a05:6a20:96c2:b0:19a:49c8:b9e6 with SMTP id hq2-20020a056a2096c200b0019a49c8b9e6mr1301325pzc.0.1704967209886; Thu, 11 Jan 2024 02:00:09 -0800 (PST) Received: from x1n ([43.228.180.230]) by smtp.gmail.com with ESMTPSA id sw7-20020a17090b2c8700b0028c89122f8asm1012284pjb.6.2024.01.11.02.00.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 02:00:09 -0800 (PST) Date: Thu, 11 Jan 2024 18:00:03 +0800 From: Peter Xu To: Yang Shi Cc: syzbot , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [mm?] WARNING in hpage_collapse_scan_pmd Message-ID: References: <000000000000ef988f060e876862@google.com> MIME-Version: 1.0 In-Reply-To: X-Mimecast-Spam-Score: 1 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 352FAC001B X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: hwgypc4ddzxhyjs1c75oy3dabsurqo1z X-HE-Tag: 1704967214-849308 X-HE-Meta: U2FsdGVkX1/h3Gb97xopyXWbwOSIwdotyaNq/1kpBFdC5ZazqS49OyVOz6ushURNBSkpWS1dM5y4qMAedF4NzUmnb+GYBQSVsemCKi4uni2bNKZLlZy9+BIiGR+0oxKajyW5Opr9GmxWGCg7IOH05EX/34ksaGkbgjksP/4Kfh6VNaQOkfUZtJBTBQrqDydrLAtejIYLA70luCT8EDkdqO5k4a/rVc94T4TN8uUQfjBdks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CYzod1uOCQdKXwtIfNKC3opWwOyx8lz1GbSf32zTAdklExqrOw+xf1Tx1A3uMl620RiwwnTWFMg1UD2k7WW2I48esJ3TlRbaCsJZOj79lJp457tTwHlymVhP+N/RQpKsuUkziA== 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 Tue, Jan 09, 2024 at 11:26:26AM -0800, Yang Shi wrote: > On Tue, Jan 9, 2024 at 10:23 AM syzbot > wrote: > > > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit: 5eff55d725a4 Merge tag 'platform-drivers-x86-v6.7-7' of gi.. > > git tree: upstream > > console output: https://syzkaller.appspot.com/x/log.txt?x=17472409e80000 > > kernel config: https://syzkaller.appspot.com/x/.config?x=655f8abe9fe69b3b > > dashboard link: https://syzkaller.appspot.com/bug?extid=ed79e0896ae923de13fa > > compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 > > > > Unfortunately, I don't have any reproducer for this issue yet. > > > > Downloadable assets: > > disk image: https://storage.googleapis.com/syzbot-assets/496bf4f0c628/disk-5eff55d7.raw.xz > > vmlinux: https://storage.googleapis.com/syzbot-assets/43482bd7ec93/vmlinux-5eff55d7.xz > > kernel image: https://storage.googleapis.com/syzbot-assets/fa81d2743202/bzImage-5eff55d7.xz > > > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > > Reported-by: syzbot+ed79e0896ae923de13fa@syzkaller.appspotmail.com > > > > ------------[ cut here ]------------ > > WARNING: CPU: 1 PID: 35 at arch/x86/include/asm/pgtable.h:403 pte_uffd_wp arch/x86/include/asm/pgtable.h:403 [inline] > > WARNING: CPU: 1 PID: 35 at arch/x86/include/asm/pgtable.h:403 hpage_collapse_scan_pmd+0x233e/0x4fe0 mm/khugepaged.c:1309 > > Modules linked in: > > CPU: 1 PID: 35 Comm: khugepaged Not tainted 6.7.0-rc8-syzkaller-00055-g5eff55d725a4 #0 > > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 > > RIP: 0010:pte_uffd_wp arch/x86/include/asm/pgtable.h:403 [inline] > > Khugepaged saw a uffd wp PTE is writable. Khugepaged just scans the > page table at this stage, so it sounds like something is out of sync? > > Cc'ed Peter. Thanks for copying me, Yang. Currently I have no clue of what is going wrong. I'll need to have a closer look some day later on the rest logs, or wait for a reproducer with some more information. > > > RIP: 0010:hpage_collapse_scan_pmd+0x233e/0x4fe0 mm/khugepaged.c:1309 > > Code: 24 d8 00 00 00 49 81 c6 00 10 00 00 4c 3b b4 24 f0 00 00 00 0f 83 a8 06 00 00 e8 bd 72 9d ff e9 61 fc ff ff e8 b3 72 9d ff 90 <0f> 0b 90 41 bc 09 00 00 00 45 31 f6 e9 45 f4 ff ff e8 9c 72 9d ff > > RSP: 0018:ffffc90000abf780 EFLAGS: 00010293 > > RAX: ffffffff81f1073d RBX: 0000000000000002 RCX: ffff8880142f1dc0 > > RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000 > > RBP: ffffc90000abfbf0 R08: ffffffff81f0ea47 R09: 1ffffd400022a006 > > R10: dffffc0000000000 R11: fffff9400022a007 R12: 00000000203ea000 > > R13: 1ffff92000157f14 R14: 00000000455eac67 R15: 00000000000001ea > > FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 > > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > > CR2: 00007f942157a038 CR3: 000000008cd03000 CR4: 00000000003506f0 > > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > > Call Trace: > > > > khugepaged_scan_mm_slot mm/khugepaged.c:2415 [inline] > > khugepaged_do_scan mm/khugepaged.c:2503 [inline] > > khugepaged+0x9bf/0x17a0 mm/khugepaged.c:2559 > > kthread+0x2d3/0x370 kernel/kthread.c:388 > > ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 > > ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 > > > > > > > > --- > > 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 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 > > > -- Peter Xu