From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 23F17C433FE for ; Wed, 16 Nov 2022 17:42:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NlDPbIl76xIhnMw1pbmLzBGmK2soTrAdOgpjKN/R0vQ=; b=mDFk6pD4kUknSN WLpqwJf1vcEVz8fyelVfN2ZikXbsVma062QecVE771V99ARuSJBmd/P20J5w/WqDEPt9F1xmaPY83 8YNOrPrRXr5hoSplRf6yHsu1nimADCnT51zWC8TB/pHyIR4miIoiuQ3DHjtUAezILDMqhdl3/0k9P p6IopvGgZBEOYRKRcW7QwUJKedYK73yxkwj7ScW3mqkuOKy2k4U/oao2HBtRvlx5G31+rWMMM0INP XN5kGtL6raA4joQq5txrUHqhda4ughG5xQU56U4vRCEtrh8RBXSvK8vC583eKtCB0CpvYObq0aXGb VLZZJ7w9Up8zqT45HgcA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovMPE-006XNF-D3; Wed, 16 Nov 2022 17:41:00 +0000 Received: from out0.migadu.com ([94.23.1.103]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovMPA-006XLY-QB for linux-arm-kernel@lists.infradead.org; Wed, 16 Nov 2022 17:40:58 +0000 Date: Wed, 16 Nov 2022 17:40:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1668620453; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UeHzaO43ieDLq7wwhIBNc0s+wJATCXogm0raxMCfGWE=; b=pqyd2RsnfABs06vS5s5WxiQGhS1jRoM4fH9iQsAOtiiS8O6XHYiigIlXxmCrSjoF4nMzly pY5mZkvWrJSuVRNxiqWNrnZenDNsvOeGKDMFOO0zdxlmTp4wH0/E5dYOxICw9PktqrNXG/ 6DZliVD5ffi7Gn6qCuvX0xTylIrybgY= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Quentin Perret Cc: Marc Zyngier , James Morse , Alexandru Elisei , Suzuki K Poulose , Catalin Marinas , Will Deacon , Sudeep Holla , Andrew Walbran , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, kernel-team@android.com Subject: Re: [PATCH 03/12] KVM: arm64: Block unsafe FF-A calls from the host Message-ID: References: <20221116170335.2341003-1-qperret@google.com> <20221116170335.2341003-4-qperret@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221116170335.2341003-4-qperret@google.com> X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221116_094057_290755_73B8D4D6 X-CRM114-Status: GOOD ( 10.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Nov 16, 2022 at 05:03:26PM +0000, Quentin Perret wrote: > From: Will Deacon > > When KVM is initialised in protected mode, we must take care to filter > certain FFA calls from the host kernel so that the integrity of guest > and hypervisor memory is maintained and is not made available to the > secure world. > > As a first step, intercept and block all memory-related FF-A SMC calls > from the host to EL3. This puts the framework in place for handling them > properly. Shouldn't FFA_FEATURES interception actually precede this patch? At this point in the series we're outright lying about the supported features to the host. -- Thanks, Oliver _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel