lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4ef90eea-5a42-4c41-bfd0-9e46d0ade81d@intel.com>
Date: Thu, 4 Dec 2025 08:22:44 -0700
From: Dave Jiang <dave.jiang@...el.com>
To: Arnd Bergmann <arnd@...nel.org>, Davidlohr Bueso <dave@...olabs.net>,
 Jonathan Cameron <jonathan.cameron@...wei.com>,
 Alison Schofield <alison.schofield@...el.com>,
 Vishal Verma <vishal.l.verma@...el.com>, Ira Weiny <ira.weiny@...el.com>,
 Dan Williams <dan.j.williams@...el.com>,
 Ben Cheatham <benjamin.cheatham@....com>
Cc: Arnd Bergmann <arnd@...db.de>, Gregory Price <gourry@...rry.net>,
 Robert Richter <rrichter@....com>, Li Ming <ming.li@...omail.com>,
 linux-cxl@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] cxl/region: fix format string for resource_size_t



On 12/4/25 2:52 AM, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@...db.de>
> 
> The size of this type is architecture specific, and the recommended
> way to print it portably is through the custom %pap format string.
> 
> Fixes: d6602e25819d ("cxl/region: Add support to indicate region has extended linear cache")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>

Reviewed-by: Dave Jiang <dave.jiang@...el.com>> ---
>  drivers/cxl/core/region.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/cxl/core/region.c b/drivers/cxl/core/region.c
> index ae899f68551f..fc36a5413d3f 100644
> --- a/drivers/cxl/core/region.c
> +++ b/drivers/cxl/core/region.c
> @@ -759,7 +759,7 @@ static ssize_t extended_linear_cache_size_show(struct device *dev,
>  	ACQUIRE(rwsem_read_intr, rwsem)(&cxl_rwsem.region);
>  	if ((rc = ACQUIRE_ERR(rwsem_read_intr, &rwsem)))
>  		return rc;
> -	return sysfs_emit(buf, "%#llx\n", p->cache_size);
> +	return sysfs_emit(buf, "%pap\n", &p->cache_size);
>  }
>  static DEVICE_ATTR_RO(extended_linear_cache_size);
>  


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ