lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sat, 26 Mar 2022 21:26:26 +0300 From: David Kahurani <k.kahurani@...il.com> To: Pavel Skripkin <paskripkin@...il.com> Cc: davem@...emloft.net, jgg@...pe.ca, kuba@...nel.org, linux-kernel@...r.kernel.org, linux-usb@...r.kernel.org, netdev@...r.kernel.org, Phillip Potter <phil@...lpotter.co.uk>, syzkaller-bugs@...glegroups.com, syzbot+d3dbdf31fbe9d8f5f311@...kaller.appspotmail.com, arnd@...db.de Subject: Re: [syzbot] KMSAN: uninit-value in ax88179_led_setting On Sat, Mar 26, 2022 at 3:43 PM Pavel Skripkin <paskripkin@...il.com> wrote: > > Hi David, > > On 3/26/22 14:47, David Kahurani wrote: > >> > >> Signed-off-by: David Kahurani <k.kahurani@...il.com> > >> Reported-by: syzbot+d3dbdf31fbe9d8f5f311@...kaller.appspotmail.com > >> --- > >> drivers/net/usb/ax88179_178a.c | 181 +++++++++++++++++++++++++++------ > >> 1 file changed, 152 insertions(+), 29 deletions(-) > >> > >> diff --git a/drivers/net/usb/ax88179_178a.c b/drivers/net/usb/ax88179_178a.c > >> index a31098981..932e21a65 100644 > >> --- a/drivers/net/usb/ax88179_178a.c > >> +++ b/drivers/net/usb/ax88179_178a.c > >> @@ -224,9 +224,12 @@ static int __ax88179_write_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, > >> ret = fn(dev, cmd, USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE, > >> value, index, data, size); > >> > Yes, this breaks the logic of the entire patch. It was a mistake. Will fix that alongside your other comments. > You've changed __ax88179_write_cmd(), but not __ax88179_read_cmd(). I've > missed it. Changing __ax88179_write_cmd() does not help with uninit > value bugs > > Also I believe, __ax88179_read_cmd() should have __must_check annotation > too, since problem came from it in the first place (I mean after added > sane error handling inside it) > > Next thing is ax88179_read_cmd_nopm() still prone to uninit value bugs, > since it touches uninitialized `buf` in case of __ax88179_read_cmd() > error... > > > > I remembered why I gave up on fixing this driver... I hope, you have > more free time and motivation :) > > > > > With regards, > Pavel Skripkin
Powered by blists - more mailing lists