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]
Date:   Wed, 13 Feb 2019 20:09:53 +0000
From:   Luca Boccassi <>
Cc:, Luca Boccassi <>,
        Clément Hertling <>
Subject: [RFC iproute2] ip route: get: allow zero-length subnet mask

A /0 subnet mask is theoretically valid, but ip route get doesn't allow

$ ip route get
need at least a destination address

Remove the check so that it can go through:

$ ip/ip route get via dev eth0 src uid 1000

Reported-by: Clément Hertling <>
Signed-off-by: Luca Boccassi <>
Stephen et al, this was reported by a Debian user:

It makes sense to me at a cursory glance, but sending as RFC as I'm
not 100% familiar with the route get function.

 ip/iproute.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/ip/iproute.c b/ip/iproute.c
index 5f58a3b3..d78f43d8 100644
--- a/ip/iproute.c
+++ b/ip/iproute.c
@@ -2041,11 +2041,6 @@ static int iproute_get(int argc, char **argv)
 		argc--; argv++;
-	if (req.r.rtm_dst_len == 0) {
-		fprintf(stderr, "need at least a destination address\n");
-		return -1;
-	}
 	if (idev || odev)  {
 		int idx;

Powered by blists - more mailing lists