Re: [PATCH 2/2] usb/msd: add usb_msd_fatal_error() and fix guest-triggerable assert

2022-08-30 Thread Qiang Liu
I've checked out the patches and re-run my PoC. I see no crash anymore. I also fuzzed the latest code for a while (with the patches) and I saw no related crashes. Tested-by: Qiang Liu On Tue, Aug 30, 2022 at 2:38 PM Gerd Hoffmann wrote: > > Add handler for fatal errors. Moves device into error

[PATCH 2/2] usb/msd: add usb_msd_fatal_error() and fix guest-triggerable assert

2022-08-29 Thread Gerd Hoffmann
Add handler for fatal errors. Moves device into error state where it stops responding until the guest resets it. Guest can send illegal requests where scsi command and usb packet transfer directions are inconsistent. Use the new usb_msd_fatal_error() function instead of assert() in that case. R