Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7105029rdb; Wed, 3 Jan 2024 05:02:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8qnlaV8822Od6UJWXDTnJPB5yqSktXkc2PhdmdGKVpiX2M45UiVSYjvuULQ3wN/B7gfhC X-Received: by 2002:a05:6512:128b:b0:50e:7e55:384c with SMTP id u11-20020a056512128b00b0050e7e55384cmr4439133lfs.190.1704286929298; Wed, 03 Jan 2024 05:02:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704286929; cv=none; d=google.com; s=arc-20160816; b=hoxqBa4QUCc68fWsqRCODBOWI96w8IH3qe/aZ/XlwXIwZydPKIN+jL04JoNJz3QgJm GWTNWdOf2FeEXajNkk3TjLYiQFN7W380Xkv1fMv3mzODVG9BxDUFVhllu0qdhn96FdCN nV2ZpgWzNiZAYI2WxrXDehuwGJl9CX50W+dCkjKRI4X9Gl8BdAhG0ea8TELbnzFYZN6M 2cYIpiZulMsiBBzvu0q9pOYsiKkkvKhFDf1w+aBR+UvhI22SZR1XK0QFp/3OdKXukejO Sn6UX6raOlTqMltXNP50AtZc58U2p1IsuE32+DgxoqTWAoYkz2+24rCOhJfBcUHl3dAk BHjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=WoF2s0uRV+cqw1VWBTcFGBkH3Zao0oa/Uvqf0zzrfME=; fh=JekybKDft3SdSknwG1oGNDV+cv52YcR9+ncP86/h6II=; b=VMHhPSIDlCjm+qM+l34Li7/rL7xBlMrt+HwfSQ1LEtcsSgjEiHa878iLjPY5d2oVlo zRPyuZC/aNHD+lwhuLklW0/UF5tYIC095feLBxeAvENBIYv+bJl/VOZW76hCj+NlnlDn vtWWQhMSTMP35NZ11WQRGFbI1A0nPhufLRvwe252eGqyDnxNmtKSx3KfQcxDRvgLu3Ph sdLDUkLaGOUvpY95bl+ihVtxAuIGDuiZIns/ZAF9DYouQybUX0oGfy0nHm8qQ6kY1aTJ TeJbpNSCpLR2gH3fpWVdPobVZxDAss0lWazCoJqvU0vSeQkE05Qzau7tu6riuG1nVatg S1uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tesarici.cz header.s=mail header.b=EvJXkIjH; spf=pass (google.com: domain of linux-kernel+bounces-15547-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15547-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tesarici.cz Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t12-20020a056402524c00b005549e5f54edsi9460487edd.527.2024.01.03.05.02.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 05:02:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15547-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@tesarici.cz header.s=mail header.b=EvJXkIjH; spf=pass (google.com: domain of linux-kernel+bounces-15547-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15547-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tesarici.cz 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0C77B1F22999 for ; Wed, 3 Jan 2024 13:02:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10D391946C; Wed, 3 Jan 2024 13:02:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tesarici.cz header.i=@tesarici.cz header.b="EvJXkIjH" X-Original-To: linux-kernel@vger.kernel.org Received: from bee.tesarici.cz (bee.tesarici.cz [77.93.223.253]) (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 294C61944F for ; Wed, 3 Jan 2024 13:01:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=tesarici.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tesarici.cz Received: from meshulam.tesarici.cz (dynamic-2a00-1028-83b8-1e7a-4427-cc85-6706-c595.ipv6.o2.cz [IPv6:2a00:1028:83b8:1e7a:4427:cc85:6706:c595]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bee.tesarici.cz (Postfix) with ESMTPSA id E5C041A3C63; Wed, 3 Jan 2024 13:51:54 +0100 (CET) Authentication-Results: mail.tesarici.cz; dmarc=fail (p=none dis=none) header.from=tesarici.cz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tesarici.cz; s=mail; t=1704286315; bh=wKn5TMlthQCZ3vs0qTpEXgCIHH7fKp9SdgkEDZ0ZHZc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=EvJXkIjHo6OQAa1ocgCSe/azb5fwTjmqztDGKgAZikY6aglX32yMZNKe35ufw5hWL p86sarBKbG+zkVlQoAjwg6iYJLw5G61op2fXj2it/MKk0+LahlcSNtEQ72VzgmabsH KkgkXuNoofUkg2jYlyLGnrSn/67JM221k1eEgIMibxlQ7YeBSq48rR03wgIo8rUmLa yctwIORqq5QZ1rzUTuqWMGwONlOZRFmnMOtp6E0S4On7zl/bHmeBL4Rm7vZkzB99BB npQaaM3Z1nni1vu1W9zCLLRHJd2sB6telxpL/mCn7RumviAndxz1CJ+USsDZqeqrBR EQpITYk0UGv3A== Date: Wed, 3 Jan 2024 13:51:53 +0100 From: Petr =?UTF-8?B?VGVzYcWZw61r?= To: Richard Weinberger , Anton Ivanov , Johannes Berg Cc: Petr Tesarik , linux-um@lists.infradead.org (open list:USER-MODE LINUX (UML)), linux-kernel@vger.kernel.org (open list), Roberto Sassu , Petr Tesarik Subject: Re: [PATCH 0/2] um: improve UML page fault handling Message-ID: <20240103135153.4696cb0f@meshulam.tesarici.cz> In-Reply-To: <20231215121431.680-1-petrtesarik@huaweicloud.com> References: <20231215121431.680-1-petrtesarik@huaweicloud.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.39; x86_64-suse-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Happy New Year, everyone! I can fully understand that you all have had other priorities around the year end; it was no different with me. ;-) However, may I kindly ask for some feedback on my proposed fixes? Petr T On Fri, 15 Dec 2023 13:14:29 +0100 Petr Tesarik wrote: > From: Petr Tesarik > > Improve UML handling of segmentation faults in kernel mode. Although > such page faults are generally caused by a kernel bug, it is annoying > if they cause an infinite loop, or panic the kernel. More importantly, > a robust implementation allows to write KUnit tests for various guard > pages, preventing potential kernel self-protection regressions. > > Petr Tesarik (2): > um: do not panic on kernel mode faults > um: oops on accessing an non-present page in the vmalloc area > > arch/um/kernel/trap.c | 19 ++++++++++++++----- > 1 file changed, 14 insertions(+), 5 deletions(-) >