Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp657325ybg; Thu, 19 Mar 2020 06:31:40 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvtliaTxXRaQoJYX20uMRknKXQMzp9ebGuhf3RZGSa5W8wlDkCOLkX3RToT2yrW9biLJclr X-Received: by 2002:a54:410c:: with SMTP id l12mr2349759oic.13.1584624700855; Thu, 19 Mar 2020 06:31:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584624700; cv=none; d=google.com; s=arc-20160816; b=aeww0sqwIXo1YLb4ZjNQPtZKHrFmFRH4p1NJIJeMeH5I47t11vC0e5aHcGfri9SvKi J+92PcmaFbNK92VoeQ9laK2vuROGvmJ6c5m0HSAufqiO7jn1GdRgww73h6nzeNO0J9EV X7rz9r7n4pO87nfUI67Wz+evTUzTt7+HYPGXQZkfFaFhhkvn9OejD3lNbTAHqepyMBnh dz0tkC5m+yX8PTgdqcfX+pYRwRqGQX9CDGuGsprhAx3KZrD0MXGHx5m3S5erWoU2GlzD 26nPifZ+CPh0S5T8ravYjWCmkt2W0vHh2I7P1VpT/gAygzLLSD3sjpTQV/AshNMw+46f YF0A== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=AqUOdyL6UcaT3l/qNt5rfNjegBeE9/rSjg8jp9TjxWc=; b=wkIWZjVPOJivj65wCbGdWKcbIzZqCmbOBAajuksa/sS12t+3plFNra5a0KtnL/JqOH kk2fVTjE7FZJz7Wfdrc9m3ln+q3fl1R1pSj7oX1mncwdN6HPeZUwGYgNdCNdGqTtyMYv h+NJL9njsFtR7SXBwnd2kMXw/3qXa9eO+LDvQ7MvEs/BO6rf9tj8urRl8ct1OXvx7AtF 4isZkxNeZ4aJ+uQolXA64kktOCOu56elTiQQzQx0w6G8jvCYpeO3wwD/oILUHUq3H2AJ fd/SP8TLDwMkWKjPSj/6I4wUShJyx+fkDSRSXxDGQORRi2giAKcBdZll//Gwf94+Rwqf akeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ROSsNHA7; 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 c22si1035897oib.266.2020.03.19.06.31.28; Thu, 19 Mar 2020 06:31:40 -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; dkim=pass header.i=@kernel.org header.s=default header.b=ROSsNHA7; 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 S1729439AbgCSNbG (ORCPT + 99 others); Thu, 19 Mar 2020 09:31:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:42170 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729842AbgCSNTJ (ORCPT ); Thu, 19 Mar 2020 09:19:09 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 82EB621556; Thu, 19 Mar 2020 13:19:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584623949; bh=TrcHvj+t0zhknyADv/MVGhq72AnAb4DxejAlu6KPi50=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ROSsNHA7MN7fn012yc+M+ZCrVYg4wTRpm4k4UVPpSzxQNkGj4hAcOFxbgJeYv2ap3 nMbqILPc/VjNc92ypAuxw9BmNCqyPSu5KtrdbBAaCGnn/BPXoYat9hdp7K3QOYV/0B DbLpYn8qWxS3dhnTtJBcKMU6eCi2XpRk1X8EVBWA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kees Cook , Ard Biesheuvel , Nick Desaulniers , Russell King Subject: [PATCH 4.14 97/99] ARM: 8958/1: rename missed uaccess .fixup section Date: Thu, 19 Mar 2020 14:04:15 +0100 Message-Id: <20200319124007.995068803@linuxfoundation.org> X-Mailer: git-send-email 2.25.2 In-Reply-To: <20200319123941.630731708@linuxfoundation.org> References: <20200319123941.630731708@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kees Cook commit f87b1c49bc675da30d8e1e8f4b60b800312c7b90 upstream. When the uaccess .fixup section was renamed to .text.fixup, one case was missed. Under ld.bfd, the orphaned section was moved close to .text (since they share the "ax" bits), so things would work normally on uaccess faults. Under ld.lld, the orphaned section was placed outside the .text section, making it unreachable. Link: https://github.com/ClangBuiltLinux/linux/issues/282 Link: https://bugs.chromium.org/p/chromium/issues/detail?id=1020633#c44 Link: https://lore.kernel.org/r/nycvar.YSQ.7.76.1912032147340.17114@knanqh.ubzr Link: https://lore.kernel.org/lkml/202002071754.F5F073F1D@keescook/ Fixes: c4a84ae39b4a5 ("ARM: 8322/1: keep .text and .fixup regions closer together") Cc: stable@vger.kernel.org Signed-off-by: Kees Cook Reviewed-by: Ard Biesheuvel Reviewed-by: Nick Desaulniers Signed-off-by: Russell King Signed-off-by: Greg Kroah-Hartman --- arch/arm/lib/copy_from_user.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/arm/lib/copy_from_user.S +++ b/arch/arm/lib/copy_from_user.S @@ -100,7 +100,7 @@ ENTRY(arm_copy_from_user) ENDPROC(arm_copy_from_user) - .pushsection .fixup,"ax" + .pushsection .text.fixup,"ax" .align 0 copy_abort_preamble ldmfd sp!, {r1, r2, r3}