2019-05-27 08:55:01 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-06-07 18:26:28 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2019-01-21 07:26:28 +01:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:51 +00:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-05-21 21:52:54 +00:00
|
|
|
|
2016-10-31 13:21:05 +01:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2017-02-09 14:54:40 +01:00
|
|
|
|
2011-12-10 09:48:31 +00:00
|
|
|
|
2019-01-21 07:26:28 +01:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2010-04-27 10:16:54 -07:00
|
|
|
|
2013-09-04 02:13:39 +02:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
net: bridge: Maintain number of MDB entries in net_bridge_mcast_port
The MDB maintained by the bridge is limited. When the bridge is configured
for IGMP / MLD snooping, a buggy or malicious client can easily exhaust its
capacity. In SW datapath, the capacity is configurable through the
IFLA_BR_MCAST_HASH_MAX parameter, but ultimately is finite. Obviously a
similar limit exists in the HW datapath for purposes of offloading.
In order to prevent the issue of unilateral exhaustion of MDB resources,
introduce two parameters in each of two contexts:
- Per-port and per-port-VLAN number of MDB entries that the port
is member in.
- Per-port and (when BROPT_MCAST_VLAN_SNOOPING_ENABLED is enabled)
per-port-VLAN maximum permitted number of MDB entries, or 0 for
no limit.
The per-port multicast context is used for tracking of MDB entries for the
port as a whole. This is available for all bridges.
The per-port-VLAN multicast context is then only available on
VLAN-filtering bridges on VLANs that have multicast snooping on.
With these changes in place, it will be possible to configure MDB limit for
bridge as a whole, or any one port as a whole, or any single port-VLAN.
Note that unlike the global limit, exhaustion of the per-port and
per-port-VLAN maximums does not cause disablement of multicast snooping.
It is also permitted to configure the local limit larger than hash_max,
even though that is not useful.
In this patch, introduce only the accounting for number of entries, and the
max field itself, but not the means to toggle the max. The next patch
introduces the netlink APIs to toggle and read the values.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-02-02 18:59:25 +01:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:54 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2018-12-05 15:14:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2014-06-07 18:26:26 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-07-13 05:28:37 -07:00
|
|
|
|
2017-01-21 21:01:32 +01:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:10 +03:00
|
|
|
|
2017-01-21 21:01:32 +01:00
|
|
|
|
2021-05-13 15:20:50 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-14 03:53:48 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2015-07-13 05:28:37 -07:00
|
|
|
|
2017-01-21 21:01:32 +01:00
|
|
|
|
2015-07-13 05:28:37 -07:00
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:25 +03:00
|
|
|
|
|
|
|
|
|
net: bridge: mcast: handle port group filter modes
We need to handle group filter mode transitions and initial state.
To change a port group's INCLUDE -> EXCLUDE mode (or when we have added
a new port group in EXCLUDE mode) we need to add that port to all of
*,G ports' S,G entries for proper replication. When the EXCLUDE state is
changed from IGMPv3 report, br_multicast_fwd_filter_exclude() must be
called after the source list processing because the assumption is that
all of the group's S,G entries will be created before transitioning to
EXCLUDE mode, i.e. most importantly its blocked entries will already be
added so it will not get automatically added to them.
The transition EXCLUDE -> INCLUDE happens only when a port group timer
expires, it requires us to remove that port from all of *,G ports' S,G
entries where it was automatically added previously.
Finally when we are adding a new S,G entry we must add all of *,G's
EXCLUDE ports to it.
In order to distinguish automatically added *,G EXCLUDE ports we have a
new port group flag - MDB_PG_FLAGS_STAR_EXCL.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-22 10:30:24 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:26 +03:00
|
|
|
|
2012-04-13 02:37:42 +00:00
|
|
|
|
2022-02-15 18:53:03 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-12-05 15:14:24 +02:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2018-12-05 15:14:24 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2018-12-05 15:14:24 +02:00
|
|
|
|
2012-12-11 22:23:08 +00:00
|
|
|
|
2010-07-05 14:50:08 +00:00
|
|
|
|
2018-12-05 15:14:24 +02:00
|
|
|
|
2010-07-05 14:50:08 +00:00
|
|
|
|
2018-12-05 15:14:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-07-05 14:50:08 +00:00
|
|
|
|
|
|
|
|
|
2018-12-05 15:14:24 +02:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
2010-03-15 20:38:25 -07:00
|
|
|
|
2018-12-05 15:14:24 +02:00
|
|
|
|
2020-09-22 10:30:17 +03:00
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
2013-02-13 12:00:17 +00:00
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
2018-12-05 15:14:24 +02:00
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
|
|
|
|
|
2011-12-10 09:48:31 +00:00
|
|
|
|
2018-12-05 15:14:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-12-05 15:14:24 +02:00
|
|
|
|
2020-09-22 10:30:17 +03:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
2013-02-13 12:00:17 +00:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
2018-12-05 15:14:24 +02:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-25 15:30:11 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:31 +03:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-12-05 15:14:24 +02:00
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
2013-03-07 03:05:33 +00:00
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:17 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-22 10:30:20 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
2011-12-10 09:48:31 +00:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
2020-09-22 10:30:17 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-22 10:30:20 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
2020-10-29 01:38:31 +02:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2018-12-05 15:14:24 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:29 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-16 17:57:06 +03:00
|
|
|
|
2021-07-19 20:06:29 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
net: bridge: Maintain number of MDB entries in net_bridge_mcast_port
The MDB maintained by the bridge is limited. When the bridge is configured
for IGMP / MLD snooping, a buggy or malicious client can easily exhaust its
capacity. In SW datapath, the capacity is configurable through the
IFLA_BR_MCAST_HASH_MAX parameter, but ultimately is finite. Obviously a
similar limit exists in the HW datapath for purposes of offloading.
In order to prevent the issue of unilateral exhaustion of MDB resources,
introduce two parameters in each of two contexts:
- Per-port and per-port-VLAN number of MDB entries that the port
is member in.
- Per-port and (when BROPT_MCAST_VLAN_SNOOPING_ENABLED is enabled)
per-port-VLAN maximum permitted number of MDB entries, or 0 for
no limit.
The per-port multicast context is used for tracking of MDB entries for the
port as a whole. This is available for all bridges.
The per-port-VLAN multicast context is then only available on
VLAN-filtering bridges on VLANs that have multicast snooping on.
With these changes in place, it will be possible to configure MDB limit for
bridge as a whole, or any one port as a whole, or any single port-VLAN.
Note that unlike the global limit, exhaustion of the per-port and
per-port-VLAN maximums does not cause disablement of multicast snooping.
It is also permitted to configure the local limit larger than hash_max,
even though that is not useful.
In this patch, introduce only the accounting for number of entries, and the
max field itself, but not the means to toggle the max. The next patch
introduces the netlink APIs to toggle and read the values.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-02-02 18:59:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
net: bridge: mcast: always update mdb_n_entries for vlan contexts
syzbot triggered a warning[1] about the number of mdb entries in a context.
It turned out that there are multiple ways to trigger that warning today
(some got added during the years), the root cause of the problem is that
the increase is done conditionally, and over the years these different
conditions increased so there were new ways to trigger the warning, that is
to do a decrease which wasn't paired with a previous increase.
For example one way to trigger it is with flush:
$ ip l add br0 up type bridge vlan_filtering 1 mcast_snooping 1
$ ip l add dumdum up master br0 type dummy
$ bridge mdb add dev br0 port dumdum grp 239.0.0.1 permanent vid 1
$ ip link set dev br0 down
$ ip link set dev br0 type bridge mcast_vlan_snooping 1
^^^^ this will enable snooping, but will not update mdb_n_entries
because in __br_multicast_enable_port_ctx() we check !netif_running
$ bridge mdb flush dev br0
^^^ this will trigger the warning because it will delete the pg which
we added above, which will try to decrease mdb_n_entries
Fix the problem by removing the conditional increase and always keep the
count up-to-date while the vlan exists. In order to do that we have to
first initialize it on port-vlan context creation, and then always increase
or decrease the value regardless of mcast options. To keep the current
behaviour we have to enforce the mdb limit only if the context is port's or
if the port-vlan's mcast snooping is enabled.
[1]
------------[ cut here ]------------
n == 0
WARNING: net/bridge/br_multicast.c:718 at br_multicast_port_ngroups_dec_one net/bridge/br_multicast.c:718 [inline], CPU#0: syz.4.4607/22043
WARNING: net/bridge/br_multicast.c:718 at br_multicast_port_ngroups_dec net/bridge/br_multicast.c:771 [inline], CPU#0: syz.4.4607/22043
WARNING: net/bridge/br_multicast.c:718 at br_multicast_del_pg+0x1bbe/0x1e20 net/bridge/br_multicast.c:825, CPU#0: syz.4.4607/22043
Modules linked in:
CPU: 0 UID: 0 PID: 22043 Comm: syz.4.4607 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/24/2026
RIP: 0010:br_multicast_port_ngroups_dec_one net/bridge/br_multicast.c:718 [inline]
RIP: 0010:br_multicast_port_ngroups_dec net/bridge/br_multicast.c:771 [inline]
RIP: 0010:br_multicast_del_pg+0x1bbe/0x1e20 net/bridge/br_multicast.c:825
Code: 41 5f 5d e9 04 7a 48 f7 e8 3f 73 5c f7 90 0f 0b 90 e9 cf fd ff ff e8 31 73 5c f7 90 0f 0b 90 e9 16 fd ff ff e8 23 73 5c f7 90 <0f> 0b 90 e9 60 fd ff ff e8 15 73 5c f7 eb 05 e8 0e 73 5c f7 48 8b
RSP: 0018:ffffc9000c207220 EFLAGS: 00010293
RAX: ffffffff8a68042d RBX: ffff88807c6f1800 RCX: ffff888066e90000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffff888066e90000 R09: 000000000000000c
R10: 000000000000000c R11: 0000000000000000 R12: ffff8880303ef800
R13: dffffc0000000000 R14: ffff888050eb11c4 R15: 1ffff1100a1d6238
FS: 00007fa45921b6c0(0000) GS:ffff8881256f5000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa4591f9ff8 CR3: 0000000081df2000 CR4: 00000000003526f0
Call Trace:
<TASK>
br_mdb_flush_pgs net/bridge/br_mdb.c:1525 [inline]
br_mdb_flush net/bridge/br_mdb.c:1544 [inline]
br_mdb_del_bulk+0x5e2/0xb20 net/bridge/br_mdb.c:1561
rtnl_mdb_del+0x48a/0x640 net/core/rtnetlink.c:-1
rtnetlink_rcv_msg+0x77e/0xbe0 net/core/rtnetlink.c:6967
netlink_rcv_skb+0x232/0x4b0 net/netlink/af_netlink.c:2550
netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
netlink_unicast+0x80f/0x9b0 net/netlink/af_netlink.c:1344
netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1894
sock_sendmsg_nosec net/socket.c:727 [inline]
__sock_sendmsg net/socket.c:742 [inline]
____sys_sendmsg+0xa68/0xad0 net/socket.c:2592
___sys_sendmsg+0x2a5/0x360 net/socket.c:2646
__sys_sendmsg net/socket.c:2678 [inline]
__do_sys_sendmsg net/socket.c:2683 [inline]
__se_sys_sendmsg net/socket.c:2681 [inline]
__x64_sys_sendmsg+0x1bd/0x2a0 net/socket.c:2681
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xe2/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fa45839aeb9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa45921b028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fa458615fa0 RCX: 00007fa45839aeb9
RDX: 0000000000000000 RSI: 00002000000000c0 RDI: 0000000000000004
RBP: 00007fa458408c1f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fa458616038 R14: 00007fa458615fa0 R15: 00007fff0b59fae8
</TASK>
Fixes: b57e8d870d52 ("net: bridge: Maintain number of MDB entries in net_bridge_mcast_port")
Reported-by: syzbot+d5d1b7343531d17bd3c5@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/netdev/aYrWbRp83MQR1ife@debil/T/#t
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Link: https://patch.msgid.link/20260213070031.1400003-2-nikolay@nvidia.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2026-02-13 09:00:30 +02:00
|
|
|
|
net: bridge: Maintain number of MDB entries in net_bridge_mcast_port
The MDB maintained by the bridge is limited. When the bridge is configured
for IGMP / MLD snooping, a buggy or malicious client can easily exhaust its
capacity. In SW datapath, the capacity is configurable through the
IFLA_BR_MCAST_HASH_MAX parameter, but ultimately is finite. Obviously a
similar limit exists in the HW datapath for purposes of offloading.
In order to prevent the issue of unilateral exhaustion of MDB resources,
introduce two parameters in each of two contexts:
- Per-port and per-port-VLAN number of MDB entries that the port
is member in.
- Per-port and (when BROPT_MCAST_VLAN_SNOOPING_ENABLED is enabled)
per-port-VLAN maximum permitted number of MDB entries, or 0 for
no limit.
The per-port multicast context is used for tracking of MDB entries for the
port as a whole. This is available for all bridges.
The per-port-VLAN multicast context is then only available on
VLAN-filtering bridges on VLANs that have multicast snooping on.
With these changes in place, it will be possible to configure MDB limit for
bridge as a whole, or any one port as a whole, or any single port-VLAN.
Note that unlike the global limit, exhaustion of the per-port and
per-port-VLAN maximums does not cause disablement of multicast snooping.
It is also permitted to configure the local limit larger than hash_max,
even though that is not useful.
In this patch, introduce only the accounting for number of entries, and the
max field itself, but not the means to toggle the max. The next patch
introduces the netlink APIs to toggle and read the values.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-02-02 18:59:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:31 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
net: bridge: mcast: handle port group filter modes
We need to handle group filter mode transitions and initial state.
To change a port group's INCLUDE -> EXCLUDE mode (or when we have added
a new port group in EXCLUDE mode) we need to add that port to all of
*,G ports' S,G entries for proper replication. When the EXCLUDE state is
changed from IGMPv3 report, br_multicast_fwd_filter_exclude() must be
called after the source list processing because the assumption is that
all of the group's S,G entries will be created before transitioning to
EXCLUDE mode, i.e. most importantly its blocked entries will already be
added so it will not get automatically added to them.
The transition EXCLUDE -> INCLUDE happens only when a port group timer
expires, it requires us to remove that port from all of *,G ports' S,G
entries where it was automatically added previously.
Finally when we are adding a new S,G entry we must add all of *,G's
EXCLUDE ports to it.
In order to distinguish automatically added *,G EXCLUDE ports we have a
new port group flag - MDB_PG_FLAGS_STAR_EXCL.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-22 10:30:24 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
net: bridge: mcast: handle port group filter modes
We need to handle group filter mode transitions and initial state.
To change a port group's INCLUDE -> EXCLUDE mode (or when we have added
a new port group in EXCLUDE mode) we need to add that port to all of
*,G ports' S,G entries for proper replication. When the EXCLUDE state is
changed from IGMPv3 report, br_multicast_fwd_filter_exclude() must be
called after the source list processing because the assumption is that
all of the group's S,G entries will be created before transitioning to
EXCLUDE mode, i.e. most importantly its blocked entries will already be
added so it will not get automatically added to them.
The transition EXCLUDE -> INCLUDE happens only when a port group timer
expires, it requires us to remove that port from all of *,G ports' S,G
entries where it was automatically added previously.
Finally when we are adding a new S,G entry we must add all of *,G's
EXCLUDE ports to it.
In order to distinguish automatically added *,G EXCLUDE ports we have a
new port group flag - MDB_PG_FLAGS_STAR_EXCL.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-22 10:30:24 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:27 +03:00
|
|
|
|
net: bridge: mcast: handle port group filter modes
We need to handle group filter mode transitions and initial state.
To change a port group's INCLUDE -> EXCLUDE mode (or when we have added
a new port group in EXCLUDE mode) we need to add that port to all of
*,G ports' S,G entries for proper replication. When the EXCLUDE state is
changed from IGMPv3 report, br_multicast_fwd_filter_exclude() must be
called after the source list processing because the assumption is that
all of the group's S,G entries will be created before transitioning to
EXCLUDE mode, i.e. most importantly its blocked entries will already be
added so it will not get automatically added to them.
The transition EXCLUDE -> INCLUDE happens only when a port group timer
expires, it requires us to remove that port from all of *,G ports' S,G
entries where it was automatically added previously.
Finally when we are adding a new S,G entry we must add all of *,G's
EXCLUDE ports to it.
In order to distinguish automatically added *,G EXCLUDE ports we have a
new port group flag - MDB_PG_FLAGS_STAR_EXCL.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-22 10:30:24 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
net: bridge: mcast: handle port group filter modes
We need to handle group filter mode transitions and initial state.
To change a port group's INCLUDE -> EXCLUDE mode (or when we have added
a new port group in EXCLUDE mode) we need to add that port to all of
*,G ports' S,G entries for proper replication. When the EXCLUDE state is
changed from IGMPv3 report, br_multicast_fwd_filter_exclude() must be
called after the source list processing because the assumption is that
all of the group's S,G entries will be created before transitioning to
EXCLUDE mode, i.e. most importantly its blocked entries will already be
added so it will not get automatically added to them.
The transition EXCLUDE -> INCLUDE happens only when a port group timer
expires, it requires us to remove that port from all of *,G ports' S,G
entries where it was automatically added previously.
Finally when we are adding a new S,G entry we must add all of *,G's
EXCLUDE ports to it.
In order to distinguish automatically added *,G EXCLUDE ports we have a
new port group flag - MDB_PG_FLAGS_STAR_EXCL.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-22 10:30:24 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:25 +03:00
|
|
|
|
net: bridge: mcast: handle port group filter modes
We need to handle group filter mode transitions and initial state.
To change a port group's INCLUDE -> EXCLUDE mode (or when we have added
a new port group in EXCLUDE mode) we need to add that port to all of
*,G ports' S,G entries for proper replication. When the EXCLUDE state is
changed from IGMPv3 report, br_multicast_fwd_filter_exclude() must be
called after the source list processing because the assumption is that
all of the group's S,G entries will be created before transitioning to
EXCLUDE mode, i.e. most importantly its blocked entries will already be
added so it will not get automatically added to them.
The transition EXCLUDE -> INCLUDE happens only when a port group timer
expires, it requires us to remove that port from all of *,G ports' S,G
entries where it was automatically added previously.
Finally when we are adding a new S,G entry we must add all of *,G's
EXCLUDE ports to it.
In order to distinguish automatically added *,G EXCLUDE ports we have a
new port group flag - MDB_PG_FLAGS_STAR_EXCL.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-22 10:30:24 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
net: bridge: mcast: handle port group filter modes
We need to handle group filter mode transitions and initial state.
To change a port group's INCLUDE -> EXCLUDE mode (or when we have added
a new port group in EXCLUDE mode) we need to add that port to all of
*,G ports' S,G entries for proper replication. When the EXCLUDE state is
changed from IGMPv3 report, br_multicast_fwd_filter_exclude() must be
called after the source list processing because the assumption is that
all of the group's S,G entries will be created before transitioning to
EXCLUDE mode, i.e. most importantly its blocked entries will already be
added so it will not get automatically added to them.
The transition EXCLUDE -> INCLUDE happens only when a port group timer
expires, it requires us to remove that port from all of *,G ports' S,G
entries where it was automatically added previously.
Finally when we are adding a new S,G entry we must add all of *,G's
EXCLUDE ports to it.
In order to distinguish automatically added *,G EXCLUDE ports we have a
new port group flag - MDB_PG_FLAGS_STAR_EXCL.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-22 10:30:24 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:30 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
net: bridge: mcast: handle port group filter modes
We need to handle group filter mode transitions and initial state.
To change a port group's INCLUDE -> EXCLUDE mode (or when we have added
a new port group in EXCLUDE mode) we need to add that port to all of
*,G ports' S,G entries for proper replication. When the EXCLUDE state is
changed from IGMPv3 report, br_multicast_fwd_filter_exclude() must be
called after the source list processing because the assumption is that
all of the group's S,G entries will be created before transitioning to
EXCLUDE mode, i.e. most importantly its blocked entries will already be
added so it will not get automatically added to them.
The transition EXCLUDE -> INCLUDE happens only when a port group timer
expires, it requires us to remove that port from all of *,G ports' S,G
entries where it was automatically added previously.
Finally when we are adding a new S,G entry we must add all of *,G's
EXCLUDE ports to it.
In order to distinguish automatically added *,G EXCLUDE ports we have a
new port group flag - MDB_PG_FLAGS_STAR_EXCL.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-22 10:30:24 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:27 +03:00
|
|
|
|
net: bridge: mcast: handle port group filter modes
We need to handle group filter mode transitions and initial state.
To change a port group's INCLUDE -> EXCLUDE mode (or when we have added
a new port group in EXCLUDE mode) we need to add that port to all of
*,G ports' S,G entries for proper replication. When the EXCLUDE state is
changed from IGMPv3 report, br_multicast_fwd_filter_exclude() must be
called after the source list processing because the assumption is that
all of the group's S,G entries will be created before transitioning to
EXCLUDE mode, i.e. most importantly its blocked entries will already be
added so it will not get automatically added to them.
The transition EXCLUDE -> INCLUDE happens only when a port group timer
expires, it requires us to remove that port from all of *,G ports' S,G
entries where it was automatically added previously.
Finally when we are adding a new S,G entry we must add all of *,G's
EXCLUDE ports to it.
In order to distinguish automatically added *,G EXCLUDE ports we have a
new port group flag - MDB_PG_FLAGS_STAR_EXCL.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-22 10:30:24 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
net: bridge: mcast: handle port group filter modes
We need to handle group filter mode transitions and initial state.
To change a port group's INCLUDE -> EXCLUDE mode (or when we have added
a new port group in EXCLUDE mode) we need to add that port to all of
*,G ports' S,G entries for proper replication. When the EXCLUDE state is
changed from IGMPv3 report, br_multicast_fwd_filter_exclude() must be
called after the source list processing because the assumption is that
all of the group's S,G entries will be created before transitioning to
EXCLUDE mode, i.e. most importantly its blocked entries will already be
added so it will not get automatically added to them.
The transition EXCLUDE -> INCLUDE happens only when a port group timer
expires, it requires us to remove that port from all of *,G ports' S,G
entries where it was automatically added previously.
Finally when we are adding a new S,G entry we must add all of *,G's
EXCLUDE ports to it.
In order to distinguish automatically added *,G EXCLUDE ports we have a
new port group flag - MDB_PG_FLAGS_STAR_EXCL.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-22 10:30:24 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:26 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
net: bridge: mcast: handle port group filter modes
We need to handle group filter mode transitions and initial state.
To change a port group's INCLUDE -> EXCLUDE mode (or when we have added
a new port group in EXCLUDE mode) we need to add that port to all of
*,G ports' S,G entries for proper replication. When the EXCLUDE state is
changed from IGMPv3 report, br_multicast_fwd_filter_exclude() must be
called after the source list processing because the assumption is that
all of the group's S,G entries will be created before transitioning to
EXCLUDE mode, i.e. most importantly its blocked entries will already be
added so it will not get automatically added to them.
The transition EXCLUDE -> INCLUDE happens only when a port group timer
expires, it requires us to remove that port from all of *,G ports' S,G
entries where it was automatically added previously.
Finally when we are adding a new S,G entry we must add all of *,G's
EXCLUDE ports to it.
In order to distinguish automatically added *,G EXCLUDE ports we have a
new port group flag - MDB_PG_FLAGS_STAR_EXCL.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-22 10:30:24 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:26 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
net: bridge: mcast: handle port group filter modes
We need to handle group filter mode transitions and initial state.
To change a port group's INCLUDE -> EXCLUDE mode (or when we have added
a new port group in EXCLUDE mode) we need to add that port to all of
*,G ports' S,G entries for proper replication. When the EXCLUDE state is
changed from IGMPv3 report, br_multicast_fwd_filter_exclude() must be
called after the source list processing because the assumption is that
all of the group's S,G entries will be created before transitioning to
EXCLUDE mode, i.e. most importantly its blocked entries will already be
added so it will not get automatically added to them.
The transition EXCLUDE -> INCLUDE happens only when a port group timer
expires, it requires us to remove that port from all of *,G ports' S,G
entries where it was automatically added previously.
Finally when we are adding a new S,G entry we must add all of *,G's
EXCLUDE ports to it.
In order to distinguish automatically added *,G EXCLUDE ports we have a
new port group flag - MDB_PG_FLAGS_STAR_EXCL.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-22 10:30:24 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
net: bridge: mcast: handle port group filter modes
We need to handle group filter mode transitions and initial state.
To change a port group's INCLUDE -> EXCLUDE mode (or when we have added
a new port group in EXCLUDE mode) we need to add that port to all of
*,G ports' S,G entries for proper replication. When the EXCLUDE state is
changed from IGMPv3 report, br_multicast_fwd_filter_exclude() must be
called after the source list processing because the assumption is that
all of the group's S,G entries will be created before transitioning to
EXCLUDE mode, i.e. most importantly its blocked entries will already be
added so it will not get automatically added to them.
The transition EXCLUDE -> INCLUDE happens only when a port group timer
expires, it requires us to remove that port from all of *,G ports' S,G
entries where it was automatically added previously.
Finally when we are adding a new S,G entry we must add all of *,G's
EXCLUDE ports to it.
In order to distinguish automatically added *,G EXCLUDE ports we have a
new port group flag - MDB_PG_FLAGS_STAR_EXCL.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-22 10:30:24 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
net: bridge: mcast: handle port group filter modes
We need to handle group filter mode transitions and initial state.
To change a port group's INCLUDE -> EXCLUDE mode (or when we have added
a new port group in EXCLUDE mode) we need to add that port to all of
*,G ports' S,G entries for proper replication. When the EXCLUDE state is
changed from IGMPv3 report, br_multicast_fwd_filter_exclude() must be
called after the source list processing because the assumption is that
all of the group's S,G entries will be created before transitioning to
EXCLUDE mode, i.e. most importantly its blocked entries will already be
added so it will not get automatically added to them.
The transition EXCLUDE -> INCLUDE happens only when a port group timer
expires, it requires us to remove that port from all of *,G ports' S,G
entries where it was automatically added previously.
Finally when we are adding a new S,G entry we must add all of *,G's
EXCLUDE ports to it.
In order to distinguish automatically added *,G EXCLUDE ports we have a
new port group flag - MDB_PG_FLAGS_STAR_EXCL.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-22 10:30:24 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:26 +03:00
|
|
|
|
net: bridge: mcast: handle port group filter modes
We need to handle group filter mode transitions and initial state.
To change a port group's INCLUDE -> EXCLUDE mode (or when we have added
a new port group in EXCLUDE mode) we need to add that port to all of
*,G ports' S,G entries for proper replication. When the EXCLUDE state is
changed from IGMPv3 report, br_multicast_fwd_filter_exclude() must be
called after the source list processing because the assumption is that
all of the group's S,G entries will be created before transitioning to
EXCLUDE mode, i.e. most importantly its blocked entries will already be
added so it will not get automatically added to them.
The transition EXCLUDE -> INCLUDE happens only when a port group timer
expires, it requires us to remove that port from all of *,G ports' S,G
entries where it was automatically added previously.
Finally when we are adding a new S,G entry we must add all of *,G's
EXCLUDE ports to it.
In order to distinguish automatically added *,G EXCLUDE ports we have a
new port group flag - MDB_PG_FLAGS_STAR_EXCL.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-22 10:30:24 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:30 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
net: bridge: mcast: handle port group filter modes
We need to handle group filter mode transitions and initial state.
To change a port group's INCLUDE -> EXCLUDE mode (or when we have added
a new port group in EXCLUDE mode) we need to add that port to all of
*,G ports' S,G entries for proper replication. When the EXCLUDE state is
changed from IGMPv3 report, br_multicast_fwd_filter_exclude() must be
called after the source list processing because the assumption is that
all of the group's S,G entries will be created before transitioning to
EXCLUDE mode, i.e. most importantly its blocked entries will already be
added so it will not get automatically added to them.
The transition EXCLUDE -> INCLUDE happens only when a port group timer
expires, it requires us to remove that port from all of *,G ports' S,G
entries where it was automatically added previously.
Finally when we are adding a new S,G entry we must add all of *,G's
EXCLUDE ports to it.
In order to distinguish automatically added *,G EXCLUDE ports we have a
new port group flag - MDB_PG_FLAGS_STAR_EXCL.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-22 10:30:24 +03:00
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:25 +03:00
|
|
|
|
net: bridge: mcast: handle port group filter modes
We need to handle group filter mode transitions and initial state.
To change a port group's INCLUDE -> EXCLUDE mode (or when we have added
a new port group in EXCLUDE mode) we need to add that port to all of
*,G ports' S,G entries for proper replication. When the EXCLUDE state is
changed from IGMPv3 report, br_multicast_fwd_filter_exclude() must be
called after the source list processing because the assumption is that
all of the group's S,G entries will be created before transitioning to
EXCLUDE mode, i.e. most importantly its blocked entries will already be
added so it will not get automatically added to them.
The transition EXCLUDE -> INCLUDE happens only when a port group timer
expires, it requires us to remove that port from all of *,G ports' S,G
entries where it was automatically added previously.
Finally when we are adding a new S,G entry we must add all of *,G's
EXCLUDE ports to it.
In order to distinguish automatically added *,G EXCLUDE ports we have a
new port group flag - MDB_PG_FLAGS_STAR_EXCL.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-22 10:30:24 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
|
|
|
|
|
net: bridge: mcast: handle port group filter modes
We need to handle group filter mode transitions and initial state.
To change a port group's INCLUDE -> EXCLUDE mode (or when we have added
a new port group in EXCLUDE mode) we need to add that port to all of
*,G ports' S,G entries for proper replication. When the EXCLUDE state is
changed from IGMPv3 report, br_multicast_fwd_filter_exclude() must be
called after the source list processing because the assumption is that
all of the group's S,G entries will be created before transitioning to
EXCLUDE mode, i.e. most importantly its blocked entries will already be
added so it will not get automatically added to them.
The transition EXCLUDE -> INCLUDE happens only when a port group timer
expires, it requires us to remove that port from all of *,G ports' S,G
entries where it was automatically added previously.
Finally when we are adding a new S,G entry we must add all of *,G's
EXCLUDE ports to it.
In order to distinguish automatically added *,G EXCLUDE ports we have a
new port group flag - MDB_PG_FLAGS_STAR_EXCL.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-22 10:30:24 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:30 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:27 +03:00
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:25 +03:00
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
net: bridge: mcast: handle port group filter modes
We need to handle group filter mode transitions and initial state.
To change a port group's INCLUDE -> EXCLUDE mode (or when we have added
a new port group in EXCLUDE mode) we need to add that port to all of
*,G ports' S,G entries for proper replication. When the EXCLUDE state is
changed from IGMPv3 report, br_multicast_fwd_filter_exclude() must be
called after the source list processing because the assumption is that
all of the group's S,G entries will be created before transitioning to
EXCLUDE mode, i.e. most importantly its blocked entries will already be
added so it will not get automatically added to them.
The transition EXCLUDE -> INCLUDE happens only when a port group timer
expires, it requires us to remove that port from all of *,G ports' S,G
entries where it was automatically added previously.
Finally when we are adding a new S,G entry we must add all of *,G's
EXCLUDE ports to it.
In order to distinguish automatically added *,G EXCLUDE ports we have a
new port group flag - MDB_PG_FLAGS_STAR_EXCL.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-22 10:30:24 +03:00
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-04-05 10:17:26 +02:00
|
|
|
|
net: bridge: mcast: handle port group filter modes
We need to handle group filter mode transitions and initial state.
To change a port group's INCLUDE -> EXCLUDE mode (or when we have added
a new port group in EXCLUDE mode) we need to add that port to all of
*,G ports' S,G entries for proper replication. When the EXCLUDE state is
changed from IGMPv3 report, br_multicast_fwd_filter_exclude() must be
called after the source list processing because the assumption is that
all of the group's S,G entries will be created before transitioning to
EXCLUDE mode, i.e. most importantly its blocked entries will already be
added so it will not get automatically added to them.
The transition EXCLUDE -> INCLUDE happens only when a port group timer
expires, it requires us to remove that port from all of *,G ports' S,G
entries where it was automatically added previously.
Finally when we are adding a new S,G entry we must add all of *,G's
EXCLUDE ports to it.
In order to distinguish automatically added *,G EXCLUDE ports we have a
new port group flag - MDB_PG_FLAGS_STAR_EXCL.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-22 10:30:24 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:52:03 +02:00
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bridge: mcast: Add a flag for user installed source entries
There are a few places where the bridge driver differentiates between
(S, G) entries installed by the kernel (in response to Membership
Reports) and those installed by user space. One of them is when deleting
an (S, G) entry corresponding to a source entry that is being deleted.
While user space cannot currently add a source entry to a (*, G), it can
add an (S, G) entry that later corresponds to a source entry created by
the reception of a Membership Report. If this source entry is later
deleted because its source timer expired or because the (*, G) entry is
being deleted, the bridge driver will not delete the corresponding (S,
G) entry if it was added by user space as permanent.
This is going to be a problem when the ability to install a (*, G) with
a source list is exposed to user space. In this case, when user space
installs the (*, G) as permanent, then all the (S, G) entries
corresponding to its source list will also be installed as permanent.
When user space deletes the (*, G), all the source entries will be
deleted and the expectation is that the corresponding (S, G) entries
will be deleted as well.
Solve this by introducing a new source entry flag denoting that the
entry was installed by user space. When the entry is deleted, delete the
corresponding (S, G) entry even if it was installed by user space as
permanent, as the flag tells us that it was installed in response to the
source entry being created.
The flag will be set in a subsequent patch where source entries are
created in response to user requests.
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-12-10 16:56:26 +02:00
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:52:03 +02:00
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:25 +03:00
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
2020-09-22 10:30:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:19 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-12-20 13:45:19 -05:00
|
|
|
|
2020-09-07 12:56:19 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-11-03 11:51:10 +05:30
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2025-05-09 07:51:14 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2019-08-17 14:22:13 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:19 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:19 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-12-20 13:45:19 -05:00
|
|
|
|
2020-09-07 12:56:19 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-12-10 16:56:25 +02:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:19 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-12-10 16:56:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
net: bridge: Maintain number of MDB entries in net_bridge_mcast_port
The MDB maintained by the bridge is limited. When the bridge is configured
for IGMP / MLD snooping, a buggy or malicious client can easily exhaust its
capacity. In SW datapath, the capacity is configurable through the
IFLA_BR_MCAST_HASH_MAX parameter, but ultimately is finite. Obviously a
similar limit exists in the HW datapath for purposes of offloading.
In order to prevent the issue of unilateral exhaustion of MDB resources,
introduce two parameters in each of two contexts:
- Per-port and per-port-VLAN number of MDB entries that the port
is member in.
- Per-port and (when BROPT_MCAST_VLAN_SNOOPING_ENABLED is enabled)
per-port-VLAN maximum permitted number of MDB entries, or 0 for
no limit.
The per-port multicast context is used for tracking of MDB entries for the
port as a whole. This is available for all bridges.
The per-port-VLAN multicast context is then only available on
VLAN-filtering bridges on VLANs that have multicast snooping on.
With these changes in place, it will be possible to configure MDB limit for
bridge as a whole, or any one port as a whole, or any single port-VLAN.
Note that unlike the global limit, exhaustion of the per-port and
per-port-VLAN maximums does not cause disablement of multicast snooping.
It is also permitted to configure the local limit larger than hash_max,
even though that is not useful.
In this patch, introduce only the accounting for number of entries, and the
max field itself, but not the means to toggle the max. The next patch
introduces the netlink APIs to toggle and read the values.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-02-02 18:59:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
net: bridge: mcast: always update mdb_n_entries for vlan contexts
syzbot triggered a warning[1] about the number of mdb entries in a context.
It turned out that there are multiple ways to trigger that warning today
(some got added during the years), the root cause of the problem is that
the increase is done conditionally, and over the years these different
conditions increased so there were new ways to trigger the warning, that is
to do a decrease which wasn't paired with a previous increase.
For example one way to trigger it is with flush:
$ ip l add br0 up type bridge vlan_filtering 1 mcast_snooping 1
$ ip l add dumdum up master br0 type dummy
$ bridge mdb add dev br0 port dumdum grp 239.0.0.1 permanent vid 1
$ ip link set dev br0 down
$ ip link set dev br0 type bridge mcast_vlan_snooping 1
^^^^ this will enable snooping, but will not update mdb_n_entries
because in __br_multicast_enable_port_ctx() we check !netif_running
$ bridge mdb flush dev br0
^^^ this will trigger the warning because it will delete the pg which
we added above, which will try to decrease mdb_n_entries
Fix the problem by removing the conditional increase and always keep the
count up-to-date while the vlan exists. In order to do that we have to
first initialize it on port-vlan context creation, and then always increase
or decrease the value regardless of mcast options. To keep the current
behaviour we have to enforce the mdb limit only if the context is port's or
if the port-vlan's mcast snooping is enabled.
[1]
------------[ cut here ]------------
n == 0
WARNING: net/bridge/br_multicast.c:718 at br_multicast_port_ngroups_dec_one net/bridge/br_multicast.c:718 [inline], CPU#0: syz.4.4607/22043
WARNING: net/bridge/br_multicast.c:718 at br_multicast_port_ngroups_dec net/bridge/br_multicast.c:771 [inline], CPU#0: syz.4.4607/22043
WARNING: net/bridge/br_multicast.c:718 at br_multicast_del_pg+0x1bbe/0x1e20 net/bridge/br_multicast.c:825, CPU#0: syz.4.4607/22043
Modules linked in:
CPU: 0 UID: 0 PID: 22043 Comm: syz.4.4607 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/24/2026
RIP: 0010:br_multicast_port_ngroups_dec_one net/bridge/br_multicast.c:718 [inline]
RIP: 0010:br_multicast_port_ngroups_dec net/bridge/br_multicast.c:771 [inline]
RIP: 0010:br_multicast_del_pg+0x1bbe/0x1e20 net/bridge/br_multicast.c:825
Code: 41 5f 5d e9 04 7a 48 f7 e8 3f 73 5c f7 90 0f 0b 90 e9 cf fd ff ff e8 31 73 5c f7 90 0f 0b 90 e9 16 fd ff ff e8 23 73 5c f7 90 <0f> 0b 90 e9 60 fd ff ff e8 15 73 5c f7 eb 05 e8 0e 73 5c f7 48 8b
RSP: 0018:ffffc9000c207220 EFLAGS: 00010293
RAX: ffffffff8a68042d RBX: ffff88807c6f1800 RCX: ffff888066e90000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffff888066e90000 R09: 000000000000000c
R10: 000000000000000c R11: 0000000000000000 R12: ffff8880303ef800
R13: dffffc0000000000 R14: ffff888050eb11c4 R15: 1ffff1100a1d6238
FS: 00007fa45921b6c0(0000) GS:ffff8881256f5000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa4591f9ff8 CR3: 0000000081df2000 CR4: 00000000003526f0
Call Trace:
<TASK>
br_mdb_flush_pgs net/bridge/br_mdb.c:1525 [inline]
br_mdb_flush net/bridge/br_mdb.c:1544 [inline]
br_mdb_del_bulk+0x5e2/0xb20 net/bridge/br_mdb.c:1561
rtnl_mdb_del+0x48a/0x640 net/core/rtnetlink.c:-1
rtnetlink_rcv_msg+0x77e/0xbe0 net/core/rtnetlink.c:6967
netlink_rcv_skb+0x232/0x4b0 net/netlink/af_netlink.c:2550
netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
netlink_unicast+0x80f/0x9b0 net/netlink/af_netlink.c:1344
netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1894
sock_sendmsg_nosec net/socket.c:727 [inline]
__sock_sendmsg net/socket.c:742 [inline]
____sys_sendmsg+0xa68/0xad0 net/socket.c:2592
___sys_sendmsg+0x2a5/0x360 net/socket.c:2646
__sys_sendmsg net/socket.c:2678 [inline]
__do_sys_sendmsg net/socket.c:2683 [inline]
__se_sys_sendmsg net/socket.c:2681 [inline]
__x64_sys_sendmsg+0x1bd/0x2a0 net/socket.c:2681
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xe2/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fa45839aeb9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa45921b028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fa458615fa0 RCX: 00007fa45839aeb9
RDX: 0000000000000000 RSI: 00002000000000c0 RDI: 0000000000000004
RBP: 00007fa458408c1f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fa458616038 R14: 00007fa458615fa0 R15: 00007fff0b59fae8
</TASK>
Fixes: b57e8d870d52 ("net: bridge: Maintain number of MDB entries in net_bridge_mcast_port")
Reported-by: syzbot+d5d1b7343531d17bd3c5@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/netdev/aYrWbRp83MQR1ife@debil/T/#t
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Link: https://patch.msgid.link/20260213070031.1400003-2-nikolay@nvidia.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2026-02-13 09:00:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
net: bridge: Maintain number of MDB entries in net_bridge_mcast_port
The MDB maintained by the bridge is limited. When the bridge is configured
for IGMP / MLD snooping, a buggy or malicious client can easily exhaust its
capacity. In SW datapath, the capacity is configurable through the
IFLA_BR_MCAST_HASH_MAX parameter, but ultimately is finite. Obviously a
similar limit exists in the HW datapath for purposes of offloading.
In order to prevent the issue of unilateral exhaustion of MDB resources,
introduce two parameters in each of two contexts:
- Per-port and per-port-VLAN number of MDB entries that the port
is member in.
- Per-port and (when BROPT_MCAST_VLAN_SNOOPING_ENABLED is enabled)
per-port-VLAN maximum permitted number of MDB entries, or 0 for
no limit.
The per-port multicast context is used for tracking of MDB entries for the
port as a whole. This is available for all bridges.
The per-port-VLAN multicast context is then only available on
VLAN-filtering bridges on VLANs that have multicast snooping on.
With these changes in place, it will be possible to configure MDB limit for
bridge as a whole, or any one port as a whole, or any single port-VLAN.
Note that unlike the global limit, exhaustion of the per-port and
per-port-VLAN maximums does not cause disablement of multicast snooping.
It is also permitted to configure the local limit larger than hash_max,
even though that is not useful.
In this patch, introduce only the accounting for number of entries, and the
max field itself, but not the means to toggle the max. The next patch
introduces the netlink APIs to toggle and read the values.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-02-02 18:59:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
net: bridge: mcast: always update mdb_n_entries for vlan contexts
syzbot triggered a warning[1] about the number of mdb entries in a context.
It turned out that there are multiple ways to trigger that warning today
(some got added during the years), the root cause of the problem is that
the increase is done conditionally, and over the years these different
conditions increased so there were new ways to trigger the warning, that is
to do a decrease which wasn't paired with a previous increase.
For example one way to trigger it is with flush:
$ ip l add br0 up type bridge vlan_filtering 1 mcast_snooping 1
$ ip l add dumdum up master br0 type dummy
$ bridge mdb add dev br0 port dumdum grp 239.0.0.1 permanent vid 1
$ ip link set dev br0 down
$ ip link set dev br0 type bridge mcast_vlan_snooping 1
^^^^ this will enable snooping, but will not update mdb_n_entries
because in __br_multicast_enable_port_ctx() we check !netif_running
$ bridge mdb flush dev br0
^^^ this will trigger the warning because it will delete the pg which
we added above, which will try to decrease mdb_n_entries
Fix the problem by removing the conditional increase and always keep the
count up-to-date while the vlan exists. In order to do that we have to
first initialize it on port-vlan context creation, and then always increase
or decrease the value regardless of mcast options. To keep the current
behaviour we have to enforce the mdb limit only if the context is port's or
if the port-vlan's mcast snooping is enabled.
[1]
------------[ cut here ]------------
n == 0
WARNING: net/bridge/br_multicast.c:718 at br_multicast_port_ngroups_dec_one net/bridge/br_multicast.c:718 [inline], CPU#0: syz.4.4607/22043
WARNING: net/bridge/br_multicast.c:718 at br_multicast_port_ngroups_dec net/bridge/br_multicast.c:771 [inline], CPU#0: syz.4.4607/22043
WARNING: net/bridge/br_multicast.c:718 at br_multicast_del_pg+0x1bbe/0x1e20 net/bridge/br_multicast.c:825, CPU#0: syz.4.4607/22043
Modules linked in:
CPU: 0 UID: 0 PID: 22043 Comm: syz.4.4607 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/24/2026
RIP: 0010:br_multicast_port_ngroups_dec_one net/bridge/br_multicast.c:718 [inline]
RIP: 0010:br_multicast_port_ngroups_dec net/bridge/br_multicast.c:771 [inline]
RIP: 0010:br_multicast_del_pg+0x1bbe/0x1e20 net/bridge/br_multicast.c:825
Code: 41 5f 5d e9 04 7a 48 f7 e8 3f 73 5c f7 90 0f 0b 90 e9 cf fd ff ff e8 31 73 5c f7 90 0f 0b 90 e9 16 fd ff ff e8 23 73 5c f7 90 <0f> 0b 90 e9 60 fd ff ff e8 15 73 5c f7 eb 05 e8 0e 73 5c f7 48 8b
RSP: 0018:ffffc9000c207220 EFLAGS: 00010293
RAX: ffffffff8a68042d RBX: ffff88807c6f1800 RCX: ffff888066e90000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffff888066e90000 R09: 000000000000000c
R10: 000000000000000c R11: 0000000000000000 R12: ffff8880303ef800
R13: dffffc0000000000 R14: ffff888050eb11c4 R15: 1ffff1100a1d6238
FS: 00007fa45921b6c0(0000) GS:ffff8881256f5000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa4591f9ff8 CR3: 0000000081df2000 CR4: 00000000003526f0
Call Trace:
<TASK>
br_mdb_flush_pgs net/bridge/br_mdb.c:1525 [inline]
br_mdb_flush net/bridge/br_mdb.c:1544 [inline]
br_mdb_del_bulk+0x5e2/0xb20 net/bridge/br_mdb.c:1561
rtnl_mdb_del+0x48a/0x640 net/core/rtnetlink.c:-1
rtnetlink_rcv_msg+0x77e/0xbe0 net/core/rtnetlink.c:6967
netlink_rcv_skb+0x232/0x4b0 net/netlink/af_netlink.c:2550
netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
netlink_unicast+0x80f/0x9b0 net/netlink/af_netlink.c:1344
netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1894
sock_sendmsg_nosec net/socket.c:727 [inline]
__sock_sendmsg net/socket.c:742 [inline]
____sys_sendmsg+0xa68/0xad0 net/socket.c:2592
___sys_sendmsg+0x2a5/0x360 net/socket.c:2646
__sys_sendmsg net/socket.c:2678 [inline]
__do_sys_sendmsg net/socket.c:2683 [inline]
__se_sys_sendmsg net/socket.c:2681 [inline]
__x64_sys_sendmsg+0x1bd/0x2a0 net/socket.c:2681
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xe2/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fa45839aeb9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa45921b028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fa458615fa0 RCX: 00007fa45839aeb9
RDX: 0000000000000000 RSI: 00002000000000c0 RDI: 0000000000000004
RBP: 00007fa458408c1f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fa458616038 R14: 00007fa458615fa0 R15: 00007fff0b59fae8
</TASK>
Fixes: b57e8d870d52 ("net: bridge: Maintain number of MDB entries in net_bridge_mcast_port")
Reported-by: syzbot+d5d1b7343531d17bd3c5@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/netdev/aYrWbRp83MQR1ife@debil/T/#t
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Link: https://patch.msgid.link/20260213070031.1400003-2-nikolay@nvidia.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2026-02-13 09:00:30 +02:00
|
|
|
|
net: bridge: Maintain number of MDB entries in net_bridge_mcast_port
The MDB maintained by the bridge is limited. When the bridge is configured
for IGMP / MLD snooping, a buggy or malicious client can easily exhaust its
capacity. In SW datapath, the capacity is configurable through the
IFLA_BR_MCAST_HASH_MAX parameter, but ultimately is finite. Obviously a
similar limit exists in the HW datapath for purposes of offloading.
In order to prevent the issue of unilateral exhaustion of MDB resources,
introduce two parameters in each of two contexts:
- Per-port and per-port-VLAN number of MDB entries that the port
is member in.
- Per-port and (when BROPT_MCAST_VLAN_SNOOPING_ENABLED is enabled)
per-port-VLAN maximum permitted number of MDB entries, or 0 for
no limit.
The per-port multicast context is used for tracking of MDB entries for the
port as a whole. This is available for all bridges.
The per-port-VLAN multicast context is then only available on
VLAN-filtering bridges on VLANs that have multicast snooping on.
With these changes in place, it will be possible to configure MDB limit for
bridge as a whole, or any one port as a whole, or any single port-VLAN.
Note that unlike the global limit, exhaustion of the per-port and
per-port-VLAN maximums does not cause disablement of multicast snooping.
It is also permitted to configure the local limit larger than hash_max,
even though that is not useful.
In this patch, introduce only the accounting for number of entries, and the
max field itself, but not the means to toggle the max. The next patch
introduces the netlink APIs to toggle and read the values.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-02-02 18:59:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-02-02 18:59:26 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:19 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-12-20 13:45:19 -05:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:19 +03:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:06 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:06 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:56 +02:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
2021-01-20 16:52:03 +02:00
|
|
|
|
2020-09-07 12:56:12 +03:00
|
|
|
|
2020-09-25 13:25:49 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
net: bridge: mcast: handle port group filter modes
We need to handle group filter mode transitions and initial state.
To change a port group's INCLUDE -> EXCLUDE mode (or when we have added
a new port group in EXCLUDE mode) we need to add that port to all of
*,G ports' S,G entries for proper replication. When the EXCLUDE state is
changed from IGMPv3 report, br_multicast_fwd_filter_exclude() must be
called after the source list processing because the assumption is that
all of the group's S,G entries will be created before transitioning to
EXCLUDE mode, i.e. most importantly its blocked entries will already be
added so it will not get automatically added to them.
The transition EXCLUDE -> INCLUDE happens only when a port group timer
expires, it requires us to remove that port from all of *,G ports' S,G
entries where it was automatically added previously.
Finally when we are adding a new S,G entry we must add all of *,G's
EXCLUDE ports to it.
In order to distinguish automatically added *,G EXCLUDE ports we have a
new port group flag - MDB_PG_FLAGS_STAR_EXCL.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-22 10:30:24 +03:00
|
|
|
|
2020-09-25 13:25:49 +03:00
|
|
|
|
net: bridge: mcast: handle port group filter modes
We need to handle group filter mode transitions and initial state.
To change a port group's INCLUDE -> EXCLUDE mode (or when we have added
a new port group in EXCLUDE mode) we need to add that port to all of
*,G ports' S,G entries for proper replication. When the EXCLUDE state is
changed from IGMPv3 report, br_multicast_fwd_filter_exclude() must be
called after the source list processing because the assumption is that
all of the group's S,G entries will be created before transitioning to
EXCLUDE mode, i.e. most importantly its blocked entries will already be
added so it will not get automatically added to them.
The transition EXCLUDE -> INCLUDE happens only when a port group timer
expires, it requires us to remove that port from all of *,G ports' S,G
entries where it was automatically added previously.
Finally when we are adding a new S,G entry we must add all of *,G's
EXCLUDE ports to it.
In order to distinguish automatically added *,G EXCLUDE ports we have a
new port group flag - MDB_PG_FLAGS_STAR_EXCL.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-22 10:30:24 +03:00
|
|
|
|
2020-09-25 13:25:49 +03:00
|
|
|
|
net: bridge: Maintain number of MDB entries in net_bridge_mcast_port
The MDB maintained by the bridge is limited. When the bridge is configured
for IGMP / MLD snooping, a buggy or malicious client can easily exhaust its
capacity. In SW datapath, the capacity is configurable through the
IFLA_BR_MCAST_HASH_MAX parameter, but ultimately is finite. Obviously a
similar limit exists in the HW datapath for purposes of offloading.
In order to prevent the issue of unilateral exhaustion of MDB resources,
introduce two parameters in each of two contexts:
- Per-port and per-port-VLAN number of MDB entries that the port
is member in.
- Per-port and (when BROPT_MCAST_VLAN_SNOOPING_ENABLED is enabled)
per-port-VLAN maximum permitted number of MDB entries, or 0 for
no limit.
The per-port multicast context is used for tracking of MDB entries for the
port as a whole. This is available for all bridges.
The per-port-VLAN multicast context is then only available on
VLAN-filtering bridges on VLANs that have multicast snooping on.
With these changes in place, it will be possible to configure MDB limit for
bridge as a whole, or any one port as a whole, or any single port-VLAN.
Note that unlike the global limit, exhaustion of the per-port and
per-port-VLAN maximums does not cause disablement of multicast snooping.
It is also permitted to configure the local limit larger than hash_max,
even though that is not useful.
In this patch, introduce only the accounting for number of entries, and the
max field itself, but not the means to toggle the max. The next patch
introduces the netlink APIs to toggle and read the values.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-02-02 18:59:25 +01:00
|
|
|
|
2020-09-07 12:56:19 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:06 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2010-11-15 06:38:10 +00:00
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-11-15 06:38:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:06 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-11-03 11:51:10 +05:30
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2025-05-09 07:51:14 +02:00
|
|
|
|
2020-09-07 12:56:13 +03:00
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2020-09-07 12:56:13 +03:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-02-03 09:57:05 +01:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:13 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-20 16:52:03 +02:00
|
|
|
|
2020-09-07 12:56:13 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2020-09-07 12:56:13 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2020-09-07 12:56:13 +03:00
|
|
|
|
net: bridge: mcast: handle port group filter modes
We need to handle group filter mode transitions and initial state.
To change a port group's INCLUDE -> EXCLUDE mode (or when we have added
a new port group in EXCLUDE mode) we need to add that port to all of
*,G ports' S,G entries for proper replication. When the EXCLUDE state is
changed from IGMPv3 report, br_multicast_fwd_filter_exclude() must be
called after the source list processing because the assumption is that
all of the group's S,G entries will be created before transitioning to
EXCLUDE mode, i.e. most importantly its blocked entries will already be
added so it will not get automatically added to them.
The transition EXCLUDE -> INCLUDE happens only when a port group timer
expires, it requires us to remove that port from all of *,G ports' S,G
entries where it was automatically added previously.
Finally when we are adding a new S,G entry we must add all of *,G's
EXCLUDE ports to it.
In order to distinguish automatically added *,G EXCLUDE ports we have a
new port group flag - MDB_PG_FLAGS_STAR_EXCL.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-22 10:30:24 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:13 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:19 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:32 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-07-19 20:06:32 +03:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:10 +03:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-21 13:03:24 +01:00
|
|
|
|
2026-05-02 13:19:04 +00:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2016-11-21 13:03:24 +01:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2016-11-21 13:03:24 +01:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:32 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-05-02 13:19:04 +00:00
|
|
|
|
|
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2016-11-21 13:03:24 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-05-02 13:19:04 +00:00
|
|
|
|
2016-11-21 13:03:24 +01:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
|
|
|
|
|
2016-11-21 13:03:24 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-05-02 13:19:04 +00:00
|
|
|
|
2016-11-21 13:03:24 +01:00
|
|
|
|
2026-05-02 13:19:04 +00:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
2016-11-21 13:03:24 +01:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
2016-11-21 13:03:24 +01:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:16 +03:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
2020-09-07 12:56:10 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-21 13:03:24 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-21 13:03:24 +01:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-10 09:48:31 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-07-19 20:06:32 +03:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:10 +03:00
|
|
|
|
|
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-21 13:03:25 +01:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
2016-11-21 13:03:25 +01:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2016-11-21 13:03:25 +01:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2016-11-21 13:03:25 +01:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2016-11-21 13:03:25 +01:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:32 +03:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-21 13:03:25 +01:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2012-03-05 04:52:44 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2012-03-05 04:52:44 +00:00
|
|
|
|
|
|
|
|
|
2016-06-24 12:35:18 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2011-02-17 08:17:51 +00:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-05-17 06:00:25 +00:00
|
|
|
|
|
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
|
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2016-11-21 13:03:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-21 13:03:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-05-02 13:19:05 +00:00
|
|
|
|
2016-11-21 13:03:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
2016-11-21 13:03:25 +01:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
2026-05-02 13:19:05 +00:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:16 +03:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
2020-09-07 12:56:10 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-21 13:03:25 +01:00
|
|
|
|
|
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-07-19 20:06:32 +03:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:10 +03:00
|
|
|
|
|
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
2020-09-22 10:30:17 +03:00
|
|
|
|
2021-07-19 20:06:32 +03:00
|
|
|
|
2020-09-22 10:30:17 +03:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
2020-09-07 12:56:10 +03:00
|
|
|
|
|
|
|
|
|
2011-12-10 09:48:31 +00:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:17 +03:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:32 +03:00
|
|
|
|
2020-09-22 10:30:17 +03:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
2020-09-07 12:56:10 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-12-11 22:23:08 +00:00
|
|
|
|
2016-11-21 13:03:24 +01:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2010-12-10 03:18:04 +00:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2018-12-05 15:14:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2018-12-05 15:14:24 +02:00
|
|
|
|
net: bridge: Maintain number of MDB entries in net_bridge_mcast_port
The MDB maintained by the bridge is limited. When the bridge is configured
for IGMP / MLD snooping, a buggy or malicious client can easily exhaust its
capacity. In SW datapath, the capacity is configurable through the
IFLA_BR_MCAST_HASH_MAX parameter, but ultimately is finite. Obviously a
similar limit exists in the HW datapath for purposes of offloading.
In order to prevent the issue of unilateral exhaustion of MDB resources,
introduce two parameters in each of two contexts:
- Per-port and per-port-VLAN number of MDB entries that the port
is member in.
- Per-port and (when BROPT_MCAST_VLAN_SNOOPING_ENABLED is enabled)
per-port-VLAN maximum permitted number of MDB entries, or 0 for
no limit.
The per-port multicast context is used for tracking of MDB entries for the
port as a whole. This is available for all bridges.
The per-port-VLAN multicast context is then only available on
VLAN-filtering bridges on VLANs that have multicast snooping on.
With these changes in place, it will be possible to configure MDB limit for
bridge as a whole, or any one port as a whole, or any single port-VLAN.
Note that unlike the global limit, exhaustion of the per-port and
per-port-VLAN maximums does not cause disablement of multicast snooping.
It is also permitted to configure the local limit larger than hash_max,
even though that is not useful.
In this patch, introduce only the accounting for number of entries, and the
max field itself, but not the means to toggle the max. The next patch
introduces the netlink APIs to toggle and read the values.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-02-02 18:59:25 +01:00
|
|
|
|
2022-02-15 18:53:03 +02:00
|
|
|
|
2018-12-05 15:14:24 +02:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
treewide: Replace kmalloc with kmalloc_obj for non-scalar types
This is the result of running the Coccinelle script from
scripts/coccinelle/api/kmalloc_objs.cocci. The script is designed to
avoid scalar types (which need careful case-by-case checking), and
instead replace kmalloc-family calls that allocate struct or union
object instances:
Single allocations: kmalloc(sizeof(TYPE), ...)
are replaced with: kmalloc_obj(TYPE, ...)
Array allocations: kmalloc_array(COUNT, sizeof(TYPE), ...)
are replaced with: kmalloc_objs(TYPE, COUNT, ...)
Flex array allocations: kmalloc(struct_size(PTR, FAM, COUNT), ...)
are replaced with: kmalloc_flex(*PTR, FAM, COUNT, ...)
(where TYPE may also be *VAR)
The resulting allocations no longer return "void *", instead returning
"TYPE *".
Signed-off-by: Kees Cook <kees@kernel.org>
2026-02-20 23:49:23 -08:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2010-12-10 03:18:04 +00:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
2020-09-07 12:56:19 +03:00
|
|
|
|
2017-11-03 11:51:10 +05:30
|
|
|
|
2018-12-05 15:14:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-19 20:07:16 -07:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
|
|
|
|
|
2025-05-09 07:51:14 +02:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-20 16:52:03 +02:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:25 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
2020-09-22 10:30:25 +03:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:58 +02:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:16 +03:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:16 +03:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-12-10 16:56:24 +02:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:16 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:16 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
treewide: Replace kmalloc with kmalloc_obj for non-scalar types
This is the result of running the Coccinelle script from
scripts/coccinelle/api/kmalloc_objs.cocci. The script is designed to
avoid scalar types (which need careful case-by-case checking), and
instead replace kmalloc-family calls that allocate struct or union
object instances:
Single allocations: kmalloc(sizeof(TYPE), ...)
are replaced with: kmalloc_obj(TYPE, ...)
Array allocations: kmalloc_array(COUNT, sizeof(TYPE), ...)
are replaced with: kmalloc_objs(TYPE, COUNT, ...)
Flex array allocations: kmalloc(struct_size(PTR, FAM, COUNT), ...)
are replaced with: kmalloc_flex(*PTR, FAM, COUNT, ...)
(where TYPE may also be *VAR)
The resulting allocations no longer return "void *", instead returning
"TYPE *".
Signed-off-by: Kees Cook <kees@kernel.org>
2026-02-20 23:49:23 -08:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
2020-09-07 12:56:19 +03:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-12-11 22:23:08 +00:00
|
|
|
|
|
|
|
|
|
2022-12-06 12:58:09 +02:00
|
|
|
|
2012-12-14 22:09:51 +00:00
|
|
|
|
2017-01-21 21:01:32 +01:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
2020-09-22 10:30:21 +03:00
|
|
|
|
2023-02-02 18:59:20 +01:00
|
|
|
|
|
|
|
|
|
2012-12-11 22:23:08 +00:00
|
|
|
|
|
|
|
|
|
net: bridge: Maintain number of MDB entries in net_bridge_mcast_port
The MDB maintained by the bridge is limited. When the bridge is configured
for IGMP / MLD snooping, a buggy or malicious client can easily exhaust its
capacity. In SW datapath, the capacity is configurable through the
IFLA_BR_MCAST_HASH_MAX parameter, but ultimately is finite. Obviously a
similar limit exists in the HW datapath for purposes of offloading.
In order to prevent the issue of unilateral exhaustion of MDB resources,
introduce two parameters in each of two contexts:
- Per-port and per-port-VLAN number of MDB entries that the port
is member in.
- Per-port and (when BROPT_MCAST_VLAN_SNOOPING_ENABLED is enabled)
per-port-VLAN maximum permitted number of MDB entries, or 0 for
no limit.
The per-port multicast context is used for tracking of MDB entries for the
port as a whole. This is available for all bridges.
The per-port-VLAN multicast context is then only available on
VLAN-filtering bridges on VLANs that have multicast snooping on.
With these changes in place, it will be possible to configure MDB limit for
bridge as a whole, or any one port as a whole, or any single port-VLAN.
Note that unlike the global limit, exhaustion of the per-port and
per-port-VLAN maximums does not cause disablement of multicast snooping.
It is also permitted to configure the local limit larger than hash_max,
even though that is not useful.
In this patch, introduce only the accounting for number of entries, and the
max field itself, but not the means to toggle the max. The next patch
introduces the netlink APIs to toggle and read the values.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-02-02 18:59:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-12-11 22:23:08 +00:00
|
|
|
|
treewide: Replace kmalloc with kmalloc_obj for non-scalar types
This is the result of running the Coccinelle script from
scripts/coccinelle/api/kmalloc_objs.cocci. The script is designed to
avoid scalar types (which need careful case-by-case checking), and
instead replace kmalloc-family calls that allocate struct or union
object instances:
Single allocations: kmalloc(sizeof(TYPE), ...)
are replaced with: kmalloc_obj(TYPE, ...)
Array allocations: kmalloc_array(COUNT, sizeof(TYPE), ...)
are replaced with: kmalloc_objs(TYPE, COUNT, ...)
Flex array allocations: kmalloc(struct_size(PTR, FAM, COUNT), ...)
are replaced with: kmalloc_flex(*PTR, FAM, COUNT, ...)
(where TYPE may also be *VAR)
The resulting allocations no longer return "void *", instead returning
"TYPE *".
Signed-off-by: Kees Cook <kees@kernel.org>
2026-02-20 23:49:23 -08:00
|
|
|
|
2023-02-02 18:59:21 +01:00
|
|
|
|
|
|
|
|
|
net: bridge: Maintain number of MDB entries in net_bridge_mcast_port
The MDB maintained by the bridge is limited. When the bridge is configured
for IGMP / MLD snooping, a buggy or malicious client can easily exhaust its
capacity. In SW datapath, the capacity is configurable through the
IFLA_BR_MCAST_HASH_MAX parameter, but ultimately is finite. Obviously a
similar limit exists in the HW datapath for purposes of offloading.
In order to prevent the issue of unilateral exhaustion of MDB resources,
introduce two parameters in each of two contexts:
- Per-port and per-port-VLAN number of MDB entries that the port
is member in.
- Per-port and (when BROPT_MCAST_VLAN_SNOOPING_ENABLED is enabled)
per-port-VLAN maximum permitted number of MDB entries, or 0 for
no limit.
The per-port multicast context is used for tracking of MDB entries for the
port as a whole. This is available for all bridges.
The per-port-VLAN multicast context is then only available on
VLAN-filtering bridges on VLANs that have multicast snooping on.
With these changes in place, it will be possible to configure MDB limit for
bridge as a whole, or any one port as a whole, or any single port-VLAN.
Note that unlike the global limit, exhaustion of the per-port and
per-port-VLAN maximums does not cause disablement of multicast snooping.
It is also permitted to configure the local limit larger than hash_max,
even though that is not useful.
In this patch, introduce only the accounting for number of entries, and the
max field itself, but not the means to toggle the max. The next patch
introduces the netlink APIs to toggle and read the values.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-02-02 18:59:25 +01:00
|
|
|
|
2023-02-02 18:59:21 +01:00
|
|
|
|
2012-12-11 22:23:08 +00:00
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
|
|
|
|
|
2016-02-03 09:57:05 +01:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
2020-09-22 10:30:21 +03:00
|
|
|
|
2021-01-20 16:51:55 +02:00
|
|
|
|
2021-01-20 16:51:56 +02:00
|
|
|
|
2020-09-07 12:56:19 +03:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-02-02 18:59:21 +01:00
|
|
|
|
2023-02-02 18:59:23 +01:00
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
|
|
|
|
|
2012-12-13 06:51:28 +00:00
|
|
|
|
2017-11-03 11:51:10 +05:30
|
|
|
|
2020-09-07 12:56:10 +03:00
|
|
|
|
|
|
|
|
|
2017-01-21 21:01:32 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-03-20 10:06:57 +08:00
|
|
|
|
2017-01-21 21:01:32 +01:00
|
|
|
|
2012-12-11 22:23:08 +00:00
|
|
|
|
2023-02-02 18:59:23 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
net: bridge: Maintain number of MDB entries in net_bridge_mcast_port
The MDB maintained by the bridge is limited. When the bridge is configured
for IGMP / MLD snooping, a buggy or malicious client can easily exhaust its
capacity. In SW datapath, the capacity is configurable through the
IFLA_BR_MCAST_HASH_MAX parameter, but ultimately is finite. Obviously a
similar limit exists in the HW datapath for purposes of offloading.
In order to prevent the issue of unilateral exhaustion of MDB resources,
introduce two parameters in each of two contexts:
- Per-port and per-port-VLAN number of MDB entries that the port
is member in.
- Per-port and (when BROPT_MCAST_VLAN_SNOOPING_ENABLED is enabled)
per-port-VLAN maximum permitted number of MDB entries, or 0 for
no limit.
The per-port multicast context is used for tracking of MDB entries for the
port as a whole. This is available for all bridges.
The per-port-VLAN multicast context is then only available on
VLAN-filtering bridges on VLANs that have multicast snooping on.
With these changes in place, it will be possible to configure MDB limit for
bridge as a whole, or any one port as a whole, or any single port-VLAN.
Note that unlike the global limit, exhaustion of the per-port and
per-port-VLAN maximums does not cause disablement of multicast snooping.
It is also permitted to configure the local limit larger than hash_max,
even though that is not useful.
In this patch, introduce only the accounting for number of entries, and the
max field itself, but not the means to toggle the max. The next patch
introduces the netlink APIs to toggle and read the values.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-02-02 18:59:25 +01:00
|
|
|
|
|
|
|
|
|
2023-02-02 18:59:23 +01:00
|
|
|
|
2012-12-11 22:23:08 +00:00
|
|
|
|
|
|
|
|
|
2023-02-02 18:59:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
net: bridge: Maintain number of MDB entries in net_bridge_mcast_port
The MDB maintained by the bridge is limited. When the bridge is configured
for IGMP / MLD snooping, a buggy or malicious client can easily exhaust its
capacity. In SW datapath, the capacity is configurable through the
IFLA_BR_MCAST_HASH_MAX parameter, but ultimately is finite. Obviously a
similar limit exists in the HW datapath for purposes of offloading.
In order to prevent the issue of unilateral exhaustion of MDB resources,
introduce two parameters in each of two contexts:
- Per-port and per-port-VLAN number of MDB entries that the port
is member in.
- Per-port and (when BROPT_MCAST_VLAN_SNOOPING_ENABLED is enabled)
per-port-VLAN maximum permitted number of MDB entries, or 0 for
no limit.
The per-port multicast context is used for tracking of MDB entries for the
port as a whole. This is available for all bridges.
The per-port-VLAN multicast context is then only available on
VLAN-filtering bridges on VLANs that have multicast snooping on.
With these changes in place, it will be possible to configure MDB limit for
bridge as a whole, or any one port as a whole, or any single port-VLAN.
Note that unlike the global limit, exhaustion of the per-port and
per-port-VLAN maximums does not cause disablement of multicast snooping.
It is also permitted to configure the local limit larger than hash_max,
even though that is not useful.
In this patch, introduce only the accounting for number of entries, and the
max field itself, but not the means to toggle the max. The next patch
introduces the netlink APIs to toggle and read the values.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-02-02 18:59:25 +01:00
|
|
|
|
2023-02-02 18:59:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
net: bridge: Maintain number of MDB entries in net_bridge_mcast_port
The MDB maintained by the bridge is limited. When the bridge is configured
for IGMP / MLD snooping, a buggy or malicious client can easily exhaust its
capacity. In SW datapath, the capacity is configurable through the
IFLA_BR_MCAST_HASH_MAX parameter, but ultimately is finite. Obviously a
similar limit exists in the HW datapath for purposes of offloading.
In order to prevent the issue of unilateral exhaustion of MDB resources,
introduce two parameters in each of two contexts:
- Per-port and per-port-VLAN number of MDB entries that the port
is member in.
- Per-port and (when BROPT_MCAST_VLAN_SNOOPING_ENABLED is enabled)
per-port-VLAN maximum permitted number of MDB entries, or 0 for
no limit.
The per-port multicast context is used for tracking of MDB entries for the
port as a whole. This is available for all bridges.
The per-port-VLAN multicast context is then only available on
VLAN-filtering bridges on VLANs that have multicast snooping on.
With these changes in place, it will be possible to configure MDB limit for
bridge as a whole, or any one port as a whole, or any single port-VLAN.
Note that unlike the global limit, exhaustion of the per-port and
per-port-VLAN maximums does not cause disablement of multicast snooping.
It is also permitted to configure the local limit larger than hash_max,
even though that is not useful.
In this patch, introduce only the accounting for number of entries, and the
max field itself, but not the means to toggle the max. The next patch
introduces the netlink APIs to toggle and read the values.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-02-02 18:59:25 +01:00
|
|
|
|
2023-02-02 18:59:22 +01:00
|
|
|
|
|
|
|
|
|
2021-07-21 17:01:27 +03:00
|
|
|
|
|
|
|
|
|
2019-08-17 14:22:13 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:26 +03:00
|
|
|
|
|
|
|
|
|
2019-08-17 14:22:13 +03:00
|
|
|
|
2020-09-07 12:56:12 +03:00
|
|
|
|
2019-08-17 14:22:13 +03:00
|
|
|
|
2020-10-29 01:38:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-21 17:01:27 +03:00
|
|
|
|
2019-08-17 14:22:13 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:26 +03:00
|
|
|
|
|
|
|
|
|
2019-08-17 14:22:13 +03:00
|
|
|
|
2020-09-07 12:56:12 +03:00
|
|
|
|
2019-08-17 14:22:13 +03:00
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:25 +03:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2010-11-15 06:38:10 +00:00
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
2016-11-21 13:03:24 +01:00
|
|
|
|
2013-10-20 00:58:57 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-07-19 20:06:31 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-12-10 03:18:04 +00:00
|
|
|
|
2021-02-04 07:05:49 +00:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-07-21 17:01:27 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-11-15 06:38:10 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-11-15 06:38:10 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2013-10-20 00:58:57 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2023-02-02 18:59:20 +01:00
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2020-09-22 10:30:25 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2013-10-20 00:58:57 +02:00
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:12 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:25 +03:00
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
2021-01-25 10:39:41 +08:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2013-02-13 12:00:17 +00:00
|
|
|
|
2017-01-21 21:01:32 +01:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
|
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-03 23:27:24 +03:00
|
|
|
|
2020-09-22 10:30:17 +03:00
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
2013-02-13 12:00:17 +00:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
|
|
|
|
|
2011-12-10 09:48:31 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2013-02-13 12:00:17 +00:00
|
|
|
|
2017-01-21 21:01:32 +01:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
|
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
2013-09-04 02:13:39 +02:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2018-12-05 15:14:24 +02:00
|
|
|
|
2020-09-22 10:30:17 +03:00
|
|
|
|
2011-02-15 13:19:17 +00:00
|
|
|
|
2013-02-13 12:00:17 +00:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:50 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-05-13 15:20:50 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-05-13 15:20:50 +02:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:23 +03:00
|
|
|
|
2021-05-13 15:20:48 +02:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-07-19 20:06:23 +03:00
|
|
|
|
2021-05-13 15:20:50 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:23 +03:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:48 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:50 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:48 +02:00
|
|
|
|
|
|
|
|
|
2025-05-09 07:51:14 +02:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:48 +02:00
|
|
|
|
2021-07-19 20:06:23 +03:00
|
|
|
|
2021-05-13 15:20:48 +02:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-05-09 07:51:14 +02:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
2021-07-19 20:06:23 +03:00
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-10-09 11:15:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-13 22:43:17 +02:00
|
|
|
|
2017-10-09 11:15:31 +02:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2021-05-13 15:20:48 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-10-09 11:15:31 +02:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2017-10-09 11:15:31 +02:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:48 +02:00
|
|
|
|
|
|
|
|
|
2025-05-09 07:51:14 +02:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:48 +02:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2021-05-13 15:20:48 +02:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-05-09 07:51:14 +02:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2014-06-07 18:26:26 +02:00
|
|
|
|
2012-04-13 02:37:42 +00:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:31 +03:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2012-04-13 02:37:42 +00:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2012-04-13 02:37:42 +00:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2012-04-13 02:37:42 +00:00
|
|
|
|
|
|
|
|
|
2017-11-03 11:51:10 +05:30
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2025-05-09 07:51:14 +02:00
|
|
|
|
|
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-11-03 11:51:10 +05:30
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2025-05-09 07:51:14 +02:00
|
|
|
|
|
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-27 18:50:32 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2014-06-07 18:26:27 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2014-06-07 18:26:27 +02:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2014-06-07 18:26:27 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:10 +03:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-08-10 18:29:29 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:32 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
2021-07-19 20:06:32 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:10 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
2015-09-15 20:04:16 -05:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2014-11-17 12:20:28 +01:00
|
|
|
|
2020-09-07 12:56:09 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-06-07 18:26:27 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2014-06-07 18:26:27 +02:00
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
|
|
|
|
|
2021-08-13 17:59:58 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2014-06-07 18:26:26 +02:00
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
2014-06-07 18:26:26 +02:00
|
|
|
|
2021-08-13 17:59:58 +03:00
|
|
|
|
2016-11-21 13:03:24 +01:00
|
|
|
|
|
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
2021-07-19 20:06:31 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-08-10 18:29:28 +03:00
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:17 +03:00
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-08-13 17:59:58 +03:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2011-12-10 09:48:31 +00:00
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2021-08-13 17:59:58 +03:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
|
|
|
|
|
2014-06-07 18:26:26 +02:00
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
|
|
|
|
|
2021-08-13 17:59:58 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-06-07 18:26:26 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2014-06-07 18:26:26 +02:00
|
|
|
|
2021-07-19 20:06:23 +03:00
|
|
|
|
2014-06-07 18:26:26 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-07-19 20:06:23 +03:00
|
|
|
|
2021-07-19 20:06:31 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:31 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-07-19 20:06:32 +03:00
|
|
|
|
2021-07-19 20:06:31 +03:00
|
|
|
|
|
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-07-19 20:06:31 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-11-03 11:51:10 +05:30
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2025-05-09 07:51:14 +02:00
|
|
|
|
|
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2021-07-19 20:06:23 +03:00
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-11-03 11:51:10 +05:30
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2025-05-09 07:51:14 +02:00
|
|
|
|
|
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2021-07-19 20:06:23 +03:00
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:10 +03:00
|
|
|
|
|
|
|
|
|
2025-05-09 07:51:14 +02:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:10 +03:00
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:10 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-10 18:29:28 +03:00
|
|
|
|
2020-09-07 12:56:10 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:30 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-10 18:29:28 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2020-09-07 12:56:10 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2020-09-07 12:56:10 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2020-09-07 12:56:10 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2020-09-07 12:56:10 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2020-09-07 12:56:10 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-14 22:22:57 +03:00
|
|
|
|
|
|
|
|
|
2017-02-09 14:54:40 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-09-26 17:01:03 +03:00
|
|
|
|
2017-02-09 14:54:40 +01:00
|
|
|
|
|
|
|
|
|
2021-04-14 22:22:57 +03:00
|
|
|
|
2017-02-09 14:54:40 +01:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:26 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:23 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:26 +03:00
|
|
|
|
2021-07-19 20:06:23 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
net: bridge: mcast: always update mdb_n_entries for vlan contexts
syzbot triggered a warning[1] about the number of mdb entries in a context.
It turned out that there are multiple ways to trigger that warning today
(some got added during the years), the root cause of the problem is that
the increase is done conditionally, and over the years these different
conditions increased so there were new ways to trigger the warning, that is
to do a decrease which wasn't paired with a previous increase.
For example one way to trigger it is with flush:
$ ip l add br0 up type bridge vlan_filtering 1 mcast_snooping 1
$ ip l add dumdum up master br0 type dummy
$ bridge mdb add dev br0 port dumdum grp 239.0.0.1 permanent vid 1
$ ip link set dev br0 down
$ ip link set dev br0 type bridge mcast_vlan_snooping 1
^^^^ this will enable snooping, but will not update mdb_n_entries
because in __br_multicast_enable_port_ctx() we check !netif_running
$ bridge mdb flush dev br0
^^^ this will trigger the warning because it will delete the pg which
we added above, which will try to decrease mdb_n_entries
Fix the problem by removing the conditional increase and always keep the
count up-to-date while the vlan exists. In order to do that we have to
first initialize it on port-vlan context creation, and then always increase
or decrease the value regardless of mcast options. To keep the current
behaviour we have to enforce the mdb limit only if the context is port's or
if the port-vlan's mcast snooping is enabled.
[1]
------------[ cut here ]------------
n == 0
WARNING: net/bridge/br_multicast.c:718 at br_multicast_port_ngroups_dec_one net/bridge/br_multicast.c:718 [inline], CPU#0: syz.4.4607/22043
WARNING: net/bridge/br_multicast.c:718 at br_multicast_port_ngroups_dec net/bridge/br_multicast.c:771 [inline], CPU#0: syz.4.4607/22043
WARNING: net/bridge/br_multicast.c:718 at br_multicast_del_pg+0x1bbe/0x1e20 net/bridge/br_multicast.c:825, CPU#0: syz.4.4607/22043
Modules linked in:
CPU: 0 UID: 0 PID: 22043 Comm: syz.4.4607 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/24/2026
RIP: 0010:br_multicast_port_ngroups_dec_one net/bridge/br_multicast.c:718 [inline]
RIP: 0010:br_multicast_port_ngroups_dec net/bridge/br_multicast.c:771 [inline]
RIP: 0010:br_multicast_del_pg+0x1bbe/0x1e20 net/bridge/br_multicast.c:825
Code: 41 5f 5d e9 04 7a 48 f7 e8 3f 73 5c f7 90 0f 0b 90 e9 cf fd ff ff e8 31 73 5c f7 90 0f 0b 90 e9 16 fd ff ff e8 23 73 5c f7 90 <0f> 0b 90 e9 60 fd ff ff e8 15 73 5c f7 eb 05 e8 0e 73 5c f7 48 8b
RSP: 0018:ffffc9000c207220 EFLAGS: 00010293
RAX: ffffffff8a68042d RBX: ffff88807c6f1800 RCX: ffff888066e90000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffff888066e90000 R09: 000000000000000c
R10: 000000000000000c R11: 0000000000000000 R12: ffff8880303ef800
R13: dffffc0000000000 R14: ffff888050eb11c4 R15: 1ffff1100a1d6238
FS: 00007fa45921b6c0(0000) GS:ffff8881256f5000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa4591f9ff8 CR3: 0000000081df2000 CR4: 00000000003526f0
Call Trace:
<TASK>
br_mdb_flush_pgs net/bridge/br_mdb.c:1525 [inline]
br_mdb_flush net/bridge/br_mdb.c:1544 [inline]
br_mdb_del_bulk+0x5e2/0xb20 net/bridge/br_mdb.c:1561
rtnl_mdb_del+0x48a/0x640 net/core/rtnetlink.c:-1
rtnetlink_rcv_msg+0x77e/0xbe0 net/core/rtnetlink.c:6967
netlink_rcv_skb+0x232/0x4b0 net/netlink/af_netlink.c:2550
netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
netlink_unicast+0x80f/0x9b0 net/netlink/af_netlink.c:1344
netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1894
sock_sendmsg_nosec net/socket.c:727 [inline]
__sock_sendmsg net/socket.c:742 [inline]
____sys_sendmsg+0xa68/0xad0 net/socket.c:2592
___sys_sendmsg+0x2a5/0x360 net/socket.c:2646
__sys_sendmsg net/socket.c:2678 [inline]
__do_sys_sendmsg net/socket.c:2683 [inline]
__se_sys_sendmsg net/socket.c:2681 [inline]
__x64_sys_sendmsg+0x1bd/0x2a0 net/socket.c:2681
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xe2/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fa45839aeb9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa45921b028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fa458615fa0 RCX: 00007fa45839aeb9
RDX: 0000000000000000 RSI: 00002000000000c0 RDI: 0000000000000004
RBP: 00007fa458408c1f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fa458616038 R14: 00007fa458615fa0 R15: 00007fff0b59fae8
</TASK>
Fixes: b57e8d870d52 ("net: bridge: Maintain number of MDB entries in net_bridge_mcast_port")
Reported-by: syzbot+d5d1b7343531d17bd3c5@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/netdev/aYrWbRp83MQR1ife@debil/T/#t
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Link: https://patch.msgid.link/20260213070031.1400003-2-nikolay@nvidia.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2026-02-13 09:00:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:23 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:26 +03:00
|
|
|
|
2021-07-19 20:06:23 +03:00
|
|
|
|
bridge: mcast: Fix use-after-free during router port configuration
The bridge maintains a global list of ports behind which a multicast
router resides. The list is consulted during forwarding to ensure
multicast packets are forwarded to these ports even if the ports are not
member in the matching MDB entry.
When per-VLAN multicast snooping is enabled, the per-port multicast
context is disabled on each port and the port is removed from the global
router port list:
# ip link add name br1 up type bridge vlan_filtering 1 mcast_snooping 1
# ip link add name dummy1 up master br1 type dummy
# ip link set dev dummy1 type bridge_slave mcast_router 2
$ bridge -d mdb show | grep router
router ports on br1: dummy1
# ip link set dev br1 type bridge mcast_vlan_snooping 1
$ bridge -d mdb show | grep router
However, the port can be re-added to the global list even when per-VLAN
multicast snooping is enabled:
# ip link set dev dummy1 type bridge_slave mcast_router 0
# ip link set dev dummy1 type bridge_slave mcast_router 2
$ bridge -d mdb show | grep router
router ports on br1: dummy1
Since commit 4b30ae9adb04 ("net: bridge: mcast: re-implement
br_multicast_{enable, disable}_port functions"), when per-VLAN multicast
snooping is enabled, multicast disablement on a port will disable the
per-{port, VLAN} multicast contexts and not the per-port one. As a
result, a port will remain in the global router port list even after it
is deleted. This will lead to a use-after-free [1] when the list is
traversed (when adding a new port to the list, for example):
# ip link del dev dummy1
# ip link add name dummy2 up master br1 type dummy
# ip link set dev dummy2 type bridge_slave mcast_router 2
Similarly, stale entries can also be found in the per-VLAN router port
list. When per-VLAN multicast snooping is disabled, the per-{port, VLAN}
contexts are disabled on each port and the port is removed from the
per-VLAN router port list:
# ip link add name br1 up type bridge vlan_filtering 1 mcast_snooping 1 mcast_vlan_snooping 1
# ip link add name dummy1 up master br1 type dummy
# bridge vlan add vid 2 dev dummy1
# bridge vlan global set vid 2 dev br1 mcast_snooping 1
# bridge vlan set vid 2 dev dummy1 mcast_router 2
$ bridge vlan global show dev br1 vid 2 | grep router
router ports: dummy1
# ip link set dev br1 type bridge mcast_vlan_snooping 0
$ bridge vlan global show dev br1 vid 2 | grep router
However, the port can be re-added to the per-VLAN list even when
per-VLAN multicast snooping is disabled:
# bridge vlan set vid 2 dev dummy1 mcast_router 0
# bridge vlan set vid 2 dev dummy1 mcast_router 2
$ bridge vlan global show dev br1 vid 2 | grep router
router ports: dummy1
When the VLAN is deleted from the port, the per-{port, VLAN} multicast
context will not be disabled since multicast snooping is not enabled
on the VLAN. As a result, the port will remain in the per-VLAN router
port list even after it is no longer member in the VLAN. This will lead
to a use-after-free [2] when the list is traversed (when adding a new
port to the list, for example):
# ip link add name dummy2 up master br1 type dummy
# bridge vlan add vid 2 dev dummy2
# bridge vlan del vid 2 dev dummy1
# bridge vlan set vid 2 dev dummy2 mcast_router 2
Fix these issues by removing the port from the relevant (global or
per-VLAN) router port list in br_multicast_port_ctx_deinit(). The
function is invoked during port deletion with the per-port multicast
context and during VLAN deletion with the per-{port, VLAN} multicast
context.
Note that deleting the multicast router timer is not enough as it only
takes care of the temporary multicast router states (1 or 3) and not the
permanent one (2).
[1]
BUG: KASAN: slab-out-of-bounds in br_multicast_add_router.part.0+0x3f1/0x560
Write of size 8 at addr ffff888004a67328 by task ip/384
[...]
Call Trace:
<TASK>
dump_stack_lvl+0x6f/0xa0
print_address_description.constprop.0+0x6f/0x350
print_report+0x108/0x205
kasan_report+0xdf/0x110
br_multicast_add_router.part.0+0x3f1/0x560
br_multicast_set_port_router+0x74e/0xac0
br_setport+0xa55/0x1870
br_port_slave_changelink+0x95/0x120
__rtnl_newlink+0x5e8/0xa40
rtnl_newlink+0x627/0xb00
rtnetlink_rcv_msg+0x6fb/0xb70
netlink_rcv_skb+0x11f/0x350
netlink_unicast+0x426/0x710
netlink_sendmsg+0x75a/0xc20
__sock_sendmsg+0xc1/0x150
____sys_sendmsg+0x5aa/0x7b0
___sys_sendmsg+0xfc/0x180
__sys_sendmsg+0x124/0x1c0
do_syscall_64+0xbb/0x360
entry_SYSCALL_64_after_hwframe+0x4b/0x53
[2]
BUG: KASAN: slab-use-after-free in br_multicast_add_router.part.0+0x378/0x560
Read of size 8 at addr ffff888009f00840 by task bridge/391
[...]
Call Trace:
<TASK>
dump_stack_lvl+0x6f/0xa0
print_address_description.constprop.0+0x6f/0x350
print_report+0x108/0x205
kasan_report+0xdf/0x110
br_multicast_add_router.part.0+0x378/0x560
br_multicast_set_port_router+0x6f9/0xac0
br_vlan_process_options+0x8b6/0x1430
br_vlan_rtm_process_one+0x605/0xa30
br_vlan_rtm_process+0x396/0x4c0
rtnetlink_rcv_msg+0x2f7/0xb70
netlink_rcv_skb+0x11f/0x350
netlink_unicast+0x426/0x710
netlink_sendmsg+0x75a/0xc20
__sock_sendmsg+0xc1/0x150
____sys_sendmsg+0x5aa/0x7b0
___sys_sendmsg+0xfc/0x180
__sys_sendmsg+0x124/0x1c0
do_syscall_64+0xbb/0x360
entry_SYSCALL_64_after_hwframe+0x4b/0x53
Fixes: 2796d846d74a ("net: bridge: vlan: convert mcast router global option to per-vlan entry")
Fixes: 4b30ae9adb04 ("net: bridge: mcast: re-implement br_multicast_{enable, disable}_port functions")
Reported-by: syzbot+7bfa4b72c6a5da128d32@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/all/684c18bd.a00a0220.279073.000b.GAE@google.com/T/
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/20250619182228.1656906-1-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-06-19 21:22:28 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:23 +03:00
|
|
|
|
2025-04-05 10:17:26 +02:00
|
|
|
|
2021-07-19 20:06:23 +03:00
|
|
|
|
2025-04-05 10:17:26 +02:00
|
|
|
|
bridge: mcast: Fix use-after-free during router port configuration
The bridge maintains a global list of ports behind which a multicast
router resides. The list is consulted during forwarding to ensure
multicast packets are forwarded to these ports even if the ports are not
member in the matching MDB entry.
When per-VLAN multicast snooping is enabled, the per-port multicast
context is disabled on each port and the port is removed from the global
router port list:
# ip link add name br1 up type bridge vlan_filtering 1 mcast_snooping 1
# ip link add name dummy1 up master br1 type dummy
# ip link set dev dummy1 type bridge_slave mcast_router 2
$ bridge -d mdb show | grep router
router ports on br1: dummy1
# ip link set dev br1 type bridge mcast_vlan_snooping 1
$ bridge -d mdb show | grep router
However, the port can be re-added to the global list even when per-VLAN
multicast snooping is enabled:
# ip link set dev dummy1 type bridge_slave mcast_router 0
# ip link set dev dummy1 type bridge_slave mcast_router 2
$ bridge -d mdb show | grep router
router ports on br1: dummy1
Since commit 4b30ae9adb04 ("net: bridge: mcast: re-implement
br_multicast_{enable, disable}_port functions"), when per-VLAN multicast
snooping is enabled, multicast disablement on a port will disable the
per-{port, VLAN} multicast contexts and not the per-port one. As a
result, a port will remain in the global router port list even after it
is deleted. This will lead to a use-after-free [1] when the list is
traversed (when adding a new port to the list, for example):
# ip link del dev dummy1
# ip link add name dummy2 up master br1 type dummy
# ip link set dev dummy2 type bridge_slave mcast_router 2
Similarly, stale entries can also be found in the per-VLAN router port
list. When per-VLAN multicast snooping is disabled, the per-{port, VLAN}
contexts are disabled on each port and the port is removed from the
per-VLAN router port list:
# ip link add name br1 up type bridge vlan_filtering 1 mcast_snooping 1 mcast_vlan_snooping 1
# ip link add name dummy1 up master br1 type dummy
# bridge vlan add vid 2 dev dummy1
# bridge vlan global set vid 2 dev br1 mcast_snooping 1
# bridge vlan set vid 2 dev dummy1 mcast_router 2
$ bridge vlan global show dev br1 vid 2 | grep router
router ports: dummy1
# ip link set dev br1 type bridge mcast_vlan_snooping 0
$ bridge vlan global show dev br1 vid 2 | grep router
However, the port can be re-added to the per-VLAN list even when
per-VLAN multicast snooping is disabled:
# bridge vlan set vid 2 dev dummy1 mcast_router 0
# bridge vlan set vid 2 dev dummy1 mcast_router 2
$ bridge vlan global show dev br1 vid 2 | grep router
router ports: dummy1
When the VLAN is deleted from the port, the per-{port, VLAN} multicast
context will not be disabled since multicast snooping is not enabled
on the VLAN. As a result, the port will remain in the per-VLAN router
port list even after it is no longer member in the VLAN. This will lead
to a use-after-free [2] when the list is traversed (when adding a new
port to the list, for example):
# ip link add name dummy2 up master br1 type dummy
# bridge vlan add vid 2 dev dummy2
# bridge vlan del vid 2 dev dummy1
# bridge vlan set vid 2 dev dummy2 mcast_router 2
Fix these issues by removing the port from the relevant (global or
per-VLAN) router port list in br_multicast_port_ctx_deinit(). The
function is invoked during port deletion with the per-port multicast
context and during VLAN deletion with the per-{port, VLAN} multicast
context.
Note that deleting the multicast router timer is not enough as it only
takes care of the temporary multicast router states (1 or 3) and not the
permanent one (2).
[1]
BUG: KASAN: slab-out-of-bounds in br_multicast_add_router.part.0+0x3f1/0x560
Write of size 8 at addr ffff888004a67328 by task ip/384
[...]
Call Trace:
<TASK>
dump_stack_lvl+0x6f/0xa0
print_address_description.constprop.0+0x6f/0x350
print_report+0x108/0x205
kasan_report+0xdf/0x110
br_multicast_add_router.part.0+0x3f1/0x560
br_multicast_set_port_router+0x74e/0xac0
br_setport+0xa55/0x1870
br_port_slave_changelink+0x95/0x120
__rtnl_newlink+0x5e8/0xa40
rtnl_newlink+0x627/0xb00
rtnetlink_rcv_msg+0x6fb/0xb70
netlink_rcv_skb+0x11f/0x350
netlink_unicast+0x426/0x710
netlink_sendmsg+0x75a/0xc20
__sock_sendmsg+0xc1/0x150
____sys_sendmsg+0x5aa/0x7b0
___sys_sendmsg+0xfc/0x180
__sys_sendmsg+0x124/0x1c0
do_syscall_64+0xbb/0x360
entry_SYSCALL_64_after_hwframe+0x4b/0x53
[2]
BUG: KASAN: slab-use-after-free in br_multicast_add_router.part.0+0x378/0x560
Read of size 8 at addr ffff888009f00840 by task bridge/391
[...]
Call Trace:
<TASK>
dump_stack_lvl+0x6f/0xa0
print_address_description.constprop.0+0x6f/0x350
print_report+0x108/0x205
kasan_report+0xdf/0x110
br_multicast_add_router.part.0+0x378/0x560
br_multicast_set_port_router+0x6f9/0xac0
br_vlan_process_options+0x8b6/0x1430
br_vlan_rtm_process_one+0x605/0xa30
br_vlan_rtm_process+0x396/0x4c0
rtnetlink_rcv_msg+0x2f7/0xb70
netlink_rcv_skb+0x11f/0x350
netlink_unicast+0x426/0x710
netlink_sendmsg+0x75a/0xc20
__sock_sendmsg+0xc1/0x150
____sys_sendmsg+0x5aa/0x7b0
___sys_sendmsg+0xfc/0x180
__sys_sendmsg+0x124/0x1c0
do_syscall_64+0xbb/0x360
entry_SYSCALL_64_after_hwframe+0x4b/0x53
Fixes: 2796d846d74a ("net: bridge: vlan: convert mcast router global option to per-vlan entry")
Fixes: 4b30ae9adb04 ("net: bridge: mcast: re-implement br_multicast_{enable, disable}_port functions")
Reported-by: syzbot+7bfa4b72c6a5da128d32@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/all/684c18bd.a00a0220.279073.000b.GAE@google.com/T/
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/20250619182228.1656906-1-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-06-19 21:22:28 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:23 +03:00
|
|
|
|
|
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-04-14 22:22:57 +03:00
|
|
|
|
|
|
|
|
|
2021-01-26 11:35:32 +02:00
|
|
|
|
2021-07-19 20:06:26 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-04-14 22:22:57 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-21 21:44:20 +03:00
|
|
|
|
2021-04-14 22:22:57 +03:00
|
|
|
|
2017-02-09 14:54:40 +01:00
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-07-15 07:16:51 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:06 +03:00
|
|
|
|
2015-07-15 07:16:51 -07:00
|
|
|
|
2024-08-02 11:07:30 +03:00
|
|
|
|
2021-07-19 20:06:23 +03:00
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2014-06-07 18:26:26 +02:00
|
|
|
|
2010-02-27 19:41:50 +00:00
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2010-02-27 19:41:50 +00:00
|
|
|
|
2025-05-07 19:53:36 +02:00
|
|
|
|
2025-04-05 10:17:26 +02:00
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2010-02-27 19:41:50 +00:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-07-19 20:06:27 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-07-19 20:06:27 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-10-18 18:09:48 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
2016-10-18 18:09:48 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2025-04-17 15:43:12 +02:00
|
|
|
|
2016-10-18 18:09:48 +02:00
|
|
|
|
2025-04-17 15:43:12 +02:00
|
|
|
|
2016-10-18 18:09:48 +02:00
|
|
|
|
2021-07-19 20:06:28 +03:00
|
|
|
|
2025-04-17 15:43:12 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:28 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:27 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
hlist: drop the node parameter from iterators
I'm not sure why, but the hlist for each entry iterators were conceived
list_for_each_entry(pos, head, member)
The hlist ones were greedy and wanted an extra parameter:
hlist_for_each_entry(tpos, pos, head, member)
Why did they need an extra pos parameter? I'm not quite sure. Not only
they don't really need it, it also prevents the iterator from looking
exactly like the list iterator, which is unfortunate.
Besides the semantic patch, there was some manual work required:
- Fix up the actual hlist iterators in linux/list.h
- Fix up the declaration of other iterators based on the hlist ones.
- A very small amount of places were using the 'node' parameter, this
was modified to use 'obj->member' instead.
- Coccinelle didn't handle the hlist_for_each_entry_safe iterator
properly, so those had to be fixed up manually.
The semantic patch which is mostly the work of Peter Senna Tschudin is here:
@@
iterator name hlist_for_each_entry, hlist_for_each_entry_continue, hlist_for_each_entry_from, hlist_for_each_entry_rcu, hlist_for_each_entry_rcu_bh, hlist_for_each_entry_continue_rcu_bh, for_each_busy_worker, ax25_uid_for_each, ax25_for_each, inet_bind_bucket_for_each, sctp_for_each_hentry, sk_for_each, sk_for_each_rcu, sk_for_each_from, sk_for_each_safe, sk_for_each_bound, hlist_for_each_entry_safe, hlist_for_each_entry_continue_rcu, nr_neigh_for_each, nr_neigh_for_each_safe, nr_node_for_each, nr_node_for_each_safe, for_each_gfn_indirect_valid_sp, for_each_gfn_sp, for_each_host;
type T;
expression a,c,d,e;
identifier b;
statement S;
@@
-T b;
<+... when != b
(
hlist_for_each_entry(a,
- b,
c, d) S
|
hlist_for_each_entry_continue(a,
- b,
c) S
|
hlist_for_each_entry_from(a,
- b,
c) S
|
hlist_for_each_entry_rcu(a,
- b,
c, d) S
|
hlist_for_each_entry_rcu_bh(a,
- b,
c, d) S
|
hlist_for_each_entry_continue_rcu_bh(a,
- b,
c) S
|
for_each_busy_worker(a, c,
- b,
d) S
|
ax25_uid_for_each(a,
- b,
c) S
|
ax25_for_each(a,
- b,
c) S
|
inet_bind_bucket_for_each(a,
- b,
c) S
|
sctp_for_each_hentry(a,
- b,
c) S
|
sk_for_each(a,
- b,
c) S
|
sk_for_each_rcu(a,
- b,
c) S
|
sk_for_each_from
-(a, b)
+(a)
S
+ sk_for_each_from(a) S
|
sk_for_each_safe(a,
- b,
c, d) S
|
sk_for_each_bound(a,
- b,
c) S
|
hlist_for_each_entry_safe(a,
- b,
c, d, e) S
|
hlist_for_each_entry_continue_rcu(a,
- b,
c) S
|
nr_neigh_for_each(a,
- b,
c) S
|
nr_neigh_for_each_safe(a,
- b,
c, d) S
|
nr_node_for_each(a,
- b,
c) S
|
nr_node_for_each_safe(a,
- b,
c, d) S
|
- for_each_gfn_sp(a, c, d, b) S
+ for_each_gfn_sp(a, c, d) S
|
- for_each_gfn_indirect_valid_sp(a, c, d, b) S
+ for_each_gfn_indirect_valid_sp(a, c, d) S
|
for_each_host(a,
- b,
c) S
|
for_each_host_safe(a,
- b,
c, d) S
|
for_each_mesh_entry(a,
- b,
c, d) S
)
...+>
[akpm@linux-foundation.org: drop bogus change from net/ipv4/raw.c]
[akpm@linux-foundation.org: drop bogus hunk from net/ipv6/raw.c]
[akpm@linux-foundation.org: checkpatch fixes]
[akpm@linux-foundation.org: fix warnings]
[akpm@linux-foudnation.org: redo intrusive kvm changes]
Tested-by: Peter Senna Tschudin <peter.senna@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-02-27 17:06:00 -08:00
|
|
|
|
2021-05-13 15:20:50 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-07-19 20:06:27 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2025-04-05 10:17:26 +02:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2025-04-05 10:17:26 +02:00
|
|
|
|
|
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-07-19 20:06:27 +03:00
|
|
|
|
|
|
|
|
|
2025-04-17 15:43:12 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:27 +03:00
|
|
|
|
|
|
|
|
|
2025-04-17 15:43:12 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:15 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-20 16:52:03 +02:00
|
|
|
|
2020-09-07 12:56:15 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-10 18:29:28 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-10 18:29:28 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
2021-08-10 18:29:28 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:58 +02:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
2021-01-20 16:51:53 +02:00
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:58 +02:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:15 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:59 +02:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:15 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2020-09-07 12:56:15 +03:00
|
|
|
|
2021-01-20 16:51:53 +02:00
|
|
|
|
2020-09-07 12:56:15 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:15 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:59 +02:00
|
|
|
|
2020-09-07 12:56:15 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:59 +02:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:15 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2020-09-07 12:56:15 +03:00
|
|
|
|
2021-01-20 16:51:53 +02:00
|
|
|
|
2020-09-07 12:56:15 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:15 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:59 +02:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:15 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:59 +02:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:15 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-01-20 16:51:59 +02:00
|
|
|
|
net: bridge: mcast: handle port group filter modes
We need to handle group filter mode transitions and initial state.
To change a port group's INCLUDE -> EXCLUDE mode (or when we have added
a new port group in EXCLUDE mode) we need to add that port to all of
*,G ports' S,G entries for proper replication. When the EXCLUDE state is
changed from IGMPv3 report, br_multicast_fwd_filter_exclude() must be
called after the source list processing because the assumption is that
all of the group's S,G entries will be created before transitioning to
EXCLUDE mode, i.e. most importantly its blocked entries will already be
added so it will not get automatically added to them.
The transition EXCLUDE -> INCLUDE happens only when a port group timer
expires, it requires us to remove that port from all of *,G ports' S,G
entries where it was automatically added previously.
Finally when we are adding a new S,G entry we must add all of *,G's
EXCLUDE ports to it.
In order to distinguish automatically added *,G EXCLUDE ports we have a
new port group flag - MDB_PG_FLAGS_STAR_EXCL.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-22 10:30:24 +03:00
|
|
|
|
2020-09-07 12:56:15 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:15 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:15 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:59 +02:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
2021-01-20 16:51:53 +02:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:59 +02:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:59 +02:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
2021-01-20 16:51:53 +02:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:59 +02:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:59 +02:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:59 +02:00
|
|
|
|
2021-01-20 16:52:03 +02:00
|
|
|
|
2021-01-20 16:51:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:59 +02:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
2021-01-20 16:51:53 +02:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:59 +02:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:59 +02:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
2021-01-20 16:51:53 +02:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:59 +02:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:59 +02:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
net: bridge: mcast: handle port group filter modes
We need to handle group filter mode transitions and initial state.
To change a port group's INCLUDE -> EXCLUDE mode (or when we have added
a new port group in EXCLUDE mode) we need to add that port to all of
*,G ports' S,G entries for proper replication. When the EXCLUDE state is
changed from IGMPv3 report, br_multicast_fwd_filter_exclude() must be
called after the source list processing because the assumption is that
all of the group's S,G entries will be created before transitioning to
EXCLUDE mode, i.e. most importantly its blocked entries will already be
added so it will not get automatically added to them.
The transition EXCLUDE -> INCLUDE happens only when a port group timer
expires, it requires us to remove that port from all of *,G ports' S,G
entries where it was automatically added previously.
Finally when we are adding a new S,G entry we must add all of *,G's
EXCLUDE ports to it.
In order to distinguish automatically added *,G EXCLUDE ports we have a
new port group flag - MDB_PG_FLAGS_STAR_EXCL.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-22 10:30:24 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:17 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:58 +02:00
|
|
|
|
2020-09-07 12:56:17 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:52 +02:00
|
|
|
|
2020-09-07 12:56:17 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2020-09-07 12:56:17 +03:00
|
|
|
|
2021-01-20 16:51:53 +02:00
|
|
|
|
2020-09-07 12:56:17 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:58 +02:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:17 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:17 +03:00
|
|
|
|
2021-01-20 16:51:52 +02:00
|
|
|
|
2020-09-07 12:56:17 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:58 +02:00
|
|
|
|
2020-09-07 12:56:17 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2020-09-07 12:56:17 +03:00
|
|
|
|
2021-01-20 16:51:53 +02:00
|
|
|
|
2020-09-07 12:56:17 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:23 +03:00
|
|
|
|
2020-09-07 12:56:17 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:58 +02:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:17 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:17 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:58 +02:00
|
|
|
|
2020-09-07 12:56:17 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:17 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:17 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-20 16:52:02 +02:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:52:03 +02:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:52:02 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:17 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-08 10:17:13 +03:00
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2013-10-28 15:45:07 -04:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
|
|
|
|
|
2017-01-21 21:01:32 +01:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
2021-01-20 16:51:51 +02:00
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
|
|
|
|
|
2019-07-02 15:00:18 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-09-11 18:39:48 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-01-21 07:26:25 +01:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2010-04-07 21:20:47 -07:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2019-07-02 15:00:18 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2019-07-02 15:00:18 +03:00
|
|
|
|
2019-01-21 07:26:25 +01:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-01-21 21:01:32 +01:00
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
|
|
|
|
|
2015-07-13 05:28:37 -07:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2015-07-13 05:28:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
|
|
|
|
|
2022-10-18 09:40:00 +03:00
|
|
|
|
2021-07-19 20:06:31 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:51 +02:00
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
2021-01-20 16:51:51 +02:00
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:58 +02:00
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
2020-09-07 12:56:15 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:58 +02:00
|
|
|
|
2020-09-07 12:56:15 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:59 +02:00
|
|
|
|
2020-09-07 12:56:15 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:59 +02:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:59 +02:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
2020-09-07 12:56:17 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:58 +02:00
|
|
|
|
2020-09-07 12:56:17 +03:00
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
2022-10-18 09:40:00 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-10 09:48:31 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2013-10-28 15:45:07 -04:00
|
|
|
|
|
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
|
|
|
|
|
2019-01-21 07:26:25 +01:00
|
|
|
|
2021-08-29 04:32:29 +00:00
|
|
|
|
2017-01-21 21:01:32 +01:00
|
|
|
|
2021-01-20 16:51:51 +02:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
2019-01-21 07:26:25 +01:00
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
|
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2021-08-29 04:32:29 +00:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2021-08-29 04:32:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2019-07-02 15:00:18 +03:00
|
|
|
|
|
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
2019-01-21 07:26:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-05 21:10:17 +02:00
|
|
|
|
2019-01-21 07:26:25 +01:00
|
|
|
|
|
|
|
|
|
2019-07-02 15:00:18 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2019-07-02 15:00:18 +03:00
|
|
|
|
|
|
|
|
|
2019-01-21 07:26:25 +01:00
|
|
|
|
|
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-01-21 07:26:25 +01:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-01-21 21:01:32 +01:00
|
|
|
|
2015-07-13 05:28:37 -07:00
|
|
|
|
|
|
|
|
|
2019-07-02 15:00:18 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-07-13 05:28:37 -07:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2017-01-21 21:01:32 +01:00
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
2016-08-31 14:16:44 +02:00
|
|
|
|
2015-07-13 05:28:37 -07:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
|
|
|
|
|
2022-10-18 09:40:00 +03:00
|
|
|
|
2021-07-19 20:06:31 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
|
|
|
|
|
2021-01-20 16:51:51 +02:00
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-01-20 16:51:51 +02:00
|
|
|
|
2021-01-20 16:51:58 +02:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
2020-09-07 12:56:15 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-01-20 16:51:51 +02:00
|
|
|
|
2021-01-20 16:51:58 +02:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:15 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-01-20 16:51:51 +02:00
|
|
|
|
2021-01-20 16:51:59 +02:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:15 +03:00
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-01-20 16:51:51 +02:00
|
|
|
|
2021-01-20 16:51:59 +02:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-01-20 16:51:51 +02:00
|
|
|
|
2021-01-20 16:51:59 +02:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:16 +03:00
|
|
|
|
2020-09-07 12:56:17 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-01-20 16:51:51 +02:00
|
|
|
|
2021-01-20 16:51:58 +02:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:17 +03:00
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:14 +03:00
|
|
|
|
2022-10-18 09:40:00 +03:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-13 17:59:59 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-06-07 18:26:27 +02:00
|
|
|
|
2021-08-13 17:59:58 +03:00
|
|
|
|
2021-08-13 17:59:59 +03:00
|
|
|
|
|
|
|
|
|
2021-07-21 13:06:24 +03:00
|
|
|
|
2021-08-13 17:59:59 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-06-07 18:26:27 +02:00
|
|
|
|
2021-08-13 17:59:59 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-21 13:06:24 +03:00
|
|
|
|
2021-08-13 17:59:59 +03:00
|
|
|
|
2014-06-07 18:26:27 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-13 17:59:59 +03:00
|
|
|
|
2014-06-07 18:26:29 +02:00
|
|
|
|
2014-06-07 18:26:27 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-13 18:00:00 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-16 13:11:33 +03:00
|
|
|
|
2021-08-13 18:00:00 +03:00
|
|
|
|
|
|
|
|
|
2021-08-16 13:11:34 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-13 18:00:00 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-16 13:11:32 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-13 18:00:00 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-13 18:00:01 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-13 18:00:00 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-13 18:00:01 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-13 18:00:00 +03:00
|
|
|
|
|
|
|
|
|
2021-08-13 18:00:01 +03:00
|
|
|
|
|
|
|
|
|
2021-08-13 18:00:00 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2014-06-07 18:26:26 +02:00
|
|
|
|
|
|
|
|
|
2013-08-01 01:06:20 +02:00
|
|
|
|
2014-06-07 18:26:26 +02:00
|
|
|
|
2024-01-27 18:50:32 +01:00
|
|
|
|
2013-08-01 01:06:20 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2013-08-01 01:06:20 +02:00
|
|
|
|
|
|
|
|
|
2017-02-09 14:54:42 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-13 22:43:17 +02:00
|
|
|
|
2017-02-09 14:54:42 +01:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:49 +02:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2021-05-13 15:20:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:23 +03:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2021-07-19 20:06:23 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
2021-07-19 20:06:23 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2021-05-13 15:20:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2021-05-13 15:20:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:49 +02:00
|
|
|
|
2010-04-27 15:01:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-05-13 15:20:49 +02:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:49 +00:00
|
|
|
|
2021-05-13 15:20:49 +02:00
|
|
|
|
2010-02-27 19:41:49 +00:00
|
|
|
|
2021-05-13 15:20:49 +02:00
|
|
|
|
2015-06-09 10:23:57 -07:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-02-27 19:41:49 +00:00
|
|
|
|
2010-04-27 15:01:04 +00:00
|
|
|
|
2021-05-13 15:20:49 +02:00
|
|
|
|
2010-04-27 07:13:11 +00:00
|
|
|
|
2021-05-13 15:20:49 +02:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-07-19 20:06:33 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
2010-02-27 19:41:49 +00:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:49 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:49 +02:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:31 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2017-10-09 11:15:31 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2021-05-13 15:20:49 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:49 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-05-13 15:20:49 +02:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:49 +02:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:46 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-08-13 17:59:59 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:46 +02:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-13 17:59:59 +03:00
|
|
|
|
2021-05-13 15:20:46 +02:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2018-08-06 11:07:23 +08:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2019-01-21 07:26:25 +01:00
|
|
|
|
2011-04-22 04:53:02 +00:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-11-15 06:38:10 +00:00
|
|
|
|
2021-08-13 17:59:58 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-07-19 20:06:31 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-01-21 07:26:25 +01:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-01-21 07:26:25 +01:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2020-09-07 12:56:18 +03:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
|
|
|
|
|
2010-03-13 12:27:21 -08:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2010-03-15 19:27:00 +00:00
|
|
|
|
2026-05-02 13:19:02 +00:00
|
|
|
|
2015-05-02 14:01:07 +02:00
|
|
|
|
2014-03-10 22:25:24 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-06-07 18:26:27 +02:00
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:16 +03:00
|
|
|
|
2013-08-01 01:06:20 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2021-05-13 15:20:46 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2014-06-07 18:26:27 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2017-11-09 23:10:57 +01:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2025-05-07 19:53:36 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2010-11-15 06:38:10 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-11-15 06:38:10 +00:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2025-05-07 19:53:36 +02:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2020-09-07 12:56:18 +03:00
|
|
|
|
2011-02-11 12:42:07 +00:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2011-12-10 09:48:31 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2013-10-28 15:45:07 -04:00
|
|
|
|
|
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
2019-01-21 07:26:25 +01:00
|
|
|
|
2012-12-13 06:51:28 +00:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2010-11-15 06:38:10 +00:00
|
|
|
|
|
|
|
|
|
2021-08-13 17:59:58 +03:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2016-05-04 17:25:02 +02:00
|
|
|
|
2011-04-22 04:53:02 +00:00
|
|
|
|
2014-03-10 22:25:24 +01:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-07-19 20:06:31 +03:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2019-01-21 07:26:25 +01:00
|
|
|
|
2016-05-04 17:25:02 +02:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-09 23:56:12 +00:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2013-08-06 00:32:05 +02:00
|
|
|
|
2016-05-04 17:25:02 +02:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2020-09-07 12:56:18 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-09-04 00:19:39 +02:00
|
|
|
|
2026-05-02 13:19:03 +00:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2014-03-10 22:25:24 +01:00
|
|
|
|
|
|
|
|
|
2014-06-07 18:26:27 +02:00
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:16 +03:00
|
|
|
|
2013-08-01 01:06:20 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2021-05-13 15:20:46 +02:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
2014-06-12 01:41:23 +02:00
|
|
|
|
|
|
|
|
|
2014-06-07 18:26:27 +02:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2017-11-09 23:10:57 +01:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2025-05-07 19:53:36 +02:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2010-11-15 06:38:10 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-11-15 06:38:10 +00:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2025-05-07 19:53:36 +02:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2020-09-07 12:56:18 +03:00
|
|
|
|
2011-02-11 12:42:07 +00:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-06-07 18:26:26 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2014-06-07 18:26:26 +02:00
|
|
|
|
|
|
|
|
|
2017-01-21 21:01:32 +01:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-07-19 20:06:31 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2015-07-28 03:28:27 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2015-07-28 03:28:27 -07:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2015-07-28 03:28:27 -07:00
|
|
|
|
|
|
|
|
|
2019-07-30 14:21:00 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:06 +03:00
|
|
|
|
|
|
|
|
|
2015-07-28 03:28:27 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-10 18:29:28 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2020-09-07 12:56:10 +03:00
|
|
|
|
2013-05-21 21:52:56 +00:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
|
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2014-06-07 18:26:26 +02:00
|
|
|
|
2013-05-21 21:52:56 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-07-21 13:06:24 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2013-05-21 21:52:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-05-07 19:53:36 +02:00
|
|
|
|
2013-05-21 21:52:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2017-11-09 23:10:57 +01:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2025-05-07 19:53:36 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2013-10-20 00:58:57 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2013-10-20 00:58:57 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2013-10-20 00:58:57 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-05-07 19:53:36 +02:00
|
|
|
|
2013-10-20 00:58:57 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2013-02-13 12:00:17 +00:00
|
|
|
|
2017-01-21 21:01:32 +01:00
|
|
|
|
|
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
|
|
|
|
|
2014-06-07 18:26:26 +02:00
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2014-06-07 18:26:26 +02:00
|
|
|
|
2019-04-03 23:27:24 +03:00
|
|
|
|
2020-09-22 10:30:17 +03:00
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
2013-02-13 12:00:17 +00:00
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2017-01-21 21:01:32 +01:00
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
|
|
|
|
|
2011-12-10 09:48:31 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2013-02-13 12:00:17 +00:00
|
|
|
|
2017-01-21 21:01:32 +01:00
|
|
|
|
|
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2014-06-07 18:26:26 +02:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
2013-09-04 02:13:39 +02:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2014-06-07 18:26:26 +02:00
|
|
|
|
2019-04-03 23:27:24 +03:00
|
|
|
|
2020-09-22 10:30:17 +03:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
2013-02-13 12:00:17 +00:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2017-01-21 21:01:32 +01:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2010-04-18 12:42:07 +09:00
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-09-26 17:01:04 +03:00
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2016-10-31 13:21:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-10-31 13:21:05 +01:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2019-01-21 07:26:28 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-01-21 07:26:28 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2013-10-28 15:45:07 -04:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2017-01-21 21:01:32 +01:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-01-21 07:26:25 +01:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2015-05-02 14:01:07 +02:00
|
|
|
|
2016-10-31 13:21:05 +01:00
|
|
|
|
2011-06-23 02:39:12 +00:00
|
|
|
|
2016-10-31 13:21:05 +01:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2019-01-21 07:26:28 +01:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2016-10-31 13:21:05 +01:00
|
|
|
|
2019-01-21 07:26:28 +01:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2015-05-02 14:01:07 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2015-05-02 14:01:07 +02:00
|
|
|
|
2011-06-23 02:39:12 +00:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2015-05-02 14:01:07 +02:00
|
|
|
|
2017-01-21 21:01:32 +01:00
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-13 15:04:43 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-10 09:48:31 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-04-25 17:27:35 +02:00
|
|
|
|
2019-01-21 07:26:28 +01:00
|
|
|
|
|
|
|
|
|
2021-04-25 17:27:35 +02:00
|
|
|
|
2019-01-21 07:26:28 +01:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-01-21 07:26:28 +01:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2013-10-28 15:45:07 -04:00
|
|
|
|
|
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2017-01-21 21:01:32 +01:00
|
|
|
|
2015-05-02 14:01:07 +02:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2019-01-21 07:26:25 +01:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
2021-04-25 17:27:35 +02:00
|
|
|
|
2015-05-02 14:01:07 +02:00
|
|
|
|
|
|
|
|
|
2021-04-25 17:27:35 +02:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2019-01-21 07:26:28 +01:00
|
|
|
|
2013-09-04 02:13:38 +02:00
|
|
|
|
2015-05-02 14:01:07 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2015-05-02 14:01:07 +02:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2015-05-02 14:01:07 +02:00
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
2015-05-02 14:01:07 +02:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
2017-01-21 21:01:32 +01:00
|
|
|
|
2011-06-13 15:06:58 +00:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2017-01-21 21:01:32 +01:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2015-05-02 14:01:07 +02:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
|
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:28 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-28 15:45:07 -04:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
|
|
|
|
|
2010-04-25 08:06:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:28 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:28 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:28 +03:00
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
2011-12-10 09:48:31 +00:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
2021-07-19 20:06:28 +03:00
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
2010-04-23 01:54:22 +09:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2025-08-14 12:23:55 +08:00
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-07-19 20:06:31 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-07-19 20:06:31 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
|
|
|
|
|
2017-11-03 11:51:10 +05:30
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2025-05-09 07:51:14 +02:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2025-08-14 12:23:55 +08:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2017-11-03 11:51:10 +05:30
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2025-05-09 07:51:14 +02:00
|
|
|
|
|
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2025-08-14 12:23:55 +08:00
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:19 +03:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:19 +03:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:19 +03:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:19 +03:00
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:26 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-13 17:59:57 +03:00
|
|
|
|
2021-09-28 16:10:49 +02:00
|
|
|
|
2021-07-19 20:06:26 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-13 17:59:57 +03:00
|
|
|
|
2021-09-28 16:10:49 +02:00
|
|
|
|
2021-07-19 20:06:26 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-27 18:50:32 +01:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:26 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-27 18:50:32 +01:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:26 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2018-12-05 15:14:27 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-07-19 20:06:26 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2018-10-01 11:57:01 +03:00
|
|
|
|
2018-09-26 17:01:04 +03:00
|
|
|
|
2013-08-01 01:06:20 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2018-12-05 15:14:24 +02:00
|
|
|
|
2020-09-07 12:56:19 +03:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2019-01-21 07:26:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-01 20:20:52 -08:00
|
|
|
|
2019-01-21 07:26:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-04 18:56:28 -05:00
|
|
|
|
2019-01-21 07:26:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-01 20:20:52 -08:00
|
|
|
|
2019-01-21 07:26:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-04 18:56:28 -05:00
|
|
|
|
2019-01-21 07:26:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:27 +03:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2018-09-26 17:01:03 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:27 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:27 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:28 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:27 +03:00
|
|
|
|
2021-07-19 20:06:28 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:27 +03:00
|
|
|
|
2021-08-10 18:29:29 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:27 +03:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:26 +03:00
|
|
|
|
|
|
|
|
|
2025-04-05 10:17:26 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:26 +03:00
|
|
|
|
2025-04-05 10:17:26 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:26 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-04-17 15:43:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:27 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-16 17:57:07 +03:00
|
|
|
|
2021-07-19 20:06:28 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-16 17:57:07 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:28 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2021-07-19 20:06:27 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:28 +03:00
|
|
|
|
2021-07-19 20:06:27 +03:00
|
|
|
|
2021-07-19 20:06:28 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:27 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:28 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:27 +03:00
|
|
|
|
2021-07-19 20:06:28 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-04-17 15:43:12 +02:00
|
|
|
|
2021-07-19 20:06:28 +03:00
|
|
|
|
2025-04-17 15:43:12 +02:00
|
|
|
|
2021-07-19 20:06:28 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:37 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:28 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:27 +03:00
|
|
|
|
2021-08-10 18:29:29 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:27 +03:00
|
|
|
|
2015-07-15 07:16:51 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
2018-12-05 15:14:24 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:19 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2018-12-05 15:14:24 +02:00
|
|
|
|
2021-07-19 20:06:26 +03:00
|
|
|
|
2020-09-07 12:56:19 +03:00
|
|
|
|
|
|
|
|
|
2020-09-07 12:56:07 +03:00
|
|
|
|
2018-12-05 15:14:25 +02:00
|
|
|
|
2010-02-27 19:41:45 +00:00
|
|
|
|
2010-02-27 19:41:49 +00:00
|
|
|
|
2021-08-10 18:29:31 +03:00
|
|
|
|
2010-02-27 19:41:49 +00:00
|
|
|
|
2015-05-23 03:12:34 +02:00
|
|
|
|
2010-02-27 19:41:49 +00:00
|
|
|
|
2021-08-10 18:29:31 +03:00
|
|
|
|
2010-02-27 19:41:49 +00:00
|
|
|
|
|
|
|
|
|
2016-02-26 21:20:01 +01:00
|
|
|
|
|
|
|
|
|
2021-08-10 18:29:31 +03:00
|
|
|
|
2025-04-05 10:17:26 +02:00
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
2025-04-05 10:17:26 +02:00
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2017-10-09 11:15:31 +02:00
|
|
|
|
|
|
|
|
|
2016-02-26 21:20:01 +01:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2021-08-10 18:29:31 +03:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2010-02-27 19:41:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-10 18:29:31 +03:00
|
|
|
|
2010-02-27 19:41:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-13 15:20:50 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2016-02-26 21:20:01 +01:00
|
|
|
|
2021-05-13 15:20:50 +02:00
|
|
|
|
2016-02-26 21:20:01 +01:00
|
|
|
|
2021-05-13 15:20:50 +02:00
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:33 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2017-02-09 14:54:41 +01:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2016-02-26 21:20:01 +01:00
|
|
|
|
|
|
|
|
|
2021-08-20 15:42:54 +03:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:49 +00:00
|
|
|
|
2021-08-20 15:42:54 +03:00
|
|
|
|
2016-02-26 21:20:03 +01:00
|
|
|
|
2015-05-23 03:12:34 +02:00
|
|
|
|
2021-05-13 15:20:50 +02:00
|
|
|
|
2010-02-27 19:41:49 +00:00
|
|
|
|
2021-08-20 15:42:54 +03:00
|
|
|
|
2021-09-03 12:34:15 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2016-02-26 21:20:03 +01:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
|
|
|
|
|
2016-02-26 21:20:02 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:49 +00:00
|
|
|
|
2016-02-26 21:20:01 +01:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2025-04-05 10:17:26 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
2025-04-05 10:17:26 +02:00
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2016-02-26 21:20:01 +01:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-02-26 21:20:01 +01:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2025-04-05 10:17:26 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
2025-04-05 10:17:26 +02:00
|
|
|
|
2021-05-13 15:20:51 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-02-27 19:41:49 +00:00
|
|
|
|
2016-02-26 21:20:03 +01:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-02-26 21:20:03 +01:00
|
|
|
|
2016-02-26 21:20:01 +01:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:49 +00:00
|
|
|
|
2016-02-26 21:20:01 +01:00
|
|
|
|
|
|
|
|
|
2021-09-03 12:34:15 +03:00
|
|
|
|
2010-02-27 19:41:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:50 +00:00
|
|
|
|
2021-08-20 15:42:55 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2014-06-07 18:26:26 +02:00
|
|
|
|
2010-02-27 19:41:50 +00:00
|
|
|
|
|
|
|
|
|
2012-04-13 02:37:42 +00:00
|
|
|
|
2021-08-10 18:29:29 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:27 +03:00
|
|
|
|
2012-04-13 02:37:42 +00:00
|
|
|
|
2019-04-11 15:08:25 +03:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-07-19 20:06:32 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-04-13 02:37:42 +00:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:32 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-16 17:57:06 +03:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:32 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2021-07-19 20:06:32 +03:00
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:32 +03:00
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2012-04-13 02:37:42 +00:00
|
|
|
|
2019-04-11 15:08:25 +03:00
|
|
|
|
2012-04-13 02:37:42 +00:00
|
|
|
|
|
|
|
|
|
net: bridge: Flush multicast groups when snooping is disabled
When forwarding multicast packets, the bridge takes MDB into account when
IGMP / MLD snooping is enabled. Currently, when snooping is disabled, the
MDB is retained, even though it is not used anymore.
At the same time, during the time that snooping is disabled, the IGMP / MLD
control packets are obviously ignored, and after the snooping is reenabled,
the administrator has to assume it is out of sync. In particular, missed
join and leave messages would lead to traffic being forwarded to wrong
interfaces.
Keeping the MDB entries around thus serves no purpose, and just takes
memory. Note also that disabling per-VLAN snooping does actually flush the
relevant MDB entries.
This patch flushes non-permanent MDB entries as global snooping is
disabled.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://patch.msgid.link/5e992df1bb93b88e19c0ea5819e23b669e3dde5d.1761228273.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-10-23 16:45:37 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-14 22:22:57 +03:00
|
|
|
|
|
|
|
|
|
2012-04-13 02:37:42 +00:00
|
|
|
|
2016-10-18 18:09:48 +02:00
|
|
|
|
2020-12-04 18:56:28 -05:00
|
|
|
|
2021-04-14 22:22:57 +03:00
|
|
|
|
2010-02-27 19:41:50 +00:00
|
|
|
|
2011-11-10 05:48:03 +00:00
|
|
|
|
2018-09-26 17:01:03 +03:00
|
|
|
|
2010-02-27 19:41:50 +00:00
|
|
|
|
|
|
|
|
|
2021-04-14 22:22:57 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-09-26 17:01:03 +03:00
|
|
|
|
2019-01-21 07:26:27 +01:00
|
|
|
|
2020-12-04 18:56:28 -05:00
|
|
|
|
net: bridge: Flush multicast groups when snooping is disabled
When forwarding multicast packets, the bridge takes MDB into account when
IGMP / MLD snooping is enabled. Currently, when snooping is disabled, the
MDB is retained, even though it is not used anymore.
At the same time, during the time that snooping is disabled, the IGMP / MLD
control packets are obviously ignored, and after the snooping is reenabled,
the administrator has to assume it is out of sync. In particular, missed
join and leave messages would lead to traffic being forwarded to wrong
interfaces.
Keeping the MDB entries around thus serves no purpose, and just takes
memory. Note also that disabling per-VLAN snooping does actually flush the
relevant MDB entries.
This patch flushes non-permanent MDB entries as global snooping is
disabled.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://patch.msgid.link/5e992df1bb93b88e19c0ea5819e23b669e3dde5d.1761228273.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-10-23 16:45:37 +02:00
|
|
|
|
2010-02-27 19:41:50 +00:00
|
|
|
|
2019-01-21 07:26:27 +01:00
|
|
|
|
2010-02-27 19:41:50 +00:00
|
|
|
|
2010-07-29 00:45:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-10-18 18:09:48 +02:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2010-02-27 19:41:50 +00:00
|
|
|
|
2020-12-04 18:56:28 -05:00
|
|
|
|
|
|
|
|
|
2010-02-27 19:41:50 +00:00
|
|
|
|
2011-11-10 05:48:03 +00:00
|
|
|
|
2010-02-27 19:41:50 +00:00
|
|
|
|
2020-12-04 18:56:28 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-14 22:22:57 +03:00
|
|
|
|
2010-02-27 19:41:50 +00:00
|
|
|
|
2010-02-27 19:41:51 +00:00
|
|
|
|
2017-05-26 08:37:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-09-26 17:01:03 +03:00
|
|
|
|
2017-05-26 08:37:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-10-09 11:15:32 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2017-10-09 11:15:32 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-10 18:29:30 +03:00
|
|
|
|
2012-04-13 02:37:42 +00:00
|
|
|
|
2013-08-01 01:06:20 +02:00
|
|
|
|
|
|
|
|
|
2012-04-13 02:37:42 +00:00
|
|
|
|
|
|
|
|
|
2021-08-10 18:29:30 +03:00
|
|
|
|
2021-08-10 18:29:28 +03:00
|
|
|
|
2012-04-13 02:37:42 +00:00
|
|
|
|
|
|
|
|
|
2021-08-10 18:29:28 +03:00
|
|
|
|
2013-08-01 01:06:20 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2013-08-01 01:06:20 +02:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2024-01-27 18:50:32 +01:00
|
|
|
|
|
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2024-01-27 18:50:32 +01:00
|
|
|
|
|
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2013-08-30 17:28:17 +02:00
|
|
|
|
2012-04-13 02:37:42 +00:00
|
|
|
|
|
|
|
|
|
2021-08-10 18:29:30 +03:00
|
|
|
|
2012-04-13 02:37:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-10 18:29:19 +03:00
|
|
|
|
|
|
|
|
|
2016-11-21 13:03:24 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-10 18:29:19 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-21 13:03:24 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-21 13:03:25 +01:00
|
|
|
|
2021-08-10 18:29:19 +03:00
|
|
|
|
|
|
|
|
|
2016-11-21 13:03:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-10 18:29:19 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-21 13:03:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-12-27 19:21:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-08-13 10:10:54 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-12-27 19:21:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-12-27 19:21:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-08-13 10:10:54 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-12-27 19:21:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-06-07 18:26:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-03-29 14:38:19 +01:00
|
|
|
|
2014-06-07 18:26:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
treewide: Replace kmalloc with kmalloc_obj for non-scalar types
This is the result of running the Coccinelle script from
scripts/coccinelle/api/kmalloc_objs.cocci. The script is designed to
avoid scalar types (which need careful case-by-case checking), and
instead replace kmalloc-family calls that allocate struct or union
object instances:
Single allocations: kmalloc(sizeof(TYPE), ...)
are replaced with: kmalloc_obj(TYPE, ...)
Array allocations: kmalloc_array(COUNT, sizeof(TYPE), ...)
are replaced with: kmalloc_objs(TYPE, COUNT, ...)
Flex array allocations: kmalloc(struct_size(PTR, FAM, COUNT), ...)
are replaced with: kmalloc_flex(*PTR, FAM, COUNT, ...)
(where TYPE may also be *VAR)
The resulting allocations no longer return "void *", instead returning
"TYPE *".
Signed-off-by: Kees Cook <kees@kernel.org>
2026-02-20 23:49:23 -08:00
|
|
|
|
2014-06-07 18:26:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2014-06-07 18:26:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-06-07 18:26:29 +02:00
|
|
|
|
2014-07-07 05:41:17 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-03-29 14:38:19 +01:00
|
|
|
|
2014-07-07 05:41:17 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
2014-07-07 05:41:17 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-06-07 18:26:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2014-06-07 18:26:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-13 17:59:57 +03:00
|
|
|
|
2014-06-07 18:26:29 +02:00
|
|
|
|
|
|
|
|
|
2019-03-29 14:38:19 +01:00
|
|
|
|
2014-06-07 18:26:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2014-06-07 18:26:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-13 17:59:57 +03:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2021-08-13 17:59:57 +03:00
|
|
|
|
2014-06-07 18:26:29 +02:00
|
|
|
|
|
|
|
|
|
2014-06-12 01:41:24 +02:00
|
|
|
|
2014-06-07 18:26:29 +02:00
|
|
|
|
2021-08-13 17:59:57 +03:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2021-08-13 17:59:57 +03:00
|
|
|
|
2014-06-07 18:26:29 +02:00
|
|
|
|
|
|
|
|
|
2014-06-12 01:41:24 +02:00
|
|
|
|
2014-06-07 18:26:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
2021-05-13 15:20:53 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:23 +03:00
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2021-07-19 20:06:23 +03:00
|
|
|
|
2021-05-13 15:20:53 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2021-05-13 15:20:53 +02:00
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2021-05-13 15:20:53 +02:00
|
|
|
|
2021-07-19 20:06:23 +03:00
|
|
|
|
2021-05-13 15:20:53 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:24 +03:00
|
|
|
|
2021-05-13 15:20:53 +02:00
|
|
|
|
2021-07-19 20:06:23 +03:00
|
|
|
|
2021-05-13 15:20:53 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
2016-07-06 12:12:21 -07:00
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
|
|
|
|
|
2016-07-06 12:12:21 -07:00
|
|
|
|
|
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-07-06 12:12:21 -07:00
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-07-06 12:12:21 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-07-06 12:12:21 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-07-06 12:12:21 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-19 20:06:25 +03:00
|
|
|
|
|
|
|
|
|
2016-07-06 12:12:21 -07:00
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-09-26 17:01:04 +03:00
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-07-06 12:12:21 -07:00
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-10 14:59:27 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-09 15:16:31 -07:00
|
|
|
|
2020-05-27 15:51:13 +02:00
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-10-26 15:22:15 +02:00
|
|
|
|
2026-01-20 17:21:30 +08:00
|
|
|
|
2022-10-26 15:22:15 +02:00
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
2016-07-06 12:12:21 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-07-06 12:12:21 -07:00
|
|
|
|
|
|
|
|
|
2016-06-28 16:57:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-12-05 15:14:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-12-05 15:14:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 10:30:22 +03:00
|
|
|
|
2018-12-05 15:14:24 +02:00
|
|
|
|
|
|
|
|
|