Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp26956imm; Thu, 12 Jul 2018 13:26:56 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfSPugSAnMTMmUWZMnAqRTeqJMtaAXX+uNjd7sCll4IpNg3PsLOP2sdovbNY6BV/NwSozwT X-Received: by 2002:a62:cc4d:: with SMTP id a74-v6mr3956646pfg.200.1531427216301; Thu, 12 Jul 2018 13:26:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531427216; cv=none; d=google.com; s=arc-20160816; b=ON50Rz/AF2tjkwogDp9InydfUMcsviVaBhEFH8xz4TjGO2oHt8xCxKPfOjc/mQMQjs tyzLOFiGvykpbbAcQiByLbaiA5kIYL1wJgyyCFdtmL/UKmu2pNNZk9g/ektnARF7pR80 87BIK/qo0/SIzIplCCa6fUMm8dnavBfPMSxbRzN2YPTIleR6fvfyIh75pOx4/3TT4kdT rofl4J051ZJGHgQ1+bS7x2ijNmI9FGmqlVO40V6REmA6636GP1teoBWA4rzVamxCMlPC eQwLNpw8KcyGnfKOn4tr39JViION98MK2yPpm8J7SRGVgVvBnMtwPWrhU72pe8vY69fy VNtQ== 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:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=Xw+ER2Jo79CUf16LYWujMtFupQQT4RddwWN1ImGaOZQ=; b=aFY2CeKm/bJ5VfXH9Iauff37m7vTHEiQl4J9oWZnFc+AaUDRweOYwvwl0Hk0Zvim3G /FGoY8wxueHHfPG/vfAlQbzrh9Atdys2YA5nzlvHrzEpt8NQrs3ejEwD2tn7ut7J7qNv 3ulhKojNzk//ws+T+FEowCk8o9VlcRh2sXgi8R61PpC/XuOgwSl5kI69R9JxHVZjD1bX v9Mt1NA1klZ7h4aUYHtWlcvgbD9XoXWQ75yjHfooLBZcZwWMHfe+iX/8uBLsRU6lhUOr 7ExswqKjR4GpOwi7rFm7XD0ZS6HMP/vesll3zuXV3g+tjybMB7h+ZoqAVzuiw6EU+fX0 LRYQ== ARC-Authentication-Results: i=1; mx.google.com; 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 a8-v6si22210317pla.35.2018.07.12.13.26.18; Thu, 12 Jul 2018 13:26:56 -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; 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 S1732572AbeGLUgi (ORCPT + 99 others); Thu, 12 Jul 2018 16:36:38 -0400 Received: from terminus.zytor.com ([198.137.202.136]:59129 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732437AbeGLUgi (ORCPT ); Thu, 12 Jul 2018 16:36:38 -0400 Received: from carbon-x1.hos.anvin.org (c-24-5-245-234.hsd1.ca.comcast.net [24.5.245.234] (may be forged)) (authenticated bits=0) by mail.zytor.com (8.15.2/8.15.2) with ESMTPSA id w6CKPFNq4039510 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Thu, 12 Jul 2018 13:25:15 -0700 Subject: Re: [PATCH] x86: vdso: Fix leaky vdso link with CC=clang To: Alistair Strachan , linux-kernel@vger.kernel.org Cc: Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Greg Kroah-Hartman , x86@kernel.org, kernel-team@android.com, joel@joelfernandes.com References: <20180712201032.156997-1-astrachan@google.com> From: "H. Peter Anvin" Message-ID: <47d4b24e-8c60-fb3b-3377-62d20c5f3dd1@zytor.com> Date: Thu, 12 Jul 2018 13:25:10 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180712201032.156997-1-astrachan@google.com> 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 On 07/12/18 13:10, Alistair Strachan wrote: > The vdso{32,64}.so can fail to link with CC=clang when clang tries to > find a suitable GCC toolchain to link these libraries with. > > /usr/bin/ld: arch/x86/entry/vdso/vclock_gettime.o: > access beyond end of merged section (782) > > This happens because the host environment leaked into the cross > compiler environment due to the way clang searches for suitable GCC > toolchains. > Is this another clang bug that you want a workaround for in the kernel? -hpa