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: <20251217014552.GC148079@nvidia.com>
Date: Tue, 16 Dec 2025 21:45:52 -0400
From: Jason Gunthorpe <jgg@...dia.com>
To: Arnd Bergmann <arnd@...nel.org>
Cc: Leon Romanovsky <leon@...nel.org>, Or Har-Toov <ohartoov@...dia.com>,
	Vlad Dumitrescu <vdumitrescu@...dia.com>,
	Mark Zhang <markzhang@...dia.com>, Arnd Bergmann <arnd@...db.de>,
	linux-rdma@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] RDMA/ucma: fix rdma_ucm_query_ib_service_resp struct
 padding

On Mon, Dec 08, 2025 at 02:33:05PM +0100, Arnd Bergmann wrote:
> diff --git a/include/uapi/rdma/rdma_user_cm.h b/include/uapi/rdma/rdma_user_cm.h
> index 5ded174687ee..8e1d584f6633 100644
> --- a/include/uapi/rdma/rdma_user_cm.h
> +++ b/include/uapi/rdma/rdma_user_cm.h
> @@ -192,6 +192,7 @@ struct rdma_ucm_query_path_resp {
>  
>  struct rdma_ucm_query_ib_service_resp {
>  	__u32 num_service_recs;
> +	__u32 :32;
>  	struct ib_user_service_rec recs[];
>  };

RDMA doesn't use bitfields here, I changed these to be reserved like
the others.

> @@ -362,6 +363,7 @@ struct rdma_ucm_ib_service {
>  
>  struct rdma_ucm_resolve_ib_service {
>  	__u32 id;
> +	__u32 :32;
>  	struct rdma_ucm_ib_service ibs;
>  };

And I added the missing

 struct rdma_ucm_ib_service {
-       __u64 service_id;
+       __aligned_u64 service_id;

Again, like the others.

Applied to for-rc thanks

Jason

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ