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 PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sun, 24 Mar 2019 19:36:18 +0100 From: Michal Kubecek <mkubecek@...e.cz> To: David Ahern <dsahern@...il.com> Cc: emersonbernier@...anota.com, Netdev <netdev@...r.kernel.org>, Stephen <stephen@...workplumber.org>, Kuznet <kuznet@....inr.ac.ru>, Jason <jason@...c4.com>, Davem <davem@...emloft.net> Subject: Re: [BUG][iproute2][5.0] ip route show table default: "Error: ipv4: FIB table does not exist." On Sun, Mar 24, 2019 at 07:29:08PM +0100, Michal Kubecek wrote: > On Sun, Mar 24, 2019 at 11:20:33AM -0600, David Ahern wrote: > > On 3/24/19 11:02 AM, emersonbernier@...anota.com wrote: > > > Ok but previous versions of iproute2 didn't treat this as error and didn't exited with non-zero status. Is non existing default route a system error which needs fixing? > > > > The kernel is returning that error, not iproute2. > > > > It is the default *table*, not a default route. > > Something did change on iproute2 side between 4.20 and 5.0, though: > > lion:~ # rpm -q iproute2 > iproute2-4.20-0.x86_64 > lion:~ # ip route show table default ; echo $? > 0 > lion:~ # ip route show table 123 ; echo $? > 0 > ... > lion:~ # rpm -q iproute2 > iproute2-5.0.0-0.x86_64 > lion:~ # ip route show table default ; echo $? > Error: ipv4: FIB table does not exist. > Dump terminated > 2 > lion:~ # ip route show table 123 ; echo $? > Error: ipv4: FIB table does not exist. > Dump terminated > 2 > > All I did was updating iproute2 package, the same kernel was running for > both (I tried 5.0.3 and 5.1-rc1). Commit c7e6371bc4af ("ip route: Add protocol, table id and device to dump request") seems to be an obvious candidate. Before it, no matching rules in the dump used to be presented as an empty table but now ip gets a kernel error which it displays to the user. Michal
Powered by blists - more mailing lists