Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp396811lqo; Wed, 8 May 2024 03:15:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV2IOPUtx/yOXH9k/6lvAwJSJWaOgmkhpfZEht0WDmLGt2blvwBzg3KgP6nPRdCLOGsE3UQ4u/5vkab/BFq7OXkFbGlp2c4qbFrkg4GhA== X-Google-Smtp-Source: AGHT+IH9dtRwiTakU5MUYU+3BplYqWULKGhxJ8g/Goa+20xEZH6c5WyCbtiQBZZUwzEYqcGUKKVD X-Received: by 2002:a05:6a20:9688:b0:1a9:fe63:90f0 with SMTP id adf61e73a8af0-1afc8dd34e5mr2038261637.53.1715163309214; Wed, 08 May 2024 03:15:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715163309; cv=pass; d=google.com; s=arc-20160816; b=Nvl+2rit9BNfKM/pEIpJYXxLNRBXvIl7YiIkZC4Zq9fPgfpyYIPr+xNMWrpo2tbkLp En+JChFfsnEltxFg2HIGOaOYMt9lH72OHQ/dovfiM4WGGYwYHB3ZoVgfR83CYKRqMMdA vksfO/RoQ71wCxLYpt8NLV5CPrVFfWRZXL8Zcziry3OCemA8VS01v1JJl2PHXX1pRCOT 6L5XOOBL4PYYMYxFXjIckZUENTWlkN8ilgjVAX2nPm0pQ0Uq0e7bJJGTiMXabh4eRJ/G CwjeKG6yFz0VMItUOCijMt+DQ0l9g+XvMR7JkOov4KLsqOI26xeOqcdamb8lCZjz2q1e 3KnA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=1pfrqMs/oV1OywiwI/fbear8P048VZ1F1GZommjWhxc=; fh=V+LejGMMVBLBljB564fBRBmkxsKDkyyXvV4KbdDff9M=; b=sK6p2dTWb0y4pNyC2frnqusU7r/8l9pGdHH5fazbAq0k+in25fVXGCwsYMjsNpi4E5 Z+9fLlAF1WKa12K27JmybUxJah5JSNlojnf9PdEX4T97P93sSbBiLb3lMIKwd8N6lFkJ SzAshZSurZ6nh08Dw1S1wZsHrqGD7h9KpWmk1pvopu6Pk0iXCvGnPyfjOsSxjzv0tXRl hEuPACnjdrbln7DxJAfxmhLJ3i3iR7UJXPhW7USMa35nZOvDmI5g+C8C+yexkpsMibEQ sLvhTJ6gKmww0rl9HdbAgSDClP3Ol3Ym4Rdn4RsWhNP67ttu6W00ELb8AxORsdDSxEYc YxNw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BPjYn4lV; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-173039-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173039-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h4-20020a636c04000000b0061bb5d486d1si11472896pgc.523.2024.05.08.03.15.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 03:15:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173039-linux.lists.archive=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=@gmail.com header.s=20230601 header.b=BPjYn4lV; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-173039-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173039-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 C67332857C0 for ; Wed, 8 May 2024 10:14:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F3D97F7FC; Wed, 8 May 2024 10:05:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BPjYn4lV" Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 27A397F7D3; Wed, 8 May 2024 10:05:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715162737; cv=none; b=EbOdsLuiv54xeS6lZCWZqcCUyZ/Hi+uc16Xgcdve8411qLbwHqHajJeYUYHipw9pmFSrihW+cRX+r5NGaMN2YqKCzuV7UN4J4uwQSVyrVnpNj5fIC1979/3jeZ0bq9KKfjF2CHg4t2gDO4YI3vIyK2UWZWHjMj2i1QxE2f0JYyQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715162737; c=relaxed/simple; bh=69rPTkrrk+KDC8oVqGxQZvFlCJ9xKMO3lKevbhjOd14=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=ru/IpzmO3CcMhYb/fAkME60gFO+LKoVhFbePhxtgT5gD6QvLaeCEU2NsGFkVWoFQWM30T1N23S9sKuV+jcWkBmcKHOFOHIj07ZdBld9Euo8yizGdUe7Q716DmCpwsla971o6eiC1/CXpXJZQirsoS9NFNP22mmmkOEVIOVnHuo0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BPjYn4lV; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-41ba1ba55ffso3687775e9.1; Wed, 08 May 2024 03:05:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715162734; x=1715767534; darn=vger.kernel.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=1pfrqMs/oV1OywiwI/fbear8P048VZ1F1GZommjWhxc=; b=BPjYn4lVlmeT4GXv7BfwlwFa30+q8sl7UdTMtHUOzRpp00/GZdvdLfWq/4Jg3QbtU+ +eW7rPw1z8EnCXVveQT4NPg2vRBBx+IkTaJMl1X99Lpc3Dd26I1SYAivkVTIW6PPC3ym fOra4IZOR0kvYeCF9uy3Q50CszcAXUBI5LPkBX5A0YMdcW9Nk1VGYBmcz8RTuZjBe8EA SCBd9Vmphd2VB7VWikICuol3ZmyFCyXrjH3o7uVWXbLuo2Fnc8OnB0Hk90E/OqasQvSh 8NQTfEb2UnhQy0vgdN9SkcaK6Cki/eFs0aKjAT4G5OmVuUMfv4Y64Ca8fFoTJAkC9cBx nRIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715162734; x=1715767534; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1pfrqMs/oV1OywiwI/fbear8P048VZ1F1GZommjWhxc=; b=R/VRojhpp984VBUWk8dVzVNBxot3hJCm8Ua6pePHq+DXfBhCU81fCHbJsvbcjNsrzZ LwhQsWVw77NJPmbagXBhQk/6O2QRayoVGtBUQVSS06aI8+6qCyH5JKj1X9qcsQf30+kv EAozzHqJx3+1Mj6M9pUsohVvTkz7ldAs5L/QhpKjkrjWmZuV1oQ6HSxa+b+9NKoNTTCx O1dY6qi3YPNp4cxBwtASB+uq8x3NG4RmDK/nwmWTcpoxMSafF+eCAw+lqKnmR0CvHVuJ l0/dZOpO0ShgvZZZ/yOwh00mXonM5hrnA4p2BO7vlREI33EAgcD5itei6BrqwA3oT4DV VUhQ== X-Forwarded-Encrypted: i=1; AJvYcCVvPaPhumbNpZ+mlRHBhhKXNLMtcKCuiw9y9xiULd278fnzxhSl6277R9ULAKsUsTyZbq7E7D33j0Jx2vpXB7y5FazZPf8s0SECcoCUh+amtBvgq2G9V87cIiEdT7dfoQGh X-Gm-Message-State: AOJu0Yw6ZUQmBjGaw6D4/hjKVi4L5Gqi1bFNX2KEzxPlXwVpItqRzt34 16mK3oIuSx7aGnVGIF+nBVyizJyMa416lNLaSgmb+t06f+xE+58S X-Received: by 2002:a05:600c:35c3:b0:41b:4506:9fd with SMTP id 5b1f17b1804b1-41f71ad0be5mr20497925e9.6.1715162734173; Wed, 08 May 2024 03:05:34 -0700 (PDT) Received: from localhost (54-240-197-231.amazon.com. [54.240.197.231]) by smtp.gmail.com with ESMTPSA id z18-20020adff752000000b0034e19861891sm14923686wrp.33.2024.05.08.03.05.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 May 2024 03:05:32 -0700 (PDT) From: Puranjay Mohan To: Maxwell Bland , "open list:BPF [GENERAL] (Safe Dynamic Programs and Tools)" Cc: Catalin Marinas , Will Deacon , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Zi Shen Lim , Mark Rutland , Suzuki K Poulose , Mark Brown , linux-arm-kernel@lists.infradead.org, open list , Josh Poimboeuf Subject: Re: [PATCH bpf-next v3 0/3] Support kCFI + BPF on arm64 In-Reply-To: References: Date: Wed, 08 May 2024 10:05:30 +0000 Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Maxwell Bland writes: Hi Maxwell, > In preparation for the BPF summit, I took a look back on BPF-CFI patches > to check the status and found that there had been no updates for around > a month, so I went ahead and made the fixes suggested in v2. > > This patchset handles emitting proper CFI hashes during JIT, which > can cause some of the selftests to fail, and handles removing the > __nocfi tag from bpf_dispatch_*_func on ARM, meaning Clang CFI > checks will be generated: > > 0000000000fea1e8 : > paciasp > stp x29, x30, [sp, #-0x10]! > mov x29, sp > + ldur w16, [x2, #-0x4] > + movk w17, #0x1881 > + movk w17, #0xd942, lsl #16 > + cmp w16, w17 > + b.eq 0xffff8000810016a0 > + brk #0x8222 > blr x2 > ldp x29, x30, [sp], #0x10 > autiasp > ret > > Where ^+ indicates the additional assembly. > > Credit goes to Puranjay Mohan entirely for this, I just did some fixes, > hopefully that is OK. Thanks for taking this effort forward. checkpatch.pl complains about the patches like the following: ERROR: Missing Signed-off-by: line by nominal patch author 'Maxwell Bland ' So, you can change the authorship of the patch like: git commit --amend --author "Puranjay Mohan " similar for the patch by Mark: git commit --amend --author "Mark Rutland " Thanks, Puranjay