From patchwork Fri Feb 22 17:39:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Nazarov X-Patchwork-Id: 10826723 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6961D13B5 for ; Fri, 22 Feb 2019 17:39:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A0AB31985 for ; Fri, 22 Feb 2019 17:39:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3D9E231993; Fri, 22 Feb 2019 17:39:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B1B2531985 for ; Fri, 22 Feb 2019 17:39:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726080AbfBVRje (ORCPT ); Fri, 22 Feb 2019 12:39:34 -0500 Received: from forward501o.mail.yandex.net ([37.140.190.203]:57401 "EHLO forward501o.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726019AbfBVRje (ORCPT ); Fri, 22 Feb 2019 12:39:34 -0500 Received: from mxback16o.mail.yandex.net (mxback16o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::67]) by forward501o.mail.yandex.net (Yandex) with ESMTP id 865811E806E1; Fri, 22 Feb 2019 20:39:31 +0300 (MSK) Received: from localhost (localhost [::1]) by mxback16o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id WqByUPjdOh-dTVi4KeV; Fri, 22 Feb 2019 20:39:30 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1550857170; bh=VnhnVVVH7AkKeRsYirSsd3Ju9l2A/lmVfmH1Dfs1wi4=; h=Message-Id:Cc:Subject:In-Reply-To:Date:References:To:From; b=snZQJGU5h+XyRYbLf8parOaDkam7f99Itg2ZaXMd/+DgyXqml/1U3bPv6WrO9dDoY uu/Mh/pyphEyiAPsV1GJS0AkCiQh03popz/427cKTr8ag2BW07vFtNq5gnuEtl7EGi voX/1d6mWlLn8bXsgn+MsRIoTYMnJ++EBQV8N/aM= Authentication-Results: mxback16o.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by myt3-2475c4d2af83.qloud-c.yandex.net with HTTP; Fri, 22 Feb 2019 20:39:29 +0300 From: Nazarov Sergey To: David Miller Cc: "paul@paul-moore.com" , "netdev@vger.kernel.org" , "linux-security-module@vger.kernel.org" , "kuznet@ms2.inr.ac.ru" , "yoshfuji@linux-ipv6.org" In-Reply-To: <8873761550853329@myt6-67cd1de25d8a.qloud-c.yandex.net> References: <20190215.120009.1549205062473501080.davem@davemloft.net> <1122331550497151@iva7-d29a8296bc3c.qloud-c.yandex.net> <20190218.172544.1436352995315454863.davem@davemloft.net> <8873761550853329@myt6-67cd1de25d8a.qloud-c.yandex.net> Subject: [PATCH v2 0/2] NETWORKING: avoid use IPCB in cipso_v4_error MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Fri, 22 Feb 2019 20:39:29 +0300 Message-Id: <33533951550857169@myt3-2475c4d2af83.qloud-c.yandex.net> Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: X-Virus-Scanned: ClamAV using ClamSMTP The original discussion is here: https://lore.kernel.org/linux-security-module/16659801547571984@sas1-890ba5c2334a.qloud-c.yandex.net/ Changes in v2: - original patch divided on 2 parts: add __icmp_send function, fix cipso_v4_error - add __ip_option_compile not using icmp_send in case nof error --- include/net/icmp.h | 9 ++++++++- include/net/ip.h | 2 ++ net/ipv4/cipso_ipv4.c | 17 +++++++++++++++-- net/ipv4/icmp.c | 7 ++++--- net/ipv4/ip_options.c | 22 +++++++++++++++++----- 5 files changed, 46 insertions(+), 11 deletions(-)