From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 98F083EFFC5 for ; Wed, 5 Aug 2026 21:33:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785965635; cv=none; b=s5A2InYu/W9lY5s1KKhEnaMl37rhIbbS+saRFvLa/usl7A5DV5x3JJrQvD1E+LPmLgSDcw2TeA35wGjw7H4JFwoMRCPdYyjautgEDsCHrnSELx0qgfqmCzGslDGUtlkTB0i2h6lugtSm33nqyyMVdlL6CgvjBJvQp+XQch99+Oc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785965635; c=relaxed/simple; bh=DO72m0tgD9qToSWZq3DvyoWHfRMOJlG+H6poJ9WLZi8=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=ucz6ypR7uKaPYsuJzfd6nfVyPDqfenlxg7KiN87zzzEx0bpVyZ58cxZXpxIua69l6UjB6CLH1vMR386lKCXOhRjtTY0SPKLIfNbrChJah9fWsAgbZMiYEuLPhipBBTnrQtW2z8MuNXv0iFQXWV5fqGI6YmRZf3zY1c0wePgj22Y= 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=FpoTUZi+; arc=none smtp.client-ip=209.85.128.46 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="FpoTUZi+" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4956d1d9fb2so1348505e9.0 for ; Wed, 05 Aug 2026 14:33:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785965633; x=1786570433; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=Xlzux255aQo2GJLhjdwu0IMLW5KJT2w/Zopkpod7j6k=; b=FpoTUZi+Hct+rTPMiJ+iOJJJNNRp40viK2qUDtIcHWd/bhNWX0Wqn2MBhtQs5MvGG3 WkxA8JZgpyq5RMqkVDK327EB98ZvhEGJKeT78+/4DvYmhv0BbvmVwIcObHWOg65GHo8J uLnvGsCSN3DdzKczQBM/Gvq0ptQLmVPVxPKIoWG2vn0jpenMyiMRVkCB4pRXFl8JIR8C WYBnDfmU5azZ3LmBgZevr4t5CryfUHo0rz1s2KAxsLW8IwF6FQ9ktcZ11PYHYlWxtYJe CvvqM4cPYFkh4PR/R9zRKoeGuW0aEUmkUS0oSuKxFj/Qd+6pP0/mgkXkvySqcckmnGHN QSyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785965633; x=1786570433; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=Xlzux255aQo2GJLhjdwu0IMLW5KJT2w/Zopkpod7j6k=; b=kHdj2bURaSEv7KrUpLy1Y9inhwM+AfhFvVrH6DVnL7wJqJ+5tWjNln7rJjKre6hmkC 0G9UuhdqJrTuhRY6ZQQxstGkC+5MN7uJBOhgg8i7lzJD6P0hJa5WcLXXChhA40llrUAQ eCZt67qSM3J0NuCUBrsZlMj3IFy3M5BPdT4IuMjmBTkiuEzaB/khza/Pb6sxQ3yv+y02 7R3wJxvuAukJaUopYFK0ZFFQ3t+ClHAXc7NflaYAMMDOgFieI1OSu9E+i67M4kRrViyC 93giEvyIyPDalQ7fJpcjl02cZUr/hs7yDdDa3gQEBaaGHrWY3RKm6XX1iBhSk26TJxTX msfA== X-Forwarded-Encrypted: i=1; AHgh+Rp4CH3VnalWiKDf+a8qMZBECd4LTD03ySyz9JhJJqttXgd4+3mgjBfTtJO1VWQCccq/XWf7ptur0X41dYM=@vger.kernel.org X-Gm-Message-State: AOJu0YytmQ8R23/tQlbnNKp5sd/rV4gt1N1VZqM0AQBV1JmtcUyWcy+O aHZtxCYcXgpcX3RaI01eflmHw53/DwWnytC84uQ6eSE3NBYoGF6u6a5a X-Gm-Gg: AR+sD11In4lKv9cFIAzsTI3QJby7OfjN2iS9mmsSLc7Lwbn8aelJ7dNP46fCC4++NAm yxi6Zvc5GRpo/koToe8yaixFZfXHGI3TBXYpbrVHMMVhYHMwWuljIhZI6nNaLEkknw5Br4uRtwh S1p04mw4lddfOphUIdVNykMJuqONaulI6saPWVYbxVybS80Ap//eS1Xr74nPlm576NY9nnV5hOn nK3Rb7NovVWtrl7XO7Ur88hc89Y+Th+Ge9lplsYHHSmBWLiELkVJ0hqWzcs4talG/534KN9kj1Q 9iBGjEtfhaWjNgTsdlxjAenBrOlPCPN2vfAJd4HPc6G/+MN70IY8et4/Np2IHTl5ziiWLWBriQZ 1gBPK19EXduMiQ818GfM5P/mApzcYlWWqH6XFTua+Ls6/rQwiuYueqTTcfHrXdqJlHJVAG26XI+ fzv8Y8fCyuQkKwebxen+UJIULFAtzSffEPiCbE6OzEwL0= X-Received: by 2002:a05:6000:4006:b0:47f:7c3c:aa0c with SMTP id ffacd0b85a97d-47fec523a80mr8529042f8f.3.1785965632768; Wed, 05 Aug 2026 14:33:52 -0700 (PDT) Received: from localhost ([2620:10d:c092:500::7:f900]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47ff7b1809csm425096f8f.18.2026.08.05.14.33.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2026 14:33:52 -0700 (PDT) From: Gustavo Luiz Duarte Subject: [PATCH net-next 0/4] netconsole: validate a target's IP address configuration Date: Wed, 05 Aug 2026 22:33:00 +0100 Message-Id: <20260805-netcons_ipv6-v1-0-170a35b92da1@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/yWM0QrCMBAEf6Xss4EYuRT9FRGx6VXPh7TkYimU/ ntPfRx2dlYoF2HFpVlReBaVMRscDw3S65Gf7KQ3RvAh+vbkXeaaxqx3meboKFJPNBC14Qy7TIU HWX65K8w0e6m4/Rf9dG9O9VvDtu1PkRBvegAAAA== X-Change-ID: 20260730-netcons_ipv6-565d55f55729 To: Breno Leitao , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Gustavo Luiz Duarte X-Mailer: b4 0.15.2 This series adds two validations to the target configuration when the user tries to enable it: first whether remote_ip was set, and second whether local_ip and remote_ip address families match. Refuse to enable the target if any of those validations fail. These validations are already done for the target passed on the command-line, so this aligns dynamic targets with the command-line behavior. The first two patches replace the per-target 'ipv6' flag with a per-address 'family' field, which makes it easier to detect these error conditions. Patches 3 and 4 implement the actual validations. Signed-off-by: Gustavo Luiz Duarte --- Gustavo Luiz Duarte (4): netconsole: add an address family to struct inet_addr netconsole: use the address family instead of the ipv6 flag netconsole: reject enabling a target with no remote IP address netconsole: reject a target mixing IPv4 and IPv6 addresses drivers/net/netconsole.c | 117 ++++++++++++++++++++--------------------------- include/linux/netpoll.h | 10 ++-- 2 files changed, 57 insertions(+), 70 deletions(-) --- base-commit: a23b36233d4103def55dc8cf65698106d0bd1e62 change-id: 20260730-netcons_ipv6-565d55f55729 Best regards, -- Gustavo Luiz Duarte