Received: by 2002:ac0:a874:0:0:0:0:0 with SMTP id c49csp748625ima; Fri, 15 Mar 2019 13:15:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzClocsCpUJPQwRNg5DpKD8tKfH4WliBeVaQErpAyEqP8ZF+j7NkLraNDqtgpgnf/KTb8k0 X-Received: by 2002:a65:43c1:: with SMTP id n1mr5301089pgp.248.1552680943461; Fri, 15 Mar 2019 13:15:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552680943; cv=none; d=google.com; s=arc-20160816; b=PhLm/+BTZJ1sMypUUWD9fZENeXjqP73EuU9XcAsejHfx7zjhar41c1xmbFfWYJAlmm rmZ5eF7M97BivmxkXfBHJy9FYYVbhz0EUWQk/WE2EnZke8UZ+OwcAzntlKn58TvO8A1C 3j/zjuYVvTLEKyK3EfQOWwJYa0mLBzyRi3Aza+rVmTjM4H/nGFxtw2TT525eNGM8lN2g 31IHDDe0G6Ffk9ipZ7VGivbjRPmOly7+QQqbAcJt1Yz/5ajWZQVlB+3YESoDIVyWHRep dSawlPoj2usi7YLy32sF+LNtfF8sOBYjxqktIoIiDZbbmsAkPiTl5QG4+o2EQ/d5UV6k jLFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=N+sY0y6JfvmE/mCadaqC5+yf/aw0o3wRWnsTj4v7NFo=; b=VhSWYHK3Qxo+5mpjftZVDa4wWO741ZJ8hbNTnWe8mLOiLhes7VwAKh6DjJ5QPaOFDM gyreJyu5pGlsoUru7j5IUdaZsuHteZdRqQXA3KwCYprdeoEyOpE+kTtqO82xC1VjLiX0 w5zTbOr+P/quePHdnt9ArSoE3tsPPxr9QdXeKD9N/riB0/hW12b50VQLEXIpRNMKIkvo kBAMFaRbbrUo4TIKqAFTM/rFW8rCRthgyrhsLLy5PadaVh+4MVo0Wot4AChbE8AbAiQd yrHY4TSZ5KFOVSgzNDLyQlzkMYWEOOwTkLuXC32rTNboAIQbV/xzNDYl2A8ObYwDhdZ6 HQ0Q== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s36si2597443pgm.3.2019.03.15.13.15.28; Fri, 15 Mar 2019 13:15:43 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726837AbfCOUOq (ORCPT + 99 others); Fri, 15 Mar 2019 16:14:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38782 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726097AbfCOUOq (ORCPT ); Fri, 15 Mar 2019 16:14:46 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 490F11E317; Fri, 15 Mar 2019 20:14:46 +0000 (UTC) Received: from [10.40.204.143] (ovpn-204-143.brq.redhat.com [10.40.204.143]) by smtp.corp.redhat.com (Postfix) with ESMTP id EDD7E1001DD4; Fri, 15 Mar 2019 20:14:43 +0000 (UTC) Subject: Re: [PATCH net-next] selftests: bpf: modify urandom_read and link it non-statically To: Stanislav Fomichev 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 References: <20190315200414.32346-1-ivecera@redhat.com> <20190315200847.GC5481@mini-arch.hsd1.ca.comcast.net> From: Ivan Vecera Message-ID: <2dcdc11c-4d04-4b0e-ddb7-04d969d04651@redhat.com> Date: Fri, 15 Mar 2019 21:14:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 MIME-Version: 1.0 In-Reply-To: <20190315200847.GC5481@mini-arch.hsd1.ca.comcast.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Fri, 15 Mar 2019 20:14:46 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Ivan