Commit 085e6cb
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/[email protected]/
Signed-off-by: Kuniyuki Iwashima <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent 3b2d40d commit 085e6cb
1 file changed
+14
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1701 | 1701 | | |
1702 | 1702 | | |
1703 | 1703 | | |
1704 | | - | |
| 1704 | + | |
1705 | 1705 | | |
1706 | 1706 | | |
1707 | 1707 | | |
| |||
2172 | 2172 | | |
2173 | 2173 | | |
2174 | 2174 | | |
2175 | | - | |
| 2175 | + | |
2176 | 2176 | | |
2177 | 2177 | | |
2178 | 2178 | | |
| |||
2189 | 2189 | | |
2190 | 2190 | | |
2191 | 2191 | | |
2192 | | - | |
| 2192 | + | |
2193 | 2193 | | |
2194 | 2194 | | |
2195 | 2195 | | |
2196 | 2196 | | |
2197 | 2197 | | |
2198 | 2198 | | |
2199 | 2199 | | |
2200 | | - | |
2201 | | - | |
2202 | | - | |
2203 | | - | |
| 2200 | + | |
| 2201 | + | |
| 2202 | + | |
2204 | 2203 | | |
2205 | 2204 | | |
2206 | 2205 | | |
2207 | | - | |
2208 | | - | |
2209 | | - | |
2210 | | - | |
| 2206 | + | |
| 2207 | + | |
2211 | 2208 | | |
2212 | 2209 | | |
2213 | 2210 | | |
2214 | 2211 | | |
2215 | 2212 | | |
2216 | 2213 | | |
2217 | | - | |
2218 | | - | |
| 2214 | + | |
| 2215 | + | |
2219 | 2216 | | |
2220 | 2217 | | |
2221 | 2218 | | |
| |||
2230 | 2227 | | |
2231 | 2228 | | |
2232 | 2229 | | |
| 2230 | + | |
| 2231 | + | |
| 2232 | + | |
2233 | 2233 | | |
2234 | 2234 | | |
2235 | 2235 | | |
| |||
2359 | 2359 | | |
2360 | 2360 | | |
2361 | 2361 | | |
2362 | | - | |
| 2362 | + | |
2363 | 2363 | | |
2364 | 2364 | | |
2365 | 2365 | | |
| |||
0 commit comments