Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp482977imu; Thu, 22 Nov 2018 00:16:19 -0800 (PST) X-Google-Smtp-Source: AFSGD/V+s4ZBP7iQ73haPV26i8DBEkssjrxEO+N2RwHT+ZGHT+y4lwigUWBgN4uAU8WBPc4OBaOy X-Received: by 2002:a63:5d55:: with SMTP id o21mr8977149pgm.92.1542874579324; Thu, 22 Nov 2018 00:16:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542874579; cv=none; d=google.com; s=arc-20160816; b=D2xGd4ArhSYDInOhSWOBO4jBCKj0GohEv3cBC28JFCLGub6GuNevAxzQy/hHDaT2dI ovBtIRrt2bRA4fGyy7+5WqD8jEAwscno5Snqxg4JsXv5FFQXlBJ7JhGWsoHhW/efvrov 7wkepzhu0AW/7/6eHLYgjCRpg4uWS7PknSMg4t8BoQVRRSZSP+7OqQ5VJjbDO04esnDD xlyRxtgsCkC2DAJz0NRUhnY3/3ODYVkstMkCA95WzGxkSTCCXRNPWEQyf+WPVPPZkyCx fjOj1W0sQcHq7ET+SnKfRZznDJZHN67yIMckXpw+PLqPWHlBKj+teAnJIWInYX4OC08/ j0rQ== 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-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=7/umXGXBV3C2e+3VNDbja6cAXnD2lMfY4lBkbez89IA=; b=xPehuuw6jXGUmfmjOxHn9IfZVpcX2qaTvV3493yn8frhgkpZohRLK54Ae0LlHoODvw nXISxXm7rq8qCBY4cY0ytM7PpzSAsRJEfoVgYbYGKGe2Hle/sWs8skMNXE9a4XKFVenT m6MjMmuvXNowvKM3pGxWA8exidDyQR2mzlEi+wnbE+MxQfTv4HJNQmMDQHDQqrFNIBF9 RDB1cOXzBrWHwJ4Z0G7yuQE+ZUwNXZYndqa5pFP0/7A/IrVLJTUcihOyZHuAb3JbFSUD 00wsYIED8NSrwf0RdEZvlGzpyNOhaTTfm8MUTB+m3+GCxQ+plqzrqAShj6RsTU/tE74K doiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=kiKmmD2a; 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15si18371585plk.357.2018.11.22.00.15.29; Thu, 22 Nov 2018 00:16:19 -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=@oracle.com header.s=corp-2018-07-02 header.b=kiKmmD2a; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389804AbeKVHv3 (ORCPT + 99 others); Thu, 22 Nov 2018 02:51:29 -0500 Received: from aserp2120.oracle.com ([141.146.126.78]:60580 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731503AbeKVHv2 (ORCPT ); Thu, 22 Nov 2018 02:51:28 -0500 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id wALL4Bid174985; Wed, 21 Nov 2018 21:14:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : content-transfer-encoding : in-reply-to; s=corp-2018-07-02; bh=7/umXGXBV3C2e+3VNDbja6cAXnD2lMfY4lBkbez89IA=; b=kiKmmD2aa0O4zM8bCmL4nygC17oR3hx4e0a+gEwVlt82XnFJk5QW79+TMVSKmVrYvjgY zVbindcfLPr/jmLDYYjQcwt/MLvyRCR3fACNfXUhl9kZ8krl4ixTdn5KQGJPnVw/Zh+W XC9y7cJ1JqHjEcC8XvL95irH6gGlUWqtWSNiubsrsHmDzPJxQv1hskE9kluPokWsdTYD Sr75y7zJgbz8mmAwsKamJNZMN1oYHIBRfBz2F6HsdX1wA9A3VeuEuFVqKOFvZyEXoDG2 DPSc+zfdR6+hzTbx5D3vHimZQTnVElrhtx3JuHRGW8Ucz6ktLr6JTVxjtXiYnUk5jVFm Gg== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2ntaxqbqcy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 21 Nov 2018 21:14:56 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id wALLEtIG008043 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 21 Nov 2018 21:14:56 GMT Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id wALLEsKo010846; Wed, 21 Nov 2018 21:14:54 GMT Received: from oracle.com (/23.233.26.138) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 21 Nov 2018 13:14:54 -0800 Date: Wed, 21 Nov 2018 16:14:47 -0500 From: "Liam R. Howlett" To: Nadav Amit Cc: Ard Biesheuvel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , "x86@kernel.org" , "Peter Zijlstra (Intel)" , "linux-kernel@vger.kernel.org" Subject: Re: Out of tree module build errors since v4.20-rc1 Message-ID: <20181121211447.weqjjk2fwbc27er6@oracle.com> Mail-Followup-To: Nadav Amit , Ard Biesheuvel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , "x86@kernel.org" , "Peter Zijlstra (Intel)" , "linux-kernel@vger.kernel.org" References: <20181121205633.oxksehwjg5a2q6rt@oracle.com> <5A24CA1A-3059-44BE-A0D5-4E29FC6E5BE9@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <5A24CA1A-3059-44BE-A0D5-4E29FC6E5BE9@vmware.com> User-Agent: NeoMutt/20180716 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9084 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1811210184 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Nadav Amit [181121 16:12]: > > On Nov 21, 2018, at 12:56 PM, Liam R. Howlett = wrote: > >=20 > >=20 > > My out of tree driver build is now reporting issues with the jump table: > >=20 > > ./include/linux/jump_label.h: In function =E2=80=98jump_entry_code=E2= =80=99: > > ./include/linux/jump_label.h:153:14: error: dereferencing pointer to in= complete type =E2=80=98const struct jump_entry=E2=80=99 > > return entry->code; > > ^~ > > ./include/linux/jump_label.h: In function =E2=80=98jump_entry_set_init= =E2=80=99: > > ./include/linux/jump_label.h:180:7: error: dereferencing pointer to inc= omplete type =E2=80=98struct jump_entry=E2=80=99 > > entry->key |=3D 2; > > ^~ > > ./include/linux/jump_label.h: At top level: > > ./include/linux/jump_label.h:212:26: error: array type has incomplete e= lement type =E2=80=98struct jump_entry=E2=80=99 > > extern struct jump_entry __start___jump_table[]; > > ^~~~~~~~~~~~~~~~~~~~ > > ./include/linux/jump_label.h:213:26: error: array type has incomplete e= lement type =E2=80=98struct jump_entry=E2=80=99 > > extern struct jump_entry __stop___jump_table[]; > > ^~~~~~~~~~~~~~~~~~~ > >=20 > >=20 > > This happens in v4.20-rc3 as well, so I bisected between v4.19 to > > v4.20-rc1 which resulted in the following commit: > >=20 > > b34006c4258c9c86597b6b7123d6a9a3513d6cd7 is the first bad commit > > commit b34006c4258c9c86597b6b7123d6a9a3513d6cd7 > > Author: Ard Biesheuvel > > Date: Tue Sep 18 23:51:41 2018 -0700 > >=20 > > x86/jump_table: Use relative references > >=20 > >=20 > >=20 > >=20 > > Initially I assumed this was my own fault, but my module does not have > > these issues when using v4.19. Is there anything I should try/change in > > my module makefile, includes, etc to support this relative reference > > code? >=20 > Do you see HAVE_ARCH_JUMP_LABEL_RELATIVE set in your kernel config? >=20 Yes: $ grep HAVE_ARCH_JUMP_LABEL_RELATIVE .config CONFIG_HAVE_ARCH_JUMP_LABEL_RELATIVE=3Dy I should have mentioned I ran 'make defoldconfig' between each bisect.