crypto: virtio: Fix use-after-free in virtio_crypto_skcipher_finalize_req()
Subsystems (2)
Quoted 2 lines
… So the system will crash
at last when this memory be used again.
I would prefer a wording with less typos here.
Quoted 1 line
We can free the resources before calling ->complete to fix this issue.
* An imperative wording can be nicer.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=9cb1fd0efd195590b828b9b865421ad345a4a145#n151
* You proposed to move a call of the function “crypto_finalize_skcipher_request”. How does this change fit to the mentioned position?
* Would you like to add the tag “Fixes” to the commit message?
Regards,
Markus
Hi Markus,
Quoted 5 lines · Markus Elfring
Quoted 2 lines
… So the system will crash
at last when this memory be used again.I would prefer a wording with less typos here.
Could you help me to make the sentence better?
Quoted 6 lines
Quoted 2 lines
We can free the resources before calling ->complete to fix this issue.
* An imperative wording can be nicer.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=9cb1fd0efd195590b828b9b865421ad345a4a145#n151
I'll try.
Quoted 3 lines
* You proposed to move a call of the function “crypto_finalize_skcipher_request”. How does this change fit to the mentioned position?
The resources which need to be freed is not used anymore, but the pointers of these resources may be changed in the function "crypto_finalize_skcipher_request", so free these resources before call the function is suitable.
Quoted 2 lines
* Would you like to add the tag “Fixes” to the commit message?
OK.
Quoted 3 lines
Regards,
Markus
Signature · 3 lines
--- Regards, Longpeng(Mike)
Quoted 1 line
Could you help me to make the sentence better?
How do you think about a wording variant like the following?
So the system will crash when this memory will be used again.
Quoted 7 lines
Quoted 3 lines
* You proposed to move a call of the function “crypto_finalize_skcipher_request”. How does this change fit to the mentioned position?
The resources which need to be freed is not used anymore, but the pointers of these resources may be changed in the function "
crypto_finalize_skcipher_request", so free these resources before call the function is suitable.
Another alternative:
The resources which need to be cleaned up are not used any more. But the pointers of these resources may be changed in the function “crypto_finalize_skcipher_request”.
Thus release specific resources before calling this function.
Regards,
Markus
Quoted 6 lines · Markus Elfring
Quoted 1 line
Could you help me to make the sentence better?
How do you think about a wording variant like the following?
So the system will crash when this memory will be used again.
Uh, it's much better, thanks.
Quoted 9 lines
Quoted 8 lines
Quoted 4 lines
* You proposed to move a call of the function “crypto_finalize_skcipher_request”. How does this change fit to the mentioned position?
The resources which need to be freed is not used anymore, but the pointers of these resources may be changed in the function "
crypto_finalize_skcipher_request", so free these resources before call the function is suitable.
Quoted 6 lines
Another alternative:
The resources which need to be cleaned up are not used any more. But the pointers of these resources may be changed in the function “crypto_finalize_skcipher_request”.
Thus release specific resources before calling this function.
Oh great! Thanks.
Quoted 3 lines
Regards,
Markus
Signature · 3 lines
--- Regards, Longpeng(Mike)