Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp112711iob; Tue, 17 May 2022 20:38:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnOD957LwegbPfOEB8LPEFn0w0lQpase1K2YZuN708shJ6u9EEZ/7obwrALnZHzdOaPuEe X-Received: by 2002:a63:1514:0:b0:3f5:f601:41d8 with SMTP id v20-20020a631514000000b003f5f60141d8mr1890613pgl.53.1652845096238; Tue, 17 May 2022 20:38:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652845096; cv=none; d=google.com; s=arc-20160816; b=Hb1b2R/V+x4rIgG1116xj3gljeosIwUCUOZA6Ld9lK5U0tEH3XNMrK66VREgex4Yfv eVxtPM8nYxf5JsPtrTsMIe4C3XNZ0uOasX52r7BxMB5IHcD1rxQFbQBNnJ5d0V7vkYV8 SGZSCTJBn2RTv6ZD7MA+feP+S4w8vJEZcV67sqnRnR3J/cl/OPRZ4qGR2ayqwm//Mgry xvW/MjHpSc4B8xoo5as+Rm5wGzRd38ro633uuqSkl9PHbwahYSJVLf5LT3wQ5tQ5HQS0 DK0nW130zygjoLjFkr9HQF4PsmDk7DNQEQJZ/IrsJwfK1yrt92652BqybuT98l7hL5Q5 jp6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=vULmu21hHhV9da0XUy51QiOU8riK7o2VRQ1ISsz4UDs=; b=OXTqbxYhjzPKN9508XqUJj36zLZatucZlxsxxZx6ESxOKlkuWp/boreyRVvv8lVQ52 LTj0sUBNe+vMxlNkKBfi1ztlORYqAD2WfUFv+DywnWntYI8hROf6peGBSKgtQhVrAFg9 Ry3ML7GXijbxXBOCUZzNEw+WcgkO+fDFFITkj/OGK2wy/BfMLaXVvX4krxRdFXqvOKLE bYHOskcYq8LkpdTsWWD4NKYyajNwgy3PO3hK21TAHtCxvKbUrdwKiEthdikXmczYu4pj u+SeBKfkiWjMB/CyYn9HqFc8hov41MfWe6KEgkJufZJnjcUgDriQnq2S7z8mqkF4cyMl XQEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k13-20020a635a4d000000b003f283c38c7bsi946028pgm.850.2022.05.17.20.38.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 20:38:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B774171A37; Tue, 17 May 2022 20:26:57 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243153AbiEQI1k convert rfc822-to-8bit (ORCPT + 99 others); Tue, 17 May 2022 04:27:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243014AbiEQI0s (ORCPT ); Tue, 17 May 2022 04:26:48 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BFC8433E8E for ; Tue, 17 May 2022 01:26:46 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-206-u0rpxtwWMv-63K0ptBJSiA-1; Tue, 17 May 2022 09:26:43 +0100 X-MC-Unique: u0rpxtwWMv-63K0ptBJSiA-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.36; Tue, 17 May 2022 09:26:42 +0100 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.036; Tue, 17 May 2022 09:26:42 +0100 From: David Laight To: 'Peter Zijlstra' , Mikulas Patocka CC: Linus Torvalds , Josh Poimboeuf , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] objtool: fix objtool regression on x32 systems Thread-Topic: [PATCH] objtool: fix objtool regression on x32 systems Thread-Index: AQHYaWt5OldbokCz9EWxs3iZW4E54K0iu3XQ Date: Tue, 17 May 2022 08:26:42 +0000 Message-ID: <738a941ba2ff4e2db8f2268b281d9bd5@AcuMS.aculab.com> References: <20220516212517.GP76023@worktop.programming.kicks-ass.net> In-Reply-To: <20220516212517.GP76023@worktop.programming.kicks-ass.net> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peter Zijlstra > Sent: 16 May 2022 22:25 ... > A quick look seems to suggest at least all the 'offset' fields should be > u64 or something. The only reason that works is because -mcmodel=kernel > keeps everything in the 2G range to make s32 immediates work. But it > isn't right. Offsets in instructions are only 8bit or 32bit. The mod/reg/rm and SiB encodings don't support anything else. If offsets might be large then they have to be loaded into registers - which will slow things down. Immediates can be 64bit (but not if the addressing mode includes an offset). David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)