From patchwork Wed Dec 19 23:28:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= X-Patchwork-Id: 10738281 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A935013BF for ; Wed, 19 Dec 2018 23:28:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9A96228864 for ; Wed, 19 Dec 2018 23:28:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8EA2F288D9; Wed, 19 Dec 2018 23:28:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 500CA2887D for ; Wed, 19 Dec 2018 23:28:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728631AbeLSX2H (ORCPT ); Wed, 19 Dec 2018 18:28:07 -0500 Received: from rere.qmqm.pl ([91.227.64.183]:10027 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728588AbeLSX2H (ORCPT ); Wed, 19 Dec 2018 18:28:07 -0500 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 43Krcr0yzWz60; Thu, 20 Dec 2018 00:26:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1545261996; bh=Dla0mzCDfoE+cvcmLLTptd9L/XIc9HU3Igma1nLVmp0=; h=Date:From:Subject:To:Cc:From; b=mD6GkFj7YP2m885Wjnu5hzIoN49MYcshQ3tWWqW2mUF0mmaDoCuGB47I411vE17Hc +smOrRQEtoY5yvAKpFQYsEFHSm/NQVesNeoVDlOVncxThEk8PgUVJnXKw5eaCJLlsX Hww1ZLA7XlbhW0P/9fiDWdHL6LLAKu5L9LMJzCowhFSWEmDfw5I//tuM++eIieORDb ymQ3QPAHzxggsOeIS/pVK8CPq2+KZvLV70Lv2HLHPVZZweKr62EjOnVa8oya9reU5C kJjmaMQnxzexnv6GC3SLLEsN/XuIYAPsgCCiDWH3r3XByOYjAkKAzOb4/4iYVuIHWr 4ppvm/LH3QkiQ== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.100.2 at mail Date: Thu, 20 Dec 2018 00:28:03 +0100 Message-Id: From: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= MIME-Version: 1.0 Subject: [PATCH 0/2] procfs: /proc/PID/comm fixes To: linux-fsdevel@vger.kernel.org Cc: Alexey Dobriyan , Andrew Morton , David Rientjes Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Two extensions to /proc/PID/comm implementation to ease extending TASK_COMM length: first is a fix for silent truncation when changing thread name, second allows atomic query of kernel's TASK_COMM size. Michał Mirosław (2): procfs: signal /proc/PID/comm write truncation procfs: lseek(/proc/PID/comm, 0, SEEK_END) fs/proc/base.c | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-)