Re: [PATCH 4.14 000/211] 4.14.157-stable review

From: Naresh Kamboju
Date: Thu Nov 28 2019 - 01:22:16 EST


Hi Greg,

> Kernel BUG noticed on x86_64 device while booting 4.14.157-rc1 kernel.


The problematic patch is,
>> Jouni Hogander <jouni.hogander@xxxxxxxxxx>
>> net-sysfs: Fix reference count leak in rx|netdev_queue_add_kobject

And this kernel panic is been fixed by below patch,

commit 48a322b6f9965b2f1e4ce81af972f0e287b07ed0
Author: Eric Dumazet <edumazet@xxxxxxxxxx>
Date: Wed Nov 20 19:19:07 2019 -0800

net-sysfs: fix netdev_queue_add_kobject() breakage

kobject_put() should only be called in error path.

Fixes: b8eb718348b8 ("net-sysfs: Fix reference count leak in
rx|netdev_queue_add_kobject")
Signed-off-by: Eric Dumazet <edumazet@xxxxxxxxxx>
Cc: Jouni Hogander <jouni.hogander@xxxxxxxxxx>
Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>



> Regressions (compared to build v4.14.156)
>
> [ 2.777657] BUG: unable to handle kernel NULL pointer dereference
> at 0000000000000090
> [ 2.785487] IP: kernfs_find_ns+0x18/0xf0
> [ 2.789408] PGD 0 P4D 0
> [ 2.791941] Oops: 0000 [#1] SMP PTI
> [ 2.795424] Modules linked in:
> [ 2.798474] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.14.157-rc1 #1
> [ 2.804906] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS
> 2.2 05/23/2018
> [ 2.812288] task: ffff8e09ee250000 task.stack: ffffa0f900028000
> [ 2.818200] RIP: 0010:kernfs_find_ns+0x18/0xf0

<trim>

> [ 3.108995] Kernel panic - not syncing: Attempted to kill init!
> exitcode=0x00000009
> [ 3.108995]
> [ 3.118161] Kernel Offset: 0x1c400000 from 0xffffffff81000000
> (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
>
> Full test log,
> https://lkft.validation.linaro.org/scheduler/job/1026224#L793
>

--
Linaro LKFT
https://lkft.linaro.org