[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <176357169033.3229299.10737876668875559171.b4-ty@oracle.com>
Date: Wed, 19 Nov 2025 23:15:50 -0500
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: "James E.J. Bottomley" <James.Bottomley@...senPartnership.com>,
Ally Heev <allyheev@...il.com>
Cc: "Martin K . Petersen" <martin.petersen@...cle.com>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
Dan Carpenter <dan.carpenter@...aro.org>
Subject: Re: [PATCH] scsi: fix uninitialized pointers with free attr
On Wed, 05 Nov 2025 19:44:43 +0530, Ally Heev wrote:
> Uninitialized pointers with `__free` attribute can cause undefined
> behaviour as the memory assigned(randomly) to the pointer is freed
> automatically when the pointer goes out of scope
>
> scsi doesn't have any bugs related to this as of now, but
> it is better to initialize and assign pointers with `__free` attr
> in one statement to ensure proper scope-based cleanup
>
> [...]
Applied to 6.19/scsi-queue, thanks!
[1/1] scsi: fix uninitialized pointers with free attr
https://git.kernel.org/mkp/scsi/c/3813d28b2b12
--
Martin K. Petersen
Powered by blists - more mailing lists