Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp597110pxb; Mon, 25 Oct 2021 14:36:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbtaX4q4CvLg6WPNQZDNwG/f+rJ4Y+23uRDbs299HmRs0AF2jKeWTIas2grNhdrVPiSpQa X-Received: by 2002:a17:90b:1b46:: with SMTP id nv6mr18082892pjb.162.1635197799262; Mon, 25 Oct 2021 14:36:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635197799; cv=none; d=google.com; s=arc-20160816; b=LEGOxOPGwff0q5hohPZF2AJYY7ow08Q5Sw0FgM5e9Qz8c8N+vv8gnYIbgX0WJUCftR V1Asbhg+vqSeG4LgevBCF6XEGCJEqhJswb62NdI6Kgy/m7DHz5YOip3/rkz2ZONm2q7n 0Ueo2jA6DRmEdBs4fGxBOwjkxuVTBxqk68R5IjwNaad36+DDd7vgt7pacuKDE/KU1/BO sYN1ynOgyXV48qbPLYQL2u8RzTo84xvBZP5SEzgjsyQ4qHtoqvzKO/pjXiRb/hditAW4 ocgCugAlPhJID6eOl+cnHCaCUWr7OrbJTCkG87QqaFpdb1IVVWhBsDG0nTxyxNtDexri AQaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=+d0Qbu1iomeuu1b0XB1a5sl30MKuGON4H+QXA4yUgY8=; b=VZNNQWHIwVYYuEv9y7LrHiCS1ra5Qs4D6Li4LNCTHkDY2T1IBHz3M5xFK/VWziK6xM uA+dZTn8/Vjn69DsGHnhynbKDSQEHUP71NNDp3drp3gfHMVT9hkN7JquQO12zTegbZ0m juVpDMZQKgBz5BtiiTGKDr1+UQAhNiOItBSTBf1IBTccz7FvvXa1+m17fkXo3Wj4IVYx ksJSDfkxCh1naoKhDwRuDeBlM86fu8lPnZUwx0dShUksy25emU+GOpUHeRRjecDj9pDM 4BlMDRWsIxBJJDk0DDc358zovh071tGjrz5UWzSuXmSUG0NywYHP9SpyoOlz8D/9YN4K x+hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WCK5zsT3; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d5si20431000pfl.168.2021.10.25.14.36.25; Mon, 25 Oct 2021 14:36:39 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WCK5zsT3; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231300AbhJYSMo (ORCPT + 99 others); Mon, 25 Oct 2021 14:12:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230194AbhJYSMn (ORCPT ); Mon, 25 Oct 2021 14:12:43 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DACA6C061745; Mon, 25 Oct 2021 11:10:20 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id f5so11710232pgc.12; Mon, 25 Oct 2021 11:10:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+d0Qbu1iomeuu1b0XB1a5sl30MKuGON4H+QXA4yUgY8=; b=WCK5zsT3weZzmYfIBAoy+kmVYDC0BYJ6lommblY/oHQV/xnwun3Uuo6iPEc6fribAy uKfJmIaAC8d2IH9Fa1mmRfoYRrwRwP1b1mR941fuqAckUxtMloqQ/4udOb2NtHd52T4x btUqWEi40v7aAJ/kn0eITbpogV53PIPoZkWn5/fHVTFIfHYplnOkqXwvA6l4R+9yB/kA ZCzwpDyVG2JvfWhgzh+GsPs4pXSG5nwwiXWwa5IeI0FTbNTdvvfoNGPkZusYqQAVJ3VF seJzxEu8gZIw4wV8yg4cJdTvrUfUi0Edyo4hqlpILDOBWjDUk12ctSH48FWpUaDBvut0 TZHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+d0Qbu1iomeuu1b0XB1a5sl30MKuGON4H+QXA4yUgY8=; b=A/wDxE88GQsjbHmTLlAzLMgegmBqezWNRhYgfJtwOh+wRVBYwln9twexl3w/ibVfUj 2FvccSjGPdKu1uaO0Px/hvobzKFMF/xcW+0ULsfrhKJaXXz63Nu8+lTyAeXBpYcyEWZ8 biJ8lfENGrY5xRYB047sWsGnUfVsoUHZChlUxBlu95G80LX3GJJdqu1S9H8sga5EoTe+ q61UQWcsLXs1lDenuvagcURYmJzT8cbkh2bwgHgxiPmFcGSry47b3iew8WlvkF9refUl t6s50krWJlwJX0apv7/aZW7aZNg4O721Ts/fNlxhkGoNzuvIvVSc0GlpgnY7aH7x6Ccj XO/Q== X-Gm-Message-State: AOAM531t8kIhvEfjp5fmcWVRxg/kDqzGb8rr5OtGrwuFRPtbz7o3zH+c opr/nDFk7Suu0qB2zOlfPLDt7A6+bPgxkdZdfKo= X-Received: by 2002:a65:4008:: with SMTP id f8mr14907559pgp.310.1635185420342; Mon, 25 Oct 2021 11:10:20 -0700 (PDT) MIME-Version: 1.0 References: <20211025083315.4752-1-laoar.shao@gmail.com> In-Reply-To: <20211025083315.4752-1-laoar.shao@gmail.com> From: Alexei Starovoitov Date: Mon, 25 Oct 2021 11:10:09 -0700 Message-ID: Subject: Re: [PATCH v6 00/12] extend task comm from 16 to 24 To: Yafang Shao Cc: Andrew Morton , Kees Cook , Steven Rostedt , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 25, 2021 at 1:33 AM Yafang Shao wrote: > > There're many truncated kthreads in the kernel, which may make trouble > for the user, for example, the user can't get detailed device > information from the task comm. > > This patchset tries to improve this problem fundamentally by extending > the task comm size from 16 to 24. In order to do that, we have to do > some cleanups first. 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.