Received: by 2002:ac0:950e:0:0:0:0:0 with SMTP id f14csp22541imc; Fri, 15 Mar 2019 13:59:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxYaix6lj9IcK+WJfH9647k2udtrIzOS1X4en0gYTtBykPQzLd5NYMLy5OqGnhZuLRyKVi X-Received: by 2002:a62:d281:: with SMTP id c123mr5980289pfg.210.1552683547727; Fri, 15 Mar 2019 13:59:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552683547; cv=none; d=google.com; s=arc-20160816; b=bZS5ZEA82zW7hoTNEW95sSLp0nN4ef31nCjq7Cfb2Lix9RsBDD6FrCNkrNozMo/OtR Ui6+8cqh4MVTvIWV191ahZ37V9ZAuTSe/vMeQ2qToK/R6rdBUgtipoehDROICIEaSJVd +7NvBLy/rJpnFjs+2GyjZ+jRcK5zpbMt3sufrJlymNaisLJtPdLDA5VlOVet3Jy5UVr/ lBWqdBl1VDifhXJsWzMF8CYYNVelwaCf3cfBUKTXzfo1bdRBqet8+rOYaMl1DWt0g6// aHLthVJ3cp41QnXeLShQJmgUSJLp6RGqsrbghp28X+RiRH4hWPRhW8MpOqsUBoEXmUAm JvRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=AAff4RmUaSYnml/Ko+UEfMQ8m682UchLUHVPeub+JoY=; b=V+HkvlMNoPnlN8y/zxXmS4AzTGX4ECz2dPHmRPCVgQI3w5ar8GVcLrs5MPY3W6Dhcn 4nSflWOdfaP4DZCQ8knT9F9sGbQ/QiaRPiOfIJxkk/BKbARH/5TlL1NoAyKBGEOyT+0n Xduy9YyvjROci4rMTmeyHMKHvGvO2SO/EmFXYOJtIPc+ag77RdXw9EzthCnJfNdDbCar DNHPem7rDIruRJ48cysgV3qfSDrp+oBxedSwM+RRLZjxrLdzDA4yoAhw5ueJZ8n2SpsY fQZslNIa1A4D6LSOVs2RSAhV6t89CHQXvJ8suy/dxpMr4c4HM+WhLXnvZ0FRunxUfNSg rvXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fomichev-me.20150623.gappssmtp.com header.s=20150623 header.b="HM/IYfCU"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1si2640635pgh.86.2019.03.15.13.58.52; Fri, 15 Mar 2019 13:59:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@fomichev-me.20150623.gappssmtp.com header.s=20150623 header.b="HM/IYfCU"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726833AbfCOU4z (ORCPT + 99 others); Fri, 15 Mar 2019 16:56:55 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:34525 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726653AbfCOU4y (ORCPT ); Fri, 15 Mar 2019 16:56:54 -0400 Received: by mail-pg1-f196.google.com with SMTP id v12so7288449pgq.1 for ; Fri, 15 Mar 2019 13:56:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fomichev-me.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=AAff4RmUaSYnml/Ko+UEfMQ8m682UchLUHVPeub+JoY=; b=HM/IYfCUNaX6xr6koQG7rd2dJ78nKEkPNkkoNQP+wU6BIl0Lunr0MnY5C3vsJ6Au0T MSfKIbIj+zskUwzvojddEYN7rzKngJn9Qygt5FdnbKvpskyLqAZlp8GQ0Lu2/Ks62zpg GUdX4WQfLgO3QNJWTPv++HBRVkbsgANRQKlachmmszhwEn9zPtTb/Ca81XmLp6V/Hr28 yR7FTtsGe2wC4lgUj/wnc7zbD02yZmcPD1/NXniex0Gb93qwejRxi2WhizYV3uZaVLI4 DJat8JdlLj1OIPE5GtgGxTGQNFy5FrDgSXtvXha4a6D6Ihq/TRBG0SNfHY114zLrouN1 IJ2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=AAff4RmUaSYnml/Ko+UEfMQ8m682UchLUHVPeub+JoY=; b=UdReYGB7r4FLAKK80koXb8ayTNP6BG426LgAzL9tEQCWKSAwr6NEKrKUY4JFPXq96u XVoIUbXcmgEVGfCnmNlG+IMgalAKqw2eCxTXuqfcKtVJBT7L7L00ez2NUg0/zCmOLRKD 46DBp/MgfsWXznODHIs1aWwR7SgOvG9ewvg6MhzqigFSkd/36hvE22tJEg6K4vguJIIB 6RaZASW4W6QlX1C3xHzgIk4ZWPhbXqUyY4TqyM+ofSR5s0PUNo3TE3Fw0QbarotzyIzU VAybjH+FAG4t2D5osiakOCgsGi3xBR2Plb4F0Z2/A2Ja01z4BzMwMdDnYd+vr6t37g5a NY+w== X-Gm-Message-State: APjAAAVbpQETi8Ceog3ccVdM+G4uz7t5HzNOTud1AXRAJIjm1m1cMH6h tb6SzoNycwXE7kwAKKPsulnCldaAoNk= X-Received: by 2002:a17:902:29ca:: with SMTP id h68mr6324756plb.297.1552683413985; Fri, 15 Mar 2019 13:56:53 -0700 (PDT) Received: from localhost ([2601:646:8f00:18d9:d0fa:7a4b:764f:de48]) by smtp.gmail.com with ESMTPSA id j71sm6334015pfc.6.2019.03.15.13.56.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Mar 2019 13:56:53 -0700 (PDT) Date: Fri, 15 Mar 2019 13:56:52 -0700 From: Stanislav Fomichev To: Ivan Vecera Cc: netdev@vger.kernel.org, Shuah Khan , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , "open list:KERNEL SELFTEST FRAMEWORK" , "open list:BPF (Safe dynamic programs and tools)" , open list Subject: Re: [PATCH net-next] selftests: bpf: modify urandom_read and link it non-statically Message-ID: <20190315205652.GD5481@mini-arch.hsd1.ca.comcast.net> References: <20190315200414.32346-1-ivecera@redhat.com> <20190315200847.GC5481@mini-arch.hsd1.ca.comcast.net> <2dcdc11c-4d04-4b0e-ddb7-04d969d04651@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2dcdc11c-4d04-4b0e-ddb7-04d969d04651@redhat.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/15, Ivan Vecera wrote: > On 15. 03. 19 21:08, Stanislav Fomichev wrote: > > On 03/15, Ivan Vecera wrote: > > > After some experiences I found that urandom_read does not need to be > > > linked statically. When the 'read' syscall call is moved to separate > > > non-inlined function then bpf_get_stackid() is able to find > > > the executable in stack trace and extract its build_id from it. > > But why? Do you have some problems with it being linked statically? > > > Dependency... you don't need to install static glibc to compile the bpf > samples. Shared libc is available everytime. Oh, the distros that do -devel _and_ -static packages :-) So your patch essentially adds a call, that leaves a trace on the stack with our build-id. I guess that works as well. > > Ivan