Received: by 2002:a17:90a:b81:0:0:0:0 with SMTP id 1csp1016277pjr; Fri, 30 Aug 2019 11:16:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7D0dzOcQPnOe+j3mJcLC77oZk67c5xFcNE8N6XTTnPurXevGYejdDh8MDwevvZGPygSvM X-Received: by 2002:a62:8344:: with SMTP id h65mr19711169pfe.85.1567188960760; Fri, 30 Aug 2019 11:16:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567188960; cv=none; d=google.com; s=arc-20160816; b=pRmTcHkD/Wp6TJi1crTcnpiHrBvOqiN/Zym1LubDtoHMLwyeKFZmsRYCeKR5m1pp6f vxiIAyPK/fPsTi8HPZY0lGUzCsZ8esGPIHJ9hTR5JDbVkHuXGKWk2LHKHm9//0ZsaJ7q a/Ph3xQUsWY2Z6+8WdRl52gKCs++p6VWrGCcYd+1xiC2C4ajIbqvyKjr/SIONotOP5gr oBhcdgk/EkySmh2vHnVIOQFbuht2g/TAlH4gWrRqulCa4DUw1013CeSh5UEOM3Wjtqwx iWnRcFvX/zU9/0r5Cb0gem04sKSZ7uoNWoShf4Ex9w5jsEArLP1ytL9zR8pRX297Ob90 pDXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=re8RjvuwzJxqmtE4DEFZEFkltJfBWDePIrToMX4uyo8=; b=IjfANLi5cY9fQ2MOrGggSRW2SvSTK/OwgHJ7vzEhCRwFrtZTeBaAeYVkukzIg6fW7Y 2+cEilfFgPYdx7s/IWBF0eGCrBQcHKmyKHDV4Q8VqTpytHMa117tMVnjX6/HHNUAh6il 14p1iJ3MS4dXJ7aEsN59ckKyllmyxak+1XOVRfHHTMmwXb3msvggEfMh7JgDmyrIPmUG H7uuSACFKKzGVyqLgls3ZmyMS7u9Tw8CdWYADy/Qv+4YHGqk+vQqJuasMwKK009Qau8c AKG2f13ue5oySdb/Qj1vCRjvn55UmRrruM2ofGoj9X8+kzcqfzNmRitQz8pb4xA3cQwx vCEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 82si3418439pfx.97.2019.08.30.11.15.45; Fri, 30 Aug 2019 11:16:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728135AbfH3SOa (ORCPT + 99 others); Fri, 30 Aug 2019 14:14:30 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:61554 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727958AbfH3SOa (ORCPT ); Fri, 30 Aug 2019 14:14:30 -0400 Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x7UI2YAt111880; Fri, 30 Aug 2019 14:14:17 -0400 Received: from ppma02dal.us.ibm.com (a.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.10]) by mx0a-001b2d01.pphosted.com with ESMTP id 2uq0tsrv1x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 30 Aug 2019 14:14:17 -0400 Received: from pps.filterd (ppma02dal.us.ibm.com [127.0.0.1]) by ppma02dal.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id x7UIAumh008727; Fri, 30 Aug 2019 18:14:16 GMT Received: from b01cxnp22034.gho.pok.ibm.com (b01cxnp22034.gho.pok.ibm.com [9.57.198.24]) by ppma02dal.us.ibm.com with ESMTP id 2un65kh2xs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 30 Aug 2019 18:14:16 +0000 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x7UIEFXU53870862 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 30 Aug 2019 18:14:16 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DF77CAC060; Fri, 30 Aug 2019 18:14:15 +0000 (GMT) Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F31D3AC05B; Fri, 30 Aug 2019 18:14:12 +0000 (GMT) Received: from LeoBras.ibmuc.com (unknown [9.85.151.141]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP; Fri, 30 Aug 2019 18:14:12 +0000 (GMT) From: Leonardo Bras To: netfilter-devel@vger.kernel.org, coreteam@netfilter.org, bridge@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Leonardo Bras , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , Roopa Prabhu , Nikolay Aleksandrov , "David S. Miller" Subject: [PATCH v4 0/2] Drop IPV6 packets if IPv6 is disabled on boot Date: Fri, 30 Aug 2019 15:13:52 -0300 Message-Id: <20190830181354.26279-1-leonardo@linux.ibm.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-30_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=986 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908300176 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset was prevously a single patch named: - netfilter: nf_tables: fib: Drop IPV6 packets if IPv6 is disabled on boot It fixes a bug where a host, with IPv6 disabled on boot, has to deal with guest IPv6 packets, that comes from a bridge interface. When these packets reach the host ip6tables they cause a kernel panic. --- Changes from v3: - Move drop logic from nft_fib6_eval{,_type} to nft_fib_netdev_eval - Add another patch to drop ipv6 packets from bridge when ipv6 disabled Changes from v2: - Replace veredict.code from NF_DROP to NFT_BREAK - Updated commit message (s/package/packet) Changes from v1: - Move drop logic from nft_fib_inet_eval() to nft_fib6_eval{,_type} so it can affect other usages of these functions. Leonardo Bras (2): netfilter: Terminate rule eval if protocol=IPv6 and ipv6 module is disabled net: br_netfiler_hooks: Drops IPv6 packets if IPv6 module is not loaded net/bridge/br_netfilter_hooks.c | 2 ++ net/netfilter/nft_fib_netdev.c | 3 +++ 2 files changed, 5 insertions(+) -- 2.20.1