Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1128667iog; Sat, 18 Jun 2022 01:12:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tuEBhtGrDUaw2rYqXwtYivjcvvAh26B4ldG8HzeN3C/2k7MPWh1uMUXapq4cgNX/aA0QgS X-Received: by 2002:a05:6a00:b81:b0:51c:3bfe:7d89 with SMTP id g1-20020a056a000b8100b0051c3bfe7d89mr14026783pfj.31.1655539965124; Sat, 18 Jun 2022 01:12:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655539965; cv=none; d=google.com; s=arc-20160816; b=PwJxSeUv58CpGsSAaJuGJ0oIXlq4SAhpG5H4bftdl4jKrBGBS2UMbJBG5+kSAMb0DJ 55suxzTkoO7cUP8pLY4K4fqLongFKzf/2GeQZOzzjK7k+9oGrZomLvt6/g2k8inh/j4G NPeirehBWTDwY36Ool9xqUtIR1kB4H85B6EqKKKDDF+Jgqr0FZG0lxVPk9po1w10tnvL fWbzRt8ZNO0xrtfq1WBC2MsM0Y39z5I/BQiVnD6GYybRs9ye2VqsmZtzwDJY5XvUNSuk 1mlIBsUTl4na4fZOaS9PKlF59Nb5O3SoA9bgd6aHeFW/FPOUYjsM9E6xRCDjfzn1JHpw yqQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:subject:cc:to:from :message-id:date:content-transfer-encoding:mime-version; bh=RmnuXQ2QYMWmbpki1mXrCzzN12OG2wnO30X+xtQqJtA=; b=Xd4pAU67dsYMPAntaOjRJNWm7rbUF1QisH6meH1RpfwfvK4Y7gRjiSfLKEDdNJgHnJ HtcnBDXq/CyLFQek0jnFosqLdXWyVBZfL4QHZ7+1fX90keVSE4jJ0UOPmUnZpGiwoscL d1mIoAMvIHt2iCD5lmrFaHy8WBTnbDeWX2VM7SQgCK1GcCeNeyKnOH5EUHxxlT6XedcG vRskHFmYP5dhi7ddPjxVRVeJ5uHnLx703n2EiLUCqYZ5C/XoCZz8OTLZwSh5i2gvCkhO BeoU88HOPSCaZk4dxhNrCK+Y8oiNoaC2mcmPbH0Ns6+OOoWL8W7iMgQAL9MV0SFRRz3D u80A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u22-20020a634556000000b003fe2bc67bbdsi8239660pgk.116.2022.06.18.01.11.57; Sat, 18 Jun 2022 01:12:45 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232040AbiFRHgb convert rfc822-to-8bit (ORCPT + 99 others); Sat, 18 Jun 2022 03:36:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229799AbiFRHg0 (ORCPT ); Sat, 18 Jun 2022 03:36:26 -0400 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87B9E2BB0A; Sat, 18 Jun 2022 00:36:23 -0700 (PDT) Received: (Authenticated sender: pbl@bestov.io) by mail.gandi.net (Postfix) with ESMTPSA id AE30F40002; Sat, 18 Jun 2022 07:36:18 +0000 (UTC) Mime-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset=UTF-8 Date: Sat, 18 Jun 2022 09:36:16 +0200 Message-Id: From: "Riccardo Paolo Bestetti" To: "Jakub Kicinski" Cc: , , , , , , , , , Subject: Re: NEEDS FIXING - Was: Re: [PATCH v2] ipv4: ping: fix bind address validity check X-Mailer: aerc 0.9.0 References: <20220617085435.193319-1-pbl@bestov.io> <165546541315.12170.9716012665055247467.git-patchwork-notify@kernel.org> <20220617195816.53a2f2cf@kernel.org> In-Reply-To: <20220617195816.53a2f2cf@kernel.org> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Sat Jun 18, 2022 at 4:58 AM CEST, Jakub Kicinski wrote: > On Sat, 18 Jun 2022 02:32:55 +0200 Riccardo Paolo Bestetti wrote: > > [...] > > 2) My patch is faulty. I had a complete and tested patch, including code > > fixing the regression. Instead of sending it, however, I decided to > > adapt it to preserve Carlos Llamas' version of ping.c, since they posted > > their patch first. In doing so I used a work branch which contained a > > faulty version (wrong flags) of the regression tests. The resulting > > faulty patch is, unfortunately, currently in the tree. > > > > At this point, due to the unfortunate combination of (1) and (2), it > > might be worth reverting the patch altogether and just applying the v1 > > (i.e. without the regression tests) to the tree and to the relevant LTS > > versions. > > IIUC only the test is faulty / unreliable, correct? Correct, I don't see anything wrong with the fix itself. When manually tested it shows the intended behaviour (sorry for the long lines): $ pwd $KERNEL_TREE/net/tools/testing/selftests/net $ uname -a Linux enhorning 5.19.0-rc2kbr-00103-gb4a028c4d031 #1 SMP PREEMPT_DYNAMIC Fri Jun 17 13:51:24 CEST 2022 x86_64 GNU/Linux $ ./nettest -s -D -P icmp -l 224.0.0.1 -b 09:19:50 server: error binding socket: 99: Cannot assign requested address $ ./nettest -s -D -P icmp -l 255.255.255.255 -b 09:21:20 server: error binding socket: 99: Cannot assign requested address (and fcnal-test.sh shows nothing noteworthy.) Riccardo P. Bestetti > > We have until Thursday before this patch hits Linus's tree so should > be plenty of time to figure the problem out and apply an incremental > fix. I see you posted an RFC already, thanks! > > > After that, a more proper discussion can be had about (1), and the > > regression tests can be fixed. I'm sending a demonstrative patch for > > that as a response to this message.