Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2440078iof; Wed, 8 Jun 2022 05:08:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYN2q2lre9IjmvCuB1nAEEv6QQGh5uUojlHwuZOmZ37+vQuiQedPNu26KfYHFnNWGiuyMx X-Received: by 2002:a17:90b:4a92:b0:1e8:2c09:d008 with SMTP id lp18-20020a17090b4a9200b001e82c09d008mr30695396pjb.169.1654690130965; Wed, 08 Jun 2022 05:08:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654690130; cv=none; d=google.com; s=arc-20160816; b=EQjPG2r0PjhCIi8ChSkm+XlvyvXJTGWoes2xfDyUn49eXuyUNQ4oZGsVS4sKz2KqRw DE5/3P1qWiXFC32sN4lKtZoEzwrTtG//NnaNU/zhb1mynrvYG9/VE7BArKGInADf7Y5m z1J+4n3YGJS/eGmE34gkp95OWtzOnmqiZ7vf+dtxPGLMZv/oPaZPdXis4DkD+5R/xEcj sckgWSaBYz97iY+g+39t/ktmz4aB7qffU74+paBP8FDr/pFnNRMAxti28/es6L1dUQx4 zYwLg7qvkoeylkLckDVl5Kdu1DL1WQyzYJAopSnWrxU0Jdgs6kefI3/sv51OYTtuo9bp U95g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=JINEvdMQKG7TWiu5CRdXci5fFIjbGQ5l/twpgG8YjSQ=; b=w5jUv+1GWyxOb29rLnNYow6n7kaW+6Br+7wwyqV8OpDGurUNXKFTMj0ezXg/XGI2LF 4AO5DI+P79BQNKqQ4m+KB1UTiteaMthgZdb98MtR91+URaqod7XugzubGJSQPAnXweRu 2OfQwCDJpd7J84BbD+euuUoW9qMBIueQG3Kmm8oItfwBYd3DCXwJg6Bt0nRrdVVDZPq+ Xoq2FwMUzXzY/ubYhE4KffbSppqvc1U1MnY20P5Voc59nL63GkIrBn1KsSwegU78a9pz xlhWW8liVNCkmLmhykK3d3ETUZMEXzpXbJ2l+8t37Dwf1B1iU6SvUBKew4FCLgamIfar pkkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s17-20020a170902ea1100b001616377802csi32662517plg.88.2022.06.08.05.08.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 05:08:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 651F71D8A6A; Wed, 8 Jun 2022 04:38:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238248AbiFHLit (ORCPT + 99 others); Wed, 8 Jun 2022 07:38:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238325AbiFHLip (ORCPT ); Wed, 8 Jun 2022 07:38:45 -0400 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADC1B1D871D; Wed, 8 Jun 2022 04:38:44 -0700 (PDT) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 097A01C0BB4; Wed, 8 Jun 2022 13:38:43 +0200 (CEST) Date: Wed, 8 Jun 2022 13:38:42 +0200 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Nikolay Borisov , Andrii Nakryiko , Sasha Levin Subject: Re: [PATCH 5.10 026/452] selftests/bpf: Fix vfs_link kprobe definition Message-ID: <20220608113842.GB9333@duo.ucw.cz> References: <20220607164908.521895282@linuxfoundation.org> <20220607164909.326145660@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4SFOXa2GPu3tIq4H" Content-Disposition: inline In-Reply-To: <20220607164909.326145660@linuxfoundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --4SFOXa2GPu3tIq4H Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > [ Upstream commit e299bcd4d16ff86f46c48df1062c8aae0eca1ed8 ] >=20 > Since commit 6521f8917082 ("namei: prepare for idmapped mounts") > vfs_link's prototype was changed, the kprobe definition in > profiler selftest in turn wasn't updated. The result is that all > argument after the first are now stored in different registers. This > means that self-test has been broken ever since. Fix it by updating the > kprobe definition accordingly. I don't see 6521f8917082 ("namei: prepare for idmapped mounts") in 5.10-stable tree. In 5.10, we still have: include/linux/fs.h:extern int vfs_link(struct dentry *, struct inode *, str= uct dentry *, struct inode **); I believe that means we should not have this one, either. Best regards, Pavel =09 > +++ b/tools/testing/selftests/bpf/progs/profiler.inc.h > @@ -826,8 +826,9 @@ int kprobe_ret__do_filp_open(struct pt_regs* ctx) > =20 > SEC("kprobe/vfs_link") > int BPF_KPROBE(kprobe__vfs_link, > - struct dentry* old_dentry, struct inode* dir, > - struct dentry* new_dentry, struct inode** delegated_inode) > + struct dentry* old_dentry, struct user_namespace *mnt_userns, > + struct inode* dir, struct dentry* new_dentry, > + struct inode** delegated_inode) > { > struct bpf_func_stats_ctx stats_ctx; > bpf_stats_enter(&stats_ctx, profiler_bpf_vfs_link); > --=20 > 2.35.1 >=20 >=20 --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --4SFOXa2GPu3tIq4H Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCYqCKQgAKCRAw5/Bqldv6 8krmAJ9uV43+nIvLcGiHf85fB/Xh1kPU3wCcC2Wo19xvIxoxnv4YScAutAJ5aQU= =XVZZ -----END PGP SIGNATURE----- --4SFOXa2GPu3tIq4H--