Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp8003785rdb; Thu, 4 Jan 2024 15:22:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IFA2AK6ZtBfn9AySt7cgOkg1F8bGTGiv5CKeruvJDoaGokc3AGj7Dq7UDrl+OEB4mXn1VK4 X-Received: by 2002:a05:6830:718a:b0:6db:fd12:81f3 with SMTP id el10-20020a056830718a00b006dbfd1281f3mr1647758otb.45.1704410551152; Thu, 04 Jan 2024 15:22:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704410551; cv=none; d=google.com; s=arc-20160816; b=epmTScgaNYThaZH8hQACAsJiOSUd10P0rnhoIe3Sj5qQ7UVuZ+d8mwo9fgxesCSw21 5C/zlISyiJTkHTe2qq2tiaIlRDCNumvV4GQABLQlHq0PzS/Bam3fJYH411V8iEUiWRJj DMbY+x9YN8PmBcBDzoegFwc7k3X53t0ymikUEokOL9nrPsVPJ1iRQBYxOW5BEVvCBMWg PItFR1e+tptH8ty5FiFmtxMSXHz/gaJ+lbVbo3Mryh4LQpniKsBaNczCWkafIU4Qn03i K+RN4AGq2vgMfsxkZhMzS5AGFff7f0cPpSVy7p9I9MYTQ/JLgzSOg08PHtB76JmEsfIr 5yjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=thread-index:thread-topic:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject :references:in-reply-to:message-id:cc:to:from:date; bh=AMhyMtdv7vfgDVMMzdQpRo6XibttV5UhqpDcQLmQbis=; fh=4Ax8JzuqxJGH27SmMejfLiPgZSePHJp9Zx4FTtJBkMs=; b=ZzGg5sNHPPjYK7AUme/+GjRHFYpXnFNT0nHQe/P+LUSYqwQpGmt1RR8ysDlELsipw+ t8Dmtx7ur1RQGdiWUuomGnCZkN1yEu97h7xQVbnb0/qbVCvX7QGz7Oq+16YiIZIdjKOb AQ955/0cD0lr4QhDZjgEf1HXQ/5BhiPPHQsRDABpAEkVsGJMKf+6gAXSWQLxfBJXWW7C KvO9sDcliff8HU+wvNNu4ROSAi4R1q5rR6ttXgppQyGV8uKJAngj7cvQ8CbgfFM/wLjD rkD8z4wNQc9YTa8PHJkkXl754uOmOY30L+V5eUX8Gcrd34/0bALGhaiLYPJX0tC7NXTS Pcng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-17323-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17323-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c12-20020ac87dcc000000b00428206d91e3si588388qte.182.2024.01.04.15.22.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 15:22:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17323-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-17323-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17323-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E08A51C22447 for ; Thu, 4 Jan 2024 23:22:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 60A9F2D056; Thu, 4 Jan 2024 23:22:24 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) (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 F2EC62D025 for ; Thu, 4 Jan 2024 23:22:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nod.at Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nod.at Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id DA17D626FAE6; Fri, 5 Jan 2024 00:22:12 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id yD_ZKLh5XoAP; Fri, 5 Jan 2024 00:22:11 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 7780F626FB00; Fri, 5 Jan 2024 00:22:11 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id VpwcTByJ0DTB; Fri, 5 Jan 2024 00:22:11 +0100 (CET) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id 550FF626FAE6; Fri, 5 Jan 2024 00:22:11 +0100 (CET) Date: Fri, 5 Jan 2024 00:22:11 +0100 (CET) From: Richard Weinberger To: Petr Tesarik Cc: anton ivanov , Johannes Berg , linux-um , linux-kernel , Roberto Sassu , petr@tesarici.cz, Petr Tesarik Message-ID: <435201914.200552.1704410531143.JavaMail.zimbra@nod.at> In-Reply-To: <20231215121431.680-1-petrtesarik@huaweicloud.com> References: <20231215121431.680-1-petrtesarik@huaweicloud.com> Subject: Re: [PATCH 0/2] um: improve UML page fault handling 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=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF97 (Linux)/8.8.12_GA_3809) Thread-Topic: improve UML page fault handling Thread-Index: 3x5bOAmY5/XfwxP9N8Jncq5xgr1IZw== ----- Urspr=C3=BCngliche Mail ----- > Von: "Petr Tesarik" > An: "richard" , "anton ivanov" , "Johannes Berg" > , "linux-um" , "= linux-kernel" > CC: "Roberto Sassu" , petr@tesarici.cz, "P= etr Tesarik" > > Gesendet: Freitag, 15. Dezember 2023 13:14:29 > Betreff: [PATCH 0/2] um: improve UML page fault handling > From: Petr Tesarik >=20 > 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. >=20 > Petr Tesarik (2): > um: do not panic on kernel mode faults > um: oops on accessing an non-present page in the vmalloc area I think this is a good thing to have. For the implementation side, this needs to use the oops_* helpers from kernel/panic.c and taint the kernel, etc... See arch/x86/kernel/dumpstack.c die() and friends. Thanks, //richard