mbox series

[SRU,E,0/1] Fix potential null pointer dereference on kernfs

Message ID 20200422095319.6181-1-kai.heng.feng@canonical.com
Headers show
Series Fix potential null pointer dereference on kernfs | expand

Message

Kai-Heng Feng April 22, 2020, 9:53 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1874221

[Impact]
We are seeing a null kernel dereference on kernfs during system sleep
stress.

[Fix]
Make sure kernfs node is not null before reaching to root.

[Test]
Run sleep stress. Not seeing the issue after the fix is applied.

[Regression Potential]
Low. Fix limits to kernfs, also the it has been in upstream kernel for
quite a while. 

Peng Wang (1):
  kernfs: fix potential null pointer dereference

 fs/kernfs/dir.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Kelsey Skunberg April 24, 2020, 5:40 p.m. UTC | #1
On 2020-04-22 17:53:18 , Kai-Heng Feng wrote:
> BugLink: https://bugs.launchpad.net/bugs/1874221
> 
> [Impact]
> We are seeing a null kernel dereference on kernfs during system sleep
> stress.
> 
> [Fix]
> Make sure kernfs node is not null before reaching to root.
> 
> [Test]
> Run sleep stress. Not seeing the issue after the fix is applied.
> 
> [Regression Potential]
> Low. Fix limits to kernfs, also the it has been in upstream kernel for
> quite a while. 
> 
> Peng Wang (1):
>   kernfs: fix potential null pointer dereference
> 
>  fs/kernfs/dir.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>

Applied to Eoan/master-next. Thank you! 

-Kelsey
 
> -- 
> 2.17.1
> 
> 
> -- 
> kernel-team mailing list
> kernel-team@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team