Re: [PATCH] firewire: sbp-target: fix integer type overflow in sbp_make_tpg()

"Martin K. Petersen" <[email protected]> Fri, 23 Jan 2026 22:53:27 -0500
Newsgroups gmane.linux.scsi.target.devel,gmane.linux.scsi,gmane.linux.kernel.firewire.devel,gmane.linux.kernel
Message-ID <[email protected]>
On Wed, 21 Jan 2026 19:45:15 +0800, Kery Qi wrote:

> The code in sbp_make_tpg() limits "tpgt" to UINT_MAX but the data type
> of "tpg->tport_tpgt" is u16. This causes a type truncation issue.
> 
> When a user creates a TPG via configfs mkdir, for example:
> 
>     mkdir /sys/kernel/config/target/sbp/<wwn>/tpgt_70000
> 
> [...]

Applied to 6.19/scsi-fixes, thanks!

[1/1] firewire: sbp-target: fix integer type overflow in sbp_make_tpg()
      https://git.kernel.org/mkp/scsi/c/b2d6b1d44300

-- 
Martin K. Petersen