New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ramips/mt7621: panic when reading /sys/kernel/debug/ppe0/entries with 5.15 kernel #11756
Closed
1 task done
Labels
bug
issue report with a confirmed bug
Comments
The problem is most likely introduced by 9721a42. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@dangowrt can I have your feedback on b055c62ca7791bd7d989fd68edff0ccc63e3d624? Not sure editing the patch in place is the right way to go. But I guess since it's still pending, it probably is. Also, maybe using has_accounting field of struct mtk_soc_data is cleaner? |
Confirm that stintel@b055c62 can fix it.
|
Vladdrako
pushed a commit
to Vladdrako/openwrt
that referenced
this issue
Jan 12, 2023
The patch that adds support for hw flow-offloading counters on newer MediaTek SoCs tries to prints acct->packets and acct->bytes in debugfs, without checking that acct isn't null. This causes a kernel panic when trying to read /sys/kernel/debug/ppe0/entries on older MediaTek SoCs. Fix this by adding a check for acct. Fixes: openwrt#11756 Fixes: 9721a42 ("kernel: support hw flow-offloading counters on newer MediaTek SoCs") Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Vladdrako
pushed a commit
to Vladdrako/openwrt
that referenced
this issue
Jan 17, 2023
The patch that adds support for hw flow-offloading counters on newer MediaTek SoCs tries to prints acct->packets and acct->bytes in debugfs, without checking that acct isn't null. This causes a kernel panic when trying to read /sys/kernel/debug/ppe0/entries on older MediaTek SoCs. Fix this by adding a check for acct. Fixes: openwrt#11756 Fixes: 9721a42 ("kernel: support hw flow-offloading counters on newer MediaTek SoCs") Reported-by: Stijn Tintel <stijn@linux-ipv6.be> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Reading /sys/kernel/debug/ppe0/entries causes a kernel panic on ramips.
OpenWrt version
r21740-0cc1c302b1
OpenWrt target/subtarget
ramips/mt7621
Device
TP-Link EAP615-Wall v1
Image kind
Self-built image
Steps to reproduce
Build and flash ramips/mt7621 image with CONFIG_TESTING_KERNEL=y
cat /sys/kernel/debug/ppe0/entries
Actual behaviour
Expected behaviour
Show content without crashing
Additional info
This points to the last seq_printf in mtk_ppe_debugfs_foe_show().
Diffconfig
Terms
The text was updated successfully, but these errors were encountered: