David Ahern
078d839f11
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:53:50 +02:00
..
2021-09-15 09:50:34 +02:00
2022-03-11 12:11:54 +01:00
2021-07-31 08:16:11 +02:00
2021-12-01 09:19:08 +01:00
2021-04-07 15:00:08 +02:00
2020-10-31 12:26:30 -07:00
2022-04-20 09:23:32 +02:00
2022-04-13 21:00:56 +02:00
2022-04-13 21:01:00 +02:00
2021-10-27 09:56:56 +02:00
2021-07-14 16:56:29 +02:00
2022-02-01 17:25:48 +01:00
2021-09-22 12:27:56 +02:00
2022-04-13 21:01:00 +02:00
2020-10-12 15:29:27 +02:00
2022-04-20 09:23:11 +02:00
2022-03-08 19:09:37 +01:00
2021-11-18 14:04:08 +01:00
2021-07-28 14:35:38 +02:00
2022-03-23 09:13:28 +01:00
2021-12-17 10:14:41 +01:00
2021-06-03 09:00:50 +02:00
2022-02-08 18:30:37 +01:00
2022-04-27 13:53:48 +02:00
2022-04-27 13:53:50 +02:00
2021-03-07 12:34:05 +01:00
2022-04-08 14:39:48 +02:00
2021-09-22 12:27:56 +02:00
2022-04-27 13:53:50 +02:00
2021-02-10 09:29:14 +01:00
2022-03-28 09:57:10 +02:00
2022-03-28 09:57:10 +02:00
2021-04-14 08:42:13 +02:00
2021-12-08 09:03:23 +01:00
2021-12-22 09:30:54 +01:00
2022-01-05 12:40:32 +01:00
2022-04-08 14:40:28 +02:00
2022-04-13 21:01:00 +02:00
2022-04-08 14:40:22 +02:00
2022-01-27 10:54:03 +01:00
2022-04-20 09:23:18 +02:00
2022-04-13 21:01:06 +02:00
2022-04-27 13:53:50 +02:00
2022-01-11 15:25:01 +01:00
2021-03-07 12:34:07 +01:00
2021-09-03 10:09:21 +02:00
2021-12-22 09:30:54 +01:00
2020-11-12 09:18:06 +01:00
2020-11-20 10:04:58 -08:00
2022-04-27 13:53:49 +02:00
2022-04-27 13:53:50 +02:00
2022-04-20 09:23:17 +02:00
2022-04-27 13:53:49 +02:00
2021-11-18 14:04:27 +01:00
2022-04-13 21:01:07 +02:00
2021-02-07 15:37:12 +01:00
2022-04-08 14:40:23 +02:00
2022-04-13 21:01:04 +02:00
2022-01-27 10:54:31 +01:00
2022-03-23 09:13:27 +01:00
2020-10-02 19:11:11 -07:00
2022-04-20 09:23:28 +02:00
2022-04-08 14:40:30 +02:00
2021-12-22 09:30:59 +01:00
2022-04-08 14:39:47 +02:00
2021-06-18 10:00:06 +02:00
2020-09-30 18:01:26 -07:00
2021-09-18 13:40:21 +02:00