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 02461C4332F for ; Tue, 12 Dec 2023 16:36:10 +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=O4hiJVEZXNETxat7rRHfuqEL1aU143ayLtJ3IjR11FY=; b=3anXSfwCd4IzyB Ervg9Tp9ZOKylkfDzChnbVichQOTjkzTrwhnFhiL4RlOuBHZZgviZUlCGUuU/bZx9HK3OCqP+DOhm vByQ8WkgC5xY0+AtyhbG/8EAzpoqgHrMgcv43YJQ1wNMpqbgumZVBJxIzQnxNYv0IM2ykfkJskOz6 XfYCKUANHZUtHyAeWn1Wg0mih6vi2IZQ2ZGAMWBKjObYyAi3haB03e0x0qz9D78mIskpcMFwAItwn hn6tNd9LqOWWluvU1PIlX4psxq5Vn6jB7hfc0mkzzjuflX91bFO363ylv1vGWpIiLrBBTsYejcEpI Nfn/9fsL738Q9jaAr8Qg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rD5jO-00CEou-24; Tue, 12 Dec 2023 16:35:38 +0000 Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1rD5jM-00CEob-2q; Tue, 12 Dec 2023 16:35:36 +0000 Date: Tue, 12 Dec 2023 08:35:36 -0800 From: Christoph Hellwig To: Will Deacon Cc: Ard Biesheuvel , Ard Biesheuvel , linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, kernel-team@android.com, Mark Rutland , Sebastian Andrzej Siewior , Eric Biggers , Kees Cook , Marc Zyngier , Mark Brown , linux-crypto@vger.kernel.org Subject: Re: [PATCH v4 0/4] arm64: Run kernel mode NEON with preemption enabled Message-ID: References: <20231208113218.3001940-6-ardb@google.com> <170231871028.1857077.10318072500676133330.b4-ty@kernel.org> <20231212105513.GA28416@willie-the-truck> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20231212105513.GA28416@willie-the-truck> 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 Tue, Dec 12, 2023 at 10:55:13AM +0000, Will Deacon wrote: > As discussed off-list, the vague concern was if kernel_neon_begin() is > nested off the back of a user fault. The BUG_ON() should fire in that case, > so we're all good. I think we should really document all these rules, and Samuel's series to add the portable FPU API would be the right place for it. I'd also really love to see objtool support for enforcing the various rules where possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel