Re: Re: [PATCH v2] PCI: Fix Oops caused by uninitialized slot->list in pci_slot_release()

2020-12-07 Thread zhongjubin
>On Wed, Dec 02, 2020 at 10:33:42AM +0800, Jubin Zhong wrote: >> Once kobject_init_and_add() failed, pci_slot_release() is called to >> delete slot->list from parent->slots. But slot->list is intialized >> afterwards, so we ran into the following crash: >> >> Unable to handle kernel NULL point

Re: [PATCH v2] PCI: Fix Oops caused by uninitialized slot->list in pci_slot_release()

2020-12-04 Thread Bjorn Helgaas
On Wed, Dec 02, 2020 at 10:33:42AM +0800, Jubin Zhong wrote: > Once kobject_init_and_add() failed, pci_slot_release() is called to > delete slot->list from parent->slots. But slot->list is intialized > afterwards, so we ran into the following crash: > > Unable to handle kernel NULL pointer deref

[PATCH v2] PCI: Fix Oops caused by uninitialized slot->list in pci_slot_release()

2020-12-01 Thread Jubin Zhong
Once kobject_init_and_add() failed, pci_slot_release() is called to delete slot->list from parent->slots. But slot->list is intialized afterwards, so we ran into the following crash: Unable to handle kernel NULL pointer dereference at virtual address ... CPU: 10 PID: 1 Comm: swapper