[PATCH] tomoyo: Avoid potential null pointer access

Zheng Zengkai zhengzengkai at huawei.com
Fri Nov 27 07:17:12 UTC 2020


Hello Tetsuo,
> On 2020/11/26 15:33, Zheng Zengkai wrote:
>> As your say,  I found the function tomoyo_assign_namespace( )
>>
>> in security/tomoyo/domain.c has the similar situation,
>>
>> Can I add __GFP_NOWARN for both and remove the null check for _entry_ in tomoyo_assign_namespace( )?
>>
> Good catch. Yes, please send as a patch.
> .

I have resent a patch, thanks!



More information about the Linux-security-module-archive mailing list