zephyr/subsys/net/l2
Jukka Rissanen be072b1255 net: ethernet: Check that header is valid
Saw this crash with heavily loaded system in mimxrt1050_evk:

<err> os: ***** MPU FAULT *****
<err> os:   Data Access Violation
<err> os:   MMFAR Address: 0xc
<err> os: r0/a1:  0x80000ab0  r1/a2:  0x800f6a60  r2/a3:  0x00000000
<err> os: r3/a4:  0x800f72a0 r12/ip:  0x00000000 r14/lr:  0x6000eb43
<err> os:  xpsr:  0x41000000
<err> os: Faulting instruction address (r15/pc): 0x6000dc82
<err> os: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
<err> os: Current thread: 0x80001a18 (rx_workq)
<err> os: Halting system

Where the fault at 0x6000dc82 points to ethernet_recv()

	uint16_t type = ntohs(hdr->type);
6000dc82:	89ab      	ldrh	r3, [r5, #12]

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2020-09-28 14:25:13 +03:00
..
bluetooth device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
canbus device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
dummy device: Apply driver_api/data attributes rename everywhere 2020-08-11 19:30:53 +02:00
ethernet net: ethernet: Check that header is valid 2020-09-28 14:25:13 +03:00
ieee802154 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
openthread net: openthread: Fix stack overflow for joiner 2020-09-24 15:55:30 -05:00
ppp net: l2: ppp: don't move back to NETWORK state when link goes down 2020-08-21 11:53:59 +03:00
wifi device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
CMakeLists.txt net: l2: 6LoCAN implementation 2019-08-08 13:25:01 +03:00
Kconfig kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00