Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1352555rwb; Mon, 7 Nov 2022 00:10:24 -0800 (PST) X-Google-Smtp-Source: AMsMyM47qP1zAWrAUzD6ICnwVFKMhozjAETw6dHD/FoEWWbDAsSierU0FhdjiEuJLJpl511g7ELn X-Received: by 2002:a05:6a00:98d:b0:56c:7c5c:da30 with SMTP id u13-20020a056a00098d00b0056c7c5cda30mr48513886pfg.22.1667808624352; Mon, 07 Nov 2022 00:10:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667808624; cv=none; d=google.com; s=arc-20160816; b=KrFE5N0xFfYUF4C363wYOxLVzLGByOl588msxNrMP8fKFltikN25pA+mRRPcfZtQj2 epnrtmRo/lXw95O275PtFtclO3V3fy/hkQQcaNNzcuHpb8Br2Ysk/ytE34s6qmoSx/mF oONBn8ONLUzIMBNfUDeEzy7E0FaCMyslODR/DO2EOoE1q0kkbyEppChgDdJiLY5xZtj+ IBIUAS5S0NSgwpLvSXRH2S9KCZCct5i+Qk8G2qyiWGJzotUcB4xauSFqgSAF7QnhmonZ ZmLbuBj1EkcYR0+bU+2iYmH3H1wZhJkoZ582AdJ+CeCIKaE2/WeGwnM5P01D9SE9TxpU quJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=q8vUCxLdTic2QBawIAMKqjIDMDlTR1vSadIQJwe4a/w=; b=aLVEXhotb/1EKzJ4nZZvBR8M0GBZqG2c3P9tsRr7BDXLpHzjmvn1ctPOQ9rHhsetj6 PSSkdMU62PYHzlQeNQiuHr0so+AnvYoqnRkdFij1HfxcWtZNWP08CQiY/tCvbg/7ijpQ 3klMGzvA8hOZ36sThT1ttXH18NuvJ7fv8+sZtsfI/QW4K8xBkfV6gnz5fWRIXzuHh6kh A9b7zXcKKWmy/2EemdlQigGNU+HhwPQyyqMYUSGGihfCVS/nkmgU2bYVCL42SbDif5G5 dPdZr2whFmCFSNHsy56t2lV5SkvfebNXemfSTgmNWmDK12dACkrIME367ScMiU0tBwob GUOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=L9nRCWGR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c30-20020a630d1e000000b0046f063f5498si10210938pgl.58.2022.11.07.00.10.12; Mon, 07 Nov 2022 00:10:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=L9nRCWGR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231402AbiKGHif (ORCPT + 95 others); Mon, 7 Nov 2022 02:38:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231216AbiKGHi1 (ORCPT ); Mon, 7 Nov 2022 02:38:27 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9487F5F48 for ; Sun, 6 Nov 2022 23:37:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1667806649; 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: in-reply-to:in-reply-to:references:references; bh=q8vUCxLdTic2QBawIAMKqjIDMDlTR1vSadIQJwe4a/w=; b=L9nRCWGR9w7sH38eZm/RkJznh6yZStO4+C1elTfKVkJnnaZB7uWqhYmTXZUl2da+qiMUlD 6bKE33PBxxQEnRAZLc6lFqRRogZc1bKSl+1D2josEDuQtbDVBZ7ROYT9pSOBoF5eyrUki7 /ccd55ZMb50CGyie4+xUbdVM7+nrhXg= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-609-8NfxsgGHP3SY_0vSmifaZA-1; Mon, 07 Nov 2022 02:37:23 -0500 X-MC-Unique: 8NfxsgGHP3SY_0vSmifaZA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E5AE83811F24; Mon, 7 Nov 2022 07:37:22 +0000 (UTC) Received: from samus.usersys.redhat.com (unknown [10.43.17.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7FAB140C6DC7; Mon, 7 Nov 2022 07:37:21 +0000 (UTC) Date: Mon, 7 Nov 2022 08:37:19 +0100 From: Artem Savkov To: Andrii Nakryiko Cc: Daniel Borkmann , KP Singh , Alexei Starovoitov , Andrii Nakryiko , bpf@vger.kernel.org, netdev@vger.kernel.org, ykaliuta@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH bpf-next] selftests/bpf: fix build-id for liburandom_read.so Message-ID: Mail-Followup-To: Andrii Nakryiko , Daniel Borkmann , KP Singh , Alexei Starovoitov , Andrii Nakryiko , bpf@vger.kernel.org, netdev@vger.kernel.org, ykaliuta@redhat.com, linux-kernel@vger.kernel.org References: <20221104094016.102049-1-asavkov@redhat.com> <5e6b5345-fc44-b577-e379-cedfe3263066@iogearbox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 On Fri, Nov 04, 2022 at 03:58:43PM -0700, Andrii Nakryiko wrote: > On Fri, Nov 4, 2022 at 10:38 AM Daniel Borkmann wrote: > > > > Hi Artem, > > > > On 11/4/22 2:29 PM, KP Singh wrote: > > > On Fri, Nov 4, 2022 at 10:41 AM Artem Savkov wrote: > > >> > > >> lld produces "fast" style build-ids by default, which is inconsistent > > >> with ld's "sha1" style. Explicitly specify build-id style to be "sha1" > > >> when linking liburandom_read.so the same way it is already done for > > >> urandom_read. > > >> > > >> Signed-off-by: Artem Savkov > > > > > > Acked-by: KP Singh > > > > > > This was done in > > > https://lore.kernel.org/bpf/20200922232140.1994390-1-morbo@google.com > > > > When you say "fix", does it actually fix a failing test case or is it more > > of a cleanup to align liburandom_read build with urandom_read? From glancing > > at the code, we only check build id for urandom_read. I called it a "fix" because it broke expectations of external tools, but the reworded version sounds much better. > I reworded the subject to "selftests/bpf: Use consistent build-id type > for liburandom_read.so" and pushed. Thanks! Thank you, Andrii. -- Artem