-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory leak from fragmented payload #3605
Comments
by Ruslan Mstoi:
|
by Ruslan Mstoi:
|
by Ruslan Mstoi:
|
by Mark Linkmeyer: Jukka Rissanen , can you review the priority and make sure we've set it appropriately? |
by Ruslan Mstoi: I've applied patches from pull request 289: #289 With patches applied after series of large fragmented packets echo_server still suffers from memory leak. I've attached files from test case ICMPv6.Echo.Echo-Request.IPv6-Packet.payload.protocol.icmpv6-message.icmpv6-echo-request.element - 20, named with prefix icmpv6-echo-20 If you replay icmpv6-echo-20-replay.pcap serveral times echo_server will run out of memory and print error messages: [net/net_pkt] [DBG] net_pkt_print: (0x001[net/buf] [ERR] net_buf_alloc_debug: net_pkt_get_reserve_data_debug():352: Failed to get free buffer and "net mem" will show: shell> net mem Note that the same error messages appear in attached log file, when running this test case once |
by Ruslan Mstoi:
|
by Ruslan Mstoi:
|
by Ruslan Mstoi:
|
by Jukka Rissanen: By default the IPv6 fragmentation is disabled so the medium priority is ok in this respect. This issue will be fixed of course. |
by Jukka Rissanen: Found the culprit, the static initialization of reassembly timer did not work as expected which was then seen as a memory leak. |
by Ruslan Mstoi: It seems there is still a memory leak with the new version of PR#289 Test case replayed several times by: shell> net mem |
by Jukka Rissanen: Indeed there was still an issue with memory handling. This is now fixed in the latest PR#289 version. |
by Ruslan Mstoi: Fixes in pull request solve this issue |
Reported by Ruslan Mstoi:
Defensics test case #6 ICMPv6.Echo.Echo-Request.IPv6-Packet.payload.protocol.icmpv6-message.icmpv6-echo-request.element
After running this test case echo server has a memory leak:
Fragment length 128 bytes
Network buffer pools:
Name Size Count Avail Address
RX 8000 100 98 0x0011ee4c
TX 8000 100 100 0x0011ee68
RX DATA (rx_bufs) 14800 100 76 0x0011e620
TX DATA (tx_bufs) 14800 100 100 0x0011e5e0
To reproduce, use attached testcase6-replay.pcap , and replay it by:
(Imported from Jira ZEP-2166)
The text was updated successfully, but these errors were encountered: