Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1887286imw; Tue, 5 Jul 2022 17:54:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sA+HKr2+8RcbNE+BZgldesZSESxNkQnDDy2ZdHQB5zUk7Gw34WjA0+BeYSJ80jEqZBikSA X-Received: by 2002:a17:90a:d188:b0:1ef:980f:c2e7 with SMTP id fu8-20020a17090ad18800b001ef980fc2e7mr8431226pjb.96.1657068860580; Tue, 05 Jul 2022 17:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657068860; cv=none; d=google.com; s=arc-20160816; b=m/dRdrYv+DbqSawT8lnQxrMZhcx/c9XrZ63Pq9s+mdy0xLcOw0TigvNJ7ySudCU+u0 cfO5Jv4rcYErsfAeImk8Bit46G5GTbTYEvRyjDD3IaHdaecFSg1fOHe8BgmtiN5Y6EuD kH+YxjLQuowQ3KgySyoRnUFc+azbTQFLP91rKYa30R5NkwtWF3YerCedHpVn/N9KtFTr AahbPpAKeYyAgVLYNsMSSnAyXuQw+BHyA/+iuIGiLHPPv+vVyfLD08VzLHgGQAwZ/kcf QyHnLVzckSSa8hMiSR5RN//mYKjWP/XDqOCdJD4STV9bpGBB683vu/U1FXahSX5XNjCw b69g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=VOvaDft7TivfxP2HEk2o64YGGNcoyTDXZ1u6YFbf+SA=; b=fq1cmoAFHD89so1O2UAX29VUNDMXqK1wY5QOyC8+V3Ccfa0xiFSoe4FYSDoeXKIp0M Doan75WqTow2ePKXYfeeo1eK7HOWhA+4nnccKvia1GoWrV9IBtpZ3E0ZES9h7+0NGSCH f/g5pALzJxS6jpjPII8xxNKC4oDA9HXa5XSu1vZ4JJkyoItioI1hy85IJ8nEAbFWEGVr PHAO8WVRxELoHsrtN3Gq4wRTHI5JrU9ae3H24qTciEoH6BQ8JlVP98ncsW+Uj3h6+Ri+ cUXE+kQCpdQVnh5x3ib934jj0mR9urMm8A3XxWYByacPyoWb4IFroXRPy+xEDNMq5Rrc vN6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RCifeka0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 141-20020a630093000000b0041235fa2d03si11669070pga.388.2022.07.05.17.53.38; Tue, 05 Jul 2022 17:54:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RCifeka0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229989AbiGFAJ0 (ORCPT + 99 others); Tue, 5 Jul 2022 20:09:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbiGFAJY (ORCPT ); Tue, 5 Jul 2022 20:09:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61D9A18349 for ; Tue, 5 Jul 2022 17:09:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 01E366119B for ; Wed, 6 Jul 2022 00:09:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7884C341C7; Wed, 6 Jul 2022 00:09:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657066163; bh=nmM87fXlEUHDXHmTIV5KiaJWvg7wd0eeXa7YN6/Enho=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=RCifeka0nYKgQl8dl2nBrU++6Xatlkma1RYc+qHu9nfG8sE8w85duz9aAnsitto54 IfP88SZ/5Z5BQJ/ZD3i00Fk/DlBagjViR0dvElzw2g0vepr1ZirGkm/TsWOAuQt7+E pLm9w7TXDMPiJmDYNXoEPhmdtVc+5aSpahoE1KJwPfYKCsqAkLZinmeV9u9tU0tRst eszx/GQR2/dUiXAIAzgU2sTwfJuXcF5nhsHZBF05MFDRvKOIborijnvjwWLfHinW9L bw0Jd789ilulddyeKtl/fQ9UvSs2fJez/hi2vuVb9wAY633FQUQNLxuMuZ0KOJLq0H hM/gcgNmxWo/w== Message-ID: <6cf4bab7-8c38-a2ee-07b9-fc95f901d2cb@kernel.org> Date: Tue, 5 Jul 2022 17:09:21 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH] x86/Kconfig: Allow X86_X32_ABI with llvm-objcopy in some cases Content-Language: en-US To: "Alex Xu (Hello71)" , Nathan Chancellor , Peter Zijlstra , x86@kernel.org, llvm@lists.linux.dev Cc: "H. Peter Anvin" , Nick Desaulniers , Masahiro Yamada , linux-kernel@vger.kernel.org References: <20220701210437.579322-1-alex_y_xu.ref@yahoo.ca> <20220701210437.579322-1-alex_y_xu@yahoo.ca> From: Andy Lutomirski In-Reply-To: <20220701210437.579322-1-alex_y_xu@yahoo.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On 7/1/22 14:04, Alex Xu (Hello71) wrote: > According to the comment and commit message, there are issues compiling > with IBT and/or compressed debug sections. Therefore, the condition > should be restricted to when those are enabled. This whole situation is gross. We code in the vDSO that needs to dereference a genuinely 64-bit pointer. The x32 toolchain doesn't understand this, so we have a massive hack using objcopy. I see a few solutions: 1. Keep the hack alive, with further hacks like this patch. 2. Drop the x32 vDSO. 3. Drop x32. 4. Get gcc and/or clang to add actual support for this. I admit I'm partial to solution #3. I wonder how practical #4 is. --Andy