Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2894228rdb; Wed, 15 Nov 2023 14:00:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IFHwWSbwSFzXY0zRZpJZCoO8yik94YlKf4N0HMU/UACHqKU+gEM0RbYTRq78vPkmpo2PUmC X-Received: by 2002:a05:6870:d1c2:b0:1ea:14eb:b741 with SMTP id b2-20020a056870d1c200b001ea14ebb741mr19177604oac.54.1700085659631; Wed, 15 Nov 2023 14:00:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700085659; cv=none; d=google.com; s=arc-20160816; b=Vgr1xJSxNRQCtCCqkggGw0cELuqM7U51fakn4JFr9TY2KqdfXLEnfZ0pSl/8Tx1RyR O4QChKciQnDsq//7ue2l0gWWlfkPyMGL/hsLJk+7qtd1FNWi/EWwIyYig/gA0BOsVck5 9k1XmWXjc5pS7HXmnlRR6yrEUGWrjEU+foSnA104uHprq4Awaju69/EGgOqubE2qHX2q ZuQGhcAvr7/QQGhnTDJVACU+AivjCGZWCd4xKJP6BVCmUg8lXdGD67877NWeblOb03bj xshAlfPOGmGxPCd9yifIraf8Ks6stkB/1eDFLGINqk4WqQ0YJD5jyynkQynflymD3ZGL eUhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=dYaInjfHHA+t4ovP4wQaLAqcL3JUuWUbOrfD2fEJ6tw=; fh=sgAg0u5TW4EDR4E/wNg/c0iRBM/wXNM9+AZTJxIHDrU=; b=RPrQpYnob4Eq7myfuO35DX0tzYYzkpaOlQWSxBY8l7fZ9bCxTsplh13oIH0+/GVQ3/ byDymp1MKC+Tp9nDyVNu+eUCLJQ72hB65JmUu8LjmVIQdF7iYim3fHg+kF7i/5FxSAr/ dC4GsnPoI1aWLCEPHrbqgqOlsWLKCaXoJnYiUB9N8ZQ7EkdZQsc1K6GsdPrXHCDAG9Ox MKz2/x8lkjjBJp9d3SD4EJT5mUSU3Oui553VrbXdENij4bpPZ4O/4A+XX2RKd4wJiUlV 5b2qy1TmRCRMOE4swNxCKE6L/EJnZAqWieCq1Mja+OdAXvU8VvSE6GLLkvKD91NZY227 lhpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=bibK28lY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id kz3-20020a056871408300b001efc22c78f5si3969545oab.60.2023.11.15.14.00.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 14:00:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=bibK28lY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 973888082A57; Wed, 15 Nov 2023 14:00:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235605AbjKOWAN (ORCPT + 99 others); Wed, 15 Nov 2023 17:00:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235587AbjKOWAL (ORCPT ); Wed, 15 Nov 2023 17:00:11 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC62919B for ; Wed, 15 Nov 2023 14:00:07 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2EEC1C433C7; Wed, 15 Nov 2023 22:00:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1700085607; bh=50kvp/0FUGpyKqtbnxNCKHZKsnQxgGiwUm+ioZcye4I=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=bibK28lYI/7r+3taZvRJyOt7Dgvyhz3WDRX3g7Q0gHL10cuofmkLyVhbbLp8CAFTx wcU08FnMWJorunbZCmzfecLOskcLinrrdxMCP6WgfWsNQTTbYP2micH2Ia35eRuA62 ADHFKLo89vFlMMDO7HF891vMy4E1UwsnfaXHv2Yo= Date: Wed, 15 Nov 2023 14:00:06 -0800 From: Andrew Morton To: syzbot Cc: david@redhat.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com, usama.anjum@collabora.com, wangkefeng.wang@huawei.com Subject: Re: [syzbot] [mm?] WARNING in unmap_page_range (2) Message-Id: <20231115140006.cc7de06f89b1f885f4583af0@linux-foundation.org> In-Reply-To: <000000000000b0e576060a30ee3b@google.com> References: <000000000000b0e576060a30ee3b@google.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SORTED_RECIPS,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 15 Nov 2023 14:00:23 -0800 (PST) On Wed, 15 Nov 2023 05:32:19 -0800 syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: ac347a0655db Merge tag 'arm64-fixes' of git://git.kernel.o.. > git tree: upstream > console+strace: https://syzkaller.appspot.com/x/log.txt?x=15ff3057680000 > kernel config: https://syzkaller.appspot.com/x/.config?x=287570229f5c0a7c > dashboard link: https://syzkaller.appspot.com/bug?extid=7ca4b2719dc742b8d0a4 > compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=162a25ff680000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13d62338e80000 > > Downloadable assets: > disk image: https://storage.googleapis.com/syzbot-assets/00e30e1a5133/disk-ac347a06.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/07c43bc37935/vmlinux-ac347a06.xz > kernel image: https://storage.googleapis.com/syzbot-assets/c6690c715398/bzImage-ac347a06.xz > > The issue was bisected to: > > commit 12f6b01a0bcbeeab8cc9305673314adb3adf80f7 > Author: Muhammad Usama Anjum > Date: Mon Aug 21 14:15:15 2023 +0000 > > fs/proc/task_mmu: add fast paths to get/clear PAGE_IS_WRITTEN flag Thanks. The bisection is surprising, but the mentioned patch does mess with pagemap. How about we add this? From: Andrew Morton Subject: mm/memory.c:zap_pte_range() print bad swap entry Date: Wed Nov 15 01:54:18 PM PST 2023 We have a report of this WARN() triggering. Let's print the offending swp_entry_t to help diagnosis. Link: https://lkml.kernel.org/r/000000000000b0e576060a30ee3b@google.com Cc: Muhammad Usama Anjum Signed-off-by: Andrew Morton --- mm/memory.c | 1 + 1 file changed, 1 insertion(+) --- a/mm/memory.c~a +++ a/mm/memory.c @@ -1521,6 +1521,7 @@ static unsigned long zap_pte_range(struc continue; } else { /* We should have covered all the swap entry types */ + pr_alert("unrecognized swap entry 0x%lx\n", entry.val); WARN_ON_ONCE(1); } pte_clear_not_present_full(mm, addr, pte, tlb->fullmm); _