From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9707C4727C for ; Tue, 29 Sep 2020 10:47:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 83F8A208FE for ; Tue, 29 Sep 2020 10:47:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="iajPIpfs" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725779AbgI2KrV (ORCPT ); Tue, 29 Sep 2020 06:47:21 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:26328 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725283AbgI2KrU (ORCPT ); Tue, 29 Sep 2020 06:47:20 -0400 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601376439; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bHRjqq9aD7nbdcwIh20eQ0OrgZ63URxR53hLcrRv4o8=; b=iajPIpfsfeSx1sxt/1tKRNozirNU6a8AJGHt1ooUybM0vQIwftwEMHP30yOjD50NXSoLSs wUbAnq3Lss5zsaSWqxaEMGFytqj20aWQZJmGp3R0sKBLmQjjqURvRmbtISppFBMiLY4DpL DMfnrJn4C/FGvA05uRNf9eunw1YQxy8= Received: from mail-oo1-f72.google.com (mail-oo1-f72.google.com [209.85.161.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-546-67lUhTjCPXai-dwHbU5c2g-1; Tue, 29 Sep 2020 06:47:17 -0400 X-MC-Unique: 67lUhTjCPXai-dwHbU5c2g-1 Received: by mail-oo1-f72.google.com with SMTP id y136so1866300ooa.14 for ; Tue, 29 Sep 2020 03:47:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=bHRjqq9aD7nbdcwIh20eQ0OrgZ63URxR53hLcrRv4o8=; b=TsKzQ0w5l3KnQox3IxkEAVJQadv1gaBz9AeIivu/RHb9KFqJSoqxqgfYVlzYrxt3/q Vz3NAP90zna3eAQOMe5c0aflLd+68rtOfbVwNmx67GGtL7yyzJSFexQolsfUw3EuRVDy a+RF6Rg/nPOf47c1fT/p1Zg8d/pVe3gCCtmXkTSL5C7ZU/BUp+QsEK3SdNRb1PD3hGyY QhAYqXiFMAOngTiD9CCcdRLBhSY79Q2Lll51A8KgfX/mxhGuHefkh1i7Zndd3RoHNl6T 5LG5vVeKuAVxH9ncupdntHtcQRI9bb3/S9qv4V/lEBjtZIXnyioA76lgL3/I1+W/yM4R JBOA== X-Gm-Message-State: AOAM531u80NzL8MePwC7Em2ztFXW3axcKwPxuFTwlrhyKwN0917hVZUH mrHsQT5ltHTdYO4Ua11631auf+3HGMVLtfAZgb+pWpqbzaMO2M01tijgBMKxz1N1mVIEikaj+CN lPvsQv/VDNNvXvENX X-Received: by 2002:a9d:5a8:: with SMTP id 37mr2183161otd.362.1601376436285; Tue, 29 Sep 2020 03:47:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzO6weu8pvdunFcfhDqE6c/s9RmtG9spsVbUPb8XJD/zzFkDW0VVJx/OboVmQA0ciwQxiCi1g== X-Received: by 2002:a9d:5a8:: with SMTP id 37mr2183144otd.362.1601376435976; Tue, 29 Sep 2020 03:47:15 -0700 (PDT) Received: from alrua-x1.borgediget.toke.dk ([2a0c:4d80:42:443::2]) by smtp.gmail.com with ESMTPSA id g21sm3015843oos.36.2020.09.29.03.47.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2020 03:47:15 -0700 (PDT) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 9B687183C5B; Tue, 29 Sep 2020 12:47:13 +0200 (CEST) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Alexei Starovoitov Cc: Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , John Fastabend , Jiri Olsa , Eelco Chaudron , KP Singh , netdev@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH bpf-next v9 04/11] bpf: move prog->aux->linked_prog and trampoline into bpf_link on attach In-Reply-To: <20200929000522.n5g2hcahqjxwseye@ast-mbp.dhcp.thefacebook.com> References: <160106909952.27725.8383447127582216829.stgit@toke.dk> <160106910382.27725.8204173893583455016.stgit@toke.dk> <20200929000522.n5g2hcahqjxwseye@ast-mbp.dhcp.thefacebook.com> X-Clacks-Overhead: GNU Terry Pratchett Date: Tue, 29 Sep 2020 12:47:13 +0200 Message-ID: <87o8lo3ln2.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Alexei Starovoitov writes: > On Fri, Sep 25, 2020 at 11:25:03PM +0200, Toke H=C3=83=C6=92=C3=82=C2=B8i= land-J=C3=83=C6=92=C3=82=C2=B8rgensen wrote: >>=20=20 >> int bpf_check_attach_target(struct bpf_verifier_log *log, >> const struct bpf_prog *prog, >> - const struct bpf_prog *tgt_prog, >> + const struct bpf_prog *dst_prog, > > so you really did blind search and replace? > That's not at all what I was asking. > The function is called check_attach_target and the argument name > 'tgt_prog' fits perfectly. Initially I did, and then I realised basically what you were saying, and started to undo some of the conversions. Guess I landed somewhere in-between... Will fix, and resend patches 4-10. Thanks! -Toke