Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4221698ybi; Tue, 11 Jun 2019 03:04:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6B4ZCISueHRa5raWsLze1/0vzdmfFZ5aakumrb/7u5P89hIfhTowjoySfbfY70mjXtxL/ X-Received: by 2002:a63:1c59:: with SMTP id c25mr19380257pgm.395.1560247460514; Tue, 11 Jun 2019 03:04:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560247460; cv=none; d=google.com; s=arc-20160816; b=lLbPudgJvPxXSMplV/jLVgFfNpA0Q2NhtTEVOI4qkbQnTdzBDCIxm/VS7bPzEDzEv+ TGxhl9EF3cyo2BseeXXeBkrETXJWOnyTMaKnIX0dM8+jgv5NFUO/uLHHFpcqKjmXG6PF /sdpoes8RN6lW6fnoV58rdGkrY5IwzYti+XVLIuoU11CHBTZKz0UWOBkHJwzJstPKJ3z 9pwmo3EfdyJ2HhJFDomqjUBITo5tjjHs/jAhLzSNLBGCis7XseJIQj9Qd+zjtA1wzrJS /UFMFs5bWC9e7m3VGXJr090zRE6FwOcpSOEArp71c8rk6ML2xRXwcNxnFSl4UcjPao8d LXCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=D1U2C9g+Bn7fkKn6QJKsmlU0kk4+d2eQYyM+C8yfSRs=; b=g7doc+eRpG+UBSOEPgYp9VYJUn5sNhyRg4ovhytRwYIW8qQcDCmpLevdMVepOjmjzT Du27/dFiJHyhXgsJ2rEfpXm81U8wMdbTJm4aRM3oTKch2YUonY+oVNPxLuGtasbXBpjQ TE/sV1WqooVBY2thBq755PhJi5L4OUJnPqvOyeOIcXijMVcOQ300BGqR2UTkP05QSVfh IPpyWblFpeNq8Phx1SdXWOVigimFEI2nlxaTWnOwJtVVue6VeEyCnZ79MtDy59sddiqs mazhPcCWfOIdKCUlcTMa99EZp0F/XvHXmHoZkFouw5uuyL7U+sou+g4bucdPVDSmYCyp m7kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@norrbonn-se.20150623.gappssmtp.com header.s=20150623 header.b=sSKqCYAW; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c12si3209467pll.138.2019.06.11.03.04.03; Tue, 11 Jun 2019 03:04:20 -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; dkim=pass header.i=@norrbonn-se.20150623.gappssmtp.com header.s=20150623 header.b=sSKqCYAW; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404676AbfFKKDe (ORCPT + 99 others); Tue, 11 Jun 2019 06:03:34 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:35780 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728937AbfFKKDd (ORCPT ); Tue, 11 Jun 2019 06:03:33 -0400 Received: by mail-lj1-f196.google.com with SMTP id x25so6373605ljh.2 for ; Tue, 11 Jun 2019 03:03:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=norrbonn-se.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=D1U2C9g+Bn7fkKn6QJKsmlU0kk4+d2eQYyM+C8yfSRs=; b=sSKqCYAW9cYne1BgtwQIccsCBxTMI1ws+LxwuzGTMzxOoez3TrFBOA83sqjp8tUred fjbue8+legI2MXiYWtb3zY0X/Hv8sdq4yjifCr7BKcCJQF7Ho1P+TNrB8imYB+Aubx4h YA5kjQ58ss2+8Ie8SNJ22wtKIBX0RQR0QkzXdFhu27YmuRcBXXRrFEpE8c5I/b1SBxbr fNbkN1EnzcoikW1zqdAE2FrZMwswk2lhhyhl0E6VdzsoZ7MCCQdUdWHdzhQ8YWNR/HMt l3wMbqyKnl2oNyncfD5wXyKwqWYryf3/+Woac2v7EGek5fa1TRahsXD2KEbBKXIsT7hJ pFww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=D1U2C9g+Bn7fkKn6QJKsmlU0kk4+d2eQYyM+C8yfSRs=; b=S8SaRdIKyXTnAe0Jz81OGWJxYo3p9ZxWuOOU4cfcHpZ+8FW5Dp0vS1AWXwODprof0Q 9lRLCaD/VzDDnzm46C1LX7tBs3i0TvMvU68sfEFRY5TDKCDzTMyxBLOnpicUjMvTDjHB lgkD06U51qxB5vGnreua78/oFDWbzVS37xIo9aITLhbiaxuhyW0i5lCQA/OPeOfnLsBN FiBT42V4Rb2ZN0I0gVGDPxLl7VfJ7ep1icxFVCRLQ16+Gl7wq2g1zJFlJ8Kq9xu8BYQ/ P/G6AX1D+o9mxZiA8erdV8/76uKhDZ/KDy6XwHPWvsTwAPndgDJqY3mC27bVImY0RdpN emTA== X-Gm-Message-State: APjAAAULLrX4V9YSzC3MyKAI2wEu2LZeHxlsZ7i3fgwrB4EcV8GA+QRM IFafKOHNQ+TUZEJqr/zKM9q2kg7Yegs= X-Received: by 2002:a2e:8591:: with SMTP id b17mr28946871lji.71.1560247410437; Tue, 11 Jun 2019 03:03:30 -0700 (PDT) Received: from mimer.lan (h-29-16.A159.priv.bahnhof.se. [79.136.29.16]) by smtp.gmail.com with ESMTPSA id e12sm2444755lfb.66.2019.06.11.03.03.28 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 11 Jun 2019 03:03:29 -0700 (PDT) From: Jonas Bonn To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Jonas Bonn , Maxim Mikityanskiy , "David S . Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI Subject: [PATCH 1/1] Address regression in inet6_validate_link_af Date: Tue, 11 Jun 2019 12:03:27 +0200 Message-Id: <20190611100327.16551-1-jonas@norrbonn.se> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Patch 7dc2bccab0ee37ac28096b8fcdc390a679a15841 introduces a regression with systemd 241. In that revision, systemd-networkd fails to pass the required flags early enough. This appears to be addressed in later versions of systemd, but for users of version 241 where systemd-networkd nonetheless worked with earlier kernels, the strict check introduced by the patch causes a regression in behaviour. This patch converts the failure to supply the required flags from an error into a warning. With this, systemd-networkd version 241 once again is able to bring up the link, albeit not quite as intended and thereby with a warning in the kernel log. CC: Maxim Mikityanskiy CC: David S. Miller CC: Alexey Kuznetsov CC: Hideaki YOSHIFUJI Signed-off-by: Jonas Bonn --- net/ipv6/addrconf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 081bb517e40d..e2477bf92e12 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -5696,7 +5696,8 @@ static int inet6_validate_link_af(const struct net_device *dev, return err; if (!tb[IFLA_INET6_TOKEN] && !tb[IFLA_INET6_ADDR_GEN_MODE]) - return -EINVAL; + net_warn_ratelimited( + "required link flag omitted: TOKEN/ADDR_GEN_MODE\n"); if (tb[IFLA_INET6_ADDR_GEN_MODE]) { u8 mode = nla_get_u8(tb[IFLA_INET6_ADDR_GEN_MODE]); -- 2.20.1