Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7092327470 for ; Mon, 2 Mar 2026 11:00:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772449260; cv=none; b=Y4cT6t64I9pQk8N92wvZ25Kk0LdzSxEdbdX8xlc7pJRnsXZGmCljnlpNfHC54Y9rMs16RAHtWQIzf1QPTUSrxovxN+858cV+JIjZaPq/FDjj4Uud6Cz0DJlYu9os+2/5CtK3eDcSZxpqkWSjgjO9zAr0ErYopCjoC/xbDgtfLFc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772449260; c=relaxed/simple; bh=jN1pAfFfDzBpHboNxCmGVbJnzHy8q7u1X3s3Z5/bJA8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZY/HE6JB77lbAAgBZI4Cm0NTX/WYZt9yC0xwntAZCmD0S+mkl3u29cL8Ob6OzqNgblhyisThr/U/t7yXNbhpUeohdthcF94VOQxygspH0L3RgG7mSld0HeqnWt6bzMyREiQ2ImFWdc+JnCjNp8z6p8aOu8zLpdv2HkNZrbIGo9A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=TW8WcUMc; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=leCJw5je; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="TW8WcUMc"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="leCJw5je" Date: Mon, 2 Mar 2026 12:00:55 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1772449256; 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=4yvZllsvJuDygz5pj0juIkJ5s5cc7ZzA21kXlFj5wec=; b=TW8WcUMcmZzboA3BvzcjLVvd9Ojq4RnRC6jZt7MUCMvbANxKynx7IzKE1rTpFXzGo3fM0Z uv9UY0etNVGMa73WPrYuEJrNYK0SEnP88n0Wurm5nPIjjS0hB4oOsvRbVW2Fr69M0Mz2Np hDOm8sKmZbtxIrACEeMlGIQYR2GLQhYFsU3aAf+fnfnQk9UkOmtg5eaWK3X7e7LFP6ZM3W iVIqdZQZHQpcNzp+CIMahzWUGIY01yr88IKSLVosadOe8AKmTf1vM//9Sl91+fkhqDa8Os 8HAfLvblb3el9/jH61L4kbiAr0+L2l/pmZqCiNWbJf3kkqcsugMr/BNybnfKrw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1772449256; 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=4yvZllsvJuDygz5pj0juIkJ5s5cc7ZzA21kXlFj5wec=; b=leCJw5je/wj7XEiHikcgp37MLee3e4EU99Cn1Uu2iK6W+NyxHPNqsWGFNRGzGJQvfTSR1b omK+oreM9GgF89Bw== From: Sebastian Andrzej Siewior To: "Russell King (Oracle)" Cc: linux-arm-kernel@lists.infradead.org, Clark Williams , linux-rt-devel@lists.linux.dev, Steven Rostedt Subject: Re: [PATCH 2/6] ARM: move vmalloc() lazy-page table population Message-ID: <20260302110055.hFMkUcnt@linutronix.de> References: <20260302104351.yyWvNCTb@linutronix.de> Precedence: bulk X-Mailing-List: linux-rt-devel@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On 2026-03-02 10:57:03 [+0000], Russell King (Oracle) wrote: > > > --- a/arch/arm/mm/fault.c > > > +++ b/arch/arm/mm/fault.c > > > @@ -261,6 +261,70 @@ static inline bool ttbr0_usermode_access_allowed(struct pt_regs *regs) > > > } > > > #endif > > > > > > +/* > > > + * Handle a vmalloc fault, copying the non-leaf page table entries from > > > + * init_mm.pgd. Any kernel context can trigger this, so we must not sleep > > > + * or enable interrupts. Having two CPUs execute this for the same page is > > > > "unconditionally enable interrupts."? It wouldn't be wrong to enable > > them if the calling context had them enabled, right? > > I don't know where you got "unconditionally enable interrupts" from the > comment - it says the exact opposite. My point. You could enable the interrupts if the parent context had them enabled. It is not that you must keep them disabled because a second fault/ interrupt would overwrite your CPU state. > > > + * no problem, we'll just copy the same data twice. > > > + * > > > + * Returns false on failure. > > > + */ > > > +static bool __kprobes __maybe_unused vmalloc_fault(unsigned long addr) > > > > Maybe handle_vmalloc_fault(). > > x86: > > static noinline int vmalloc_fault(unsigned long address) > { > ... > > I prefer to keep the name the same. Okay. Sebastian