no1wudi commented on issue #8719: URL: https://github.com/apache/nuttx/issues/8719#issuecomment-1455701788
I meet the same issue from rv-virt: ``` NuttShell (NSH) NuttX-12.0.0 nsh> [ 9.850000] [CPU1] ubsan_prologue: ================================================================================ [ 9.860000] [CPU1] ubsan_prologue: UBSAN: misaligned-access in netdev/netdev_ioctl.c:1250:12 [ 9.860000] [CPU1] handle_misaligned_access: member access within misaligned address 0x9 for type 'struct arpreq' [ 9.860000] [CPU1] handle_misaligned_access: which requires 2 byte alignment [ 9.860000] [CPU1] ubsan_epilogue: ================================================================================ [ 9.870000] [CPU1] ubsan_prologue: ================================================================================ [ 9.880000] [CPU1] ubsan_prologue: UBSAN: misaligned-access in netdev/netdev_ioctl.c:1251:26 [ 9.880000] [CPU1] handle_misaligned_access: member access within misaligned address 0x9 for type 'struct arpreq' [ 9.900000] [CPU1] handle_misaligned_access: which requires 2 byte alignment [ 9.900000] [CPU1] ubsan_epilogue: ================================================================================ [ 9.930000] [CPU1] riscv_exception: EXCEPTION: Load access fault. MCAUSE: 00000005, EPC: 80045450, MTVAL: 0000003a [ 9.940000] [CPU1] riscv_exception: PANIC!!! Exception = 00000005 [ 9.940000] [CPU1] _assert: Current Version: NuttX 12.0.0 88cac02e09-dirty Mar 6 2023 16:29:33 risc-v [ 9.950000] [CPU1] _assert: Assertion failed panic: at file: common/riscv_exception.c:85 task(CPU1): Telnet session 0x8002a9be [ 9.960000] [CPU1] up_dump_register: EPC: 80045450 [ 9.970000] [CPU1] up_dump_register: A0: 00000016 A1: 00000076 A2: 800be414 A3: 00000053 [ 9.980000] [CPU1] up_dump_register: A4: 0000000a A5: ffffffcf A6: a0000000 A7: 0000a000 [ 9.990000] [CPU1] up_dump_register: T0: 00000000 T1: 10000000 T2: 00000000 T3: 00000000 [ 9.990000] [CPU1] up_dump_register: T4: 00000000 T5: 00000000 T6: 00000000 [ 10.000000] [CPU1] up_dump_register: S0: 00000009 S1: 0000003a S2: 00000118 S3: 800b2650 [ 10.000000] [CPU1] up_dump_register: S4: 00000000 S5: 8008b150 S6: 80017ae6 S7: 00000000 [ 10.020000] [CPU1] up_dump_register: S8: 80134824 S9: 00000000 S10: 800b47e8 S11: 800b9564 [ 10.030000] [CPU1] up_dump_register: SP: 80134610 FP: 00000009 TP: 00000000 RA: 80045434 [ 10.030000] [CPU1] dump_stack: IRQ Stack: [ 10.040000] [CPU1] dump_stack: sp: 0x8010e250 [ 10.040000] [CPU1] dump_stack: base: 0x8010cbc0 [ 10.040000] [CPU1] dump_stack: size: 00002048 [ 10.050000] [CPU1] dump_stack: ERROR: IRQ Stack pointer is not within the stack [ 10.050000] [CPU1] dump_stack: User Stack: [ 10.060000] [CPU1] dump_stack: sp: 0x80134610 [ 10.060000] [CPU1] dump_stack: base: 0x80133d60 [ 10.070000] [CPU1] dump_stack: size: 00003008 ``` It seems relative to arp (netdev_arp_ioctl), the req is a invalid pointer with value (0x9) on riscv. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org