Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3376872lqo; Tue, 21 May 2024 15:36:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX1ip50iu4/tjHPYE8i0x+PAfyb8bGyiulfqoIs/uablbdz1yblqQc2Zbwvav12xLMqcMkO0W/IO4mAA32esWasQcluEDWhVKq2f0wpDQ== X-Google-Smtp-Source: AGHT+IFquJlRFrcLhm+EBTfHwm0aQX7U5jOIwxdg3MzKVDdm/rlrneVO+uT6WIYE/Ix5/TEHO5KS X-Received: by 2002:a50:8e4f:0:b0:56c:5a49:730 with SMTP id 4fb4d7f45d1cf-57832a82e20mr67668a12.19.1716330977549; Tue, 21 May 2024 15:36:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716330977; cv=pass; d=google.com; s=arc-20160816; b=Xx+I8Wiu6kdWBvXElaj5BAKC4wC1+6VP1MAaVqlHNU5r5EJ+ooe12yU37MC/Hi6x2k j65uOyYPRrdLKRMXbPir/Fz3NBbdJSVvpInCN6GKuWi4EHJKibixbUQy/RYr3gOootoo XplGEJ61As/gGyHRj64mwl2fqQjrg9/EC8IEVT+1fXAq+O8JsSvbcBlawKdHmwMAR08r 1MkNmOhPI1AN+Mq2S9BpTkIElwtySRbFSrP48NyHq2pcBOvoW6Ns3S9wAldtKKbtisY9 18i01cdsVLiAyH6U+5F2r+Dc6DUhplD4/iyAkjPuyEJNxQ8SSSd+l8Cf5WapyQQ329FT 0bYg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/pVKJNSWNWZ1vgxIz4pu8U802ZIUK1JxE+9Cwhknulk=; fh=x7koJl5fBGaRLClrKe4tpKq3NbSTivLNP1g3WsRe+c8=; b=vA7tNmuza6pe3+eqm10qily5IL7gDE+ee1JOXgEWewj8JcJCE/zqup4oBmGxeCPlUO H780iNzk4dyknVGsF3SCGx7PJmpjcKZNC3EI0FmKaFa9dsiU7Q0oyPIY8h5zoAHOWthw i6gHpO9awHLkCHyMDQPUFv1Sa3QqLHhIpa3fk08kp3UqWZyOFna7hFln4XxUn//Lxkr5 FNxukwV90WaLdH5ncbnsPyDp6FwC9Hu1kGGsrTUMLiEhhgfXmPrJ98I3hE7DTCRlBLuc TuGPCa1xjhfAhO8F4eFqnY2nrCd0trk5zquxg7tTF+9+phgwSGdpRHj0KgmnrGmHnKys D3PA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Wu69B4iV; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-185510-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185510-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c3771cesi14192428a12.604.2024.05.21.15.36.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 15:36:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185510-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Wu69B4iV; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-185510-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185510-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1B7511F22712 for ; Tue, 21 May 2024 22:36:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB28D149DEC; Tue, 21 May 2024 22:36:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Wu69B4iV" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 537EF2AE6C for ; Tue, 21 May 2024 22:36:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716330970; cv=none; b=KbEpllJ6/9aTe9Gn2NVYmJrguPPHO6+WZPeDHHwSwkk7HUvMY7RYn1CJDh5QRrFdw4i/3K6raW50DXVwGAscDiWkz0Vm6lgTVkC8N80mgaizXtsMK2BFqbLKhv1bcQUaN/eECPsAb5ohhGY3BdGOxoY8vd128+kP+rZg+EmOlRY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716330970; c=relaxed/simple; bh=ayDPkBz4fuCHUkYAJZRynPr42K5/21e3I+ovedbiq9U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oJxP+hKq5e501lmMK0BnEk+PMoC7B2IXzLVJAUiIvmC/HSiAIQzGshsJCp7Rix/JaaHMGUE2gsWEPrUFGBuF3FvBYfK/UODygv9XbuNFoDIaCGCzcbvxO8u1xQqnvEkTj9u+xDWCy4mgQ6/tnxzH2+W3ebcrHlybmpW0kmbQqfA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Wu69B4iV; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1716330967; 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=/pVKJNSWNWZ1vgxIz4pu8U802ZIUK1JxE+9Cwhknulk=; b=Wu69B4iVGuFgBvmath5tj8Qbtdea5dBh72acgrToRwNgtpf1/rubogrRmxSe28cge9OsBD bSiwzMFzKKg2RMXluuByb8mxxl+3L7weFjbACuJcI6DZZoTiayyEOKT0HnwVKtwFQvDdCA dXPZqHa6wWOco1S3MEP0lEs5seqjlZM= Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-16-JmqQ1io6MUqM0rDLTezm8A-1; Tue, 21 May 2024 18:36:05 -0400 X-MC-Unique: JmqQ1io6MUqM0rDLTezm8A-1 Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-792c8f9c4f5so276612285a.2 for ; Tue, 21 May 2024 15:36:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716330965; x=1716935765; 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=/pVKJNSWNWZ1vgxIz4pu8U802ZIUK1JxE+9Cwhknulk=; b=PCaO4TZ1nfZLlOS7g77k/7MZC1MFfUSJZQhTCP+f2UzZ/VjzU2PG+DFD60BtooMUPJ loIbX+z5lCxnrfiWDxPEqQflVfaI7j7XA0LwMaa/m+du34UtayNg+Z80HnkJTQroUFEy h9j4BhKUzM33hlks0SDgFIFTCgYnHUmSCC+rZgKOqHjN0plE9COr1Gcq1kysx5O5ycBv Sn3m0k2ZI7ZpRFUF0GY6PouAq2Cmo3zvfU+MvHOjCwTlku/Q9yjMtmPde2LDd17nFhDR 72RZMZgSQqtKlDgUdTT66WPabg5s0UWQJEGBPfw9J377H3+GGw1RuQfnc5g4aXaIxERq u9DA== X-Forwarded-Encrypted: i=1; AJvYcCVGYuoaPVWz2MJ4rDR44mvRWm+SCBbHeaO4kXosivw6kECgbZBnsEnZM0h4OjdT6qZQYNHUvdyKbEuxxGKsyGTZcyYb+5mOEUB6Glui X-Gm-Message-State: AOJu0YxiRNuzLIE1zbSEIvE1dYKavwlSLIuu0rqtrWIpc1BmdD+DIOkr 3mofLL0O91jsmGx0KPE9TUKjeGJf+1i1DBd4mlQHUcUab/MO0bZNuReGTKwt1Qx63jMmWRwVOsT OTfQ20LLkDmwGRmcs6rw5lFBYl6aN05Xt0Q9bcecdWHHGCVd+aoVOVhBjnXHlPQ== X-Received: by 2002:a05:622a:1912:b0:439:9b56:42fb with SMTP id d75a77b69052e-43f9e1f1d05mr3634831cf.5.1716330964624; Tue, 21 May 2024 15:36:04 -0700 (PDT) X-Received: by 2002:a05:622a:1912:b0:439:9b56:42fb with SMTP id d75a77b69052e-43f9e1f1d05mr3634611cf.5.1716330963970; Tue, 21 May 2024 15:36:03 -0700 (PDT) Received: from x1n (pool-99-254-121-117.cpe.net.cable.rogers.com. [99.254.121.117]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-43e144a98a2sm125879561cf.16.2024.05.21.15.36.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 15:36:03 -0700 (PDT) Date: Tue, 21 May 2024 18:36:01 -0400 From: Peter Xu To: Mikhail Gavrilov Cc: Pavel Tatashin , axelrasmussen@google.com, David Hildenbrand , nadav.amit@gmail.com, Andrew Morton , Linux Memory Management List , Linux List Kernel Mailing Subject: Re: 6.10/bisected/regression - commit 8430557fc584 cause warning at mm/page_table_check.c:198 __page_table_check_ptes_set+0x306 Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Wed, May 22, 2024 at 03:21:04AM +0500, Mikhail Gavrilov wrote: > On Wed, May 22, 2024 at 2:37 AM Peter Xu wrote: > > Hmm I still cannot reproduce. Weird. > > > > Would it be possible for you to identify which line in debug_vm_pgtable.c > > triggered that issue? > > > > I think it should be some set_pte_at() but I'm not sure, as there aren't a > > lot and all of them look benign so far. It could be that I missed > > something important. > > I hope it's helps: Thanks for offering this, it's just that it doesn't look coherent with what was reported for some reason. > > > sh /usr/src/kernels/(uname -r)/scripts/faddr2line /lib/debug/lib/modules/(uname -r)/vmlinux debug_vm_pgtable+0x1c04 > debug_vm_pgtable+0x1c04/0x3360: > native_ptep_get_and_clear at arch/x86/include/asm/pgtable_64.h:94 > (inlined by) ptep_get_and_clear at arch/x86/include/asm/pgtable.h:1262 > (inlined by) ptep_clear at include/linux/pgtable.h:509 This is a pte_clear(), and pte_clear() shouldn't even do the set() checks, and shouldn't stumble over what I added. IOW, it doesn't match with the real stack dump previously: [ 5.581003] ? __page_table_check_ptes_set+0x306/0x3c0 [ 5.581274] ? __pfx___page_table_check_ptes_set+0x10/0x10 [ 5.581544] ? __pfx_check_pgprot+0x10/0x10 [ 5.581806] set_ptes.constprop.0+0x66/0xd0 [ 5.582072] ? __pfx_set_ptes.constprop.0+0x10/0x10 [ 5.582333] ? __pfx_pte_val+0x10/0x10 [ 5.582595] debug_vm_pgtable+0x1c04/0x3360 Would it be possible that e.g. you recompiled the kernel so the vmlinux didn't match? > (inlined by) pte_clear_tests at mm/debug_vm_pgtable.c:643 > (inlined by) debug_vm_pgtable at mm/debug_vm_pgtable.c:1392 > > > cat -n /usr/src/debug/kernel-6.9-10323-g8f6a15f095a6/linux-6.10.0-0.rc0.20240521git8f6a15f095a6.10.fc41.x86_64/mm/debug_vm_pgtable.c | sed -n '1387,1397 p' > 1387 * Page table modifying tests. They need to hold > 1388 * proper page table lock. > 1389 */ > 1390 > 1391 args.ptep = pte_offset_map_lock(args.mm, args.pmdp, args.vaddr, &ptl); > 1392 pte_clear_tests(&args); > 1393 pte_advanced_tests(&args); > 1394 if (args.ptep) > 1395 pte_unmap_unlock(args.ptep, ptl); > 1396 > 1397 ptl = pmd_lock(args.mm, args.pmdp); > > -- > Best Regards, > Mike Gavrilov. > -- Peter Xu