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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87frgw9458.wl-tiwai@suse.de>
Date: Thu, 22 May 2025 15:16:51 +0200
From: Takashi Iwai <tiwai@...e.de>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: linux-sound@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	Jaroslav Kysela <perex@...ex.cz>,
	Takashi Iwai <tiwai@...e.com>
Subject: Re: [PATCH] ALSA: core: fix up bus match const issues.

On Thu, 22 May 2025 12:08:05 +0200,
Greg Kroah-Hartman wrote:
> 
> In commit d69d80484598 ("driver core: have match() callback in struct
> bus_type take a const *"), the match bus callback was changed to have
> the driver be a const pointer.  Unfortunately that const attribute was
> thrown away when container_of() is called, which is not correct and was
> not caught by the compiler due to how container_of() is implemented.
> Fix this up by correctly preserving the const attribute of the driver
> passed to the bus match function which requires the hdac_driver match
> function to also take a const pointer for the driver structure.
> 
> Cc: Jaroslav Kysela <perex@...ex.cz>
> Cc: Takashi Iwai <tiwai@...e.com>
> Fixes: d69d80484598 ("driver core: have match() callback in struct bus_type take a const *")
> Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>

Applied now.  Thanks.


Takashi

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ