lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 30 May 2019 17:18:48 +0800
From:   Gen Zhang <>
To:     Sergei Shtylyov <>
Subject: Re: [PATCH] hooks: fix a missing-check bug in selinux_add_mnt_opt()

On Thu, May 30, 2019 at 12:11:33PM +0300, Sergei Shtylyov wrote:
> Hello!
> On 30.05.2019 11:06, Gen Zhang wrote:
> >In selinux_add_mnt_opt(), 'val' is allcoted by kmemdup_nul(). It returns
>    Allocated?
Thanks for your reply, Sergei. I used 'allocated' because kmemdup_nul()
does some allocation in its implementation. And its docs descrips: 
"Return: newly allocated copy of @s with NUL-termination or %NULL in 
case of error". I think it is proper to use 'allocated' here. But it 
could be 'assigned', which is better, right?

> >NULL when fails. So 'val' should be checked.
> >
> >Signed-off-by: Gen Zhang <>
> [...]
> MBR, Sergei

Powered by blists - more mailing lists