[dpdk-dev] [PATCH 2/2] but/pci: fix fd close for hot-unplug

Jeff Guo jia.guo at intel.com
Thu Nov 8 04:10:29 CET 2018


hi, stephen

On 11/8/2018 3:33 AM, Stephen Hemminger wrote:
> On Wed,  7 Nov 2018 17:41:31 +0800
> Jeff Guo <jia.guo at intel.com> wrote:
>
>> When device is hot-unplugged, the device fd will be deleted in kernel.
>> Then in the progress of detaching device, if it try to close the fd,
>> it will cause a kernel crash, which shown a kernel null pointer error.
> If this happens, then it is a kernel bug and the kernel should be fixed.
> Working around it in userspace is not a great long term solution.


agree with you. The key is sometime hold by kernel. But i think it is at 
least reasonable for avoiding no-use process in user space, whatever 
kernel's behavior. I am not sure if there is any better idea we can 
find, but seems it is an option now.




More information about the dev mailing list