Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.70.178.231 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796032773; b=RCWAYmuO6snbp9vO/DXzbzC5Mf/brIwSOmb/2fsslAKN6xZbMJ/ytUoynBi+J8J4AxCH CppMPpeGToxXE/ua5ifEQzAOJ90q2f6uthV3je8GVOgyUkOsKpn2jJqbkpqBPNVMFLVtL SjG/dQNYjkwPnUXTB0mgGpV0bp8bR54Kw+x+lqImrrXSr4Ypf17vOxhHsKwJ+fPrPfSj3 1JqIJit58aqXhfHK6I/LUNIp2og/frJbQhbOeA8N7KxGZAQ4SgVQ8pTWEvaBQNwlt1gFw ga02QXmxKjzoAxJ7LlhKmZ0Q5kiqpHmSP+mts8+0YfiqEyU0PTRjmKCfm8CGufSA5Tg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796032773; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:From:To:Cc: Subject:In-Reply-To:References:User-Agent:Date:Message-ID: MIME-Version:Content-Type:X-GND-Cause:X-GND-State:X-GND-Score; bh=SGxFnvwvvBmagfp046AZ71XsfCV8DJidxMp/8IBBu5I=; b=EgSZqAdEixdvQMvDxBb1CrbAJrcVZHkhDIiV8VUMf4Qa6LSXQVSP46OF1xEAKyrfPI+C ErTFYSam/jc/0+iWTAuqI8Sdw/Bx6CCjvLZRZbWBcbe60JCSEyYrk5fBDQZ/Mgov4EFQp K0PT7EmYrtNi5s7fhoIgdwer/ncrOzBY//agOz5IAA6a8bqSKRABmfC+liDa+hlvHO+eE lL+U9+f0RBYrmk0ouaEkz1zzuUU+xvqLIjgZWheEwtut8Y5MG8wQYalIRPc9SbSo1XKl9 ZBy4x+O8ddAl6fQLPdpdVV/joz9Ve3eOAWn1C0U0x7Sua38UDzt+I+tEZW7TNrxuP7A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=xenomai.org; spf=pass smtp.mailfrom=redirect.mail.gandi.net; dkim=pass header.d=xenomai.org header.i=@xenomai.org header.a=rsa-sha256 header.s=gm1 header.b=l8Blwv+i; arc=none smtp.remote-ip=217.70.178.231 Received: from redirect.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C7916606A320 for ; Mon, 30 Nov 2026 09:59:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C7916606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xenomai.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redirect.mail.gandi.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=xenomai.org header.i=@xenomai.org header.a=rsa-sha256 header.s=gm1 header.b=l8Blwv+i Received: from spool.mail.gandi.net (spool4.mail.gandi.net [217.70.178.213]) by relay11.mail.gandi.net (Postfix) with ESMTPS id A7B013ED64 for ; Mon, 30 Nov 2026 09:59:23 +0000 (UTC) Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by spool.mail.gandi.net (Postfix) with ESMTPS id 6DBE0560030 for ; Mon, 30 Nov 2026 09:59:23 +0000 (UTC) Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=xenomai.org header.s=gm1 header.b=l8Blwv+i; dmarc=pass (policy=none) header.from=xenomai.org; spf=pass (spool.mail.gandi.net: domain of rpm@xenomai.org designates 217.70.183.193 as permitted sender) smtp.mailfrom=rpm@xenomai.org Received: by mail.gandi.net (Postfix) with ESMTPSA id EF3EF3EBB0; Mon, 30 Nov 2026 09:59:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xenomai.org; s=gm1; t=1796032763; 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=SGxFnvwvvBmagfp046AZ71XsfCV8DJidxMp/8IBBu5I=; b=l8Blwv+i4y2IaH4O1FYvCfotjYZ08iVp+F1Mnr0qtLl3ul06N2Jb4eL73aGLoeXG8Btg4p 2X/qSqYcI+pRh4LK0l/t+vhJj4vuiQejYTbjAB6I8BeTtQ5Wp1RIod+xRbUm7PJl3sTff9 B+g2OnSD1+BGdsnNA7sZXOGD2Z4B6chGtSljnuL0toIRv3ZBPVo6iKZBaf7wG+1pCJbQMg lMqxZ2BdonZtwQhN3w9Z5FOtcCUKH+dee0I40BENCVnTNJ0Wmerd8cc2ZaCmBPz95UNuK/ otGVP9qinrrCm5unZLw1nEXsgACF8uSgMYzx64bzk8sXUZUn6OUXfBf2aDR60w== From: Philippe Gerum To: Jan Kiszka Cc: Florian Bezdeka , xenomai@xenomai.org Subject: Re: [dovetail][PATCH v2 4/4] ARM: dovetail: Fix VFP exception trap notification In-Reply-To: <81387618-c55c-43c7-9c93-e9f808d2f208@siemens.com> (Jan Kiszka's message of "Mon, 30 Nov 2026 07:41:38 +0100") References: <81387618-c55c-43c7-9c93-e9f808d2f208@siemens.com> User-Agent: mu4e 1.12.12; emacs 30.2 Date: Mon, 30 Nov 2026 10:59:21 +0100 Message-ID: <87ik1emyh2.fsf@xenomai.org> X-Mailing-List: xenomai@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain X-GND-Cause: dmFkZTFsJ4wLh8qPGaeYrJnnLvuDMOwlinIxGdDnUZ3Yo4UNNkR3jHk4fiGPp3d1fmb7j7UiKqRTDm9g1yBt5I1YClpFpFflcnEebUI1XJQWxoUpgLuFN+vfUX1aBxjQXjeJ/hYsCGD9X+HQ3xhEWKjJV6O1++NqDzH5Fwo0Z0pv/v4QXCtpxhwv4z4wvw1Zo+EbHrqEP1FfLhx4+Vx8RDVE2sd2nrj1cwNCr2Dy4TscBXN+DzGdDWkDmNvHelzw2kWCIZg0dhWUjlRv2aYRsJODFAFLF1Zm7D+LQVFtPj/lJ79bfxMYuBTY8hq01a1e04MezDXOu8NL+7IarNxKjPFpLylVX+BH2vQgyzbEKOPn3ipkNuSfLQR6USNAUP+lem8689iVv/h1Ho6W2H8svY2Owpj/wh7B9d9cnVg5mbvr0dVPjIKlX/SKNd34/iQmMk1nmLyqolM5lwLZ3PptaYEHzB0wG9IIjIBOtlIFn6hBnhYRb73waVm9jEjXzEZ0f6rETWngZnWR2nZsn03PyhtuYeDZFOEaSk0+VAqXyKsXfSxBexRSSaU60DG713OGqlmmXU5X9LsMV3m4VkGLxGfm4w9ZFvtRupNfXSlH1gPCZaYHHtr4EKsUq8mXFf5KEQdsMMGdnCNk73/pFp83Z/kuTBrEOcB4CpseZf8ErwVYi4cxoQ X-GND-State: clean X-GND-Score: -100 Jan Kiszka writes: > On 11.11.26 13:10, Jan Kiszka wrote: >> From: Jan Kiszka >> >> The trap annotation of the VFP bounce path predates upstream >> commit c0b5195bad63 ("ARM: 9426/1: vfp: Move sending signals outside of vfp_state_hold()ed section.") >> which turned vfp_raise_exceptions() into returning the si_code, >> deferring vfp_raise_sigfpe() to the exit of VFP_bounce() after >> vfp_state_release(). The Dovetail hunk was kept in place verbatim, >> which is now wrong in three ways: >> [snip] > > What do we do with this one? The AI failed to find a test case that > allows to stress this on virtual or even real hardware. But the current > code looks wrong. > I would pick it for 7.x, because VFP bouncing can only happen on armv7 these days, in situations which should be avoided anyway: - legacy code originally built for armv6, or without neon support. - code using deprecated vfp features using direct asm code. - code relying on armv8 fp features which are not enabled on armv7 hw All the same, I believe it's fine to demote the caller to the in-band stage in order to process the fault triggered by those rare (and avoidable) events. > Beyond that, these are still in my queue: > > - https://lore.kernel.org/xenomai/4d7b7926-4a09-40c0-b4e8-d5512f8107ef@siemens.com/ This one seems too pessimistic, and we should not even need to take such preventive action, provided we can nest exceptions safely, see my previous answer (assuming that get_user() is the only problematic involved). In most cases, we should get no minor fault when reading the user mapping since we entered this code precisely because we just did so. IOW, the .text page userland was executing when the fault is taken is likely to be (still) around. > - https://lore.kernel.org/xenomai/ca829aa7-2caf-493e-be78-e5a97e624e0e@siemens.com/ I'm ok with this one, the resulting code is clearer. > - https://lore.kernel.org/xenomai/ccf75b59-e0e0-45c7-a7bc-7d3bfaa3ee3f@siemens.com/ > Obviously correct. -- Philippe.