Re: [PATCH v2 1/4] qla2xxx: Warn if done() or free() are called on an already freed srb

2020-09-07 Thread Arun Easi
On Mon, 31 Aug 2020, 9:18am, Daniel Wagner wrote: > > Emit a warning when ->done or ->free are called on an already freed > srb. There is a hidden use-after-free bug in the driver which corrupts > the srb memory pool which originates from the cleanup callbacks. By > explicitly resetting the callb

[PATCH v2 1/4] qla2xxx: Warn if done() or free() are called on an already freed srb

2020-08-31 Thread Daniel Wagner
Emit a warning when ->done or ->free are called on an already freed srb. There is a hidden use-after-free bug in the driver which corrupts the srb memory pool which originates from the cleanup callbacks. By explicitly resetting the callbacks to NULL, we workaround the memory corruption. An extensi