[PATCH v2] acpi: nfit: fix narrowing conversion in acpi_nfit_ctl

2025-02-24 Thread Murad Masimov
commands") Cc: sta...@vger.kernel.org Reported-by: syzbot+c80d8dc0d9fa81a3c...@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=c80d8dc0d9fa81a3cd8c Signed-off-by: Murad Masimov --- v2: Add more details to the commit message. drivers/acpi/nfit/core.c | 2 +- 1 file ch

Re: [PATCH] acpi: nfit: fix narrowing conversion in acpi_nfit_ctl

2025-01-27 Thread Murad Masimov
> I tend to agree this is not ideal. But IMO the issue is that family is > treated as an int throughout the code rather than u64. Even u32 would > have been better than int because negative numbers are not allowed AFAICT > just skimming the code. > > Unfortunately, ripping through the code to ch

Re: [PATCH] acpi: nfit: fix narrowing conversion in acpi_nfit_ctl

2025-01-24 Thread Murad Masimov
...@linuxtesting.org; sta...@vger.kernel.org; syzbot+c80d8dc0d9fa81a3c...@syzkaller.appspotmail.com Тема: Re: [PATCH] acpi: nfit: fix narrowing conversion in acpi_nfit_ctl > On 1/23/25 9:39 AM, Murad Masimov wrote: > > Syzkaller has reported a warning in to_nfit_bus_uuid(): "only secondary > >

[PATCH] acpi: nfit: fix narrowing conversion in acpi_nfit_ctl

2025-01-23 Thread Murad Masimov
appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=c80d8dc0d9fa81a3cd8c Signed-off-by: Murad Masimov --- drivers/acpi/nfit/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c index a5d47819b3a4..ae035b93da08 100644 --- a/d