Bug 206133
Summary: | removing igb causes GPF at sysfs_remove_group | ||
---|---|---|---|
Product: | Drivers | Reporter: | Sami Farin (hvtaifwkbgefbaei) |
Component: | Network | Assignee: | drivers_network (drivers_network) |
Status: | NEW --- | ||
Severity: | high | CC: | huangkangjing |
Priority: | P1 | ||
Hardware: | x86-64 | ||
OS: | Linux | ||
Kernel Version: | 4.19.93 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Sami Farin
2020-01-08 19:51:47 UTC
4.19.93 has a33121e5487b424339636b25c35d3a180eaa5f5e , but I didn't get this splat with 4.19.90...... I encountered this bug on kernel branch 5.4 with versions >= 5.4.8 as well. This commit (https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=a33121e5487b424339636b25c35d3a180eaa5f5e) seems to be the pitfall, it's in versions >= 5.4.8 but not in versions < 5.4.8. And I reverse-patched the whole commit on 5.4.8, actually fixing the issue. However I'm not sure with the specific problem in the commit and could not figure out a fix yet. Note that this bug's impact is bigger than it seems. Although removing a network driver module is very rare in real use, it might actually happen in daily VM usages. A typical use is to pass-through a PCI device from the host to a VM so that the VM could use it, and if it is a network adapter using igb that is being pass-through'd, the hypervisor would need to remove the associated driver module first before setting up the IOMMU. And I could confirm that this bug would cause the hypervisor(In my case libvirt/KVM) freezing and VM failing to start in these use cases. This is actually how I encountered the bug. probably fixed by 75718584cb3c64e6269109d4d54f888ac5a5fd15 |