Commit c8a75a5
committed
af_unix: Use consume_skb() in connect() and sendmsg().
JIRA: https://issues.redhat.com/browse/RHEL-88891
Upstream Status: linux.git
commit 085e6cb
Author: Kuniyuki Iwashima <kuniyu@amazon.com>
Date: Thu Jan 16 14:34:42 2025 +0900
af_unix: Use consume_skb() in connect() and sendmsg().
This is based on Donald Hunter's patch.
These functions could fail for various reasons, sometimes
triggering kfree_skb().
* unix_stream_connect() : connect()
* unix_stream_sendmsg() : sendmsg()
* queue_oob() : sendmsg(MSG_OOB)
* unix_dgram_sendmsg() : sendmsg()
Such kfree_skb() is tied to the errno of connect() and
sendmsg(), and we need not define skb drop reasons.
Let's use consume_skb() not to churn kfree_skb() events.
Link: https://lore.kernel.org/netdev/eb30b164-7f86-46bf-a5d3-0f8bda5e9398@redhat.com/
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250116053441.5758-10-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Antoine Tenart <atenart@redhat.com>1 parent dcb4bf0 commit c8a75a5
1 file changed
+14
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1706 | 1706 | | |
1707 | 1707 | | |
1708 | 1708 | | |
1709 | | - | |
| 1709 | + | |
1710 | 1710 | | |
1711 | 1711 | | |
1712 | 1712 | | |
| |||
2174 | 2174 | | |
2175 | 2175 | | |
2176 | 2176 | | |
2177 | | - | |
| 2177 | + | |
2178 | 2178 | | |
2179 | 2179 | | |
2180 | 2180 | | |
| |||
2193 | 2193 | | |
2194 | 2194 | | |
2195 | 2195 | | |
2196 | | - | |
| 2196 | + | |
2197 | 2197 | | |
2198 | 2198 | | |
2199 | 2199 | | |
2200 | 2200 | | |
2201 | 2201 | | |
2202 | 2202 | | |
2203 | 2203 | | |
2204 | | - | |
2205 | | - | |
2206 | | - | |
2207 | | - | |
| 2204 | + | |
| 2205 | + | |
| 2206 | + | |
2208 | 2207 | | |
2209 | 2208 | | |
2210 | 2209 | | |
2211 | | - | |
2212 | | - | |
2213 | | - | |
2214 | | - | |
| 2210 | + | |
| 2211 | + | |
2215 | 2212 | | |
2216 | 2213 | | |
2217 | 2214 | | |
2218 | 2215 | | |
2219 | 2216 | | |
2220 | 2217 | | |
2221 | | - | |
2222 | | - | |
| 2218 | + | |
| 2219 | + | |
2223 | 2220 | | |
2224 | 2221 | | |
2225 | 2222 | | |
| |||
2234 | 2231 | | |
2235 | 2232 | | |
2236 | 2233 | | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
2237 | 2237 | | |
2238 | 2238 | | |
2239 | 2239 | | |
| |||
2363 | 2363 | | |
2364 | 2364 | | |
2365 | 2365 | | |
2366 | | - | |
| 2366 | + | |
2367 | 2367 | | |
2368 | 2368 | | |
2369 | 2369 | | |
| |||
0 commit comments