Fix #692 & #615: skb page refcounting, forwarded skb initialization #876
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix Server failovering may cause crashes under load or during getting of perfstat #692 in the kernel.
ss_skb_init_for_xmit() initializes forwarded skbs;
Protect tcp_v4_connect() -> tcp_connect() by the socket lock to let it
finish it's operation before getting response (e.g. ACK) from the peer
(crucial for loopback connections sending packets just by function calls);
Add assertions to guarantee that socket lock is aquired by current CPU;
Many replacements of BUG() assertions by WARN_ON_ONCE() for better
reliability.
Define TFW_CLASSIFIER_ACCSZ in dependence on CONFIG_DEBUG_LOCK_ALLOC
and several other minor fixes and cleanups;
I reviewed UDP/datagram code as well and the patch introduces several
fixes applicable to datagrams (e.g. skb_morph()), so I believe #615 can be safely closed.