Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2308111ybi; Mon, 1 Jul 2019 09:44:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmVaX1l0/3/qEMGDzsjAE4QdY0QTDj2AgbQ7jahlplIa1odOvwTzuM6U4YL3Y0L2H8kjsT X-Received: by 2002:a17:902:4623:: with SMTP id o32mr29470264pld.112.1561999496663; Mon, 01 Jul 2019 09:44:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561999496; cv=none; d=google.com; s=arc-20160816; b=jfpV3nQwoXq55W676guYRu877UGxdodNOWNpRfPmnQiROedxsyKvBLnMxyvJt6gLOh 4SGrdqYupjOacHDJvsYIvDFpYRe+5+VQjuBLU8o1nVuw5LBeNzSHwaZzMdotV21BCfHc vFTLH3dDGE266bBgAtKC4aOWgJTPhhFzGAkp0u0PcS3MmRU+sliPJo4Nw/u+fXRjLubG NYujde2MUTgd0IxD5oEipsud/C8Yxn8EY/+BCkQxacvape4xJ5IMl+5oqcbTCcvjtvxP poNAXDPCwhzQBTXuw3XG+eavcDdEiACw+CXRA6Atlllv4T7IqD3wux0WD9cHJFmvgFJc Oocw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=0U0YPTwJgVIJVRdYc6tYY8FIRvP636LwdBcXQglF9w0=; b=iM0QVkcIcMOe48/FppabfOfEqIY5OcNrrmWF/StAjuqY7ilP6ksCiM/V5bKFcKZmLr WJdRc6bx31FeseZx7nH5us/NCxpZU/ITO6hZz+exaW8/131BCAsBH8bpk5ZlNS3wiady uYURi/9PHVdaY7AjsFudlfK5Qc1C4Yxk3AvNcvCEDj/s1xCQmI5uk5nvLHbPoF+ksVia lr1NCpIwoHaPm7oTkLWtHjWJd0hzIDXh5PNbMYkV2Z63aT5a5s2amgiRQHAGlj3qUVuD JcZgBKAdZryhlADRngF4q1pwsfrorkGd3a1ThGHooON6DrNN7M9ZrXK3WvvQnnKpP/7y jUAA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r24si9899178pgv.323.2019.07.01.09.44.40; Mon, 01 Jul 2019 09:44:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730027AbfGAQOL (ORCPT + 99 others); Mon, 1 Jul 2019 12:14:11 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:33610 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728238AbfGAQOK (ORCPT ); Mon, 1 Jul 2019 12:14:10 -0400 Received: by mail-lf1-f68.google.com with SMTP id y17so9225091lfe.0 for ; Mon, 01 Jul 2019 09:14:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0U0YPTwJgVIJVRdYc6tYY8FIRvP636LwdBcXQglF9w0=; b=IQUTI4XZ3Q82yeW5G2g6aJi/+RXNjWJxHYSjkEsncEsS8yuPpQJl3Sa8ATmFqdLMga o6bZ1sr8wRmR0ZOJEXF6lQzUgVRxTCFGR28o3RD61ZdNBkbaJpq4e8DNgcDqRbv1qLdw J+jVrq3b59dP1Q8deX0BGOM6rlxCcJllBFeLXS4A2P0TORWRfsLEhE2MizuLOv75Xc9n E/3cvhBI12PBGjVGVhSAgP/2dETxV+4u8kJ5zcsFTJWvs8tHYlNMAGOnsKsjlV2g22Nm kJUIPWLMgytGXorUmMLN8noQHdtNmS9CoWqzcbFdWS482dpBBaBnnG0ksrLlniRTEY0J zRfw== X-Gm-Message-State: APjAAAUfMBXG2q3iQBue+3qAAZmb1aXwHenMeOVfd5eJbYBJoEKCnSdt bsbdsyfqoMS7dv41tgMlrLUC23OKAOKZi9YWw+eDMaY161E= X-Received: by 2002:ac2:4466:: with SMTP id y6mr6082599lfl.0.1561997648899; Mon, 01 Jul 2019 09:14:08 -0700 (PDT) MIME-Version: 1.0 References: <20190701160805.32404-1-mcroce@redhat.com> <42624f83da71354a5daef959a4749cb75516d37f.camel@perches.com> In-Reply-To: <42624f83da71354a5daef959a4749cb75516d37f.camel@perches.com> From: Matteo Croce Date: Mon, 1 Jul 2019 18:13:32 +0200 Message-ID: Subject: Re: [PATCH net] ipv4: don't set IPv6 only flags to IPv4 addresses To: Joe Perches Cc: netdev , LKML , "David S. Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 1, 2019 at 6:10 PM Joe Perches wrote: > > On Mon, 2019-07-01 at 18:08 +0200, Matteo Croce wrote: > > Avoid the situation where an IPV6 only flag is applied to an IPv4 address: > [] > > diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c > [] > > @@ -468,6 +473,9 @@ static int __inet_insert_ifa(struct in_ifaddr *ifa, struct nlmsghdr *nlh, > > ifa->ifa_flags &= ~IFA_F_SECONDARY; > > last_primary = &in_dev->ifa_list; > > > > + /* Don't set IPv6 only flags to IPv6 addresses */ > > umm, IPv4 addresses? > > Ouch, right. /* Don't set IPv6 only flags to IPv4 addresses */ Can this be edidet on patchwork instead of spamming with a v2? -- Matteo Croce per aspera ad upstream