Re: [PATCH] cdrom: Avoid barrier_nospec() in cdrom_ioctl_media_changed()

From: Jens Axboe
Date: Thu Oct 17 2024 - 21:47:43 EST



On Thu, 17 Oct 2024 15:09:02 -0700, Josh Poimboeuf wrote:
> The barrier_nospec() after the array bounds check is overkill and
> painfully slow for arches which implement it.
>
> Furthermore, most arches don't implement it, so they remain exposed to
> Spectre v1 (which can affect pretty much any CPU with branch
> prediction).
>
> [...]

Applied, thanks!

[1/1] cdrom: Avoid barrier_nospec() in cdrom_ioctl_media_changed()
commit: b0bf1afde7c34698cf61422fa8ee60e690dc25c3

Best regards,
--
Jens Axboe