lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190107002350.24405-1-dsahern@kernel.org>
Date:   Sun,  6 Jan 2019 16:23:50 -0800
From:   David Ahern <dsahern@...nel.org>
To:     stephen@...workplumber.org
Cc:     netdev@...r.kernel.org, idosch@...lanox.com,
        David Ahern <dsahern@...il.com>
Subject: [PATCH iproute2] libnetlink: linkdump_req is done for AF_BRIDGE as well

From: David Ahern <dsahern@...il.com>

The bridge command 'vlan show' calls rtnl_linkdump_req_filter for
family AF_BRIDGE. Update rtnl_linkdump_req_filter to send the filter
for that family as well.

Fixes: d97b16b2c906 ("libnetlink: linkdump_req: Only AF_UNSPEC family expects an ext_filter_mask")
Reported-by: Ido Schimmel <idosch@...lanox.com>
Signed-off-by: David Ahern <dsahern@...il.com>
---
 lib/libnetlink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/libnetlink.c b/lib/libnetlink.c
index 98cb9d9471ae..110f47bcd65a 100644
--- a/lib/libnetlink.c
+++ b/lib/libnetlink.c
@@ -449,7 +449,7 @@ int rtnl_linkdump_req(struct rtnl_handle *rth, int family)
 int rtnl_linkdump_req_filter(struct rtnl_handle *rth, int family,
 			    __u32 filt_mask)
 {
-	if (family == AF_UNSPEC) {
+	if (family == AF_UNSPEC || family == AF_BRIDGE) {
 		struct {
 			struct nlmsghdr nlh;
 			struct ifinfomsg ifm;
-- 
2.11.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ