From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 8/cJDyxTaWrdezIAWB0awg (envelope-from ) for ; Tue, 28 Jul 2026 21:11:08 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=LYIt66fk; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 2293F1E033; Tue, 28 Jul 2026 21:11:08 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 7DDA11E033 for ; Tue, 28 Jul 2026 21:11:06 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 95D644BB3BEF for ; Wed, 29 Jul 2026 01:11:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 95D644BB3BEF Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=LYIt66fk Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by sourceware.org (Postfix) with ESMTPS id C80354BB3BBE for ; Wed, 29 Jul 2026 01:10:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C80354BB3BBE Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C80354BB3BBE Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1036 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1785287442; cv=none; b=Tp1DrHH42Y8pqVAwIYhg1S+OFCqglIi1Z9B4r09qo8QnRqZ1ogSnLh59+uLT/dzFguqHjA981b0w9rusO0sEmRBGz7k74wYLP7bh5amgyTQeUmKaOv6tNelEGMXYxQWQ2A8Lf27fH9Kh9BQz9g60suW7u1/K6zma2mfFjDK3dww= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1785287442; c=relaxed/simple; bh=Qti8sZHw2eY7sIIwXo7tKEgR5ptBuLzGFsYg2+URfQw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=gTV93gXIzEM2iIr4ZK+QtMyRLNz8NEtPLDaud2PsuIe1VrGhjIzWQZndbF1F53QMP+KAKkhW0BIx9lPNXoFZQhtSq26fYdybXl6Vp2V4sZkgeeRFT0nxIg0jHYYbHWnjDviMhB2nTlsIZNAWDgzub+VC+w18xGtxTHlVzGC2t8s= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=LYIt66fk DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C80354BB3BBE Received: by mail-pj1-x1036.google.com with SMTP id 98e67ed59e1d1-38511175ad3so265061a91.2 for ; Tue, 28 Jul 2026 18:10:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1785287441; x=1785892241; darn=sourceware.org; h=content-type:mime-version:message-id:date:user-agent:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=czJvYwBg+Y9j/7dcfK9/JiY+Qt/AsYWxJ9/e8HsGmuY=; b=LYIt66fkOMnZjI5sCvq/oN8s7rzQjqDzNY1mwzepa47VmoHTl9yZlAbV2aMaIab1e4 PjcRAU1/mJGdYp4Qj3o6HrZE7JClRRtFi89+Wn3ICFxEj4MqbYvnd5WmkGvhduQ9iK0N MD3iLXLcJQ3NOoLSaD7Et0y1uFK1zMMyORD1ugFcJ9qULO4DpbBK11wOVVbr88syWuBV EDW4OZozsIC1bkls0EhEPCVNK1VmOLoyxfFdVOj0a4UJXinVUOLKzxVT6/KvgxetSKbb kEDecVcZ3WlEbTJMqpNfUyCiqq3Ur0jflU9os4gS3hicxO9IOg+DVaZWq2ePy5yQez8R cGPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785287441; x=1785892241; h=content-type:mime-version:message-id:date:user-agent:references :in-reply-to:subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=czJvYwBg+Y9j/7dcfK9/JiY+Qt/AsYWxJ9/e8HsGmuY=; b=ehrw0kS0rEbxHH7KzrPxtZmgz6BC6EPd+pvcGVAx4FNrOkrpSJaatw+TTr6KXc9wfg 8N0H9RWh/U2+b1VE3j3GvHzUtuSqeNl3UM9xRVFEqlTvcGvgv2nU+zFG7EsOh1iAcprT Or8Jrp6TYxTu3jWlG4IoUh2lyuWwvvpnuJilaP2UFz/gknicwuAl65wTzFLsZT/405l7 awq+bmJV8ovLjAhqulhD2BI34eZ/WaX0cE+GytUK8qwTWyvd26+84cFK7ifugfLVzSwp pTdyKuezZE8Hz484KiLoX7XkDWLht6XuYgnq7SccGYtdfpHXkS5zNZj6XhHRGVK5Daw3 PcvA== X-Forwarded-Encrypted: i=1; AHgh+RpsGVT7IQCXrAmU5jCu4ygX5BTSscsVyOGLtL2C72rNJgvPj6w5c8i/UE68gJ6SrlpWy1u4fKaWfwHDVg==@sourceware.org X-Gm-Message-State: AOJu0Yx/54uWwgEURu1ox1mw0AitAfShWHjUHlQ+GfIV7JWf/nNsZp0E a/fQmnoColJe+jkHfi5YElnM68IgO/aSQbD0gXkCP1tMO+hBDHfXauOXeMKzn6KcBWo= X-Gm-Gg: AR+sD13AA/Wlx/mEIobiQ1tcLyXxyA8VTwhbSvIrmj5TPZoOfZQmxZvxfGWqpkhXHYm MHCdQCj0JgsC019NBjknHWm80BOnkpfI6Iu2g23IDa0H/aGhV3pG/8pD/ABHAqqZXXO1Rc6YDwf Shtu5KX6xiYz29HWtRvsfokNEoJxUfUIijRwNU5pHzSGU7aNgVQpgJOkKPAF8Rx8e0hSFXyw/xk ihlvcnBlzxgII4o4Z7BzPlu2VH6Uov/gU5zzPk8XprhHokpengwjAo0Y2YAnYgH9bnFbfEEZAm4 RinDydr8bA6PlZDOprUtcfq3XnNrUVdgAhJci+sbLBrKsdVemWo8rYAEpKCdj+q1hcOYQJBzfgs 78aIW2js63FsIa9rtUCsFXOYZBJxvzhBmLEbqEpJ2/qyWV29X23nNclZ1vp0llrPBVngAzskwl1 HqhsXp+tQIa3vFr8llBKEw+u4MohugdIF82juIZw1hKjqb+t2p/FKTSjgJIVMaqmfotr0bP7k= X-Received: by 2002:a17:90b:1b06:b0:37f:c97a:939f with SMTP id 98e67ed59e1d1-38f6a30c84dmr4605194a91.7.1785287440675; Tue, 28 Jul 2026 18:10:40 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8083:f04c:42e3:5943:38f6]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-31504cc63f3sm3123512eec.16.2026.07.28.18.10.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2026 18:10:40 -0700 (PDT) From: Thiago Jung Bauermann To: Yury Khrustalev Cc: Matthieu Longo , , Luis Machado , Luis Machado , Andrew Burgess , "Pedro Alves" , Tom Tromey , Srinath Parvathaneni Subject: Re: [PATCH v1 09/10] gdb/linux-tdep: parse ProtectionKey in /proc/PID/smaps In-Reply-To: (Yury Khrustalev's message of "Mon, 27 Jul 2026 09:22:42 +0100") References: <20260707154900.94542-1-matthieu.longo@arm.com> <20260707154900.94542-10-matthieu.longo@arm.com> <87qzlczms3.fsf@linaro.org> <042de0a8-d0e4-4ad3-880a-684ab6a22077@arm.com> <87wluldrfl.fsf@linaro.org> <87zezfk1we.fsf@linaro.org> User-Agent: mu4e 1.14.2; emacs 30.2 Date: Wed, 29 Jul 2026 01:10:37 +0000 Message-ID: <871pcmob1u.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Yury Khrustalev writes: > On Sat, Jul 25, 2026 at 06:40:33AM +0000, Thiago Jung Bauermann wrote: >> Yury Khrustalev writes: >> >> ... >> >> >> > The look-up of those overlay permissions is platform-specific). >> >> >> >> Considering that there are differences in how protection keys are >> >> implemented in different architectures (e.g., IIUC only Arm has overlay >> >> permissions), the whole "effective: r-- overlay: r--" part of the line >> >> should be printed by a gdbarch hook. >> >> >> >> > If no protection key support exists on the target, the PKey column would not be >> >> > printed. >> >> > Same for the threads' permissions (effective and overlay). >> >> >> >> Also even if protection key support is available, if there's no >> >> protection key set for any mapping then the column shouldn't be printed >> >> either. Or is there always a key associated with every mapping? >> > >> > I think the column should be just empty or have some placeholder like a >> > hyphen when mapping is not associated with a pkey. >> >> I don't see much use for an empty column (or one containing only >> placeholder values), but I also don't feel strongly about it. > > The point of the empty column (that is only shown when pkeys are > supported) is that it would show that none of your mappings use any > pkeys. I think this is useful piece of information. E.g. if I expect to > see a key but due to a bug it's not used, I don't want to not see this > column at all because I would think that my version of GDB does not > support it or something. Ah, indeed it makes sense. Thanks for clarifying. -- Thiago (he/him)