遇到了同样的问题,使用rndis向开发板传输大文件时就会报错,反向传输则没问题,详细日志如下
[ 301.229924] ------------[ cut here ]------------
[ 301.242358] kernel BUG at mm/slub.c:3995!
[ 301.253989] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
[ 301.267678] Modules linked in:
[ 301.278138] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.61 #24
[ 301.291952] Hardware name: Generic DT based system
[ 301.304387] PC is at kfree+0x68/0x1f4
[ 301.315447] LR is at kfree+0x4c/0x1f4
[ 301.326420] pc : [<c0205738>] lr : [<c020571c>] psr: 400e0193
[ 301.340315] sp : c0901d48 ip : 00000008 fp : c8823004
[ 301.352964] r10: 00000001 r9 : 0000007a r8 : c092e13c
[ 301.365568] r7 : c5528a88 r6 : c04674f8 r5 : 00000000 r4 : c6f91968
[ 301.379598] r3 : 00000000 r2 : c6f91968 r1 : c560a342 r0 : 00000000
[ 301.393548] Flags: nZcv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none
[ 301.408328] Control: 10c5387d Table: 4550c06a DAC: 00000051
[ 301.421405] Process swapper/0 (pid: 0, stack limit = 0x5a1af267)
[ 301.434719] Stack: (0xc0901d48 to 0xc0902000)
[ 301.446148] 1d40: c6096000 c0372a84 c6096600 c0379300 00000000 2b8a4c29
[ 301.462030] 1d60: 00000342 c5528a80 c092e124 00000000 c5528a88 c092e13c 0000007a 00000001
[ 301.477890] 1d80: c8823004 c04674f8 c092e124 c5528a80 c5528a80 00000001 c097e8d0 c092e124
[ 301.493717] 1da0: 00000001 c04676e4 c092e124 0000007a c097e8d0 c092e124 c092e068 c5528a80
[ 301.509489] 1dc0: 00000200 800e0113 00000001 0000027a 00000080 c04682c8 c092e068 c092e124
[ 301.525194] 1de0: c5528a80 c092e124 c5528a80 c097e8d0 c097e94c 00000600 00000400 c0468528
[ 301.540928] 1e00: c092e124 c5528a80 00000002 c8823086 c097e8d0 c092e124 c5528a80 00000001
[ 301.556628] 1e20: 00000002 00000001 00000001 c0468880 c092e068 c097e8d0 a00e0193 00000001
[ 301.572259] 1e40: 00000000 c063fc84 00000001 c0469398 c0747eea c0760ad3 00000006 00000002
[ 301.587857] 1e60: 00000000 00000002 00000001 00000000 00000000 c083122c c0963be0 00000000
[ 301.603402] 1e80: 00000000 2b8a4c29 c0963a80 c54c8840 c6a32c00 c6a32c68 c0901ed8 00000000
[ 301.618881] 1ea0: 00000032 10c5387d 00000000 c01571f4 c6a32c00 c0901ed8 00010001 c6a32c00
[ 301.634353] 1ec0: c6a32c00 c6a32c68 c6a32c68 c08260c0 c0900000 c01572e4 00000000 2b8a4c29
[ 301.649845] 1ee0: 00010001 c6a32c00 c0904204 c0157378 c6a32c00 c0904204 c6a32c14 c015b76c
[ 301.665345] 1f00: 00000000 00000000 c680c000 00000001 c08260c0 c01564f0 00000000 c0156b28
[ 301.680856] 1f20: c0901f48 c8802000 c0904204 c0901f7c c08260c0 c0340584 c0107d9c 600e0013
[ 301.696337] 1f40: ffffffff c01021cc 00072924 00000000 00072924 c0114d40 00000001 c0903e28
[ 301.711803] 1f60: c0900000 c0903e68 c08260c0 410fc075 10c5387d 00000000 7fffffb9 c0901f98
[ 301.727295] 1f80: c0107dac c0107d9c 600e0013 ffffffff 00000051 00000000 00000001 c013eb7c
[ 301.742797] 1fa0: 000000cf c093e000 c0903e00 00000000 c08260c0 c013ee5c c08260c0 c0800c4c
[ 301.758267] 1fc0: ffffffff ffffffff 00000000 c0800568 00000000 c08260c0 2b8f4814 00000000
[ 301.773683] 1fe0: c0800330 00000051 10c0387d ffffffff 44000000 00000000 00000000 00000000
[ 301.789140] [<c0205738>] (kfree) from [<c04674f8>] (sunxi_udc_done+0x12c/0x188)
[ 301.803650] [<c04674f8>] (sunxi_udc_done) from [<c04676e4>] (pio_read_fifo+0x190/0x1c4)
[ 301.818979] [<c04676e4>] (pio_read_fifo) from [<c04682c8>] (sunxi_udc_dma_completion+0x1a4/0x2b8)
[ 301.835296] [<c04682c8>] (sunxi_udc_dma_completion) from [<c0468528>] (sunxi_udc_read_fifo+0x14c/0x35c)
[ 301.858525] [<c0468528>] (sunxi_udc_read_fifo) from [<c0468880>] (sunxi_udc_handle_ep+0x148/0x160)
[ 301.881549] [<c0468880>] (sunxi_udc_handle_ep) from [<c0469398>] (sunxi_udc_irq+0x5c8/0xd4c)
[ 301.897696] [<c0469398>] (sunxi_udc_irq) from [<c01571f4>] (__handle_irq_event_percpu+0x3c/0x104)
[ 301.914381] [<c01571f4>] (__handle_irq_event_percpu) from [<c01572e4>] (handle_irq_event_percpu+0x28/0x84)
[ 301.938777] [<c01572e4>] (handle_irq_event_percpu) from [<c0157378>] (handle_irq_event+0x38/0x5c)
[ 301.955746] [<c0157378>] (handle_irq_event) from [<c015b76c>] (handle_fasteoi_irq+0xa0/0x118)
[ 301.972383] [<c015b76c>] (handle_fasteoi_irq) from [<c01564f0>] (generic_handle_irq+0x18/0x28)
[ 301.989200] [<c01564f0>] (generic_handle_irq) from [<c0156b28>] (__handle_domain_irq+0x90/0xa0)
[ 302.006071] [<c0156b28>] (__handle_domain_irq) from [<c0340584>] (gic_handle_irq+0x44/0x74)
[ 302.022518] [<c0340584>] (gic_handle_irq) from [<c01021cc>] (__irq_svc+0x6c/0xa8)
[ 302.038025] Exception stack(0xc0901f48 to 0xc0901f90)
[ 302.050823] 1f40: 00072924 00000000 00072924 c0114d40 00000001 c0903e28
[ 302.067174] 1f60: c0900000 c0903e68 c08260c0 410fc075 10c5387d 00000000 7fffffb9 c0901f98
[ 302.083487] 1f80: c0107dac c0107d9c 600e0013 ffffffff
[ 302.096294] [<c01021cc>] (__irq_svc) from [<c0107d9c>] (arch_cpu_idle+0x1c/0x38)
[ 302.111840] [<c0107d9c>] (arch_cpu_idle) from [<c013eb7c>] (do_idle+0xcc/0x11c)
[ 302.127285] [<c013eb7c>] (do_idle) from [<c013ee5c>] (cpu_startup_entry+0x18/0x1c)
[ 302.143036] [<c013ee5c>] (cpu_startup_entry) from [<c0800c4c>] (start_kernel+0x354/0x3ec)
[ 302.159489] Code: 1a000003 e5943004 e3130001 1a000000 (e7f001f2)
[ 302.173595] ---[ end trace 1bd2c4183e9b51d7 ]---