Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6300016ybv; Wed, 12 Feb 2020 09:32:42 -0800 (PST) X-Google-Smtp-Source: APXvYqyC7OzSF8Kx02BbH76vMhnlQSV9SAT6WmpDzKmSMh2oxv6G2ymFchC18h4U48F8Z7weLQ/S X-Received: by 2002:a9d:6f8f:: with SMTP id h15mr9670935otq.1.1581528761399; Wed, 12 Feb 2020 09:32:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581528761; cv=none; d=google.com; s=arc-20160816; b=cmpFelT3Ik19Gzck/scX7VsK1R/af/Fux1wxJhwc6gtjbX3GjQQXgqKK0/s7Sgbwm+ XWYG1F7vICr0FEad2urtooNa/igJrme6mSy9odXkLRLPLrXaAp7tGXL3ML/R2TeqGBs1 WJ8X5zfQvWak86WRO72BD0RDOESDlZHrde8UZTgHerQrFtH0PvB+B6ZItnyh22hY9aPB tTo4IHtpzbVDaMWej5v4S91ZsLYFlaNLA9Z4dj0mRL+nObxjkwKafXrWu4GEavKWVfP+ A5nJM13UM6EfhiVup3ADXosIf4C4qYdMMG8IXGm/fCkdUeT3/JQLMWegcrP7rOKbUXha XSQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=XgpctoHh6dg1wxvj3BzSThVl8kpcEhXa3sNGXPcFbT4=; b=QohVPbATi33g7a8253w4tEC/Tfx7xE4xyy7W5nFqYxiSRv20W7TkrqxBg0L/aGCWQJ xRzBkMiHiTUCXDqW3WEHBGbx0+yCPeSYx3iMbnd0xPsM9ojn8XKeLh0WoaKGtbih2ppz +WP7Wtv9BpY6ps8ZkCJ7OHVaW8qAzptjgZGv4VhEtrCurQWUOgEfmWAIE+RNTB3Eofqn blf2LJsFSexsixpDct96TpNXDsczyHy9g7tJogomlPcQlT5f4ZFvbKWKSDW5LEKJdv0L N8J4AQytFUR/yHo/r2uqYoPXlYDO6SK8YRjn80xBcARjDJ8cTHi3nwPqVTTdQ8jXfbGh T3WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=BtezE3UK; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1si507488ota.259.2020.02.12.09.32.29; Wed, 12 Feb 2020 09:32:41 -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=@google.com header.s=20161025 header.b=BtezE3UK; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728673AbgBLRbC (ORCPT + 99 others); Wed, 12 Feb 2020 12:31:02 -0500 Received: from mail-vs1-f68.google.com ([209.85.217.68]:38223 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726982AbgBLRbC (ORCPT ); Wed, 12 Feb 2020 12:31:02 -0500 Received: by mail-vs1-f68.google.com with SMTP id r18so2030375vso.5 for ; Wed, 12 Feb 2020 09:31:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XgpctoHh6dg1wxvj3BzSThVl8kpcEhXa3sNGXPcFbT4=; b=BtezE3UKOP32S7Hgi6uAZOCn9BCk1YLzZTI/31neMRdDIAastd/PkKexEg5uWIeSlq /hFI/msrF2GQcVhisW/RaJNrJGmFkKA4SeD0lHwdM4ey9ghkS/K+yx90I62OEmTesdwF xzMU/2Mq+v9/Okdl/2mUjBYKqE6P9vJw2KVomx5TFhjbaK/lu0Q6tw2rFDTRVzvD2KxL boPGPbPxe+RpyEehZt6ohw9y9NodMcdQmgyDLVMfAAlCQ41OBvoUAldOafMsvbSOhhvM Ujf9+E+XNGlSxbjxgY5T1BHWqvckIdfOYnsyRjOxsWx6G6V+xqkaOcye9xpAB/GIw4Zn EW+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XgpctoHh6dg1wxvj3BzSThVl8kpcEhXa3sNGXPcFbT4=; b=BTtNqvPUhg+LpmzaHm/rHRHIwky3dnp2bqcXfZr32ZREQgpIAl4Zvc3i87VoSCYcKN KJa+ywz+S5k4tPtt59375NEhAFYpZ13pUObnzYoI2zR60iyTt/GUrabPp+XgjijhZ5L7 BeE50TnXAv7sgkymTjZ0Vsnj1Jpq3Jm0zj3QMZAPkXnlfqaPkTzTgm93i1C6ap4EP1EY +Ix59rKLD1wpuaWLNdl0EYDBDrZOP+aFzBCEyK57EDpGHAduHD5kMJy7hW9H2w3uUCBb QWxNqWNAZeA8xt02WarocaMPQ/BkY1R0N0vvH01QuGHEzo8wP1IBZ0jzHGtv8zhgxz3v 2emg== X-Gm-Message-State: APjAAAWnG2x7CvzcO63KuiWkEjSYjjbcQ3aK56vyZPA9ria1uu0abH6G OoIoLYU0kaBLgEAMLgS4deu54gb1omr6Wgo4AyQZzA== X-Received: by 2002:a67:f4d2:: with SMTP id s18mr12516774vsn.15.1581528660711; Wed, 12 Feb 2020 09:31:00 -0800 (PST) MIME-Version: 1.0 References: <20191018161033.261971-1-samitolvanen@google.com> <20200128184934.77625-1-samitolvanen@google.com> <20200128184934.77625-10-samitolvanen@google.com> <6f62b3c0-e796-e91c-f53b-23bd80fcb065@arm.com> <20200210175214.GA23318@willie-the-truck> <20200210180327.GB20840@lakrids.cambridge.arm.com> <20200210180740.GA24354@willie-the-truck> <20200210182431.GC20840@lakrids.cambridge.arm.com> <20200211095401.GA8560@willie-the-truck> In-Reply-To: <20200211095401.GA8560@willie-the-truck> From: Sami Tolvanen Date: Wed, 12 Feb 2020 09:30:49 -0800 Message-ID: Subject: Re: [PATCH v7 09/11] arm64: disable SCS for hypervisor code To: Will Deacon Cc: Mark Rutland , James Morse , Catalin Marinas , Steven Rostedt , Masami Hiramatsu , Ard Biesheuvel , Dave Martin , Kees Cook , Laura Abbott , Marc Zyngier , Nick Desaulniers , Jann Horn , Miguel Ojeda , Masahiro Yamada , clang-built-linux , Kernel Hardening , linux-arm-kernel , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 11, 2020 at 1:54 AM Will Deacon wrote: > Thanks, I missed that. It's annoying that we'll end up needing /both/ > -ffixed-x18 *and* the save/restore around guest transitions, but if we > actually want to use SCS for the VHE code then I see that it will be > required. > > Sami -- can you restore -ffixed-x18 and then try the function attribute > as suggested by James, please? Sure. Adding __noscs to __hyp_text and not filtering out any of the flags in the Makefile appears to work. I'll update this in the next version. Sami