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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0536FC433F5 for ; Tue, 9 Nov 2021 18:28:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D7CB161166 for ; Tue, 9 Nov 2021 18:28:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242493AbhKISbI (ORCPT ); Tue, 9 Nov 2021 13:31:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242446AbhKISbH (ORCPT ); Tue, 9 Nov 2021 13:31:07 -0500 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A639C06127A for ; Tue, 9 Nov 2021 10:28:21 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id k4so61384plx.8 for ; Tue, 09 Nov 2021 10:28:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=YqtAkERQI/ln6XRRI9t4KGym2pBKGt4SPOY54xOyYmc=; b=PGOJkkhM/AspXaJubyodGGt3bokcuo1nWeF66Ozy2PSHqL4ozl1ealnJ2sESU77Daa 5PCgxSnMKmr5LSn7P+UZw5lKAiqvWF452/e/zcO5+QvHTusOJTtt+u60C6PqqZ1Yg/LF XnAN//7pVh4I0+4GH1pCdd6cp3HnHcZsIY7gg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=YqtAkERQI/ln6XRRI9t4KGym2pBKGt4SPOY54xOyYmc=; b=ct+At4As60XkF9YAmx/1jepOuBoEJft1mVxG+luUq/NiArwXO3PnDmJ1YKNJHQ5d0Z s+Lj7bgyCn+u/aPqDCbUU/CgfmuptCJNKGDaKYzUquzZqyNtC/9f4dquG3w86d7fHLf3 ft5gyOxYoKJNMo2ZhzOp2Ye+RBZW1RuqWNLMWTyuivBobHeD5z5gz+sH3g3EE9Babk0r UjqUP3sWAqyVv9hAiOVzrl78xTO5wxjrinAtaE3pQwPiQyZ//IxKs8090ncFn2lOr+l7 LQezb8Lrxlk1rUtPOedg/3nzz+0TEPFxENCGLFHFEi3x+ssIbEGtgBgW8I/Vzwgp1tAq 0hMg== X-Gm-Message-State: AOAM530ex96vOg3cMjaK9q3KGExbF2pJG1vAF/XtqUjKzA9nKcrq8xNq w4ouBW7B6iPMoA1sSQIduyHhsQ== X-Google-Smtp-Source: ABdhPJw56zqbHPhzHi/UjO1EuTMs0ckASHUWtACCQVftB6fOpzf6idVKbxIvoc6DXqmWnHNuFyu1UQ== X-Received: by 2002:a17:90b:3a89:: with SMTP id om9mr9485773pjb.29.1636482500572; Tue, 09 Nov 2021 10:28:20 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id u11sm7194577pfk.152.2021.11.09.10.28.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Nov 2021 10:28:20 -0800 (PST) Date: Tue, 9 Nov 2021 10:28:19 -0800 From: Kees Cook To: Yafang Shao Cc: akpm@linux-foundation.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, oliver.sang@intel.com, lkp@intel.com, Mathieu Desnoyers , Arnaldo Carvalho de Melo , Alexei Starovoitov , Andrii Nakryiko , Michal Miroslaw , Peter Zijlstra , Steven Rostedt , Matthew Wilcox , David Hildenbrand , Al Viro , Petr Mladek Subject: Re: [PATCH 0/7] task comm cleanups Message-ID: <202111091027.DEF1B6DD@keescook> References: <20211108083840.4627-1-laoar.shao@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211108083840.4627-1-laoar.shao@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 08, 2021 at 08:38:33AM +0000, Yafang Shao wrote: > This patchset is part of the patchset "extend task comm from 16 to 24"[1]. > Now we have different opinion that dynamically allocates memory to store > kthread's long name into a separate pointer, so I decide to take the useful > cleanups apart from the original patchset and send it separately[2]. > > These useful cleanups can make the usage around task comm less > error-prone. Furthermore, it will be useful if we want to extend task > comm in the future. > > All of the patches except patch #4 have either a reviewed-by or a > acked-by now. I have verfied that the vmcore/crash works well after > patch #4. > > [1]. https://lore.kernel.org/lkml/20211101060419.4682-1-laoar.shao@gmail.com/ > [2]. https://lore.kernel.org/lkml/CALOAHbAx55AUo3bm8ZepZSZnw7A08cvKPdPyNTf=E_tPqmw5hw@mail.gmail.com/ Thanks for collecting this! It all looks good to me. Andrew, can you take these? -Kees -- Kees Cook