From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f176.google.com (mail-yw1-f176.google.com [209.85.128.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ECE0838D3EC for ; Fri, 12 Jun 2026 21:26:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781299611; cv=none; b=VxJ6KBU37W33XQ4hPRdqVHobCRkzlcHOB2ztRLveg88GMarw/zyxtLgJQWN2ibegepNDEaGT1g9PFovwq5ne+fEFLTk60akPrFvsbhn0UNjhJJeW4ZRQ+dcQWrXr7M9JFK50SScveYSvn7JQH4asQoF/tP0gPKXPbUXH5MC2zDI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781299611; c=relaxed/simple; bh=vQRs/qjGkOUg+kGpHxYMeuOyoLjb6dULYqqS+cIUfWw=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=GSt04E/HcoXThRGtQgtdgZeJbJ8ovXk6CSXhyYqC8CSjiONQSCI5urAn9sjEx12pr42++3XVkQfgAdsMH0qnvl0jMycg0kkdmc+vHFksV1QAZjK6LSJ2fGLvg8lJfYMayus92fUnGAG3naUfhl6yPJzzrtNJuT4cBNx6cJGx3Jo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=ovUtcy/H; arc=none smtp.client-ip=209.85.128.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ovUtcy/H" Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-7f015f87fddso16476757b3.0 for ; Fri, 12 Jun 2026 14:26:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1781299609; x=1781904409; darn=vger.kernel.org; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=QoqQNxNPBqMismqzNgaeaEvZMlSF3o7CK1/OdEQIGC0=; b=ovUtcy/HEKEPeWMBQwJpucSBLLBXqg3n9RuyvSoNzvLV1UtoMGi81aHVSu9D2uDZ1m Wagzj6LtRPCCAJiGQWh1RkaqsP9f15FS+TS5habJh9p4czgPvkEB4REfjzezFZuqxasO CHqzEbmPpsP5F2kvi7dG5PTgkqAkA8WKDXT9UkPCJW88nhGJirh0EiCtoMknK9eouYe4 JKXT1j56VBHuIKPpMZ3XVN6727Ts5NnPqsi8QkLVyip0aaSL+XKSSArvKcoqKkAv18nA XbJdPjui8EKvuUOIRWebq4lXL/bHLbI/EqA9RsvFD0O+78/mpLQsy2uF8SXpqTVC/YN6 0/xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781299609; x=1781904409; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QoqQNxNPBqMismqzNgaeaEvZMlSF3o7CK1/OdEQIGC0=; b=IYOczekBq0hH0QTEj5WPeW1moVy0+lbxuzCf9z66kTc0Dp8rqkuqFUnxedrJft2VBD /3P+l35LhHnt1W8jTBeCrGohUt5aTynkE9Z3vMBMDo9ooAASTEL2qBs/tjnO0PYxMnSt g0yCfTRczim5aAx9TohKhetv8Tsxz8BuX03q8J3SVX5V3oC/aBjqv26ytPo/jqdVO3Z4 8iPcsllCuP5Oe9dOSViae9U1ZeE/8LsNPSwqzwop7CebbnnQGFHV7SwYJdifHKGRBkut fLLkqU19zNx54Ulvyvnik5P7AoviztiVVnW3WFop+H/onP6Rih4tXnFOm40N0ADEMZKB 8xBQ== X-Forwarded-Encrypted: i=1; AFNElJ8iM9Oj7guHzeyiOZ5MROAtRwCw50VlLxJ+x3tXxyOPRDvI4gmnJiDSZLa8AgjnQp2YJtzkEm0k11+2Pmg=@vger.kernel.org X-Gm-Message-State: AOJu0Yzr2wrjxbFDWMLAkeztkvNVb/NJto4XvOO0Vhu/NQCR1cIwXtur JMnwBOuSnDBa2JB1kM9mrnRKE3GRtTiXdhNM7XnmElWfLzd3DntFYdHl7m7FubgH9g== X-Gm-Gg: Acq92OGWokbwHXY/S+1rX8NU9Qt/swt4+CC6S+/vJ8xGK+WJRWxDe1VIWFoJwomfpS9 z8VCa4iFhwkqa70tNCjUO2eqKoVbfwI8Sm7IK/34eH4rdaUFLpCKTz5na8AOiLoNsYevnJJon6J EaoUCY5ltaapDrw1FnrLSX5pk7A/z/f6HoivgruriFVuimroyJmsVGFKBcoJ+5J8Cun8UVlQ7fi 9wnz5t8q66/Df3My83V+M+mR5xA2eougUYS2yzr6iC7pkA9BxqgVrEkC+NN1l3sgQFa9uLgNRN0 VBgiDayJUgMq4chw5W+vJu/bH599BqvrnxYCBiqdrICNA6k8iwkokAoqkCTi6/Ay/oIbKh2uio4 tWz8p2LKCC0GREPytQfTBZwDnV2d71SLbqizczU3MskD2t0D7IFEN+ztkek68J6HnoPWx/k76+1 JLLYC4cnOeEs7xJBppXDCQ3dNM8LwHXumEO3ujGVxqEyFpFrGkx1NfdYKZmBejw2yw1cggFiOxW lRM8EX1hw== X-Received: by 2002:a05:690c:3a0:b0:7db:d527:b8c5 with SMTP id 00721157ae682-7f797da207amr45590297b3.16.1781299608152; Fri, 12 Jun 2026 14:26:48 -0700 (PDT) Received: from darker.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id 00721157ae682-7f76e8991dcsm15341147b3.17.2026.06.12.14.26.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jun 2026 14:26:47 -0700 (PDT) Date: Fri, 12 Jun 2026 14:26:34 -0700 (PDT) From: Hugh Dickins To: "David Hildenbrand (Arm)" cc: Anshuman Khandual , linux-mm@kvack.org, Andy Shevchenko , Rasmus Villemoes , Sergey Senozhatsky , Petr Mladek , Steven Rostedt , Jonathan Corbet , Andrew Morton , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Lorenzo Stoakes Subject: Re: [RFC V2 3/3] mm: Replace pgtable entry prints with new format In-Reply-To: Message-ID: <4a416383-62f5-1716-8e04-a2ee1f89a864@google.com> References: <20260610043545.3725735-1-anshuman.khandual@arm.com> <20260610043545.3725735-4-anshuman.khandual@arm.com> 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=US-ASCII On Fri, 12 Jun 2026, David Hildenbrand (Arm) wrote: ... > > After some off-list discussion, I wonder if we can make our life easier. > > I think, even with your patch, there is still the case: > > pr_alert("BUG: Bad page map in process %s %s:%08llx", current->comm, > pgtable_level_to_str(level), entry); > > Where we cast all entries to an "unsigned long" in the callers. We'd have to rework all > that for 128bit entries either way (passing them in some struct instead). > > I really just extended what we used to do here in print_bad_pte() before commit ec63a44011d. > > Maybe we should just drop the "print the involved page table entries" thing? > > I mean, we do have the actual page, and we do have the address in the address space, which > we all print. > > Not sure if the actual page table entries are that relevant? The page table entry is BUGgily Bad: we want to see what it looks like (sometimes, a sequence of bad page map entries may even show up as ASCII). Hugh