From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 272C7C49EA7 for ; Fri, 25 Jun 2021 15:32:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F27D461948 for ; Fri, 25 Jun 2021 15:32:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229864AbhFYPed (ORCPT ); Fri, 25 Jun 2021 11:34:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbhFYPec (ORCPT ); Fri, 25 Jun 2021 11:34:32 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B79CC061574 for ; Fri, 25 Jun 2021 08:32:11 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id p8-20020a7bcc880000b02901dbb595a9f1so6112228wma.2 for ; Fri, 25 Jun 2021 08:32:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=reply-to:subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=mFzT6pv8CC87cHK04Jv1CeT+CD9fTxFZC5Ewe+N2u6w=; b=gQrCisuq9gjWqBNWWKG7GepHgNrfhn+FOh73iZdGcRt00yUL0Vj7uhpwoHP/HIHkdo UXwKN/jKsjkHUJywh1EueezAxT4Cr3bNrCi9ze6hBESIRM2ItMvO7p+0+321gp5lrMhp /xzjHHN84l6+emHuoOq2SlRMlOe6RcU1t0IQYlTDgo44yGGrt3huvmB7neSV7Bx4U5W7 uEjgC7tyYxlFEARE7x9lY/++4JD848cYNZBiNNkuU/t7UJBZEr/RjE+T3hZhXER1+IcE eTlQFPTH7ItNXtDrGG0WjkVjCgyYCQEp/BD0yy/Att/uy5AF8forzFwoUBUXBOR/BzhP stQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=mFzT6pv8CC87cHK04Jv1CeT+CD9fTxFZC5Ewe+N2u6w=; b=r+Sj9jMX0tu78NeP+3gj5VxUeDnVQSVA27ruCNGwZT+H79Yv96ulNJiPUFQjHVyxIo aG4rv0WutujL+nsWb9rpgWDBUSlECfmc7rkmwpC5xb5qAzj35O98O/Y0JsoejO2KiaG7 fUKhqvPZJXC8hhg0rV2bKZ+3WBm0gyYYapYbaeVAvrEFH9azxumOtQc+go+EHw2eh2PU e9IsRT59IFtBGsM0e+aamXfkd29hVk9rnKYiWExVpMAmChlzD3YxEG/vn6+8foo29Y5D w0N6RSpAu0A74BnJirFoW0nk0EMHfTmxrNAY34BUEfpwsQZJRZ6v2dmpRIBp9Ec2R3/0 2KsQ== X-Gm-Message-State: AOAM5316B7bdCD0EkdiCZJ5Q5wBOLOh0aOjHfYXTsKpmHrbVaND8dI9D r87SU/6MNnSd0PCYXxeFS6JTCQ== X-Google-Smtp-Source: ABdhPJz/6Upyz/UC5eot3d9nnDv9G36yvRoecBp+33QVzZIe9nLdoe2QUFh8lE3k63kot9hiyufr+g== X-Received: by 2002:a05:600c:1d1a:: with SMTP id l26mr11249715wms.21.1624635129852; Fri, 25 Jun 2021 08:32:09 -0700 (PDT) Received: from ?IPv6:2a01:e0a:410:bb00:78f3:e334:978:3783? ([2a01:e0a:410:bb00:78f3:e334:978:3783]) by smtp.gmail.com with ESMTPSA id p13sm4865079wrx.30.2021.06.25.08.32.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Jun 2021 08:32:09 -0700 (PDT) Reply-To: nicolas.dichtel@6wind.com Subject: Re: Issues during assigning addresses on point to point interfaces To: =?UTF-8?Q?Pali_Roh=c3=a1r?= Cc: =?UTF-8?Q?Marek_Beh=c3=ban?= , netdev@vger.kernel.org, "David S. Miller" , Jakub Kicinski , Alexey Kuznetsov , Hideaki YOSHIFUJI , linux-kernel@vger.kernel.org, Andrew Lunn , Russell King , Stephen Hemminger , Phil Sutter References: <20210606151008.7dwx5ukrlvxt4t3k@pali> <20210624124545.2b170258@dellmb> <20210625084031.c33yovvximtabmf4@pali> <20210625152737.6gslduccvguyrr77@pali> From: Nicolas Dichtel Organization: 6WIND Message-ID: Date: Fri, 25 Jun 2021 17:32:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210625152737.6gslduccvguyrr77@pali> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 25/06/2021 à 17:27, Pali Rohár a écrit : [snip] >>> Hello Nicolas! >>> >>> See my original email where I put also rtnetlink packets (how strace see >>> them). Seems that there is a bug in handling them (or bug in iproute2) >>> as setting just peer (remote) IPv6 address is ignored: >>> https://lore.kernel.org/netdev/20210606151008.7dwx5ukrlvxt4t3k@pali/ >>> >>> Do you have any idea if this is affected by that "issue in the uAPI"? >>> And what is the way how to fix it? >> What about forcing IFA_LOCAL address to :: in your case? > > It does not work. ip address returns error: > > $ sudo ip address add :: peer fe80::8 dev ppp0 > RTNETLINK answers: Cannot assign requested address So this trick could probably be used to handle your case, without breaking anything, as it's not a valid command today. Regards, Nicolas