Received: by 2002:ab2:6486:0:b0:1ef:eae8:a797 with SMTP id de6csp815994lqb; Sun, 17 Mar 2024 07:50:08 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVshDRu5joljOc002NvY6IgtpmErCyQDH/pj8YGpFGybG5O/p3zw8MPD16QTmumCnLL5tNYXAxbjyTpPRsVn/+pQO0+70X4vlwMBAYOlg== X-Google-Smtp-Source: AGHT+IFxnvhX1LV1A2N8xceP+THEFNPxEi9Rm9CEV42RwUHej0htaRtlA7f0NyCFL7NBObGreosO X-Received: by 2002:a05:6a00:22ca:b0:6e6:98a0:49ac with SMTP id f10-20020a056a0022ca00b006e698a049acmr12191191pfj.16.1710687008083; Sun, 17 Mar 2024 07:50:08 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y4-20020a634944000000b005dbe38b2cfdsi6407624pgk.494.2024.03.17.07.50.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Mar 2024 07:50:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105411-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@wanadoo.fr header.s=t20230301 header.b=d++mfXKP; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-105411-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105411-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=NONE dis=QUARANTINE) header.from=wanadoo.fr 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id ADB59B20C1F for ; Sun, 17 Mar 2024 14:49:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A7A05179BD; Sun, 17 Mar 2024 14:49:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="d++mfXKP" Received: from smtp.smtpout.orange.fr (smtp-15.smtpout.orange.fr [80.12.242.15]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C9491370 for ; Sun, 17 Mar 2024 14:49:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.12.242.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710686990; cv=none; b=eG6zZu4if2YuAl8SsJtI7W6HXZ4oATeHWQgO/A4/rvSZ41kg5bSLNxjLRSgeZFiO0yfN4LCAgRe0VyZIPqH7cynNoSXn6dz4aVSf5FoBjcs0Tzn3IZZ0Cb2NL9KQHX/xQDK3cmgyrE52SZXiGRZ47GGFGrG/bmpyv3U2bjiQujc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710686990; c=relaxed/simple; bh=I/2I6GO1ABrZISXKJlTvH42fIJoP4ISS9lq18Gfz4fQ=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=k7qXIh9WWThZd+b/px42SRiQZ0PkImQp9EM3uK//FAwet0ILT3BcQByrz6exkDo1LRI+aXRPSa3vM8BzM/0UKt1jeFh2s0x215mBtTR0FOA0goIxL1rsfPpLWvDR6HA5n3J2VSqSjlZ8RxgFviJ3BBEOnN+PvkvFy3vAodtnHIg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr; spf=pass smtp.mailfrom=wanadoo.fr; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b=d++mfXKP; arc=none smtp.client-ip=80.12.242.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wanadoo.fr Received: from [192.168.1.18] ([92.140.202.140]) by smtp.orange.fr with ESMTPA id lroJrJQ3lykpTlroJrgbHG; Sun, 17 Mar 2024 15:48:36 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1710686916; bh=HoAJ2N+lKPSB/EwqfVG9puZB7cvWePgKg8IcOh52WhY=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=d++mfXKPIGGGbwfARQr2ZQeNXZ124wRdtELB2zugPXUs8GPrsJXCxsZH8dvYWwG5d WK+ptk0Xo2RDFYY0P7fXlaCuVlnat8IL2ooBoGI0ExdmFAFCeKVXMOA8A6TmwEHCo8 XiQyK7+0eGJOBKtQPFOCs6Tl6qboN0bO8Avlh/5LTdIPH7RrZF11JZXVmKwOCS91tb KUQr7mQ2Tekg38daENiQUelkA/029iGyIA8vtEnHQz55n8glNQjJnp3koICsyTijW5 Few30LWBPPrTYOOj7SdMYvgtpcK/S1ZS0BZmbEjIOQ2yoyeB6doKH6R/u7AYtDVDPQ YMwC/3K4ANqKA== X-ME-Helo: [192.168.1.18] X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 17 Mar 2024 15:48:36 +0100 X-ME-IP: 92.140.202.140 Message-ID: <7e5d6e69-5f65-4b70-8220-6d98457ed17a@wanadoo.fr> Date: Sun, 17 Mar 2024 15:48:26 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC 06/14] fork: zero vmap stack using clear_page() instead of memset() Content-Language: en-MW To: Pasha Tatashin , 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 References: <20240311164638.2015063-1-pasha.tatashin@soleen.com> <20240311164638.2015063-7-pasha.tatashin@soleen.com> From: Christophe JAILLET In-Reply-To: <20240311164638.2015063-7-pasha.tatashin@soleen.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Le 11/03/2024 à 17:46, Pasha Tatashin a écrit : > In preporation for dynamic kernel stacks do not zero the whole span of Nit: preparation > 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(-) ..