Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp575378pxb; Mon, 25 Oct 2021 14:06:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyF3leHDI+U2l37/U7RCaP06keZ1TEVpSNDZJYjIXLw/6H/bn5yHV9GUQ/aRuGsp9HXk6N X-Received: by 2002:a63:368a:: with SMTP id d132mr15338530pga.342.1635196009919; Mon, 25 Oct 2021 14:06:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635196009; cv=none; d=google.com; s=arc-20160816; b=g2kARp16FxP7KB6mNsmF230oGBiWJklSak0STsDd5U8HS5k7uGCj7Pz2kJ1AKnG+q0 hHTuSuXYmUeowJfNhlMYABYi5F8jAroEhKVh6kS7yMbq91RUN9tra2JgZb44+8K4C0r7 /u38PBRXLwj+hO79EmTcyA3PBNC3b1dFGsTwl4DAjykCVjEtaNZxvUppnggp8EJWK5X7 utKteL9/jIe3w0njtGmMXTVLjIOJDR+Q0dMSHpRvp7FXnbVtqJ9c3OX5H+S36l3lTk2K RVcalIJG4PnRvnn0YhTFVrKgDRbua5+WHc2xxKGtOTV3+UUYCTO8gbWch0+x05dvEM1Y gwug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=MD0fa8Ds4h5NswAJXye+5JT72NwLKz8oSpednN6sIRs=; b=rk/QMIjNw6DnopeiuZ4mCHE/1suY6uKXnR1kXSUS/J1eePaLrgTO2nn+O14c6NIjk5 K/eAI+kaZja9KkGBJEEBM91USYxP3WUUGts4zX8yrRWZ0JE8M/nBAYo6avxtAU47OlyX fo5BJN7Wu7Mqyd3QBnkHDgjz58QQJu7rpa/3S3zd4dbFKszLFeIK2pn28wfZCfPFUbDR ESUwm6eMPhUXLzoxcfu9CsFdZOdvEIhQqSUPXfQ0TuwdUnBofxdWGFpcmYx4AoLmdCVK KAfwvy+vYYLMmnv1//bEGRcaPf7EMPgxWhFNOtI57lUmQ5KZQF++4QjAxFs4k1xajW13 TDtA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pg1si2555448pjb.75.2021.10.25.14.06.34; Mon, 25 Oct 2021 14:06:49 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234310AbhJYVHd (ORCPT + 99 others); Mon, 25 Oct 2021 17:07:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:38924 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230373AbhJYVHc (ORCPT ); Mon, 25 Oct 2021 17:07:32 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8C80961073; Mon, 25 Oct 2021 21:05:06 +0000 (UTC) Date: Mon, 25 Oct 2021 17:05:03 -0400 From: Steven Rostedt To: Alexei Starovoitov Cc: Yafang Shao , Andrew Morton , Kees Cook , Mathieu Desnoyers , Arnaldo Carvalho de Melo , Petr Mladek , Peter Zijlstra , Alexander Viro , Valentin Schneider , "Zhang, Qiang" , robdclark@chromium.org, Christian Brauner , Dietmar Eggemann , Ingo Molnar , Juri Lelli , Vincent Guittot , "David S. Miller" , Jakub Kicinski , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , dennis.dalessandro@cornelisnetworks.com, mike.marciniszyn@cornelisnetworks.com, Doug Ledford , Jason Gunthorpe , linux-rdma@vger.kernel.org, Network Development , bpf , linux-perf-users@vger.kernel.org, Linux-Fsdevel , linux-mm , LKML , kernel test robot , kbuild test robot Subject: Re: [PATCH v6 00/12] extend task comm from 16 to 24 Message-ID: <20211025170503.59830a43@gandalf.local.home> In-Reply-To: References: <20211025083315.4752-1-laoar.shao@gmail.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 25 Oct 2021 11:10:09 -0700 Alexei Starovoitov wrote: > It looks like a churn that doesn't really address the problem. > If we were to allow long names then make it into a pointer and use 16 byte > as an optimized storage for short names. Any longer name would be a pointer. > In other words make it similar to dentry->d_iname. That would be quite a bigger undertaking too, as it is assumed throughout the kernel that the task->comm is TASK_COMM_LEN and is nul terminated. And most locations that save the comm simply use a fixed size string of TASK_COMM_LEN. Not saying its not feasible, but it would require a lot more analysis of the impact by changing such a fundamental part of task struct from a static to something requiring allocation. Unless you are suggesting that we truncate like normal the 16 byte names (to a max of 15 characters), and add a way to hold the entire name for those locations that understand it. -- Steve