Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4761042rdb; Tue, 12 Dec 2023 08:36:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IGuFgZj2qLZ26fAyhaXPV5nCT9PdeOib823bom7z2U+do358tiDLRO3PVBSFC3jIDpaSmg0 X-Received: by 2002:a17:90a:aa09:b0:286:a2a3:1e56 with SMTP id k9-20020a17090aaa0900b00286a2a31e56mr3073088pjq.29.1702398962910; Tue, 12 Dec 2023 08:36:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702398962; cv=none; d=google.com; s=arc-20160816; b=Sscf3hCOajiKo4LwuuTZ0AU1XB5cuzHR7smm/cgpkM1Nm8KSgGsbEVPxip2bf0urFr 8+ny0g0xRH13eqzYOEIssaHrI1HInvE41xWbXnWjeCZ/HrK8EtNEJbQfJeSY1MQxy50n WxV9tHyFrBCHejQoYAgvw7XBljOgfLvltw50Yrsbj1ULs2GYMhGDjtay6Q1Dm0BY2yE5 odzwgtq/AbLrqD5ASt8CVCOcK5IHIamNCRS3SPRLyHTDt8RSFTENjLQAxxNNgMmiEOuF L7SNQCMvfOXyJAaUTV/pWAyqExGrbXswr81i7JnqmeDyRGZZ7c5wCdCllxptwrCKHx2j DumQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1t5R4lCpMqAC7TdLx4pToc8upY1ucjgCx1PSqABbd24=; fh=URGBqXKbD7LKScrA3nNUm9XbbDeUZR2Zb7H/VzNLg7s=; b=r3m/CR1x5mTsY8Hi+jf4Xy9s5MNOQehQ2g+QLVAHyZxtRhkHksFVDaRcjkxiCsr1RI OqrLK5uF0G2Lp0AO0YpV9IXKXF9AN/YU2+CQJnuYgkTAWDoq0LNb3UxDXjSkKGzfpPvJ L6jUuPK2QgpDdP8Fjhbbo900ThIK81O/svLn7iuw2hpjI9gJPLpfzS99h2gsIJYXBggN SzE9VK/jrOkAqoCBF/TjfFYEoo1S5FweUfhzN7lfC3FsLQq0gE6zOsQtkPd4daYHMVHc eJpmXQYCWoGAeiC/fVUN3IfzOz5+kzkvRZ+u/E8aI8KYPV5H7OeGZSmTQ8dMfZj8v4PG 9GYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=2FaSP8yJ; spf=pass (google.com: domain of linux-crypto+bounces-772-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-772-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id kk14-20020a17090b4a0e00b0027ffa51a805si8307095pjb.38.2023.12.12.08.36.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 08:36:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-772-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=2FaSP8yJ; spf=pass (google.com: domain of linux-crypto+bounces-772-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-772-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 95039281B10 for ; Tue, 12 Dec 2023 16:36:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 20E967B3A4; Tue, 12 Dec 2023 16:35:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="2FaSP8yJ" X-Original-To: linux-crypto@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BEE9185 for ; Tue, 12 Dec 2023 08:35:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=1t5R4lCpMqAC7TdLx4pToc8upY1ucjgCx1PSqABbd24=; b=2FaSP8yJcr+mw/3e7JeV7m+Q+4 +8yeaX2INi+dXFa+VKO+M9V0oK/Kmre08IhEMEWiW0vHiuC5dofwm6CqGIRe8mPcEqPXaU5Pbpf9g KduMsve/Pi9fEY0SBLVsubTiP1rZ/dbNds28BrJodRWOsDkHjZlXdVjPlbdbxZSY6J/EwmlvowS32 2GLYLba4nxzuUAF1+2V139egllL4n+JuEl0tpY1/TgHuTB2zUbqvl3CVBIOFTE7Slkn6pPtevvUwu D+nxLHe/SPOFLwmH4e5GFDc9xsSiuqNcAoKkhlm2U3+0KCjW9aMg3mwZWrBdoIeyf6Csg+pAECjCk ZGOecMAA==; 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> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231212105513.GA28416@willie-the-truck> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html 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.