Bug 204681
Summary: | Kernel BUG/Oops: tc qdisc delete with tc filter action xt -j CONNMARK | ||
---|---|---|---|
Product: | Networking | Reporter: | Tony Ambardar (itugrok) |
Component: | Other | Assignee: | Stephen Hemminger (stephen) |
Status: | RESOLVED CODE_FIX | ||
Severity: | high | CC: | xiyou.wangcong |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 5.2.6 (x86_64) / 4.19.62 (mips32)/ 4.14.133 (arm7l) | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
BUG/Oops: kernel 5.2.6/x86_64
BUG/Oops: kernel 4.15/x86_64 Proposed fix |
Description
Tony Ambardar
2019-08-23 23:44:26 UTC
Created attachment 284583 [details]
BUG/Oops: kernel 4.15/x86_64
Created attachment 284589 [details]
Proposed fix
We forgot to initialize the net pointer...
Can you test the attached patch? Note this patch is generated against latest net tree, so if you apply it to an older kernel, you probably have to adjust it manually (some of the files it patches don't exist on older kernels).
Thanks.
I managed to apply the patch with minimal tweaking to a 4.19.66 LTS kernel (OpenWrt) and retested. The expected functionality was OK and no BUG/Oops was observed when deleting either the tc filter or qdisc, so I think the proposed fix is correct. Also, would the fix automatically get backported to the stable LTS kernel branches 4.19.x, 4.14.x, etc? Or is there some further process to follow? Thanks so much for looking into this. Thanks for testing it! I just sent out the patch formally with you copied. The networking subsystem maintainer will take care of the backports to stable releases. As another point of confirmation, I also applied a tweaked patch to an OpenWrt 4.14.138 LTS kernel with successful results. Thanks for clarifying the backports. Confirmed that this has been fixed in upstream master and the reported LTS branches. |