Re: [PATCH] can: remove WARN() statement from list operation sanity check

2020-11-27 Thread Oliver Hartkopp
On 27.11.20 10:48, Marc Kleine-Budde wrote: /* Check for bugs in CAN protocol implementations using af_can.c: * 'rcv' will be NULL if no matching list item was found for removal. +* As this case may potentially happen when closing a socket while +* the notifier f

Re: [PATCH] can: remove WARN() statement from list operation sanity check

2020-11-27 Thread Marc Kleine-Budde
On 11/26/20 8:21 PM, Oliver Hartkopp wrote: > To detect potential bugs in CAN protocol implementations (double removal > of receiver entries) a WARN() statement has been used if no matching list > item was found for removal. > > The fault injection issued by syzkaller was able to create a situatio

Re: [PATCH] can: remove WARN() statement from list operation sanity check

2020-11-26 Thread Marc Kleine-Budde
On 11/26/20 8:21 PM, Oliver Hartkopp wrote: > To detect potential bugs in CAN protocol implementations (double removal > of receiver entries) a WARN() statement has been used if no matching list > item was found for removal. > > The fault injection issued by syzkaller was able to create a situatio

[PATCH] can: remove WARN() statement from list operation sanity check

2020-11-26 Thread Oliver Hartkopp
To detect potential bugs in CAN protocol implementations (double removal of receiver entries) a WARN() statement has been used if no matching list item was found for removal. The fault injection issued by syzkaller was able to create a situation where the closing of a socket runs simultaneously to