Re: [PATCH] tty: n_gsm: check error while registering tty devices

From: Hao Sun
Date: Thu Apr 08 2021 - 22:00:41 EST


> Can you share the info you know about the syzbot report?

Sorry for the late reply, I don't know the REPORT information of
syzbot because I haven't deployed it.
The attached reproduction program was generated by syz-repro.
As you can see from the repro.cprog, the bug occurred in the case of
fault injection.

In repro.cprog, line 108-109:
inject_fault(81);
syscall(__NR_ioctl, r[0], 0x5423, 0x20000080ul);


Hillf Danton <hdanton@xxxxxxxx> 于2021年4月7日周三 下午4:21写道:
>
> On Wed, 7 Apr 2021 07:37:53 Jiri Slaby wrote:
> >
> >Yes, the fix makes sense.
>
> Thanks for taking a look.
>
> >But could you elaborate in the commit log when this happens?
> >I only wonder how real this is. I assume you inject faults to allocations?
>
> After looking at Hao's report [1] again, I think you are right as it was
> reported by syzbot too. Can you share the info you know about the syzbot
> report, Hao, something like the line below with the Reported-by prefix?
>
> (This is just an example Reported-by: syzbot+b804f902bbb6bcf290cb@xxxxxxxxxxxxxxxxxxxxxxxxx)
>
>
> [1] https://lore.kernel.org/lkml/CACkBjsYEhOuQUd2qjobumByFtAXyyoGqXgM8gXYZHqsnV8dgUg@xxxxxxxxxxxxxx/