From nobody Tue Nov 26 08:28:54 2024 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 90A7C1865F6 for ; Fri, 18 Oct 2024 16:25:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729268728; cv=none; b=XautEA+JrjnE8RKesIzMftTAJ1t3YL+MAom7Rtqmo7IzgxfloE+Q1i8jCKr9W6CrRzMvS/PTwv4oolsGLlisnZLxRW3dT7miiuwvBgtILIHgw33vNZ7lfT8LEuvzTWXVN6y699F+5vyeQSdBEvrgesByk9AbQ70Y7fV9ZJXsgSc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729268728; c=relaxed/simple; bh=Qm8FJuHRRwls/WqAeoFpruf5JFERUa8R5bqjrs0EgM8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=tm6v0LktJREk/oljVyaNV/xzL1Q844LEGJyPaOWfulSOVsDkl1f6PK06liEva6NueBkV8Bh4Gwang2Bzy1OCZp3fQHtePXfZhoqrBpuffQOYUvKqrE2affLQ45KLA9SppEM7ssyBFr1SKTngPWQzzRNYAIy/qFpYDRiDGEymzAs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=cloudflare.com; spf=pass smtp.mailfrom=cloudflare.com; dkim=pass (2048-bit key) header.d=cloudflare.com header.i=@cloudflare.com header.b=RjVsYvhM; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=cloudflare.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cloudflare.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cloudflare.com header.i=@cloudflare.com header.b="RjVsYvhM" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4315baec681so20065525e9.2 for ; Fri, 18 Oct 2024 09:25:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google09082023; t=1729268724; x=1729873524; 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; bh=ch5DeSK41qqOXt5fRprznhl/8uUUV8RtaTKJ1Y7/r7I=; b=RjVsYvhM3Mc6wlYizbegi02tKxbPVH4ARBoMpGYGbVcZ1PlKTvAi2NItrmqbIMoHRx 6SkYNKF4XlL1UjxyZdBzoOC+ncnsXvti806U2Qy0yO2DDvRa4qMpobeBvcyautEay/AC r1uMxur7+sjjXazk+pHhaPuFW/iQmCc588iLHCJbpuuvYlfRZo1X6I4Jt/nFH2w2C6Qj aFxIwhlvVoQxWEh9tb3YlOhLvS13KKb6qnvxnGFsa5ELOHwvrMrQzlVGcbcVJfXTt3y/ mSWpgsCQjWOL+3SZtcf4l3I3s6TUUCCuIV9xPAbOUkg5CgdIedd5twRP8WEaNPTkM4pZ ZTCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729268724; x=1729873524; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ch5DeSK41qqOXt5fRprznhl/8uUUV8RtaTKJ1Y7/r7I=; b=VjAr3QiJhkTF/ko6/KPWtXr3GTHH9r7l5ozFJ2IzG110EMTrZRyXBR8uRY3iuYRpU4 rwzQ/UbBqHnbaSXfO9bf3RY7txYmp3r0+KXujcmti93CrfN0vQ3mv0L7x8eGc4/xRrW+ iGDvM9nhoolHaKEGlL457CMNXWDv0E3AqxiWX+KafiNqKcgQD58MOnq1qHeJuzOi8y5Y OPM8I9GLD+xct7bd/EX6OZLA22+xI7XJKnlKI56mfuSrEqZPyBboFvYIg6GVM0Z2cSy/ g/l12of5tdCjN9ZOqljCHdP1X7EOITqVM1g/b30V9VmNbbokZcWgdTsiciawCGwrOAKR Uvjg== X-Forwarded-Encrypted: i=1; AJvYcCWUVdPcS9EuDBTTnpHESRiwB9v6VHtliWI1ZjJlj82LRZMw258Rtl+Cn0gszJei18hxx+rwUA9XvebGqKU=@vger.kernel.org X-Gm-Message-State: AOJu0Yy1bV2a7OldmDUrdxQBnGAHJd6tDFUP5JxF/sJuToAl9otJt8BA BN+/ZFHNj85gwXxwxw7C5DABBRlRavHLoignnG1I5U/6nfJDMUQTONgzoER3fSU= X-Google-Smtp-Source: AGHT+IG55NayxS0oQBlxGjkszsHyKw5MDiOhDqS4zbVLWOMuBB2ZIxTPFLk3EVur+Ss+hgvqAJlzvw== X-Received: by 2002:a05:600c:3553:b0:426:647b:1bfc with SMTP id 5b1f17b1804b1-431616a0b1emr25002345e9.30.1729268723752; Fri, 18 Oct 2024 09:25:23 -0700 (PDT) Received: from localhost.localdomain ([104.28.214.4]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-431606c64b8sm31178715e9.38.2024.10.18.09.25.21 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 18 Oct 2024 09:25:23 -0700 (PDT) From: Ignat Korchagin To: Pablo Neira Ayuso , Jozsef Kadlecsik , davem@davemloft.net, Eric Dumazet , Jakub Kicinski , Paolo Abeni , Florian Westphal , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kernel-team@cloudflare.com, Ignat Korchagin , stable@vger.kernel.org Subject: [PATCH net] netfilter: xtables: fix a bad copypaste in xt_nflog module Date: Fri, 18 Oct 2024 17:25:17 +0100 Message-Id: <20241018162517.39154-1-ignat@cloudflare.com> X-Mailer: git-send-email 2.39.5 (Apple Git-154) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" For the nflog_tg_reg struct under the CONFIG_IP6_NF_IPTABLES switch family should probably be NFPROTO_IPV6 Fixes: 0bfcb7b71e73 ("netfilter: xtables: avoid NFPROTO_UNSPEC where needed= ") Cc: stable@vger.kernel.org Signed-off-by: Ignat Korchagin --- net/netfilter/xt_NFLOG.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/xt_NFLOG.c b/net/netfilter/xt_NFLOG.c index d80abd6ccaf8..6dcf4bc7e30b 100644 --- a/net/netfilter/xt_NFLOG.c +++ b/net/netfilter/xt_NFLOG.c @@ -79,7 +79,7 @@ static struct xt_target nflog_tg_reg[] __read_mostly =3D { { .name =3D "NFLOG", .revision =3D 0, - .family =3D NFPROTO_IPV4, + .family =3D NFPROTO_IPV6, .checkentry =3D nflog_tg_check, .destroy =3D nflog_tg_destroy, .target =3D nflog_tg, --=20 2.39.5