Re: general protection fault in tomoyo_socket_sendmsg_permission

From: Shuah Khan
Date: Thu Feb 11 2021 - 20:35:03 EST


On 2/10/21 6:14 PM, Tetsuo Handa wrote:
(Dropping LSM ML because this is not a TOMOYO's bug.)

On 2021/02/11 4:29, Shuah Khan wrote:
This is a good find. I already replied to the thread to send a complete
fix.

As I said at https://lkml.kernel.org/r/f8cae6b1-8f84-0e6a-7d9c-fc4aec68f07b@xxxxxxxxxxxxxxxxxxx ,
the as-is patch is effectively a complete fix. And applying the as-is patch should help spending
syzbot resources for reproducing "general protection fault in tomoyo_socket_sendmsg_permission"
with debug printk() patch applied, which in turn will help you in

Right. I would like to get a clear understanding of how this condition
is triggered. I am not saying this isn't a problem. Understanding how
it is triggered helps find the best fix.

part. Therefore, I strongly expect you to apply this version now.


Is there a reproducer for this problem?

thanks,
-- Shuah