NetBSD Problem Report #53707
From www@NetBSD.org Wed Nov 7 07:42:48 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 232307A103
for <gnats-bugs@gnats.NetBSD.org>; Wed, 7 Nov 2018 07:42:48 +0000 (UTC)
Message-Id: <20181107074246.888577A1EB@mollari.NetBSD.org>
Date: Wed, 7 Nov 2018 07:42:46 +0000 (UTC)
From: ozaki-r@netbsd.org
Reply-To: ozaki-r@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: Routes with a disappeared local address (rt_ifa) can remain
X-Send-Pr-Version: www-1.0
>Number: 53707
>Category: kern
>Synopsis: Routes with a disappeared local address (rt_ifa) can remain
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Nov 07 07:45:00 +0000 2018
>Originator: Ryota Ozaki
>Release: -current
>Organization:
IIJ
>Environment:
NetBSD kvm 8.99.25 NetBSD 8.99.25 (KVM) #1569: Tue Nov 6 13:24:47 JST 2018
>Description:
A route refers an IP address as its local address that is used as the source
address of an outgoing packet if the source address of the packet is not set
explicitly.
If an IP address is deleted, all routes referring the IP address should be
deleted too or replace its local address with an appropriate address if
available. However such routes just remain on the current implementation
(see below).
>How-To-Repeat:
kvm# ifconfig vioif0 192.168.0.1/24
kvm# route add default 192.168.0.254
add net default: gateway 192.168.0.254
kvm# ifconfig vioif0 192.168.0.1/24 delete
kvm# ifconfig vioif0
vioif0: flags=0x8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ec_capabilities=1<VLAN_MTU>
ec_enabled=0
address: 52:54:00:bb:18:47
inet6 fe80::5054:ff:febb:1847%vioif0/64 flags 0x0 scopeid 0x1
kvm# route -n get 192.168.0.254
route to: 192.168.0.254
destination: default
mask: default
gateway: 192.168.0.254
local addr: 192.168.0.1
interface: vioif0
flags: 0x843<UP,GATEWAY,DONE,STATIC>
recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
0 0 0 0 0 0 0 0
>Fix:
Remove all routes where rt_ifa == ifa when removing ifa.
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.