Received: by 2002:a89:2d5:0:b0:1ef:f8eb:5d24 with SMTP id d21csp9909lqs; Sun, 17 Mar 2024 08:15:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQ2A+AX669c+ScuskgWQFGWn/JNop3ROQjTMAI2tebsNULXI5p+u8z9I6zNHyTITcx4XDSFwDe3JBP2/OLK8izvvVNY/OCvrg8QAOIQQ== X-Google-Smtp-Source: AGHT+IE9Ajwon6yuNgw7bKbnxke79QwfPxruBOCn+fY2LdeJfz5dsTG2m4LXDJJgVS/xIjkhITMU X-Received: by 2002:a05:6a20:8f29:b0:1a3:5467:33e0 with SMTP id b41-20020a056a208f2900b001a3546733e0mr3629767pzk.56.1710688554370; Sun, 17 Mar 2024 08:15:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710688554; cv=pass; d=google.com; s=arc-20160816; b=wR9krYcwQV0cVDoxhEVsQA7KifPPSIUrx73lTFHEFDL076zJt2dwxRTkaAuHnnr43+ w7UGYtNwmy1Q0eWoglFxgsmHkqQvZlwLvYX6Auyus5ZxbfahAyAy4z4dKO63odN1uIAY MBVYHb0nKEEfpdWQIEzW1QhDUFiH/qtLUHJDn/Ub6byd557fYNGtKjnI4Hnza2Hc2cTR USF1C6w5d7TchLgYFMY/qALLe8tgWXyCr9hkZLBllnfEFAZD1HjhU3UZc3S9vWhg2YLv hyCLhGHThAI/LHyiOdoOcIOqYaSBjKwg7xOiO2Skkmi3zzHffDk3k76G9ezS6MseT3K2 K3sw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=VAjI9MKRPGbeGXeY7a3YR0okh1E18UlTMq7EcVEnoMY=; fh=njueD1M5yqZIXSnt0sYiP3fgATi22K1e8qK60asjDf4=; b=01qD4HLuBl0h2MKwhLo92PS3aKTArhrAg3wAe5i/Z3IRsOT3PgYriv15gxh/EQd4aJ UTclAuLEe7e0Z3y1LVwTCrdq1JErAD4yIKDXbPAzECoRTwUD6tlrVLpuwwAlunukeenz J8WVFYHNKj66dN7qhonUukjdrlDGxysuvrOv511CheISJoDaqngWhI7wU4tOhFluXIw2 UE85WexntPMBjZPJkIZfT1puPPc7BNZf1F/evXULJtjQvIsul343tsKcDpEJDJG0fKzA SzE73/TscUcYRN3Z+Vcj6khKX5NtZcqyXOq4Pb5SNZmVW1R+2wE+JF9k/0ZaRorIfbaG vtsA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@soleen-com.20230601.gappssmtp.com header.s=20230601 header.b=xuBU16pM; arc=pass (i=1 spf=pass spfdomain=soleen.com dkim=pass dkdomain=soleen-com.20230601.gappssmtp.com dmarc=pass fromdomain=soleen.com); spf=pass (google.com: domain of linux-kernel+bounces-105437-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105437-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=soleen.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y72-20020a638a4b000000b005e83f5a05a6si1640759pgd.708.2024.03.17.08.15.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Mar 2024 08:15:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105437-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; dkim=pass header.i=@soleen-com.20230601.gappssmtp.com header.s=20230601 header.b=xuBU16pM; arc=pass (i=1 spf=pass spfdomain=soleen.com dkim=pass dkdomain=soleen-com.20230601.gappssmtp.com dmarc=pass fromdomain=soleen.com); spf=pass (google.com: domain of linux-kernel+bounces-105437-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105437-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=soleen.com 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 1121D2813E4 for ; Sun, 17 Mar 2024 15:15:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C33A01CAB7; Sun, 17 Mar 2024 15:15:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=soleen-com.20230601.gappssmtp.com header.i=@soleen-com.20230601.gappssmtp.com header.b="xuBU16pM" Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 819FF1CA87 for ; Sun, 17 Mar 2024 15:15:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710688545; cv=none; b=ioZSNpc9Wrp6+9q5XkiwaJAIiIQoPi4djSrv0qwQfiWNJhD80OxQPxJf1OZ6L4a/KcoimH5xKWxnQbJN19NDdYX1N1gGM/henNx2NpmWWe14ofKFu2BbxWDqLTtHYjj0bCljMNNX1nuEC3Oaj2EmfTZ4IjUitkyKUa0pH+ZCGhc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710688545; c=relaxed/simple; bh=KLRfnq4eXlBcEGbywcchqO4jgh7J7ZsjRRHuQZtJC5c=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=e7p7uwb95RkTgRAsRbxCSMzBqtdW7e39rCYifcNmVWdRZnYiE8nG6jSzBwn1HFDOUrgXKSvkcHSQuV7mTNwhL+I1oyvLdHHuKbrOzaZzyfMCI0GV492aiBFduLTzz8QLl2OyfXuVXyl29ErHYp6u3h6ev//wZEzS7lkzDlHKZwE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=soleen.com; spf=pass smtp.mailfrom=soleen.com; dkim=pass (2048-bit key) header.d=soleen-com.20230601.gappssmtp.com header.i=@soleen-com.20230601.gappssmtp.com header.b=xuBU16pM; arc=none smtp.client-ip=209.85.160.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=soleen.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=soleen.com Received: by mail-qt1-f182.google.com with SMTP id d75a77b69052e-42f2d02fbdeso16633311cf.1 for ; Sun, 17 Mar 2024 08:15:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen-com.20230601.gappssmtp.com; s=20230601; t=1710688542; x=1711293342; darn=vger.kernel.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=VAjI9MKRPGbeGXeY7a3YR0okh1E18UlTMq7EcVEnoMY=; b=xuBU16pMOJTHoz4IrxJdfi+hB4AQy+2lAk1Mcg9H6U9UM5n5CSn0KZPCsjLzFQ6f8C Ytedced10qnuOwJgkdPmdkTo5tixsYWKNobunlf5kGtFJjVvdUoWWBYfKe6vCjXmcfQK dt2w7jr+vITtX9N2NxTgbN8D6QlPBkKvbEUgqDp0Nf6b43UNBHFXqZdKdeIfaAdMomSI umo/FzLzg5url6nh3G+PPII7LqCSacGC9oitA/HpoVkBtZK8qU0NYtX6BtLuL+ntu5YC CuoO5wGrFBreL42BFhg146UgE2f2plEIjFv0BW/CGfWoKpWLJ6AORwKa2inIRISSRhPZ OXgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710688542; x=1711293342; 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=VAjI9MKRPGbeGXeY7a3YR0okh1E18UlTMq7EcVEnoMY=; b=tV8tvqYgLYAcTEqkLtaw3PPp/SciVEwMaFe1FgDYylL04x3DSQ+qY/PwDSY0C2ihyG +1rivoAWbRP/IFHMS9p3yY5a8M8akonduomshcgsBVdSLJ21FxWly7ReHpZBSQOB7HC3 KwrTEwIpuR4V+rjNDv5/5q/gXMaJnsOEgpeU1cejphaydxseIcIzMMNNHIF9pgDwFmpA G7WqSZtFkPK5VuAf4P8z1ZwXlYEOEvKD3QqlNE6pjkvkiy5IHcgVq59Z4lxGtgZfV8fi MUarOINmEQtYbbfYQ+KSocNk8uoFPvO75K+eyEEFkttSkHHKcUCFjWcZwfQdp2rCeE34 hP2Q== X-Gm-Message-State: AOJu0YwtsE1mryHoQ84gxF00+WBs6Fqwu68kPLX+GlxZeM3s7/fP5pyo 9rsdZoW74d0QL5x5ulbxV8qqz+dXVoCaFksK9Fl5KIth1g9wekzOEAUyqxnRaqIY5yBWEsxbncO nD6kxpSj28A4kbl0TA7ti4PZLezmFeRw1YtVAzA== X-Received: by 2002:a05:622a:5b97:b0:42e:daf5:1b93 with SMTP id ec23-20020a05622a5b9700b0042edaf51b93mr11616575qtb.39.1710688542407; Sun, 17 Mar 2024 08:15:42 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240311164638.2015063-1-pasha.tatashin@soleen.com> <20240311164638.2015063-7-pasha.tatashin@soleen.com> <7e5d6e69-5f65-4b70-8220-6d98457ed17a@wanadoo.fr> In-Reply-To: <7e5d6e69-5f65-4b70-8220-6d98457ed17a@wanadoo.fr> From: Pasha Tatashin Date: Sun, 17 Mar 2024 11:15:06 -0400 Message-ID: Subject: Re: [RFC 06/14] fork: zero vmap stack using clear_page() instead of memset() To: Christophe JAILLET Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, x86@kernel.org, bp@alien8.de, brauner@kernel.org, bristot@redhat.com, bsegall@google.com, dave.hansen@linux.intel.com, dianders@chromium.org, dietmar.eggemann@arm.com, eric.devolder@oracle.com, hca@linux.ibm.com, hch@infradead.org, hpa@zytor.com, jacob.jun.pan@linux.intel.com, jgg@ziepe.ca, jpoimboe@kernel.org, jroedel@suse.de, juri.lelli@redhat.com, kent.overstreet@linux.dev, kinseyho@google.com, kirill.shutemov@linux.intel.com, lstoakes@gmail.com, luto@kernel.org, mgorman@suse.de, mic@digikod.net, michael.christie@oracle.com, mingo@redhat.com, mjguzik@gmail.com, mst@redhat.com, npiggin@gmail.com, peterz@infradead.org, pmladek@suse.com, rick.p.edgecombe@intel.com, rostedt@goodmis.org, surenb@google.com, tglx@linutronix.de, urezki@gmail.com, vincent.guittot@linaro.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Mar 17, 2024 at 10:48=E2=80=AFAM Christophe JAILLET wrote: > > Le 11/03/2024 =C3=A0 17:46, Pasha Tatashin a =C3=A9crit : > > In preporation for dynamic kernel stacks do not zero the whole span of > > Nit: preparation Thank you, Pasha > > > the stack, but instead only the pages that are part of the vm_area. > > > > This is because with dynamic stacks we might have only partially > > populated stacks. > > > > Signed-off-by: Pasha Tatashin > > --- > > kernel/fork.c | 6 ++++-- > > 1 file changed, 4 insertions(+), 2 deletions(-) > > ... >