Stanislav Fomichev
f237664113
vrf: Drop existing dst reference in vrf_ip6_input_dst
[ Upstream commit f388f807eca1de9e6e70f9ffb1a573c3811c4215 ]
Commit ff3fbcdd4724 ("selftests: tc: Add generic erspan_opts matching support
for tc-flower") started triggering the following kmemleak warning:
unreferenced object 0xffff888015fb0e00 (size 512):
comm "softirq", pid 0, jiffies 4294679065
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 40 d2 85 9e ff ff ff ff ........@.......
41 69 59 9d ff ff ff ff 00 00 00 00 00 00 00 00 AiY.............
backtrace (crc 30b71e8b):
__kmalloc_noprof+0x359/0x460
metadata_dst_alloc+0x28/0x490
erspan_rcv+0x4f1/0x1160 [ip_gre]
gre_rcv+0x217/0x240 [ip_gre]
gre_rcv+0x1b8/0x400 [gre]
ip_protocol_deliver_rcu+0x31d/0x3a0
ip_local_deliver_finish+0x37d/0x620
ip_local_deliver+0x174/0x460
ip_rcv+0x52b/0x6b0
__netif_receive_skb_one_core+0x149/0x1a0
process_backlog+0x3c8/0x1390
__napi_poll.constprop.0+0xa1/0x390
net_rx_action+0x59b/0xe00
handle_softirqs+0x22b/0x630
do_softirq+0xb1/0xf0
__local_bh_enable_ip+0x115/0x150
vrf_ip6_input_dst unconditionally sets skb dst entry, add a call to
skb_dst_drop to drop any existing entry.
Cc: David Ahern <dsahern@kernel.org>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Fixes: 9ff7438460 ("net: vrf: Handle ipv6 multicast and link-local addresses")
Signed-off-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20250725160043.350725-1-sdf@fomichev.me
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-08-15 12:08:50 +02:00
..
2025-06-04 14:42:15 +02:00
2025-07-17 18:35:14 +02:00
2025-07-10 16:03:15 +02:00
2025-07-17 18:35:20 +02:00
2025-06-04 14:42:01 +02:00
2025-08-01 09:47:28 +01:00
2025-08-15 12:08:40 +02:00
2025-07-24 08:53:18 +02:00
2025-08-01 09:47:30 +01:00
2025-03-13 12:58:36 +01:00
2025-07-17 18:35:12 +02:00
2025-06-27 11:08:55 +01:00
2025-06-04 14:42:06 +02:00
2025-08-01 09:47:31 +01:00
2025-06-19 15:28:31 +02:00
2025-08-15 12:08:43 +02:00
2025-06-04 14:42:05 +02:00
2025-08-01 09:47:32 +01:00
2025-07-06 11:00:06 +02:00
2025-08-15 12:08:43 +02:00
2025-07-24 08:53:13 +02:00
2025-07-10 16:03:19 +02:00
2025-07-06 11:00:13 +02:00
2025-07-06 11:00:17 +02:00
2025-06-19 15:28:31 +02:00
2025-06-27 11:09:04 +01:00
2025-08-15 12:08:46 +02:00
2025-07-24 08:53:12 +02:00
2025-04-25 10:45:38 +02:00
2025-07-06 11:00:09 +02:00
2025-07-24 08:53:18 +02:00
2025-07-06 11:00:07 +02:00
2025-08-01 09:47:30 +01:00
2025-06-04 14:42:21 +02:00
2025-03-07 16:45:49 +01:00
2025-08-01 09:47:32 +01:00
2025-08-15 12:08:46 +02:00
2025-08-01 09:47:28 +01:00
2025-08-15 12:08:44 +02:00
2025-08-15 12:08:48 +02:00
2025-05-09 09:43:51 +02:00
2025-07-06 11:00:06 +02:00
2025-07-06 11:00:05 +02:00
2025-05-02 07:50:47 +02:00
2025-07-24 08:53:11 +02:00
2025-07-06 11:00:16 +02:00
2025-04-10 14:37:38 +02:00
2025-07-24 08:53:13 +02:00
2025-07-06 11:00:05 +02:00
2025-08-15 12:08:42 +02:00
2025-07-24 08:53:14 +02:00
2025-08-01 09:47:32 +01:00
2025-08-15 12:08:50 +02:00
2025-05-02 07:50:56 +02:00
2025-06-04 14:41:56 +02:00
2025-07-24 08:53:17 +02:00
2025-07-24 08:53:22 +02:00
2025-05-02 07:50:41 +02:00
2025-07-06 11:00:10 +02:00
2025-06-19 15:28:08 +02:00
2025-07-24 08:53:10 +02:00
2025-07-17 18:35:13 +02:00
2025-08-01 09:47:29 +01:00
2025-06-04 14:42:07 +02:00
2025-06-27 11:08:52 +01:00
2025-08-15 12:08:42 +02:00
2025-08-15 12:08:42 +02:00
2025-06-27 11:09:02 +01:00
2025-07-17 18:35:15 +02:00
2025-06-27 11:08:58 +01:00
2025-08-01 09:47:28 +01:00
2025-06-27 11:08:50 +01:00
2025-04-07 10:06:36 +02:00
2025-06-19 15:28:27 +02:00
2025-07-10 16:03:03 +02:00
2025-08-01 09:47:29 +01:00
2025-07-10 16:03:06 +02:00
2025-03-13 12:58:37 +01:00
2025-08-15 12:08:44 +02:00
2025-07-24 08:53:16 +02:00
2025-08-15 12:08:42 +02:00
2025-08-15 12:08:44 +02:00
2025-07-10 16:03:16 +02:00
2025-06-27 11:08:57 +01:00
2025-06-04 14:42:20 +02:00
2025-07-24 08:53:11 +02:00
2025-07-24 08:53:11 +02:00
2025-07-10 16:03:14 +02:00
2025-07-06 11:00:09 +02:00
2025-08-15 12:08:42 +02:00
2025-06-04 14:42:05 +02:00
2025-06-19 15:28:17 +02:00
2025-06-04 14:42:05 +02:00
2025-08-15 12:08:47 +02:00
2025-03-13 12:58:37 +01:00
2025-08-01 09:47:28 +01:00
2025-06-27 11:08:57 +01:00
2025-08-15 12:08:47 +02:00