Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1677555pxb; Wed, 9 Feb 2022 01:58:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6OPgVy5L24zhhuf0FGeA5rxAXu2/5juZWe36agbvbh1jhEUIS3dmxqQKUpZAoCS46fyGp X-Received: by 2002:a05:6a00:190a:: with SMTP id y10mr1465018pfi.52.1644400686547; Wed, 09 Feb 2022 01:58:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644400686; cv=none; d=google.com; s=arc-20160816; b=s2TIny57MWqFA1yvqF5Jej8c0dHdBEskKWZaTGC5Zwh3gGZVix2U9qoCmE9MgR4m09 HpkQM7GGtZ1sIA0570SRu5BGOXSJWiu38ALnb4CLhHUmI+PY9B3W5TyTU3d2F5uLk4lH qbTuSD9X7GI2nduY878CHqvHyYp9XBnP7hbGgK8hRZTKKaoQ0zP0axsD8tZy2KGQPWOe /uI9/VvEBckjpV9stl+3mrMAld17uN6Ok8UvWE9BcgTImSVEBbDyk1LyeV37w1JuRy93 FO2F3QFM7TOQa3Sbka562b+kdiMCChHdT88ExoRZ36uRTL4dwYcU0aeX203ZBSPIENi9 HzJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:in-reply-to:subject :cc:to:dkim-signature:dkim-signature:from; bh=JrCAs9kbBprIEgALNJFOh0qnOZQk7Hfl/hnbgt4vAfw=; b=gInK8NSUrrUjCUL9XlPEJaWy4+BWOJKTcn9J1Uyxa8tZi7/A2Lx07tR5xIPBBX8/jj vAiPFGZSXufu9S8ZcSJu9B1tdVuVj7VSIGjV05q34sGKu/V+qwq1qZjtToJeNmLuiJn0 /r1PRnYNXeV5VyKNCWsbnSc/g4n1eC7vQA2GY2ff59PIbWgpaAAA2aFUA63W7xphif0q WoFGF2kPn1Ok5EBcv6sclEV+bNywuOy8qqyqtjB12L9viH7L/jvzm7wKoD+vf6y4dMnm tP/Ke7TARTRqvJF7gvytTgrMsiRE97Xg4zYhOEqQt3U6WdU8EUotJKbzslC7OCMOnDnZ Sa4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=jgxsPPPy; dkim=neutral (no key) header.i=@linutronix.de header.b=HnFz7J1n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o5si1722452pfg.202.2022.02.09.01.57.54; Wed, 09 Feb 2022 01:58:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=jgxsPPPy; dkim=neutral (no key) header.i=@linutronix.de header.b=HnFz7J1n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350052AbiBHIi2 (ORCPT + 99 others); Tue, 8 Feb 2022 03:38:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237041AbiBHIiY (ORCPT ); Tue, 8 Feb 2022 03:38:24 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 328D4C0401F6; Tue, 8 Feb 2022 00:38:24 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1644309498; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=JrCAs9kbBprIEgALNJFOh0qnOZQk7Hfl/hnbgt4vAfw=; b=jgxsPPPyIazEOwCTiVmZmbsyjKpMw+Qqmq76g2m8P5z4KnJB/NVGlME1Q+2eZflalqwZFH E/m/U2zbLt1GwL9KEqZmiobS2BBK23V+XghXRCubY5wuXeV1KbFiJRBTeYmMAply1C50R9 +sNMq/aHaZagKUHTYWDrA13pLBPtQAyBbBCHTvj92jdAAUq6sPyE8RyiuMfZi1uBIAPEBm 6uSW/3NymO7qkF6O+/D723OXmoVd7sn+cTShk2Vm4yS16oqZstiFKTzxKWo+FZE9JIu+yL 0kjNAqcrWrVlrlKB379S+RsBjnplFAVlyX8lT8BgczxWmm2BuaifKQfgpmqAEg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1644309498; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=JrCAs9kbBprIEgALNJFOh0qnOZQk7Hfl/hnbgt4vAfw=; b=HnFz7J1nLMVF9/u/sEsoyb+TMdbcI8/bkZD8tJIpPry3H0lJR1ZVjQty8Zn0aB1yRgp0sM 2Eh+c9laMdsrdGDg== To: Rick Edgecombe , x86@kernel.org, "H . Peter Anvin" , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Andy Lutomirski , Balbir Singh , Borislav Petkov , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , "H . J . Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V . Shankar" , Dave Martin , Weijiang Yang , "Kirill A . Shutemov" , joao.moreira@intel.com, John Allen , kcc@google.com, eranian@google.com Cc: rick.p.edgecombe@intel.com, Yu-cheng Yu Subject: Re: [PATCH 26/35] x86/process: Change copy_thread() argument 'arg' to 'stack_size' In-Reply-To: <20220130211838.8382-27-rick.p.edgecombe@intel.com> Date: Tue, 08 Feb 2022 09:38:18 +0100 Message-ID: <87y22lvjlx.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 30 2022 at 13:18, Rick Edgecombe wrote: > -int copy_thread(unsigned long clone_flags, unsigned long sp, unsigned long arg, > - struct task_struct *p, unsigned long tls) > +int copy_thread(unsigned long clone_flags, unsigned long sp, > + unsigned long stack_size, struct task_struct *p, > + unsigned long tls) > { > struct inactive_task_frame *frame; > struct fork_frame *fork_frame; > @@ -175,7 +176,7 @@ int copy_thread(unsigned long clone_flags, unsigned long sp, unsigned long arg, > if (unlikely(p->flags & PF_KTHREAD)) { > p->thread.pkru = pkru_get_init_value(); > memset(childregs, 0, sizeof(struct pt_regs)); > - kthread_frame_init(frame, sp, arg); > + kthread_frame_init(frame, sp, stack_size); > return 0; > } > > @@ -208,7 +209,7 @@ int copy_thread(unsigned long clone_flags, unsigned long sp, unsigned long arg, > */ > childregs->sp = 0; > childregs->ip = 0; > - kthread_frame_init(frame, sp, arg); > + kthread_frame_init(frame, sp, stack_size); > return 0; > } Can you please change the prototypes too for completeness sake? Thanks, tglx