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: <BN9PR11MB5276BD6ACDFA20F09354DCAB8CC9A@BN9PR11MB5276.namprd11.prod.outlook.com>
Date: Mon, 17 Nov 2025 07:10:20 +0000
From: "Tian, Kevin" <kevin.tian@...el.com>
To: "Gustavo A. R. Silva" <gustavoars@...nel.org>, Jason Gunthorpe
	<jgg@...pe.ca>, Joerg Roedel <joro@...tes.org>, Will Deacon
	<will@...nel.org>, Robin Murphy <robin.murphy@....com>, Lu Baolu
	<baolu.lu@...ux.intel.com>, Nicolin Chen <nicolinc@...dia.com>
CC: "iommu@...ts.linux.dev" <iommu@...ts.linux.dev>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"linux-hardening@...r.kernel.org" <linux-hardening@...r.kernel.org>
Subject: RE: [PATCH] iommufd/driver: Fix counter initialization for counted_by
 annotation

> From: Gustavo A. R. Silva <gustavoars@...nel.org>
> Sent: Tuesday, November 11, 2025 5:01 PM
> 
> One of the requirements for counted_by annotations is that the counter
> member must be initialized before the first reference to the
> flexible-array member.
> 
> Move the vevent->data_len = data_len; initialization to before the
> first access to flexible array vevent->event_data.
> 
> Cc: stable@...r.kernel.org
> Fixes: e8e1ef9b77a7 ("iommufd/viommu: Add
> iommufd_viommu_report_event helper")
> Signed-off-by: Gustavo A. R. Silva <gustavoars@...nel.org>

Reviewed-by: Kevin Tian <kevin.tian@...el.com>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ