Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1174239lqt; Tue, 19 Mar 2024 15:23:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUd41Su9uZ3t5/VibKR811FAtY0b9WtR6HZ01v9UZeGMzlv+nJDZHVE5mKzOTjyMUdSSRLTeqrnAVXo6EEyPjL5ER6Au38MLelSO++lHA== X-Google-Smtp-Source: AGHT+IETf4YbZR0Ytlkn4t0pZh0YmlgharTKrX2juimlgwgA1ZL8vulMHeQ8ZtRHRm+NZppRy+am X-Received: by 2002:a05:6870:a2ca:b0:21e:6732:76bb with SMTP id w10-20020a056870a2ca00b0021e673276bbmr18104080oak.39.1710887020761; Tue, 19 Mar 2024 15:23:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710887020; cv=pass; d=google.com; s=arc-20160816; b=j6OMXK+YDvJt1+bDGdcocbnaZBlv8J/sp8ySgjO8M2ajxwZVENJPPqPyAcZg/0KCKb MmRCX6VWdsa3dEZ1Po6NqC16ZRMtpa+wARdxpj4NObURUZZ8Z7rEWP5f7ehC6Q6+IGRx tUL4d+8tx79Ley/NMN3uYaJfviyagD7gbeFOxHhGad1+VVsVzN3FSNH7gr+OMKvFU1JD +ZKJTarzWvx6kNHNWpT3/4ogQlENGNyRFOnhsWrLsGWcb/HAJLKkeT0ymdiPCMPlx3My CIQbsOzI8+fs3yA9Cy9vtWyhpP3CeK3lKZUy9h1cTRa+gilyLTkjwc3eyX8aqVh9OklN +x6Q== ARC-Message-Signature: i=2; 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=yLckV8zdpwBC7lLU1aS75M7QQR1x8wHlYNEMkhCPHqY=; fh=uGCtfWhOGMUJcTvuAr1HTPGFIidtPgjwhp14ZDIwZtU=; b=s5uZA5Xqo6A+SJ9/4ynUKwXawtMggu01NxrbMGyCYtB/m6osTSXKWItC2ckSwq4wtf FYv1DKqWpHaI0JJ07iUejDUKA3fI8wA+w54GfbpOfwUtJJp2tGfQV+F5qMugfP7BcGSi Tq+GHlwUaE1G5e8HNNWk8vRvGmIqm8qamOJRFaFYYkzosvHRI38wz5pBAbpOiMwtZdi+ /mLzXSzJH9ySdz5B9hj9JVA+j8JOawGPxypJD/M9ydU6DjFcDu6cQW1FBFpjkwiemFZM VbQlOD0KRNppJDq3vL03kH/UPfipuLoPEvJ2FqN5PF4Bi6rmTHiqI2fyMZYwdbwxrrDk y+1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-108189-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108189-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e12-20020a63d94c000000b005d8b57bc704si9280834pgj.389.2024.03.19.15.23.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 15:23:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108189-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-108189-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108189-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 6E3552838C8 for ; Tue, 19 Mar 2024 22:23:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 48C505FB90; Tue, 19 Mar 2024 22:23:35 +0000 (UTC) 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 6D83D5FB87 for ; Tue, 19 Mar 2024 22:23:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.201.40.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710887014; cv=none; b=IBE/CinyapKT3Nun4MNFoEZsRfXD8EfYyj/D/dUZBwzvdz8U+Yr3KPvD8qqJh8NpjT6HspjriuvuRPCWJqHy0x8qX1gjEQIFGRldXmeHqykHeTROx7dEwNu/O00Md7KJLqtUrBhD7aZw6eYAIfumySlpXaXweBzH6FWOxV/YFeI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710887014; c=relaxed/simple; bh=yLckV8zdpwBC7lLU1aS75M7QQR1x8wHlYNEMkhCPHqY=; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject: MIME-Version:Content-Type; b=OHAEAgF62rY/uGELc8L1ECX4EP8dXkxTphOaA2M9IEYwEfz17KakyZqUAqEmIq1V+MHkdbtJStKFT6oZM3WkQ2p2AYMEkh7IwV+MzS1HEJybMCpI6aDPyGZ/rLoikx+Z8BUIcQJ/xzf67oBZJCvlcBh/0oqaMr9aYF6GTEy49wE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nod.at; spf=fail smtp.mailfrom=nod.at; arc=none smtp.client-ip=195.201.40.130 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 6DD706450963; Tue, 19 Mar 2024 23:18:07 +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 eBsVIj-qbrJE; Tue, 19 Mar 2024 23:18:06 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 5F2536450966; Tue, 19 Mar 2024 23:18:06 +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 wa50cn74hycn; Tue, 19 Mar 2024 23:18:06 +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 194C86450963; Tue, 19 Mar 2024 23:18:06 +0100 (CET) Date: Tue, 19 Mar 2024 23:18:05 +0100 (CET) From: Richard Weinberger To: Petr Tesarik Cc: anton ivanov , Johannes Berg , linux-um , linux-kernel , Roberto Sassu , petr Message-ID: <1418379493.78340.1710886685735.JavaMail.zimbra@nod.at> In-Reply-To: <8d45f94c-bce1-4327-9573-cec254a4e9c3@huaweicloud.com> References: <20240223140435.1240-1-petrtesarik@huaweicloud.com> <9284cda7-d7e3-4390-bf62-58092e97d1c8@huaweicloud.com> <8d45f94c-bce1-4327-9573-cec254a4e9c3@huaweicloud.com> Subject: Re: [PATCH RESEND 1/1] um: oops on accessing a non-present page in the vmalloc area 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: oops on accessing a non-present page in the vmalloc area Thread-Index: OdzHbbhSrpqdStaC7MekET1pCSEHow== ----- Urspr=C3=BCngliche Mail ----- > Von: "Petr Tesarik" > An: "richard" , "anton ivanov" , "Johannes Berg" > , "linux-um" , "= linux-kernel" > CC: "Roberto Sassu" , "petr" > Gesendet: Montag, 18. M=C3=A4rz 2024 14:09:07 > Betreff: Re: [PATCH RESEND 1/1] um: oops on accessing a non-present page = in the vmalloc area > On 3/12/2024 4:07 PM, Petr Tesarik wrote: >> On 2/23/2024 3:04 PM, Petr Tesarik wrote: >>> From: Petr Tesarik >>> >>> If a segmentation fault is caused by accessing an address in the vmallo= c >>> area, check that the target page is present. >>> >>> Currently, if the kernel hits a guard page in the vmalloc area, UML bli= ndly >>> assumes that the fault is caused by a stale mapping and will be fixed b= y >>> flush_tlb_kernel_vm(). Unsurprisingly, if the fault is caused by access= ing >>> a guard page, no mapping is created, and when the faulting instruction = is >>> restarted, it will cause exactly the same fault again, effectively crea= ting >>> an infinite loop. >>=20 >> Ping. Any comment on this fix? >=20 > I don't think I have seen a reply from you. If you did comment, then > your email has not reached me. >=20 > Please, can you confirm you have seen my patch? Yes. I'm just way behind my maintainer schedule. :-/ Thanks, //richard