From patchwork Fri Feb 16 23:43:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Iurman X-Patchwork-Id: 20515 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp57878dyc; Fri, 16 Feb 2024 15:50:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVwya8qtJhIFMSdPFasudc5fHDXYxHAIbLJuBLJA4nCCwFxoP47E4GLvlyKuy9aYnyJcoxJxRE2Hh4iNUOwYv6xG+SMBA== X-Google-Smtp-Source: AGHT+IEQnoRePV76tf9f+TIxDmndGdhUsc/VGxiZ/yHPUdlOHwh788umDBJcBjxz8N/Us9sTRLzY X-Received: by 2002:a05:6a21:3483:b0:19e:a6ea:683a with SMTP id yo3-20020a056a21348300b0019ea6ea683amr6749829pzb.50.1708127452477; Fri, 16 Feb 2024 15:50:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708127452; cv=pass; d=google.com; s=arc-20160816; b=c24t21ddAFDsRWJoDMlUeYo6TGNqhpYLxgSN1ONoqAU1/9O3OGVW06M22hqkiVEBay xNoSY3xr6fyWRfk/0bbWnWysodUsZyUPn2qhAGezwQ9W1d6pFqFSNwZrSOisgpJHBApD B3FeH7UjqUg8na9qSmPGE+kckbUL4ENR7Y5a6/jjQiSr7ub/bmhqRFvJNtEhCrA4hJei zXbY+zJ8FtY3gD6vuybyH0KOL3GRHaIhgqGua8c9dc0+zudoVtd9YeynVSM9TL7Ac/Mn bQtOjcyzMk7ZM47QYQsmuM7x9l43WTdtvFF5PGBTjbtzElCoMlubUWjaec3RWnyeCeBc R4cA== 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=eMLDY0oEAFPsqXefhCsGRO69q/q7s/Eh/mdW8pbZR8I=; fh=wKA1yLAaxZXTggjEsc7ekQegiUD1yMj/fZjOnZZQ/2U=; b=VcyE3uVNbXs9kK/eh9hY9A92y1jgsZR5PUaFs4Bxx/HKQ0rP7Gl9i/Y1wn653p3zp9 nLEXhIw8quplJfPB9MVZL9YvnTS5VNub1icKlMTqyNWDvfFkA/kFhn64rtS+xNi+YJlQ /mwrUoF9oIqDhnmQFgca3+w3tm1/YW1oUJB7zkKzCuOe637ZvGOjoPsledCaulKypXsI epc/FhFXye27sCRTusvB6DFHpg/jDtOlcU7vmFcWQ1GJrvo0onSkWucFYUCFOMZn1beS LG1NDHKi+aKEQmSsyorNN3P2Te8u7NBTJ9lNs1K0xKtEET/un4zrqruI+cDT3vw5H2NS ySsw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@uliege.be header.s=ulg20190529 header.b=0eZbR2l9; 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-69490-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69490-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=uliege.be Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id nv13-20020a17090b1b4d00b0029705e96d0esi692791pjb.117.2024.02.16.15.50.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 15:50:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69490-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@uliege.be header.s=ulg20190529 header.b=0eZbR2l9; 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-69490-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69490-ouuuleilei=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 4EF712896DE for ; Fri, 16 Feb 2024 23:50:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D9F514A4D0; Fri, 16 Feb 2024 23:50:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=uliege.be header.i=@uliege.be header.b="0eZbR2l9" 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 3361A1487F5; Fri, 16 Feb 2024 23:50:12 +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=1708127414; cv=none; b=WQF9AAwwag4lrTuGipWjR7y7X5t9P2BSY0IHKMC1Hj9Q7FwlGsdOV857hEZn7cpCOzkATVI6z8EtizigtXFgAGAlPlNMpcDu8XVlf2Vs90Zkg/LOMfcQp6VbWHwTlBdeQaMvjcbVGBRJqRFJAarOqEhNX/jOWQXKaBmhKTAiJw0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708127414; c=relaxed/simple; bh=ewZyQaeiMirI+9fW2Ek8NXDSlbSYf5H+Yv+QmoDrGVA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=lUo0tdePO4fj0AFBSawIT18eIYYagCo6/FO02qTNQvjF5e5QBxC6/r2aTrLldDUgVcYcbcCAPDEGwk3GOEeMPtn0yHrtUKNBJo/vcMdSf9w7j2sCt5JeUOFg9huJsvtKCG5ijsLrNM4C5nIbxJZ+PrzbPg0K88yx/AUO4OQv308= 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=0eZbR2l9; 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 localhost.localdomain (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 43599200C998; Sat, 17 Feb 2024 00:44:26 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 serv108.segi.ulg.ac.be 43599200C998 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uliege.be; s=ulg20190529; t=1708127066; bh=eMLDY0oEAFPsqXefhCsGRO69q/q7s/Eh/mdW8pbZR8I=; h=From:To:Cc:Subject:Date:From; b=0eZbR2l9PWwUhOewGVUR/GNLWrN2fHH4+t91iqHSaBXrtdQPDh48EnaG5Edw6oGdg ucQUNgVJscZpz9G2cLUzV+IEAkIYc2UUekVw+xAZtXO9iZpbjvGsT70sdLF6NVFMHG wWkAf4Nme/5phCp8Acsl+wi/o+ps+4ycqtZ8u46A2w4KaE+tCiOU2kQIg99I0OUR6a q24/8FFYJRj7NEvQLYmK9s2UXXJhRUwOSBo7sPVHxSq7sut2UftqWL2+rsJTZDEf93 EKpwiBNVudy42bv+8srIV/yJepZTNbbq2IPg1lfsFrDV6HqmwoIwA9n1OfMsUAbUhH t6O6fhjhadtng== From: Justin Iurman To: netdev@vger.kernel.org Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, shuah@kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, justin.iurman@uliege.be Subject: [PATCH net 0/2] ioam6: fix write to cloned skb's Date: Sat, 17 Feb 2024 00:43:54 +0100 Message-Id: <20240216234356.32243-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791101451337309988 X-GMAIL-MSGID: 1791101451337309988 Make sure the IOAM data insertion is not applied on cloned skb's. As a consequence, ioam selftests needed a refactoring. Justin Iurman (2): ioam6: fix write to cloned skb in ipv6_hop_ioam() selftests: ioam6: refactoring to align with the fix net/ipv6/exthdrs.c | 8 ++ tools/testing/selftests/net/ioam6.sh | 38 ++++---- tools/testing/selftests/net/ioam6_parser.c | 101 +++++++++++---------- 3 files changed, 81 insertions(+), 66 deletions(-) base-commit: 166c2c8a6a4dc2e4ceba9e10cfe81c3e469e3210