David Ahern
4c4f2a019f
l3mdev: l3mdev_master_upper_ifindex_by_index_rcu should be using netdev_master_upper_dev_get_rcu
...
[ Upstream commit 83daab06252ee5d0e1f4373ff28b79304945fc19 ]
Next patch uses l3mdev_master_upper_ifindex_by_index_rcu which throws
a splat with debug kernels:
[13783.087570] ------------[ cut here ]------------
[13783.093974] RTNL: assertion failed at net/core/dev.c (6702)
[13783.100761] WARNING: CPU: 3 PID: 51132 at net/core/dev.c:6702 netdev_master_upper_dev_get+0x16a/0x1a0
[13783.184226] CPU: 3 PID: 51132 Comm: kworker/3:3 Not tainted 5.17.0-custom-100090-g6f963aafb1cc #682
[13783.194788] Hardware name: Mellanox Technologies Ltd. MSN2010/SA002610, BIOS 5.6.5 08/24/2017
[13783.204755] Workqueue: mld mld_ifc_work [ipv6]
[13783.210338] RIP: 0010:netdev_master_upper_dev_get+0x16a/0x1a0
[13783.217209] Code: 0f 85 e3 fe ff ff e8 65 ac ec fe ba 2e 1a 00 00 48 c7 c6 60 6f 38 83 48 c7 c7 c0 70 38 83 c6 05 5e b5 d7 01 01 e8 c6 29 52 00 <0f> 0b e9 b8 fe ff ff e8 5a 6c 35 ff e9 1c ff ff ff 48 89 ef e8 7d
[13783.238659] RSP: 0018:ffffc9000b37f5a8 EFLAGS: 00010286
[13783.244995] RAX: 0000000000000000 RBX: ffff88812ee5c000 RCX: 0000000000000000
[13783.253379] RDX: ffff88811ce09d40 RSI: ffffffff812d0fcd RDI: fffff5200166fea7
[13783.261769] RBP: 0000000000000000 R08: 0000000000000001 R09: ffff8882375f4287
[13783.270138] R10: ffffed1046ebe850 R11: 0000000000000001 R12: dffffc0000000000
[13783.278510] R13: 0000000000000275 R14: ffffc9000b37f688 R15: ffff8881273b4af8
[13783.286870] FS: 0000000000000000(0000) GS:ffff888237400000(0000) knlGS:0000000000000000
[13783.296352] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[13783.303177] CR2: 00007ff25fc9b2e8 CR3: 0000000174d23000 CR4: 00000000001006e0
[13783.311546] Call Trace:
[13783.314660] <TASK>
[13783.317553] l3mdev_master_upper_ifindex_by_index_rcu+0x43/0xe0
...
Change l3mdev_master_upper_ifindex_by_index_rcu to use
netdev_master_upper_dev_get_rcu.
Fixes: 6a6d6681ac1a ("l3mdev: add function to retreive upper master")
Signed-off-by: Ido Schimmel <idosch@idosch.org>
Signed-off-by: David Ahern <dsahern@kernel.org>
Cc: Alexis Bauvin <abauvin@scaleway.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-27 13:50:47 +02:00
..
2021-09-15 09:47:31 +02:00
2022-03-11 11:22:39 +01:00
2021-07-31 08:19:38 +02:00
2021-12-01 09:23:34 +01:00
2021-04-07 14:47:41 +02:00
2020-10-01 13:17:58 +02:00
2022-04-20 09:19:40 +02:00
2022-04-15 14:18:32 +02:00
2022-04-15 14:18:34 +02:00
2021-07-14 16:53:33 +02:00
2022-02-16 12:52:50 +01:00
2021-09-22 12:26:40 +02:00
2021-12-08 09:01:08 +01:00
2020-11-05 11:43:34 +01:00
2022-04-20 09:19:34 +02:00
2022-03-08 19:07:51 +01:00
2022-04-27 13:50:45 +02:00
2021-07-28 13:30:56 +02:00
2020-04-23 10:36:45 +02:00
2022-03-23 09:12:07 +01:00
2020-01-09 10:20:06 +01:00
2021-05-14 09:44:10 +02:00
2022-02-08 18:24:31 +01:00
2019-09-26 08:56:17 +02:00
2022-04-27 13:50:46 +02:00
2022-04-27 13:50:45 +02:00
2021-03-07 12:20:42 +01:00
2019-09-27 10:27:14 +02:00
2022-04-15 14:17:56 +02:00
2021-09-22 12:26:41 +02:00
2022-04-27 13:50:47 +02:00
2021-02-10 09:25:28 +01:00
2022-03-28 08:46:48 +02:00
2022-03-28 08:46:48 +02:00
2021-04-14 08:24:18 +02:00
2021-12-08 09:01:12 +01:00
2022-01-05 12:37:45 +01:00
2022-04-15 14:18:20 +02:00
2022-04-15 14:18:35 +02:00
2022-04-15 14:18:16 +02:00
2021-07-28 13:30:56 +02:00
2022-04-20 09:19:35 +02:00
2022-04-15 14:18:37 +02:00
2022-04-27 13:50:47 +02:00
2022-01-11 15:23:33 +01:00
2019-12-04 22:30:54 +01:00
2021-09-03 10:08:12 +02:00
2021-12-22 09:29:37 +01:00
2020-11-24 13:29:05 +01:00
2020-12-08 10:40:23 +01:00
2022-04-27 13:50:46 +02:00
2022-04-27 13:50:47 +02:00
2022-04-20 09:19:35 +02:00
2022-04-27 13:50:46 +02:00
2021-11-17 09:48:48 +01:00
2022-04-15 14:18:38 +02:00
2021-10-27 09:54:24 +02:00
2022-04-15 14:18:17 +02:00
2022-04-15 14:18:37 +02:00
2022-01-27 09:19:53 +01:00
2022-02-23 11:59:57 +01:00
2022-04-20 09:19:35 +02:00
2022-04-15 14:18:21 +02:00
2021-12-22 09:29:40 +01:00
2022-04-15 14:17:56 +02:00
2021-06-18 09:59:00 +02:00
2020-04-01 11:02:18 +02:00
2021-09-03 10:08:16 +02:00