Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2125410ybb; Thu, 2 Apr 2020 13:39:51 -0700 (PDT) X-Google-Smtp-Source: APiQypJFTnFdgv80BKZ/pPSmTbhSUQfMNiydiqw2XIpHVaPLpQe1eqwkVPSq2CSSTzeW5FN3R7ag X-Received: by 2002:a05:6830:19ce:: with SMTP id p14mr3813804otp.362.1585859991522; Thu, 02 Apr 2020 13:39:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585859991; cv=none; d=google.com; s=arc-20160816; b=uIrOcjZLlEWoflrdd+GV7nKFalnJSFB1ZgRQ+u/5oM7s0CjL+I4WgbDssT/O0TR9S9 wcgSBOjljuP3+8UkKbBx4HvllWyxYgOr6rmZJ/v8C0ay2aG2lqjiIUUnkaYdvV55dotL j4Ary2evb0RY/ve20unZkmnQRvwbQSjAWrK89Hl1NdPjh6oOSZ3FuZNVe2cs1MTZRx9e SVQRKLcXseH1mac4hnQt99RDEtKJZ36DjEsK9WL+SjzyyHPTSxxxThMOEGnNTVfepYlu UYIWrTlHfY6rMgvgbDBP4EbSZBsbaEZ7kX/hGHqeWa7W6eRdcn1haDJLSCqcQX8tuN+L 8KVQ== 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:date:message-id:autocrypt :from:references:cc:to:dkim-signature:subject; bh=yU9hKHsWF04/aHMSAoqtWXojqC2smH8PJdSe85WG+s0=; b=nYFSVomrqQzsP8KSL9Zx1HuzvZ8LRDV9YLCYhpZnqZn4A4Zr9CoIKIcmaELyADVUCR gDCU5ra4/NBb6UuncDR9uL6T7QpxiG58mJgjXFqWmJSLp5l7Rmsqb5FpT6Rt18bDL2GO hNqlWkWymBFPDgzN8ATGOmlUr/2uBkqifhzmUzfqLF2L4cyr5uu3Y1pcxNi2Pbt3S7/B JTqPd2yjmj4sMpw+95tpWKe1MiL3SqfrO/7kQAjVJcHF+8xaX87/M1DQ9C0QVupGi6YP dbcgkc52jx46K5u6SR+76u9fN39yr9ZqpHM+ex9gc5LqtZwwZQU3/KcGwGmSXe0mRkTh qolQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bacher09.org header.s=reg header.b=ZCMoDjDE; 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 y1si2827068otq.87.2020.04.02.13.39.39; Thu, 02 Apr 2020 13:39:51 -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=@bacher09.org header.s=reg header.b=ZCMoDjDE; 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 S2389906AbgDBUi2 (ORCPT + 99 others); Thu, 2 Apr 2020 16:38:28 -0400 Received: from pub.regulars.win ([89.163.144.234]:50238 "EHLO pub.regulars.win" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726617AbgDBUi0 (ORCPT ); Thu, 2 Apr 2020 16:38:26 -0400 Subject: Re: [PATCH v4 bpf] kbuild: fix dependencies for DEBUG_INFO_BTF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bacher09.org; s=reg; t=1585859903; 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:autocrypt:autocrypt; bh=yU9hKHsWF04/aHMSAoqtWXojqC2smH8PJdSe85WG+s0=; b=ZCMoDjDEQ+JMvQThTix0Oq40GUHZekLHqu/CMFOVQHlLzDzemAnV0G9FfYylWzY445heWK jghG+YF5yjomUG0DryIiXNHyQHEZJ+HFnYokjYUD4Y2pMRmRehNbw5dQfgTI5J3rprAQt0 SA3TqCtBHlEzjZosZtNEXBknwyCTt6c= To: Kees Cook , Andrii Nakryiko Cc: Andrii Nakryiko , bpf , open list , Jann Horn , Alexei Starovoitov , Daniel Borkmann , Kernel Hardening , Liu Yiding , kpsingh@google.com References: <202004010849.CC7E9412@keescook> <20200402153335.38447-1-slava@bacher09.org> <202004021328.E6161480@keescook> From: Slava Bacherikov Autocrypt: addr=slava@bacher09.org; prefer-encrypt=mutual; keydata= mQINBFFdcIUBEAC9HZz+DbqCs+jyJjpvRyped8U4bz716OZKvZCTH4fNxrrV0fYWRn7LJ/dU r5tBnwhmlTWD4v6hk88qpD9flagkSP4UuIAo+3aopxvrkyWXXYiEAjSL2uTFolcEO40HuYPk 7nprTEzHcHgcYq2wzJfE046gimzFYcUXkrv1gC89RdkwOgLTFb80QUpKyVeoKJWKWHPfRqGF FxpFwMnW3IrgZhOnl8X859WwKUc/agPz05LjaksGpAP8ayfruxtG/3Hl7OulYPWIkTuxHAtK xW9QL7Vt24P8rVLC7sgNZYcjaOcY70PCkGLnquETuIeeCwhKr/e2n+ymH+CxlAiUY+blNpO5 S5P+rwb0qPvGDzjF+Drdp0ye/S3kMa+FNrELW06Fp74p7BgsPgNsuBVg300JWMFXiS7YeMZV cyedAzGbcO8yxrY6ZnuNF8rLiZOYde79yN82wTNw/fWZtHhz8QJELZzMNjZd3/w61ztSs9ng mduiqv9EyNKlEEuxy6N4jGTQ2YYLE/YcIx654rCfpJWJhj2kDd4k2uNRrhJI7t4duHC86K4M HiOwC7PIKlIbtrpYnTZPXXcQHp69LDzxCAA6dgGkhjZsUTVci0rTEfRQjkXYvK/f3P1SHF1M EHoeEaclqvpkuvPcbHQ/TBwBJs+ekdFCTmBzv0UwqZKfaPW5yQARAQABtDJTbGF2YSBCYWNo ZXJpa292IChNeSBOZXcgS2V5KSA8c2xhdmFAYmFjaGVyMDkub3JnPokCWQQTAQIAQwIbIwUJ DShogAcLCQgHAwIBBhUIAgkKCwQWAgMBAh4BAheAFiEEZkmc+DLOftzkG8AWUSYbvb34nfMF AlkF95wCGQEACgkQUSYbvb34nfO7FQ//drNtAxFi294vVZnN+wyVimXGiyBHpBPnEK5/hSQ5 oBVvjFl8Ws7q13WWklhdPgM3atAukADMG5wr3IM3ctS1L2+502TYGv8W5jvUlso/TxjNdVQz SDicmPCMMs91BWHiJHkYKErUXxNtCaBQqVV2rAKiDoK1gtFrWfH/3OgP6RS+mLMt5eJ/PHsc kAuvaXOIzWxjclGMB2yAQzmK7SImOHp7YUBqXrOt523sz29p+1q0+y6ZRlPNctys/okUdnoK bi0rMBqbHngaoi/al9Clh9jrhqjZHJLPSM091u3ubuQkvtg3BOhqs0I/b7Xz83VxN0pj8XHI z4MRFwfhVSKW4pRLf92DKAa9PEYxA9QtboKafZG2EJfrUauba29/JoIh8Evi5MIuWNeZK7pK t3+NadAwXwcLP4RlLuOkVrF+DAuhEktvdJBvTfUkipeQo3YGcffm1daJWoUKiP2a3tqJ9fz8 Zd5cy8hvKFCv5VsoqF2voc6uaadH1/Pwylnw2fzTfGzFP0bsz/HI8F7g3WFv0PrrtkXnPUCD 2IbmIGe8fi7NBTIqtc+mDMsqOIa4hlLBGkP8jHnCPv6oaGYlWemzcVhehU3XQOKyT2lroZan nnARpEW9lSSeWPba99+PJu0q2rEaQj/Vhy/m2db89kYeLcEuItd4DYKk7rHZSrHBKwM= Message-ID: Date: Thu, 2 Apr 2020 23:38:21 +0300 MIME-Version: 1.0 In-Reply-To: <202004021328.E6161480@keescook> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 02.04.2020 23:34, Kees Cook wrote: > On Thu, Apr 02, 2020 at 12:31:36PM -0700, Andrii Nakryiko wrote: >> On Thu, Apr 2, 2020 at 8:40 AM Slava Bacherikov wrote: >>> >>> >>> >>> 02.04.2020 18:33, Slava Bacherikov wrote: >>>> + depends on DEBUG_INFO || COMPILE_TEST >>> >>> Andrii are you fine by this ? >> >> I think it needs a good comment explaining this weirdness, at least. >> As I said, if there is no DEBUG_INFO, there is not point in doing >> DWARF-to-BTF conversion, even more -- it actually might fail, I >> haven't checked what pahole does in that case. So I'd rather drop >> GCC_PLUGIN_RANDSTRUCT is that's the issue here. DEBUG_INFO_SPLIT and >> DEBUG_INFO_REDUCED look good. Yesterday before sending it I tested it against latest bpf git with allyesconfig and it compiled fine, even worked in vm ;) > > The DEBUG_INFO is separate, AIUI -- it sounds like BTF may entirely > break on a compile with weird DWARF configs. > > The GCC_PLUGIN_RANDSTRUCT issue is separate: it doesn't make sense to > run a kernel built with BTF and GCC_PLUGIN_RANDSTRUCT. But they should > have nothing to do with each other with regard to compilation. So, to > keep GCC_PLUGIN_RANDSTRUCT disable for "real" builds but leave it on for > all*config, randconfig, etc, I'd like to keep the || COMPILE_TEST, > otherwise GCC_PLUGIN_RANDSTRUCT won't be part of the many CIs doing > compilation testing. > > And FWIW, I'm fine to let GCC_PLUGIN_RANDSTRUCT and BTF build together. > But if they want to be depends-conflicted, I wanted to keep the test > compile trap door. > Oh, seems I misunderstood you, if everyone agree I'll drop it.