Re: [PULL 22/22] cryptodev: Handle unexpected request to avoid crash

2023-08-03 Thread Michael Tokarev
04.08.2023 09:10, zhenwei pi wrote: .. This smells like a stable-8.0 material. Please let me know if it is not. Both this one [1] and the previous one [2] should be table-8.0 material, I think. [1][PULL 22/22] cryptodev: Handle unexpected request to avoid crash [2][PULL 21/22] virtio-crypto:

Re: Re: [PULL 22/22] cryptodev: Handle unexpected request to avoid crash

2023-08-03 Thread zhenwei pi
On 8/4/23 12:35, Michael Tokarev wrote: 04.08.2023 01:21, Michael S. Tsirkin wrote: From: zhenwei pi Generally guest side should discover which services the device is able to offer, then do requests on device. However it's also possible to break this rule in a guest. Handle unexpected request

Re: [PULL 22/22] cryptodev: Handle unexpected request to avoid crash

2023-08-03 Thread Michael Tokarev
04.08.2023 01:21, Michael S. Tsirkin wrote: From: zhenwei pi Generally guest side should discover which services the device is able to offer, then do requests on device. However it's also possible to break this rule in a guest. Handle unexpected request here to avoid NULL pointer dereference.