From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A773D374BA for ; Thu, 17 Oct 2024 16:17:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 00AB96B007B; Thu, 17 Oct 2024 12:17:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id ED66B6B0082; Thu, 17 Oct 2024 12:17:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D76906B0083; Thu, 17 Oct 2024 12:17:23 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id B5C026B007B for ; Thu, 17 Oct 2024 12:17:23 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id E78F2160118 for ; Thu, 17 Oct 2024 16:17:10 +0000 (UTC) X-FDA: 82683598536.17.ECB01CE Received: from mail-oi1-f182.google.com (mail-oi1-f182.google.com [209.85.167.182]) by imf05.hostedemail.com (Postfix) with ESMTP id 9533610001E for ; Thu, 17 Oct 2024 16:17:02 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=chromium.org header.s=google header.b=OWVmp7wK; spf=pass (imf05.hostedemail.com: domain of jeffxu@chromium.org designates 209.85.167.182 as permitted sender) smtp.mailfrom=jeffxu@chromium.org; dmarc=pass (policy=none) header.from=chromium.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1729181767; a=rsa-sha256; cv=none; b=LuhItVlE63ck6MlpjSk8tfoj7k30Ykf/2SjMtPUwdKuSZkQEFD/mH42cVE7TnuQWZgvpzs 0aWOezfh7Bxi3e0rSRHHbTZLEKn95QHIn5CdMY3Gj+8SA3EohROAtexb3c7ulCpWsbL70H ZK+ZZBwoTeml0WP7y60fMUv4x0vGzmY= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=chromium.org header.s=google header.b=OWVmp7wK; spf=pass (imf05.hostedemail.com: domain of jeffxu@chromium.org designates 209.85.167.182 as permitted sender) smtp.mailfrom=jeffxu@chromium.org; dmarc=pass (policy=none) header.from=chromium.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1729181767; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=0JW21AChuGIHXm/a0oYaXopY0qylbrYU6FFGsXgb1P4=; b=VTDWZMhT6npXyvZDkNe9uPyMziOn6yL6ENmhMNqUZhEA86jcq9egYT9RG5KE+Hre5Eb5jQ D1QuMuIM/QQH14gIDZCrFhEkl6Zh2Mf/pymu0+/6MrZGZ/UF1a/kK4IPkkuHk72992v13B G6VwUYOIKKwnsd2E67X90VrABNTbeLI= Received: by mail-oi1-f182.google.com with SMTP id 5614622812f47-3db3763e924so99332b6e.2 for ; Thu, 17 Oct 2024 09:17:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1729181840; x=1729786640; darn=kvack.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0JW21AChuGIHXm/a0oYaXopY0qylbrYU6FFGsXgb1P4=; b=OWVmp7wKdgF5dtt/SsdaQZcXtZv6UrJzBleRmycN0BUtK7PHAdAvn6PIs41vaAzzJq E6DkX/Q7u06+5suYxUcja0StSEO52TKI9VLZ/qugIOWdH9R3/2cBk/hJBdyiE0q0gf6N WhhA/sZFa8MkkN6DfRFn+VbjAh+i7mumYyrNQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729181840; x=1729786640; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0JW21AChuGIHXm/a0oYaXopY0qylbrYU6FFGsXgb1P4=; b=cwjpbS5rCAD1Ubd+BSoHrDagYuZSOo6Ea3m9HvnPsDEGHtwDcVxCV+LFRnV5gI4nh/ KeFGWDGXRxnV15mcmfCcfiiVnJkYXCXC4wXxYMeHwKioL9JROSgL1xBBlIov9RJL4gyB 1VPZwRqnMIYLEb5BIzMqCcGq0EB2ggFwPE5u049iMRaQ/abl2b/CXVcrjvmQxk6OLI43 kXILjgncfTlCUaFM5Qjmvc0dVoPqhcvmDqJ/0v8vuYa78ndq1mH/AiPZo3CCHcAR0SqG 9K4Skkd1M2V5ydpynWIR7XSIvaHuQzwho1LAEHxbbFOpvxO7r0UuxcmjOVs93Pn5e/gT jfnw== X-Forwarded-Encrypted: i=1; AJvYcCXqTweUUji0JIdF7bMXKqsThpll+F4grLF/Zrxf5pQ9gUFbu9vdpAHP+wqqJvAWGfiv0qz/EthSiw==@kvack.org X-Gm-Message-State: AOJu0YwGDd3//1i4gNx/R5nWpk+E7rdpv4I5bSBAps95UQ/7URt83loj rmcMuX8u+gnt45m0m0pOg9ESMrmBSA/0aAJlswGtYDGzRbTq/0C+lWJVhou0qZWgjUhBabqv6P2 WcamxYvACP5vKKasbr5XlqkwJdZELoymy2rr0 X-Google-Smtp-Source: AGHT+IHkJFKWi2HwImyhXcWCHDzPIt0NtMmH7KPRIsgXi23zIJJa5MFWOze9uSBgvefBr1YXz4/XAw/TpbeM1TFd/00= X-Received: by 2002:a05:6870:5591:b0:285:82b3:6313 with SMTP id 586e51a60fabf-288f78c3509mr1471296fac.6.1729181840481; Thu, 17 Oct 2024 09:17:20 -0700 (PDT) MIME-Version: 1.0 References: <20241017022627.3112811-1-jeffxu@chromium.org> <2024101722-diligent-baritone-b211@gregkh> In-Reply-To: <2024101722-diligent-baritone-b211@gregkh> From: Jeff Xu Date: Thu, 17 Oct 2024 09:17:08 -0700 Message-ID: Subject: Re: [PATCH] munmap sealed memory cause memory to split (bug) To: Greg KH Cc: akpm@linux-foundation.org, keescook@chromium.org, torvalds@linux-foundation.org, usama.anjum@collabora.com, corbet@lwn.net, Liam.Howlett@oracle.com, lorenzo.stoakes@oracle.com, jeffxu@google.com, jorgelo@chromium.org, groeck@chromium.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, jannh@google.com, sroettger@google.com, pedro.falcato@gmail.com, linux-hardening@vger.kernel.org, willy@infradead.org, deraadt@openbsd.org, surenb@google.com, merimus@google.com, rdunlap@infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Stat-Signature: sgnc6wuns6cjibit6z586zdadbq35o9m X-Rspamd-Queue-Id: 9533610001E X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1729181822-814869 X-HE-Meta: U2FsdGVkX19rT9TnLP64YTQKIW4g00lNUdnJNJwsN9VQLslkgzBk08q9bQuA0FLGG7FXWVpvTAxhqvlLNwSWX+qvChOC7v1UKOTpXJ9JXsggnfX1JOc03g0v/lh7b3jICa5JezWJqN1Ss073VIZMvZcz95fh3AkHmlGge4KJR0J431CEyVqu/pXSHUvaYl0mVv56DcvYpYpZPZM4hyQ8i/+Q12/jB7+IXjdjdjzYTsirmCnpdP5sbx/dD4ywTMIuqublDJZPA7xJxBPtcFMscE+m9lH7hhoeD1/IMLsVy6oESdK7n587yNvESErW8hyY0ERePkfZXpwXOXe03W+65dA5NN/uFBM1XyWUc3RAxgCrQSo0iAajCKnxhzC83+NaK8TrtRD35qLGMzIrEZEWAhUQeysuKMHISGQNaWQBN2IeypRF7wAQcnoZbKOw6H3OP0An9vnxoByjn44nnb4N64344a3btpvgCxcVLtkGbFrLPWvYmyVRONRPIr46SV2MC7jmoBf/MmhR40kdMW0CRC31+ryaXSgAkOEqN+HP9z/6kfYwVjWYNApgvJ8rrLUE52x5CxCSnHvKJj+PvbD2bJXInRN1h+bQbtolSg7vaF7eLvR+puJjYPs5HVAFJmKPHZa3LtdPRD6l5Obol5y4iMagdmNo4xmtVt+0iZIMFVad1k6xpcm4DzbHT4gsB8e9Y7fe17DUJmrdhh/5acd6YXWBiPGW2WeM3bWhrFd1h32ceKneWGiX1H/FMj/zCkVlmvFHp6YHnZFbgbtq/k3wbT/F8c0LiuXOLxRYpSRfyQIXkMvMlE065BwUY/J2Q3+w6moCmWxkFuG03AGBf5wBYitReLYFF/q8hP5/tuFg54cM7PtuLiSmr1U0ufWhy6IwBKylCS1AkyrPeDhgzlOeroExXMdqqg76toxq1UMnnfZ38OWOlyHISBmc/7iMmPJ3VEp+OvAXwtaU1FHSStl P653PZpZ FB8QbXNn6XDv87t1sDAV+E4Ef9yxAiQElskqXs3oo3rf3fLXX9FSCmZ5DEe7GC2A1uQ6LTKDNUSmbkP+SzFDQN0gm6Z1BuKgBcXp6jdyivRwOwKdaEYLTXfv78Anufim9CMrej7MA++MLTaD+qj0XuE7qDu90y99Pu2fOhLWFVNpWWAtLqILD+aQamLF1XmALWfkawwZ8NLZBvLCe2jzQw9j79JHdOkbBO5FcxPg7hZ7xx7k2OPz8bEWirQSIxqeRC2VpBAcQ/1awqHxFlo8qtRKVndvyQno0dcFLvXewvWysopb2kmFNxUNQINV9bVRNz3xIGOMtOc5phCMPbL0Tn1AepnzDDrnSvy5MffQduiPfvZKhaSsIflKaRg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000204, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On Wed, Oct 16, 2024 at 11:04=E2=80=AFPM Greg KH wrote: > > On Thu, Oct 17, 2024 at 02:26:27AM +0000, jeffxu@chromium.org wrote: > > From: Jeff Xu > > > > It appears there is a regression on the latest mm, > > when munmap sealed memory, it can cause unexpected VMA split. > > E.g. repro use this test. > > --- > > tools/testing/selftests/mm/mseal_test.c | 76 +++++++++++++++++++++++++ > > 1 file changed, 76 insertions(+) > > > > Hi, > > This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him > a patch that has triggered this response. He used to manually respond > to these common problems, but in order to save his sanity (he kept > writing the same thing over and over, yet to different people), I was > created. Hopefully you will not take offence and will fix the problem > in your patch and resubmit it so that it can be accepted into the Linux > kernel tree. > > You are receiving this message because of the following common error(s) > as indicated below: > > - Your patch does not have a Signed-off-by: line. Please read the > kernel file, Documentation/process/submitting-patches.rst and resend > it after adding that line. Note, the line needs to be in the body of > the email, before the patch, not at the bottom of the patch or in the > email signature. > > - You did not write a descriptive Subject: for the patch, allowing Greg, > and everyone else, to know what this patch is all about. Please read > the section entitled "The canonical patch format" in the kernel file, > Documentation/process/submitting-patches.rst for what a proper > Subject: line should look like. > > If you wish to discuss this problem further, or you have questions about > how to resolve this issue, please feel free to respond to this email and > Greg will reply once he has dug out from the pending patches received > from other developers. > Sorry, the title is wrong, it shouldn't start with PATCH, I was trying to send a test case to help debug this issue. > thanks, > > greg k-h's patch email bot