Re: [hatari-devel] nf_scsidrv.c, NULL sense data buffer issue |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] nf_scsidrv.c, NULL sense data buffer issue
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Fri, 25 Oct 2024 23:31:57 +0200
- Arc-authentication-results: i=1; strato.com; arc=none; dkim=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1729891930; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=c82isvPjA6sePJS4lBZngZtauNUQvbz96uOmlZd7GtA=; b=NkxvWNTrZLaL9vg527ToCzfXu1Ir2VO9CQPOKZQwudy6JbYoEBJzYGXPFy3rdR96xk XRBjQ4Yo1mttjhteoUugu2yClT94giRU4fCGYyzJlfylp9N3dLLJ1VjcUQkNVHZQLfrI yOSjOD+ZXcosxsN1mKA3sYnuj0kpye+3yO0F9be1/AsYf3tjYJOFwV4YqWBHBeF+sXcC 5eRgJgorGui+vTJs6t/FOYyPkM5T7KvFfD0+btEzkt9589rgLdfBMIlkuL5MCoWAsrO3 pBwQDNmoBGdx2mPd0YfaWwJzrWhpyANoSK8D7aoJKP/ZteSmslgh/Fp0aE4PX82hJzqt LcIQ==
- Arc-seal: i=1; a=rsa-sha256; t=1729891930; cv=none; d=strato.com; s=strato-dkim-0002; b=mLWX7Z0IfG2+9kJHtTB7MFxc12/xXpm+gWu5m+X0CU7NPdDfu3PilOFWTrueTU1L8L A52IBhjGEnT7deRB6KxtNGM4oDUXOI3u+UzNj+6zLQei8YdxXUrNCVQu9hmrtPmehCOS Y6TNlVno5jWxio82cBrv6HsgROqaXQd9GWM1f80EqY6pP0aZ7GjSm+iENnLcbTF8BbZm eThkr2+scZAtEYSq3fTiNBOat7Sawi4JWncyRiInjuKesUHFF+iv4FYFa8IrUqMv4/th dU7SjhzHpoVXtVfCCGGun4quuhE0jgPnvYuvFT5GvlustDPBeGio7kI6sxl7TUs6xYDl ZqGQ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1729891930; s=strato-dkim-0002; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=c82isvPjA6sePJS4lBZngZtauNUQvbz96uOmlZd7GtA=; b=n3gvgGwfTBP/m/JZmBLvzieEPi5yfBZr5Kb2G3mXzVXILyGEnB/7Qjli3tXOuFx1wb o4rYUyyeTZF9yhTfuU8kjV3eta9pwSpQKM8O42yQ6L2E8HWd6NwtE2DCWCeNHMAQNGCl MEAZMF1L7umhINEFgfzc5yqtLVHYjWUY6BoxJqrW07VFOB5w245OFxEvFxa43yz4ZypN D6/ir1V7PYLzlvdwDxiJxYWB2S5jh/eNVbQVs0QOtXeYPk1UOYSnVXQa538gdYiieKJg C1RfyEifjPU1xuZXN9Ig3hUbcN1N4Rsz/h9fqcdeEPXe6aeRtmBLOIvOtt8pQpxibpiB /oGg==
- Dkim-signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1729891930; s=strato-dkim-0003; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=c82isvPjA6sePJS4lBZngZtauNUQvbz96uOmlZd7GtA=; b=vspcq5jXy9xwaUh++kParCjek52NxkH4RN7Nng9ceNxiYLO4u1GVdvF2UB1IutQ0Rg MsYisVdFILo61I2cMfDw==
You can discard this issue. There was a bug in my code, causing a buffer
overflow.
> I just found that the problem I stumbled upon is most likely not related to
> Hatari/nf_scsidrv.c.
> Please do not spend time on it, I will have to run more tests.
>
> > Hi,
> >
> > When the sense data buffer passed to the SCSI Driver is NULL, TOS crashes
> > with 4 bombs, even though NULL is a legal value.
> > There must be something wrong with how a NULL sense data buffer is handled
> > in scsidrv_inout. I don't know (anymore) how st_sense_buffer and
> > sense_buffer are related, but I guess one of the fields is not dealt with
> > correctly when the ST passes NULL. Any idea what's wrong?
> >
> > Best regards
> >
> > Uwe
> >
> >
>
>