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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 929B9C7EE25 for ; Fri, 9 Jun 2023 21:43:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232285AbjFIVno (ORCPT ); Fri, 9 Jun 2023 17:43:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231895AbjFIVnm (ORCPT ); Fri, 9 Jun 2023 17:43:42 -0400 Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 187A435BE for ; Fri, 9 Jun 2023 14:43:41 -0700 (PDT) Received: by mail-io1-xd2d.google.com with SMTP id ca18e2360f4ac-760dff4b701so22767239f.0 for ; Fri, 09 Jun 2023 14:43:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1686347020; x=1688939020; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=zTniS9s9n8Hii/rpOvujGvQzp0uGfuz+V/CHX4S8b1A=; b=L2gBH5LR9/NnnjQxk/9gp+5oaRF+iMSmZ8+jYTBr3+KP952QM3dXG5wEaAUduKXVsH l7OcQDRePoAvwNf8ZfNEALQISR3WuS7uWaX9XWEkLqVZamD/itWI6Y6g7iH+QxXUUS9G JBDZ10Jp7umy2R3SPW4yuWAmPnfW8pOQL3mHY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686347020; x=1688939020; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zTniS9s9n8Hii/rpOvujGvQzp0uGfuz+V/CHX4S8b1A=; b=Dor33ugKTYq3pGmaXDA1SOD4F7AbGSkLmRAapjfNpNFXH+a7rn4EYOYKQB7jWWLCZ1 UyEeigrDaZuGLhk+ccCs2WKqbr2DT9xOq9Ur92j0/JvkrkZtDOZWvmaHzGoIyFZMvCqj XHmqCTA4hG6VY5neul4UJAjC+uxn8msnoI4DH/wp13DIgNj66W8TzObbfyR70az2zy/Y DfFWhmeGzTn7Msd2Dz1UKf/V0WeL4NxRzlSekyZVte93jSj5+4GM597vV1XyFnGnwQM1 AbX1d5XpF3qiBRRcVUFfMg/4RoAbPFbH4jLU6oulT3E47ml+VRSSPaTdJlcX6w1Vi8Zd C59g== X-Gm-Message-State: AC+VfDye1iQeMJJBvn2KGC46pcwg4hKy22DQlhjLfuvnqY/+bpUrGLLM attj2hZedow51XodggLHDo6ElQ== X-Google-Smtp-Source: ACHHUZ4tEr2HoQujt6xk4qRtonXoDYtO5E49SJ/tX/dVSI4RCzhLiJ/sEoDoqAsbkzKxlTRARpklfQ== X-Received: by 2002:a05:6e02:1a2d:b0:33d:c72:4ee with SMTP id g13-20020a056e021a2d00b0033d0c7204eemr1867942ile.1.1686347020374; Fri, 09 Jun 2023 14:43:40 -0700 (PDT) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id ei2-20020a05663829a200b0041f4ce6e9cdsm1214208jab.65.2023.06.09.14.43.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Jun 2023 14:43:40 -0700 (PDT) Message-ID: Date: Fri, 9 Jun 2023 15:43:39 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v2] selftests: prctl: Add new prctl test for PR_SET_NAME Content-Language: en-US To: Osama Muhammad , shuah@kernel.org Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Shuah Khan References: <20230607153600.15816-1-osmtendev@gmail.com> From: Shuah Khan In-Reply-To: <20230607153600.15816-1-osmtendev@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/7/23 09:36, Osama Muhammad wrote: > This patch will add the new test, which covers the prctl call > PR_SET_NAME command. The test tries to give a name using the PR_SET_NAME > call and then confirm it that it changed correctly by using PR_GET_NAME. > It also tries to rename it with empty name.In the test PR_GET_NAME is > tested by passing null pointer to it and check its behaviour. > > Signed-off-by: Osama Muhammad > > --- > changes since v1: > -Used TASK_COMM_LEN instead of using numerical value 16. Please add linux/sched.h here as an include to pull this. It is good to add an explicit include as opposed taking a chance on it being included from another include. thanks, -- Shuah