Re: [PATCH] net: tulip: Restrict DMA engine to memories

2022-08-23 Thread Jason Wang
在 2022/8/24 10:26, Jason Wang 写道: On Sun, Aug 21, 2022 at 8:29 PM Zheyu Ma wrote: The DMA engine is started by I/O access and then itself accesses the I/O registers, triggering a reentrancy bug. The following log can reveal it: ==5637==ERROR: AddressSanitizer: stack-overflow #0

Re: [PATCH] net: tulip: Restrict DMA engine to memories

2022-08-23 Thread Jason Wang
On Sun, Aug 21, 2022 at 8:29 PM Zheyu Ma wrote: > > The DMA engine is started by I/O access and then itself accesses the > I/O registers, triggering a reentrancy bug. > > The following log can reveal it: > ==5637==ERROR: AddressSanitizer: stack-overflow > #0 0x5595435f6078 in

[PATCH] net: tulip: Restrict DMA engine to memories

2022-08-21 Thread Zheyu Ma
The DMA engine is started by I/O access and then itself accesses the I/O registers, triggering a reentrancy bug. The following log can reveal it: ==5637==ERROR: AddressSanitizer: stack-overflow #0 0x5595435f6078 in tulip_xmit_list_update qemu/hw/net/tulip.c:673 #1 0x5595435f204a in