Re: [PATCH] scsi: target: iblock: Fix wrong PR ops NULL check for PREEMPT/RELEASE

"Martin K. Petersen" <[email protected]> Tue, 28 Jul 2026 22:56:11 -0400
Newsgroups org.kernel.vger.target-devel,org.kernel.vger.linux-scsi
Message-ID <[email protected]>
On Fri, 24 Jul 2026 15:58:50 +0800, [email protected] wrote:

> In the iblock_execute_pr_out function, PRO_PREEMPT, PRO_PREEMPT_AND_ABORT
> and PRO_RELEASE all perform callback capability checks through
> ops->pr_clear. The error check allows unimplemented hooks to pass through
> the gate, resulting  dereferencing a NULL function pointer.
> 
> Check whether the hooks that need to be called are supported.
> 
> [...]

Applied to 7.2/scsi-fixes, thanks!

[1/1] scsi: target: iblock: Fix wrong PR ops NULL check for PREEMPT/RELEASE
      https://git.kernel.org/mkp/scsi/c/9c33222bd387

-- 
Martin K. Petersen