Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3187783imu; Fri, 23 Nov 2018 23:39:22 -0800 (PST) X-Google-Smtp-Source: AFSGD/WZGOHlRW9PvKKYu6j2xqvCVW/bzeWAulG27oxORoVm1NWPrdfwh9NfKm9gTC1JoC+bZ815 X-Received: by 2002:a62:8f8c:: with SMTP id n134mr5425147pfd.137.1543045162297; Fri, 23 Nov 2018 23:39:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543045162; cv=none; d=google.com; s=arc-20160816; b=lGbJed4FdBnunBV3bhb4elUSeTjFohJI+4XmNndeXqKZoJyc0rPfQrP6uScOyDmbr5 pPwn2j43MnwYYkAQjQjP+7ix6G6GtgvKVxcVcf6Lch2uipKNaG/89HRQVswGnHKlQ8pe 657x1xqQ35x9L5M10q6vlhI0cmYUhnPMRdhfREFYdOBFO87GXYrTJPJXLuw7gPdzcCkw PY6FyMetGdjrfUY3OHPcPzb8AAkG2tKfgctgznnTXEiKDV1oDU1hwyp7LTzHrvoTrr+U JYK957BPmIKAq+j91lhAk6fwjtCrMz7lAuc/U5vzGRnPoc4JG/wUFyY8SJ49yeNBsS/G BTog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=3fwIi1HS+B7IqHTnxe4GTaBPBU0ZPbNlR7rFtZhpXrc=; b=x4rSGTYKo4QLEz17jh0suUfTg+PdUwCm2/3bTD4BiEfodfj44+rU7+ifwSEauV6jhp zB+dc1OdpMbdl4yrjzYCFGmRC6W42SvHHhJEKLFOVLw/3YQC9m5mM1ua1G10vsU+cGBr SksUoRi8VwYc+ArLUNMPPd6DxYeETJqVMT/bh8+3RW/q8Z3kU8HES3lJ1LjIbqeVwum8 WVcuB5kiAvsAtLisSIJyVU9/iYm73wVEPvtiRfq0qKAqhpKmZ1ybazVwd4KRgv6NYH1y gaWdqA64HycHeBBqr4i+mpl3f7gSIorOfQxSZyixQNSOXKbhPI2uacZnJUAfY5Z9oyD7 ++SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="jeSPhr/Y"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l10si2695095pls.162.2018.11.23.23.39.07; Fri, 23 Nov 2018 23:39:22 -0800 (PST) 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=@linaro.org header.s=google header.b="jeSPhr/Y"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407345AbeKWHtM (ORCPT + 99 others); Fri, 23 Nov 2018 02:49:12 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:39448 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389465AbeKWHtM (ORCPT ); Fri, 23 Nov 2018 02:49:12 -0500 Received: by mail-wr1-f65.google.com with SMTP id t27so2492514wra.6 for ; Thu, 22 Nov 2018 13:08:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=3fwIi1HS+B7IqHTnxe4GTaBPBU0ZPbNlR7rFtZhpXrc=; b=jeSPhr/YrQkmBYIUxP336rNiADqHILN1LHSlMWcRRSAoU7ZyDMMx+38FWmGQITz3du 7fG9O4zR6mEp6XTqKeSn93s4WYy3d6TN2O/09zVAwdFGNJimbJdLdrej6kg/dhhd3XhB pvXU1GgHDXr94XKPb801kwMxMS8M+LgnJo8l8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=3fwIi1HS+B7IqHTnxe4GTaBPBU0ZPbNlR7rFtZhpXrc=; b=c7vo23XCc7zXbCIi4ZffYugV0KGfQPtZuGvmcRb2TVRJrK7MoVPfoPrmWOdL2mG7NC MSJ+g7o7a37EFrU91Y0yd0xxKzLlMi5tZW3eQSH4HOcsXyu2M9k2lqeigK/OURmvz/43 W4hyZPevnGduH7EoOql94Z+U7jX34uo7TFiqZH2QMkdTVwJlcanBqDQeHSRlnBI0Wy4f h119zaOig7OlQWxw67CT6Fy1tZP9Hi8teutvuvAUV+kezTulXPaj7uUHmEiOvOlviCJQ dCUqVtzb7DS9RxqBJVZHiAQ4uM+nXJlnzyRZx+sJefNVUwjkyTQ4D0mx3qySLWuhSUso tv9A== X-Gm-Message-State: AA+aEWaO6OHT9oN9ARS0bsYKgIgtzqRpuPmeBwwmKhulXhHW7n4W1tZI h1cdPiGx0p/cKw09WN4nO41BMQ== X-Received: by 2002:a5d:6b09:: with SMTP id v9mr3230402wrw.304.1542920882556; Thu, 22 Nov 2018 13:08:02 -0800 (PST) Received: from [192.168.1.54] (33.153.69.91.rev.sfr.net. [91.69.153.33]) by smtp.gmail.com with ESMTPSA id 60sm26154756wrb.81.2018.11.22.13.08.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Nov 2018 13:08:01 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: [PATCH v2 1/2] bpf: add __weak hook for allocating executable memory From: Ard Biesheuvel X-Mailer: iPhone Mail (16A366) In-Reply-To: <201811230404.yavKPUOn%fengguang.wu@intel.com> Date: Thu, 22 Nov 2018 22:08:00 +0100 Cc: kbuild-all@01.org, linux-arm-kernel@lists.infradead.org, Daniel Borkmann , Alexei Starovoitov , Rick Edgecombe , Eric Dumazet , Jann Horn , Kees Cook , Jessica Yu , Arnd Bergmann , Catalin Marinas , Will Deacon , Mark Rutland , "David S. Miller" , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <800264DE-658A-46B4-8FA1-CD1CF314AA7A@linaro.org> References: <20181121131733.14910-2-ard.biesheuvel@linaro.org> <201811230404.yavKPUOn%fengguang.wu@intel.com> To: kbuild test robot Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On 22 Nov 2018, at 21:01, kbuild test robot wrote: >=20 > Hi Ard, >=20 > I love your patch! Yet something to improve: >=20 Ugh, apologies for this. I=E2=80=99m sure i build tested /something/ but cle= arly not what i should have tested. In any case, following up on the discussion I=E2=80=99ll have to respin this= in any case. I=E2=80=99ll triple check next time that what i send out was t= ested properly. > [auto build test ERROR on bpf-next/master] > [also build test ERROR on v4.20-rc3 next-20181122] > [if your patch is applied to the wrong git tree, please drop us a note to h= elp improve the system] >=20 > url: https://github.com/0day-ci/linux/commits/Ard-Biesheuvel/bpf-permit= -JIT-allocations-to-be-served-outside-the-module-region/20181123-033144 > base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git m= aster > config: x86_64-randconfig-x002-201846 (attached as .config) > compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 > reproduce: > # save the attached .config to linux build tree > make ARCH=3Dx86_64=20 >=20 > All error/warnings (new ones prefixed by >>): >=20 > kernel//bpf/core.c: In function 'bpf_jit_free_exec': >>> kernel//bpf/core.c:632:24: error: 'size' undeclared (first use in this f= unction); did you mean 'ksize'? > return module_memfree(size); > ^~~~ > ksize > kernel//bpf/core.c:632:24: note: each undeclared identifier is reported o= nly once for each function it appears in >>> kernel//bpf/core.c:632:9: warning: 'return' with a value, in function re= turning void > return module_memfree(size); > ^~~~~~~~~~~~~~ > kernel//bpf/core.c:630:13: note: declared here > void __weak bpf_jit_free_exec(const void *addr) > ^~~~~~~~~~~~~~~~~ >=20 > vim +632 kernel//bpf/core.c >=20 > 629 =20 > 630 void __weak bpf_jit_free_exec(const void *addr) > 631 { >> 632 return module_memfree(size); > 633 } > 634 =20 >=20 > --- > 0-DAY kernel test infrastructure Open Source Technology Cen= ter > https://lists.01.org/pipermail/kbuild-all Intel Corporat= ion > <.config.gz>