Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1142211rdb; Mon, 19 Feb 2024 05:49:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVDD3stKgT2z8KuFa5YNmRKgGozI3Nh9XyxABBpuH6nfKDu4R0xjkjRCRiZeshjoi89DNqWLktppICue988Vqd7xF3+iR84DZNRrjmLXg== X-Google-Smtp-Source: AGHT+IHjd4aEMwSI7vL8XQh06dflbxEovFEPaaVQ9w9sJgW+E8RTrI7GzbPbqlexl3vssTi/iUOW X-Received: by 2002:a17:90a:e409:b0:299:5e44:dad9 with SMTP id hv9-20020a17090ae40900b002995e44dad9mr2911133pjb.12.1708350545086; Mon, 19 Feb 2024 05:49:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708350545; cv=pass; d=google.com; s=arc-20160816; b=d8S+VgJpMHpwnpk1V80DPW1ZRVvXocD8EHB8ibB1yWPGu6+8nPI7Tqe5ZvBgDoGkq9 X+rXNwZFc2P4W1Ic0kIpN7YbfYOxpY3FmEcLyQcj6SyWVSEyzwDtHktb+7E/LWy3P/qO 4Sc9S7m26qSB/K3fyjzuNLKDXaEMpfHdnpeDzIDYt0r/OCKi4hsG/TFOgj9vJUzGBg2j UZ3yVH1jCyhaPOmIMqwzPDfQwfoiYmR8XbWRq6peGdI0KMJxUTOhpndVHTKUTQ1kq8mh SBYfIUezG2CAJS+t+HgxrB4liCSjk5EtCthjy3+gnd5c1eFk0GcsYSF+1WnscxS7Di9U qSuQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature:dkim-filter; bh=SY9aNVlTacbXAp2vEn5d+PobDYqqZDYINWpMGDqIKwk=; fh=1UEXF8WEdTRZGz3zsBPr9blJ8rxkIELeUsA6ymhnv1o=; b=e+/lcxW0dvbQBXKnl1HgOQ4gFZA+nE0jDYt3rdv7zGDip0zpJbcMkl9rp/dKT72f+x a+VQqtOtTf2atCSjbqm2XkmF3HF5Bp7nNUXzyUlY4xF1rcQr+Z9/rRSOY9YPCVD3TmCs C9tJRUF9iBhBPVg3H8oZfmUGOsrGL2iK7SUrBDKl2Y9kGtu2nxjBLh26pgSAkcLhmP3k 9kCQ2SuJ4GrnSUtwKGLObD/rux51IHllGhCofVycE1oTBRK6iQE4eqDFIDKLxNPbvGfw wf4FgIjuJMz1aIqLVmJHdt0Ax0PEzm3dKa4ryeZhRCVXUFIiJWl0K9ctBHvIlNx+iZam JsWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@uliege.be header.s=ulg20190529 header.b=wC79w9Av; arc=pass (i=1 spf=pass spfdomain=uliege.be dkim=pass dkdomain=uliege.be dmarc=pass fromdomain=uliege.be); spf=pass (google.com: domain of linux-kernel+bounces-71427-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71427-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=uliege.be Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id my11-20020a17090b4c8b00b00299367073d6si4613456pjb.73.2024.02.19.05.49.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 05:49:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71427-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@uliege.be header.s=ulg20190529 header.b=wC79w9Av; arc=pass (i=1 spf=pass spfdomain=uliege.be dkim=pass dkdomain=uliege.be dmarc=pass fromdomain=uliege.be); spf=pass (google.com: domain of linux-kernel+bounces-71427-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71427-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=uliege.be Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C59662818BD for ; Mon, 19 Feb 2024 13:49:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A65337142; Mon, 19 Feb 2024 13:48:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=uliege.be header.i=@uliege.be header.b="wC79w9Av" Received: from serv108.segi.ulg.ac.be (serv108.segi.ulg.ac.be [139.165.32.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6ABEF364AB; Mon, 19 Feb 2024 13:48:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=139.165.32.111 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708350526; cv=none; b=qEJuqxzIsQCmn7jmnZlWLbMVfuCkQaCw8EiBID2Nvdpj2i39LsySEyaAzTOy7dPmM3NXyY6L8Awe6sFQ9YDWuH6AF8e9cJtRJFE6dyF5/ngWZB9DuLA6ZKghtKvENPyDLLyXYXm29i1JIwh9AwqS1ISpPjpTxpwPjbyQSfxz7/k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708350526; c=relaxed/simple; bh=wL/23D8NCnghW0/R7m8chsNXdV/IJdIAhfUV7sVJLgY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=vDt71pCEdlsam0XiZ+8kzMdSQbReU3J246v1pVyYk1Xfb3Z05IO5bsI24nvSIl/dghqJNzZjzZVyYr88Tbt9uOY+QIDKvlTWhz3J/PFmgQEiaEtEGf2X/7tG/qvY7p1gWcGEBDS7T2spktIj2QPjkoS+ShJVwZIGSz+RSoehqYM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=uliege.be; spf=pass smtp.mailfrom=uliege.be; dkim=pass (2048-bit key) header.d=uliege.be header.i=@uliege.be header.b=wC79w9Av; arc=none smtp.client-ip=139.165.32.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=uliege.be Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=uliege.be Received: from ubuntu.home (125.179-65-87.adsl-dyn.isp.belgacom.be [87.65.179.125]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by serv108.segi.ulg.ac.be (Postfix) with ESMTPSA id 1EEA8200EEA1; Mon, 19 Feb 2024 14:48:42 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 serv108.segi.ulg.ac.be 1EEA8200EEA1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uliege.be; s=ulg20190529; t=1708350522; bh=SY9aNVlTacbXAp2vEn5d+PobDYqqZDYINWpMGDqIKwk=; h=From:To:Cc:Subject:Date:From; b=wC79w9AvPvWPbkvfsT7tIFvJH/3EFpGd50R71n1M3rs7CjCGAuCVd0ylV4mTo6wNF rQY1bZ3NZ3BtYaKvyMO5Hl9Pd3J7iItX/oA3HTnpqhr9MkTD9rZX+atwUvK9NWX/uw RYs1ckSMOg7k9p+q28jQyd5eRdIVyJnuY0SRjfLQzrjOTkq4ULg2CJKzl59E6NKCLJ nzGLqG6tJyXi/FDkleei6Ie/Q8ZXM5CB6OM9jyQFXHO3WiH+1lbqPG1+Y8KoN6UlwD wR8h6nVeHMCLiA6UC/BiVSuZ4w9qs6SyURXLwrDUDnIwyvCwYLsouYZMd5syG2XRi5 K20lwmnsKxWCQ== From: Justin Iurman To: netdev@vger.kernel.org Cc: davem@davemloft.net, dsahern@kernel.org, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-kernel@vger.kernel.org, justin.iurman@uliege.be Subject: [PATCH net v2 0/2] ioam6: fix write to cloned skb's Date: Mon, 19 Feb 2024 14:48:19 +0100 Message-Id: <20240219134821.14009-1-justin.iurman@uliege.be> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit v2: - use skb_ensure_writable() instead of skb_cloned()+pskb_expand_head() - refresh network header pointer in ip6_parse_tlv() when returning from ipv6_hop_ioam() Make sure the IOAM data insertion is not applied on cloned skb's. As a consequence, ioam selftests needed a refactoring. Justin Iurman (2): Fix write to cloned skb in ipv6_hop_ioam() selftests: ioam: refactoring to align with the fix net/ipv6/exthdrs.c | 10 +++ tools/testing/selftests/net/ioam6.sh | 38 ++++----- tools/testing/selftests/net/ioam6_parser.c | 95 +++++++++++----------- 3 files changed, 76 insertions(+), 67 deletions(-) base-commit: 166c2c8a6a4dc2e4ceba9e10cfe81c3e469e3210 -- 2.34.1