Re: [PATCH] scsi: ufs: mediatek: Fix page faults in ufs_mtk_clk_scale trace event

From: Martin K. Petersen

Date: Sat Feb 07 2026 - 21:03:23 EST


On Mon, 02 Feb 2026 11:45:26 +0900, Keita Morisaki wrote:

> The ufs_mtk_clk_scale trace event currently stores the address of the
> name string directly via __field(const char *, name). This pointer may
> become invalid after the module is unloaded, causing page faults when
> the trace buffer is subsequently accessed.
>
> This can occur because the MediaTek UFS driver can be configured as a
> loadable module (tristate in Kconfig), meaning the name string passed
> to the trace event may reside in module memory that becomes invalid
> after module unload.
>
> [...]

Applied to 6.20/scsi-queue, thanks!

[1/1] scsi: ufs: mediatek: Fix page faults in ufs_mtk_clk_scale trace event
https://git.kernel.org/mkp/scsi/c/9672ed3de7d7

--
Martin K. Petersen