Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2281088ybc; Wed, 13 Nov 2019 11:49:09 -0800 (PST) X-Google-Smtp-Source: APXvYqyb1qbJ9HSO41aPI6z/OrVE+W4r8/Z+RYrkSrhZc2fnwRDasSkWNgMCncuBouXTQoHkQoM5 X-Received: by 2002:a50:970e:: with SMTP id c14mr5693593edb.20.1573674549311; Wed, 13 Nov 2019 11:49:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573674549; cv=none; d=google.com; s=arc-20160816; b=WFhFCxt0jk+Ofwh5RkKxKXTaoYZLG+IYZICSKCC6XNcgwx2GuanL/1v1/N0r738DzO Oihib0n8gsJttSfTEslE6eDv9TIx/lqcYUlcUiTvE/FTweXzyKe5596jt0E9i3YK3HEW CQFtlRWp7lUh87ILEXfVtb0u0wzKKLckw5niWTU7qBTuK5JYJlgTafNjrjqIqMAbw2ci +a4cEAElI0Hg8p2/JG9hHxKkW1f8ye8iFaBbTaoymSOTjrkTdLW7LMGEvHl3gH9lucou tSzPgL0ZsguONZAxbMMedt21QTnmNyGr4WvL+aUX4g7p5bQXdIjOLYzWSZxL0d9tXvFM ZQaw== 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=M8WzmKwjoL+Z4bhcEDcm8rZHN2VkjU+tbykfvtlrazE=; b=SDm4x715PYjP3Hj+qO82/59LCBPFcSxQ+YH433YbhAQ3Ka3XZfbgcCm/eRebeLd2h9 NOSlZXLFB6IWEodkc2EBTE+ip8KZBBLnSUhnwH5LJ7Xqy5A69QnbOA4SyzjUCoI0Z/v/ MvJEKmaQyg7dx09kpWurWVcQBryOuYHr0GgdwnpfocykBBTt9b8BHtkebcOluKH3Ybd1 7hkG+2knz0+L6kRPEboDlNadkMaWlq4/g4E1LMo+WAYn0E6IO1E59Nm6YTOlI+9ZVWCi dgUo06g0HmApiScStbi0CBqAdm5ziDuvK66/IWDejRBiGOwu0T+OPwuX9SchKupNhFX5 8L2A== 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=uniroma2.it Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v26si2189115edd.364.2019.11.13.11.48.44; Wed, 13 Nov 2019 11:49:09 -0800 (PST) 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=uniroma2.it Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726491AbfKMTsA (ORCPT + 99 others); Wed, 13 Nov 2019 14:48:00 -0500 Received: from smtp.uniroma2.it ([160.80.6.16]:57695 "EHLO smtp.uniroma2.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726105AbfKMTr7 (ORCPT ); Wed, 13 Nov 2019 14:47:59 -0500 X-Greylist: delayed 1019 seconds by postgrey-1.27 at vger.kernel.org; Wed, 13 Nov 2019 14:47:58 EST Received: from localhost.localdomain ([160.80.103.126]) by smtp-2015.uniroma2.it (8.14.4/8.14.4/Debian-8) with ESMTP id xADJTimk023525 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 13 Nov 2019 20:29:49 +0100 From: Andrea Mayer To: "David S. Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI , David Lebrun , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andrea Mayer Subject: [net-next, 0/3] seg6: improvements to Segment Routing in IPv6 Date: Wed, 13 Nov 2019 20:29:09 +0100 Message-Id: <20191113192912.17546-1-andrea.mayer@uniroma2.it> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.100.0 at smtp-2015 X-Virus-Status: Clean Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset is divided in 3 patches and it introduces some improvements to Segment Routing in IPv6, which are: - in function get_srh() verify the srh pointer after calling pskb_may_pull(); - set skb->transport_header properly after calling decap_and_validate() function; - allow local packet processing for SRv6 End.DT6 behavior. Any comments on the patchset are welcome. Thanks. Andrea Mayer (3): verify srh pointer in get_srh() set skb transport_header properly after decap_and_validate() allow local packet processing for SRv6 End.DT6 behavior net/ipv6/seg6_local.c | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) -- 2.20.1