From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D0B43C43381 for ; Mon, 25 Feb 2019 01:33:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A653E21019 for ; Mon, 25 Feb 2019 01:33:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728143AbfBYBdL (ORCPT ); Sun, 24 Feb 2019 20:33:11 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:33452 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726461AbfBYBdL (ORCPT ); Sun, 24 Feb 2019 20:33:11 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::bf5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 8FA4C14D667A6; Sun, 24 Feb 2019 17:33:10 -0800 (PST) Date: Sun, 24 Feb 2019 17:33:10 -0800 (PST) Message-Id: <20190224.173310.320146292590666666.davem@davemloft.net> To: s-nazarov@yandex.ru Cc: paul@paul-moore.com, netdev@vger.kernel.org, linux-security-module@vger.kernel.org, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org Subject: Re: [PATCH] NETWORKING: avoid use IPCB in cipso_v4_error From: David Miller In-Reply-To: <8873761550853329@myt6-67cd1de25d8a.qloud-c.yandex.net> References: <1122331550497151@iva7-d29a8296bc3c.qloud-c.yandex.net> <20190218.172544.1436352995315454863.davem@davemloft.net> <8873761550853329@myt6-67cd1de25d8a.qloud-c.yandex.net> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sun, 24 Feb 2019 17:33:10 -0800 (PST) Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: From: Nazarov Sergey Date: Fri, 22 Feb 2019 19:35:29 +0300 > I tried to analyze the cases of using icmp_send in kernel. It > indirectly used by many protocols: ARP, IP, UDP, Netfilter, IPVS, > IPIP, GRE over IP, CLIP, XFRM, CIPSOv4. Different IP tunnels and > XFRM operating directly over IP layer and if using own skb->cb data, > having IP header data in front of it. CLIP uses icmp_send for > packets from arp queue only. So, If I right, only TCP layer moves > IP header data and only CIPSOv4 operates on both IP and TCP layers > now. Ok.