Re: [PATCH] net: usb: pegasus: fix improper read if get_registers() fail

2019-08-01 Thread David Miller
From: Denis Kirjanov Date: Tue, 30 Jul 2019 15:13:57 +0200 > get_registers() may fail with -ENOMEM and in this > case we can read a garbage from the status variable tmp. > > Reported-by: syzbot+3499a83b2d062ae40...@syzkaller.appspotmail.com > Signed-off-by: Denis Kirjanov Applied, thank you.

Re: [PATCH] net: usb: pegasus: fix improper read if get_registers() fail

2019-07-31 Thread Petko Manolov
On 19-07-30 15:13:57, Denis Kirjanov wrote: > get_registers() may fail with -ENOMEM and in this > case we can read a garbage from the status variable tmp. > > Reported-by: syzbot+3499a83b2d062ae40...@syzkaller.appspotmail.com > Signed-off-by: Denis Kirjanov > --- > drivers/net/usb/pegasus.c | 2

Re: [PATCH] net: usb: pegasus: fix improper read if get_registers() fail

2019-07-31 Thread Petko Manolov
On 19-07-31 22:10:39, Petko Manolov wrote: > On 19-07-30 15:13:57, Denis Kirjanov wrote: > > get_registers() may fail with -ENOMEM and in this > > case we can read a garbage from the status variable tmp. > > > > Reported-by: syzbot+3499a83b2d062ae40...@syzkaller.appspotmail.com > > Signed-off-by:

Re: [PATCH] net: usb: pegasus: fix improper read if get_registers() fail

2019-07-30 Thread David Miller
From: Denis Kirjanov Date: Tue, 30 Jul 2019 21:19:46 +0300 > On Tuesday, July 30, 2019, David Miller wrote: > >> From: Denis Kirjanov >> Date: Tue, 30 Jul 2019 15:13:57 +0200 >> >> > get_registers() may fail with -ENOMEM and in this >> > case we can read a garbage from the status variable tmp.

Re: [PATCH] net: usb: pegasus: fix improper read if get_registers() fail

2019-07-30 Thread Denis Kirjanov
On 7/30/19, David Miller wrote: > From: Denis Kirjanov > Date: Tue, 30 Jul 2019 15:13:57 +0200 > >> get_registers() may fail with -ENOMEM and in this >> case we can read a garbage from the status variable tmp. >> >> Reported-by: syzbot+3499a83b2d062ae40...@syzkaller.appspotmail.com >> Signed-off-

Re: [PATCH] net: usb: pegasus: fix improper read if get_registers() fail

2019-07-30 Thread David Miller
From: Denis Kirjanov Date: Tue, 30 Jul 2019 15:13:57 +0200 > get_registers() may fail with -ENOMEM and in this > case we can read a garbage from the status variable tmp. > > Reported-by: syzbot+3499a83b2d062ae40...@syzkaller.appspotmail.com > Signed-off-by: Denis Kirjanov Why did you post this

[PATCH] net: usb: pegasus: fix improper read if get_registers() fail

2019-07-30 Thread Denis Kirjanov
get_registers() may fail with -ENOMEM and in this case we can read a garbage from the status variable tmp. Reported-by: syzbot+3499a83b2d062ae40...@syzkaller.appspotmail.com Signed-off-by: Denis Kirjanov --- drivers/net/usb/pegasus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[PATCH] net: usb: pegasus: fix improper read if get_registers() fail

2019-07-30 Thread Denis Kirjanov
get_registers() may fail with -ENOMEM and in this case we can read a garbage from the status variable tmp. Reported-by: syzbot+3499a83b2d062ae40...@syzkaller.appspotmail.com Signed-off-by: Denis Kirjanov --- drivers/net/usb/pegasus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --