Re: [PATCH v2 12/13] vtpmmgr: Check req_len before unpacking command

2021-05-10 Thread Daniel P. Smith
On 5/6/21 9:59 AM, Jason Andryuk wrote: > vtpm_handle_cmd doesn't ensure there is enough space before unpacking > the req buffer. Add a minimum size check. Called functions will have > to do their own checking if they need more data from the request. > > The error case is tricky since abort_egre

Re: [PATCH v2 12/13] vtpmmgr: Check req_len before unpacking command

2021-05-08 Thread Samuel Thibault
Jason Andryuk, le jeu. 06 mai 2021 09:59:22 -0400, a ecrit: > vtpm_handle_cmd doesn't ensure there is enough space before unpacking > the req buffer. Add a minimum size check. Called functions will have > to do their own checking if they need more data from the request. > > The error case is tri

[PATCH v2 12/13] vtpmmgr: Check req_len before unpacking command

2021-05-06 Thread Jason Andryuk
vtpm_handle_cmd doesn't ensure there is enough space before unpacking the req buffer. Add a minimum size check. Called functions will have to do their own checking if they need more data from the request. The error case is tricky since abort_egress wants to rely with a corresponding tag. Just h