Running MPPE over a PPP link (using MS-CHAP non-V2) runs into a kernel bug panic, probably because some tegra_xxx functions are not interrupt safe as the kernel expects:
Running BSP 32.5.1 (kernel 4.9.201-tegra) on a Jetson AGX Xavier devkit
Could any nVidia developer check that and confirm if there is a simple patch to avoid this problem?
Regards
This is the bug:
[ 114.224871] kernel BUG at ../mm/vmalloc.c:1390!
[ 114.224997] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
...
[ 114.226190] Hardware name: Jetson-AGX (DT)
[ 114.226273] task: ffffffc795404600 task.stack: ffffffc7cff78000
[ 114.226400] PC is at __get_vm_area_node.isra.10+0x178/0x190
[ 114.226509] LR is at get_vm_area_caller+0x54/0x68
[ 114.226600] pc : [<ffffff8008212a58>] lr : [<ffffff8008212cbc>] pstate: 00400145
[ 114.227031] sp : ffffffc7cff7b590
[ 114.227306] x29: ffffffc7cff7b590 x28: ffffffc7da0fb018
[ 114.229984] x27: 0000000000000007 x26: ffffffbebfff0000
[ 114.235568] x25: ffffff8008000000 x24: 0000000000000001
[ 114.240820] x23: ffffff8008bffd9c x22: 0000000000000008
[ 114.245891] x21: 00000000024000c0 x20: 0000000000000008
[ 114.250965] x19: 0000000000001000 x18: 0000007fcb8092a4
[ 114.256739] x17: 0000007f7a5de960 x16: ffffff800825d3f8
[ 114.262201] x15: 000000000079baf5 x14: 0000000000000028
[ 114.268114] x13: ffffffc7cd692e80 x12: 0000000000000001
[ 114.273473] x11: ffffff8009531000 x10: ffffffbf00000000
[ 114.279494] x9 : 00000000fff7f000 x8 : ffffffc7d1c46000
[ 114.285264] x7 : 0000000000851c46 x6 : ffffff8008bffd9c
[ 114.290776] x5 : 00000000024000c0 x4 : ffffffbebfff0000
[ 114.296113] x3 : ffffff8008000000 x2 : 0000000000000008
[ 114.301454] x1 : 0000000000000001 x0 : 0000000000000401
[ 114.306543]
[ 114.308199] Process pppd (pid: 8163, stack limit = 0xffffffc7cff78000)
[ 114.314061] Call trace:
[ 114.316699] [<ffffff8008212a58>] __get_vm_area_node.isra.10+0x178/0x190
[ 114.322815] [<ffffff8008212cbc>] get_vm_area_caller+0x54/0x68
[ 114.328160] [<ffffff800879e4f8>] dma_common_pages_remap+0x40/0x90
[ 114.334019] [<ffffff80080a10b0>] __iommu_alloc_attrs+0xd8/0x478
[ 114.339879] [<ffffff8008bffd9c>] tegra_se_sha_process_buf+0x5ec/0x848
[ 114.345821] [<ffffff8008c00104>] tegra_se_sha_op+0x10c/0x1e0
[ 114.350903] [<ffffff8008c00234>] tegra_se_sha_digest+0x5c/0x98
[ 114.356515] [<ffffff8008404a08>] crypto_ahash_op+0x40/0xa8
[ 114.361579] [<ffffff8008404b10>] crypto_ahash_digest+0x30/0x48
[ 114.367180] [<ffffff80089eb0cc>] get_new_key_from_sha+0x11c/0x148
[ 114.373384] [<ffffff80089eb154>] mppe_rekey+0x5c/0x190
[ 114.378634] [<ffffff80089eba58>] mppe_init.part.1+0xd8/0x228
[ 114.383977] [<ffffff80089ebcc0>] mppe_comp_init+0x88/0x90
[ 114.389318] [<ffffff80089e3b00>] ppp_ccp_peek+0x188/0x240
[ 114.394828] [<ffffff80089e4460>] __ppp_xmit_process+0xe8/0x550
[ 114.400947] [<ffffff80089e4d48>] ppp_xmit_process+0x50/0xb8
[ 114.406634] [<ffffff80089e65fc>] ppp_write+0x11c/0x158
[ 114.411798] [<ffffff800825add8>] __vfs_write+0x48/0x118
[ 114.416703] [<ffffff800825bdcc>] vfs_write+0xac/0x1b0
[ 114.422035] [<ffffff800825d454>] SyS_write+0x5c/0xc8
[ 114.427024] [<ffffff8008083900>] el0_svc_naked+0x34/0x38
[ 114.432292] ---[ end trace 5d5f03683597ef6b ]---
[ 114.453003] Kernel panic - not syncing: Fatal exception in interrupt
[ 114.453146] SMP: stopping secondary CPUs
[ 114.453239] Kernel Offset: disabled
[ 114.453313] Memory Limit: none
[ 114.454055] trusty-log panic notifier - trusty version Built: 08:40:57 Feb 19 2021
[ 114.477398] Rebooting in 5 seconds..