From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751951AbdEOWcB (ORCPT ); Mon, 15 May 2017 18:32:01 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:34494 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751856AbdEOWcA (ORCPT ); Mon, 15 May 2017 18:32:00 -0400 Date: Mon, 15 May 2017 23:31:57 +0100 From: Al Viro To: linux-kernel@vger.kernel.org Cc: Linus Torvalds , Ingo Molnar , Oleg Nesterov , Peter Zijlstra , Christoph Hellwig Subject: [RFC][PATCHSET] wait4()/waitid() cleanups Message-ID: <20170515223157.GM390@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series switches compat wait4() and waitid() variants away from set_fs() use. A couple of helpers (kernel_wait4() and kernel_waitid()) are introduced, copying siginfo/rusage to userland is taken to sys_wait...(). That allows both to simplify the guts of do_wait() machinery and avoid messing with set_fs() in compat variants of these syscalls. Lightly tested, seems to survive without regressions. Please, review.