From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5A7C2C43603 for ; Thu, 12 Dec 2019 14:08:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 34660214AF for ; Thu, 12 Dec 2019 14:08:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729658AbfLLOIC (ORCPT ); Thu, 12 Dec 2019 09:08:02 -0500 Received: from isilmar-4.linta.de ([136.243.71.142]:43130 "EHLO isilmar-4.linta.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729529AbfLLOIB (ORCPT ); Thu, 12 Dec 2019 09:08:01 -0500 X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES Received: from light.dominikbrodowski.net (brodo.linta [10.1.0.102]) by isilmar-4.linta.de (Postfix) with ESMTPSA id 473A2200A97; Thu, 12 Dec 2019 14:08:00 +0000 (UTC) Received: by light.dominikbrodowski.net (Postfix, from userid 1000) id 8E99420B64; Thu, 12 Dec 2019 15:07:56 +0100 (CET) From: Dominik Brodowski To: Alexander Viro , Linus Torvalds Cc: Ingo Molnar , Andrew Morton , linux-kernel@vger.kernel.org Subject: [PATCH 0/2] remove ksys_dup() Date: Thu, 12 Dec 2019 15:07:50 +0100 Message-Id: <20191212140752.347520-1-linux@dominikbrodowski.net> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Instead of pretending to be userspace, the opening of /dev/console as stdin/stdout/stderr can be implemented using in-kernel functions. --- @viro: is this something for you to take and push upstream for the next cycle? The same changes (on top of commit ae4b064e2a616b545acf02b8f50cc513b32c7522: Merge tag 'afs-fixes-20191211' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs (2019-12-11 18:10:40 -0800) are also available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/brodo/linux.git remove-ksys-dup including all changes up to d7aacb7ad766adea665b440b56e9c9152b1065f7: fs: remove ksys_dup() (2019-12-12 14:59:48 +0100) ---------------------------------------------------------------- Dominik Brodowski (2): init: unify opening /dev/console as stdin/stdout/stderr fs: remove ksys_dup() fs/file.c | 7 +------ include/linux/initrd.h | 2 ++ include/linux/syscalls.h | 1 - init/do_mounts_initrd.c | 5 +---- init/main.c | 31 ++++++++++++++++++++++++++----- 5 files changed, 30 insertions(+), 16 deletions(-) Thanks, Dominik -- 2.24.1