Received: by 10.213.65.68 with SMTP id h4csp512215imn; Fri, 16 Mar 2018 10:01:20 -0700 (PDT) X-Google-Smtp-Source: AG47ELtP0g31zCRDQVZ7lFeDvFyESZ0evVAxDpLoN6YbFMMGCdPxh0Ht5QdXEfvCHXcG9i5DSwNi X-Received: by 10.99.134.193 with SMTP id x184mr2025833pgd.324.1521219680590; Fri, 16 Mar 2018 10:01:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521219680; cv=none; d=google.com; s=arc-20160816; b=PI0U5BQmvsyNsfj3Cvk2rDiEPzH18/ddl18EeRHMba9FMedE6Hjky0fxVTK9wdLoo6 0XD3JzjDoOcywi60Q8+0tTIvG4//dQUhML9P6KDJF8uBTGBTFqFGq+2j9nPaO2wnzYS8 un/Q2dbXS59MMSryG9uwiIo92JOi0VvNbtf1q2wx2M4HE3so3LFVbaSSC3EBJHhI65X+ cTWMn8ZNjCeh4Zq9+OjTgIUupYWzqEd+emcBjDPgk+/Qxh7JOjBsN4EfHeALuqxCnHvD P+Oam7jW4wImXY9ouiVJzIqBe9BrFe1E2OQxSDkm0s8YkQtmc4LY/I9z1+C5HzwiRFgR /Ryw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=zReCUFDlL0Q/CQs4IJoBq4ZQDkF9WBVgdZlayeUlzoA=; b=ZrGTNZFw7x+bCqRy6BV2GfAE80dt7NPlQ+CU+6vb7lpgZTdfG5uZ2oZXlKFUh/KPej FF5AuM65kfldqxFaLzdgZAz4/bYb2uvlY2S1lx6163s4SxmEL4hNUuSNrrzzVuTk7nGR o/DQF4RkorWFd5vC9pn3OmAFYG5mZfgWUnkVZSgB7/tSTrnEFvWENzPNO7j3wt8Jbdp7 0+VuWVreQEeGabvZkFMBCzZJ80wt4sdTxt80L1pdjXTNp3s9ldMsq8IzB1s6SlPmHK+G URqXHv5kBo3ImGVtygMoBILNf2oJLqQoim6uHmiOVlGhAoRq1E05lVBinDMX9Kn1QDc7 WXxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n3si5257530pgc.12.2018.03.16.10.01.04; Fri, 16 Mar 2018 10:01:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932976AbeCPQ6h (ORCPT + 99 others); Fri, 16 Mar 2018 12:58:37 -0400 Received: from mx2.suse.de ([195.135.220.15]:53089 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932891AbeCPQ6e (ORCPT ); Fri, 16 Mar 2018 12:58:34 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 958B3AF9A; Fri, 16 Mar 2018 16:58:32 +0000 (UTC) Date: Fri, 16 Mar 2018 16:58:31 +0000 From: "Luis R. Rodriguez" To: Dominik Brodowski Cc: linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, viro@zeniv.linux.org.uk, luto@kernel.org, mingo@kernel.org, akpm@linux-foundation.org, arnd@arndb.de, "Luis R . Rodriguez" Subject: Re: [PATCH v2 02/36] kernel: use kernel_wait4() instead of sys_wait4() Message-ID: <20180316165831.GV4449@wotan.suse.de> References: <20180315190529.20943-1-linux@dominikbrodowski.net> <20180315190529.20943-3-linux@dominikbrodowski.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180315190529.20943-3-linux@dominikbrodowski.net> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 15, 2018 at 08:04:55PM +0100, Dominik Brodowski wrote: > diff --git a/kernel/umh.c b/kernel/umh.c > index 18e5fa4b0e71..f4b557cadf08 100644 > --- a/kernel/umh.c > +++ b/kernel/umh.c > @@ -135,7 +135,7 @@ static void call_usermodehelper_exec_sync(struct subprocess_info *sub_info) > * > * Thus the __user pointer cast is valid here. > */ > - sys_wait4(pid, (int __user *)&ret, 0, NULL); > + kernel_wait4(pid, (int __user *)&ret, 0, NULL); > > /* > * If ret is 0, either call_usermodehelper_exec_async failed and There is also a reference to sys_wait4() usage on umh.c: /* If SIGCLD is ignored sys_wait4 won't populate the status. */ kernel_sigaction(SIGCHLD, SIG_DFL); Does that remain true for kernel_wait4()? If so that comment should be updated as well. I don't see any kdoc for kernel_wait4(), can you update it and also clarify to recommend it so that other users do the same? In fact not a kernel helper which just takes no last argument, and passes NULL to kernel_wait4() as well? Luis