Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7554178rwd; Tue, 6 Jun 2023 12:30:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ45kAWyWIhHJdKmIMi4i5yI8PE9qHczcCF9kidf/jKMFLq1M3uzfvLJFPvQuUjKMX00ZhRs X-Received: by 2002:a05:6214:2526:b0:623:6822:ff6e with SMTP id gg6-20020a056214252600b006236822ff6emr641169qvb.7.1686079830288; Tue, 06 Jun 2023 12:30:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686079830; cv=none; d=google.com; s=arc-20160816; b=fa4RN+zAyZifRch1l1/PLz6WShLFmO/RMcP3dGwN9hOCOxpfsCoWSeLHeffvKUVv7B hlJxOc85TRDbsF6xAHPXbYQ3e45yU4SFMX2ySc8+/1bpsO5gAB/wljyo5qRhRLoqKEnx mv31mKi+UAu+a7JGDB18Pi+LsCw4kvJ6luPAxlqj42Ez/v9k/KBVc1wbNrCn5Gt6ehlE PDHXgWCpIKqjYTksWOxxOqYM4Uui/ItDZviJeU7xTa5wg+oUs4kMGo8F9W2CsYEiakBp wPL6nZEtBH8F8rIMnXCxtMf7W1CEw3M9q0mDYveHLyq75R4GiO4Nz8MZoNW1NIhyJrro caMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=31JVF3l6gUDbROIl4YxBKRo91pCNMIATPATdnGp3EPo=; b=UuXc++rmLn1fEpDsxtr8L1u+vDH8A0VKGfnd2tRsggblwuepa5XwW/0ZsifrSmJrum eYK3W7XHcHMXrc6DjkAHVRwqxlvy85wlJgy4wGx2wjXH3KSWh7jBWE4oWAfZn20nz/EW N6A+CRxLx/wnZMsRyEGG5cR9B5DPTGwfIzovmCekKqTaetf9DRKWYRT7l8D2fxMhvUDI zeAj0Ta0U3Rc0YebGvd4qcVY2/7v4ucGl+ketkpbbP4sVI/3kLz5JdGzTEv80knD6f66 nV3vvOSjYQXdM8736gnmicJX9bBi2PYVrbNiPVA5B+X2zRivQbMEjzWkRZW+N+CCOubO PidQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UZqXYyWE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i13-20020ad45c6d000000b006262cd1f8besi6686163qvh.442.2023.06.06.12.30.13; Tue, 06 Jun 2023 12:30:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UZqXYyWE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239168AbjFFS6E (ORCPT + 99 others); Tue, 6 Jun 2023 14:58:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238007AbjFFS6B (ORCPT ); Tue, 6 Jun 2023 14:58:01 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6024995 for ; Tue, 6 Jun 2023 11:57:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686077835; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=31JVF3l6gUDbROIl4YxBKRo91pCNMIATPATdnGp3EPo=; b=UZqXYyWEHDklJ0UWitqrK4ExKxdyUTwPtfTs4PqYORbtJDmUQ+Apu4O4eYHoel4RqSgwYi KVZijhcV6PxqlXP4cFmAOZyqbDwFTsvuDIGvNjus8dprNh1+MKbHwQEWh6dIlm/wqcmlIE /QYgCh2gkpL/kZOpW/DvjGEJujVp75s= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-394-eNOoZgucM2ywRWZDnKFomg-1; Tue, 06 Jun 2023 14:57:12 -0400 X-MC-Unique: eNOoZgucM2ywRWZDnKFomg-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-3f41a04a297so31637185e9.3 for ; Tue, 06 Jun 2023 11:57:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686077831; x=1688669831; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=31JVF3l6gUDbROIl4YxBKRo91pCNMIATPATdnGp3EPo=; b=b8hPH04FP4krlLWv8CG57wbHTaLGoJrN6cyqWWPLx3x+Zrd9zuoQrNmJlwW0mZlTgB HoF/mDlYxMNh56zf6utrMgcvNVLnH+34sngHueO+ODiq1flMb7Yd5MPjVndswrDYMKlI ht6j1ffUXmZIVBOTagRTHGFDAakSE6S9F9QX0UrqJbNfLP18HVfLswGn+2AylJUr2tle Bz0Ybw1xh1sd58PLz76XoD6fOrZFeKjxAb44Jovmt4J5B9Osv2N35CGTSPMYY7iMfKdJ rY3HZUGbF0zZMbRVJfWf7ge22lZSmrF+PQaxMkoYBUc1J/HoOSi5Mcn1f+YAVkUqSRJR ov5Q== X-Gm-Message-State: AC+VfDwCt2p4wC2lprA6K8OVrYfelUI1j02/gE+5/re6oRHL/W5oUuGJ 0R4HfGbmkp7HSVGvTdynCtbfgRlPYfRcswmpbXASNcGhIy933LULq8y8dH7uLFosDVA3qh45D/q pmiuV1FUu6GpJo1Uc6th3p7s0 X-Received: by 2002:a7b:c858:0:b0:3f7:3991:e128 with SMTP id c24-20020a7bc858000000b003f73991e128mr2707039wml.2.1686077831251; Tue, 06 Jun 2023 11:57:11 -0700 (PDT) X-Received: by 2002:a7b:c858:0:b0:3f7:3991:e128 with SMTP id c24-20020a7bc858000000b003f73991e128mr2707034wml.2.1686077830994; Tue, 06 Jun 2023 11:57:10 -0700 (PDT) Received: from debian (2a01cb058d652b00fa0f162c47a2f35b.ipv6.abo.wanadoo.fr. [2a01:cb05:8d65:2b00:fa0f:162c:47a2:f35b]) by smtp.gmail.com with ESMTPSA id z19-20020a7bc7d3000000b003f7ead9be7fsm2685045wmk.38.2023.06.06.11.57.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 11:57:10 -0700 (PDT) Date: Tue, 6 Jun 2023 20:57:08 +0200 From: Guillaume Nault To: Mirsad Goran Todorovac Cc: netdev@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: POSSIBLE BUG: selftests/net/fcnal-test.sh: [FAIL][FIX TESTED] in vrf "bind - ns-B IPv6 LLA" test Message-ID: References: <48cfd903-ad2f-7da7-e5a6-a22392dc8650@alu.unizg.hr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48cfd903-ad2f-7da7-e5a6-a22392dc8650@alu.unizg.hr> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 06, 2023 at 08:07:36PM +0200, Mirsad Goran Todorovac wrote: > On 6/6/23 15:46, Guillaume Nault wrote: > > diff --git a/net/ipv6/ping.c b/net/ipv6/ping.c > > index c4835dbdfcff..f804c11e2146 100644 > > --- a/net/ipv6/ping.c > > +++ b/net/ipv6/ping.c > > @@ -114,7 +114,8 @@ static int ping_v6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) > > addr_type = ipv6_addr_type(daddr); > > if ((__ipv6_addr_needs_scope_id(addr_type) && !oif) || > > (addr_type & IPV6_ADDR_MAPPED) || > > - (oif && sk->sk_bound_dev_if && oif != sk->sk_bound_dev_if)) > > + (oif && sk->sk_bound_dev_if && oif != sk->sk_bound_dev_if && > > + l3mdev_master_ifindex_by_index(sock_net(sk), oif) != sk->sk_bound_dev_if)) > > return -EINVAL; > > ipcm6_init_sk(&ipc6, np); > > The problem appears to be fixed: > > # ./fcnal-test.sh > [...] > TEST: ping out, vrf device+address bind - ns-B loopback IPv6 [ OK ] > TEST: ping out, vrf device+address bind - ns-B IPv6 LLA [ OK ] > TEST: ping in - ns-A IPv6 [ OK ] > [...] > Tests passed: 888 > Tests failed: 0 > # > > The test passed in both environments that manifested the bug. > > Tested-by: Mirsad Todorovac Thanks. I'll review and post this patch (probably tomorrow). > However, test on my AMD Ubuntu 22.04 box with 6.4-rc5 commit a4d7d7011219 > has shown additional four failed tests: > > root@host # grep -n FAIL ../fcnal-test-4.log > 90:TEST: ping local, VRF bind - VRF IP [FAIL] > 92:TEST: ping local, device bind - ns-A IP [FAIL] > 116:TEST: ping local, VRF bind - VRF IP [FAIL] > 118:TEST: ping local, device bind - ns-A IP [FAIL] > root@host # > > But you would probably want me to file a separate bug report? Are these new failures? Do they also happen on the -net tree? > Best regards, > Mirsad >