I built my own image with d4f5b37a08d64dce5f9d690f381b0e1c3f253913 on r64-emmc branch.
after i enable hwnat via luci firewall options, kernel will panic(oops) randomly.
it will always crash because “Unable to handle kernel paging request at virtual address ffffff883e35ffa0”, the address ffffff883e35ffa0 is always the same.
obviously nbd’s code is too new that i cannot search out any things about this kernel panic on google
it’s midnight here, i just closed my computer few minutes ago.
I will submit that full log tomorrow, if you are interested, (in my memory) the stack is
fffffffxxxx(no symbol, seems to be a strange address? maybe stack is corrupted?)
mtk_flow_offload (static function in driver/net/ethernet/mediatek/mtk_soc_eth.c) on calling next before return,
finally oops at mtk_flow_offload_add(at driver/net/ethernet/mediatek/mtk_offload.c ) function line “rcu_assign_pointer(eth->foe_flow_table[rhash], NULL);” in offload flow deletion routine.
The oops instruction is last asm of that c code, ldr x(num),[x0]
yes, create an issue on github may be good, i just wonder if anyone have encountered this problem.
if i am the only one, this may not be a kernel bug, but related to my own build environment. if anyone else can reproduce this, it must be a kernel bug.
Thanks for report and trace/objdump (unfortunately i have not enough knowledge to understand it). Maybe data needs to be aligned to 4k pagesize (address is not)?
I get your branch try to build the image, but I get the error when boot it always cannot mount the rootfs.
do you meet this issue before?log.txt (5.1 KB)
still the same error.
[ 11.067074] hub 2-0:1.0: USB hub found
[ 11.070834] hub 2-0:1.0: 1 port detected
[ 11.075184] rtc_mt7622 10212800.rtc: setting system clock to 2021-01-06T13:38:08 UTC (1609940288)
[ 11.084853] VFS: Cannot open root device “mmcblk0p7” or unknown-block(179,7): error -6
[ 11.092768] Please append a correct “root=” boot option; here are the available partitions:
[ 11.101117] b300 7634944 mmcblk0
[ 11.101119] driver: mmcblk
[ 11.107910] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,7)
[ 11.116339] SMP: stopping secondary CPUs
[ 11.120253] Kernel Offset: disabled
[ 11.123732] CPU features: 0x0002,04002004
[ 11.127730] Memory Limit: none
[ 11.130775] Rebooting in 1 seconds…