From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj2-f13.google.com (mail-pj2-f13.google.com [74.125.227.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AA98339D6CC for ; Tue, 15 Sep 2026 05:01:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789448498; cv=none; b=L4WrNGSQ7F9g7PhoJ+bfgeOwmDFelfon5MzsmgwrMI9W29Tm5L/QQDr5AWCXthXEkKbxnVOjL0Xyzc+eSjH9L5fOAUjIBstDOAIn0Hv3Gn3BMssMgweaMwUo2S6sXj1sDP+xGJz9y0iZSxR8yVL3xgbFN1NAiTJ33dTvAT3TNW8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789448498; c=relaxed/simple; bh=WvJDz0SMer3VBOphKTbusnWx9vBwOwyigPUnd+wAAiA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AB97BGpUaJkimuI1Iz/25GiJa+CkRHzLJoadNFrwayrU3timh7yuX6LTHWm+GwhrnaddMtITVgtn/ys43so7E8zTbhPlnLl77EcKWLYR9alOlryq6OsP1ncBEtry36QuV5jfXf570qk3QSS+vgx50iCptLm48tWZvOHosWUsjEc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=CESLyb8q; arc=none smtp.client-ip=74.125.227.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CESLyb8q" Received: by mail-pj2-f13.google.com with SMTP id 98e67ed59e1d1-396ccafb752so2832977a91.0 for ; Mon, 14 Sep 2026 22:01:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789448495; x=1790053295; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=ptBV0v6Gt6jAGsqstGkmrulpyxyqgfaikKMDt/h5aaw=; b=CESLyb8qb9mC71opDonoVuBQSmNLGkr0FyokxmGTXBXKnoGBaohfQtCFhF9iYDfSZX OfGYYFOzGxa4dsd6j/zDtS3Cj4a3AGa5Jgfo/pd75wLuIaRmJ60D350O2I53HL0JbM7Y SE4OMaXtERlI24QAe/wrufjpOkVXCuFppv5+fe5PKlShsccsf0EP2nRdjP+6sMye1e1i brCrnikbGHwPIZF0H5foqV7lrJ0oGAEgNgHtTVhR7uTwHOOmREhZUCnimhLJMchiBk6G w0hU0HuoY3ONKkoG5l27rBui5zgFaPh48lKsfBqYcAqTFfo24Z938eEoWWXxi/ZA7q8W EBpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789448495; x=1790053295; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ptBV0v6Gt6jAGsqstGkmrulpyxyqgfaikKMDt/h5aaw=; b=etyce+WH02unT5I8EMIG3TU37R1vTZTppLpH3X6DPFpzfHC1t2Am9CciMbreQ+pQnc YMo19vEIc2c3StyKflfVd53BYPu7jD/AMo+sFT8h2SjweWIsECX85AfCPVAubi9AFNC8 3zvbco7Jx7H0I1gjKqgumB5sScy/eITQ27Ba+MDONiJn84vpdfZnwA31slWOfyOPUduz A39Ijaz1WJE90EYpd6ir+L/FcRGwu/GpWLKyCI/JuVyskMoUURKZdeXqF5i6bQSkIK1a Xu2vLqTooMZbc5pMJE1BrbDo2nxuT1fcDxWNX5LlKYlGD31uSOh6Hirr8oYcENz8BVel ketw== X-Forwarded-Encrypted: i=1; AKwUvBxhJOfSFr23FsU0AXMudW8LRD/rOdxGyPS551XYyuYbxUkEkuVDWbV4oZUfH36jY6Oym9xwGVN8eZJbvd220pw=@vger.kernel.org X-Gm-Message-State: AFuF++n8s0IyQB+3VWMcVcO+Yrt0rm9oF/6//cV4CG/2176F2OBZJQ3N pOwrzMTpioHv0FXAb1cK+cxgotRZxoIudZSqvbkekPqnQ1wx6iyD4+bO X-Gm-Gg: AYBFou2cIudxqTQjNmbeqny4Gktfdo9BPqmCRv1mBTA1tJ5XlelCjsGJtwT9nbaSOzH ECd2EAvlIxNPaKj8xFu+QNSH5W4wxD9kWc0lKaSbtxy2izys0RHVKCiRQ0o8co48WfSnNwBTPD/ MnBSj9dRfSwm7abP7TJjDryxJGTdSPQ1mzeVUxXw+iisTdZMlEKFTd6c5tgSXo6hv4nbBu8U1vW AK87BVDhdFDeudS4T03T5usD80SyoqiaAgGQ29KZzOaGskzP1hFBYsUvbd1kyR98tZylrI2onf7 Scb/9Tt3lZ/mWjTijXFTwVmIo4s0XNDf5tUSQMcm6znV9UDVIrijeEh0Tati0xchzKlvh0c7XVI ru1oQtT3P7CGHiw5mPMuM9jJYYKzfx2JyxVLyWMSOxkD7MY3o6MwTh6tmXeisDXQa9fZ2zmneY5 NhC/bLdWafVoM5c5zJ8ojl9VfvuMVQV1uRBO+BKKCf/4FEIXGu3cxnJul+0bAP5A0pfLB6nv2Ah CqBETvN8y9miyi44OCoo69RkJzOfIU1q+XaCC5qyEE+fat8J4IHWba+zHxkGs1fA2vEg56AkNfI WMnGgRt/fuhwSauz7QF+ X-Received: by 2002:a17:90b:57cb:b0:39d:f130:f8fd with SMTP id 98e67ed59e1d1-39df13108cdmr11368757a91.11.1789448494978; Mon, 14 Sep 2026 22:01:34 -0700 (PDT) Received: from lawlee-vm0.d4y3nv5wwgfelhhopdxv1tqjld.dx.internal.cloudapp.net ([13.93.150.60]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-33ba4e51449sm26872358eec.5.2026.09.14.22.01.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Sep 2026 22:01:34 -0700 (PDT) From: Lawrence Lee To: David Ahern , Ido Schimmel , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Simon Horman , Randy Dunlap , netdev@vger.kernel.org, Arun Ajith S , Roopa Prabhu , Jaehee Park , Jonathan Corbet , Shuah Khan , Shuah Khan , linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Alexander Aring , linux-wpan@vger.kernel.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net-next v2 0/2] ipv6: update NUD_FAILED neighbors from NA messages Date: Tue, 15 Sep 2026 05:01:30 +0000 Message-ID: X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Neighbor Advertisements for existing NUD_FAILED entries are currently ignored. This can leave a first-hop router with an unusable neighbor after the host becomes reachable and announces itself, particularly when forwarding is offloaded away from the kernel and traffic destined to the FAILED neighbor is unable to trigger the kernel's normal neighbor resolution process. Allowing neighbor entries to be updated from NAs already received by the kernel is preferable since it creates less work compared to periodically probing FAILED neighbors (e.g. using NTF_EXT_MANAGED). Extend accept_untracked_na to treat FAILED entries like absent entries. Require a target link-layer address, IPv6 forwarding, and acceptance by the sysctl, including its source-prefix check in mode 2. Recover the entry only to STALE, including for solicited NAs, to maintain parity with handling of non-existent neighbor cache entries. Patch #1 implements the behavior and updates RFC 9131-related comments and accept_untracked_na documentation. Patch #2 extends ndisc_unsolicited_na_test.sh to cover FAILED-entry recovery and each acceptance gate, including in-prefix and out-of-prefix mode 2. Thanks to Ido Schimmel for feedback on the original RFC. --- v2: - Full implementation of logic to update FAILED entries to STALE. - Update the RFC 9131-related comments and sysctl documentation. - Add selftests to verify state changes only when the accept_untracked_na setting is enabled. v1 (RFC): https://lore.kernel.org/r/20260813233344.445265-1-lfqlee314@gmail.com Testing: - x86_64 current-config and allyesconfig builds with W=1 - tools/testing/selftests/net/ndisc_unsolicited_na_test.sh: 14 passed - Local NIPA checks: all substantive checks passed - Sashiko local review completed Lawrence Lee (2): ipv6: update NUD_FAILED neighbors from NA messages selftests: net: test untracked NA recovery of FAILED neighbors Documentation/networking/ip-sysctl.rst | 28 ++-- include/net/ndisc.h | 15 ++- net/6lowpan/ndisc.c | 15 ++- net/ipv6/ndisc.c | 94 ++++++++----- .../net/ndisc_unsolicited_na_test.sh | 124 +++++++++++++++--- 5 files changed, 201 insertions(+), 75 deletions(-) base-commit: 272a65db243bfa34b9277632830e0e06d7e3518e -- 2.43.0