Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18129939rwd; Tue, 27 Jun 2023 12:05:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6mZ+TfCxAmunq8pHLQDeX1n057PyF5zZx9JTRIaxLlRw5bUBQnJjY1ailrT01XR/YX+Lsg X-Received: by 2002:a05:6808:bcb:b0:39e:d6a6:5712 with SMTP id o11-20020a0568080bcb00b0039ed6a65712mr25700253oik.12.1687892734314; Tue, 27 Jun 2023 12:05:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687892734; cv=none; d=google.com; s=arc-20160816; b=fXcQCOR6LwR7YSNVFbmg+TgpmKhFs6mJ88crHpOUSef0c7ikAIoGwjB/05VKk/nPFf ARXN2OWnO9X9WC8cWB2pB8dxF64iaDmNPsHfucoVd/7+6/LJFAv9A/nIl3oiZHiHxp+q 3hdViOLeODYGsPXNatGAnkr6lK2mjvADgPoceiZ9JBzbno8NQGGoHLAfOUJLjTQttl5o uA/wCojD0R1pxbko+jYqHbu88m5RCK7cwcj62r80c3zVYoMSy52bSnDau+ZRCaWPJUkx BlgimD/f8J8Qft9BXen5NAb3yYQxcDwMEE7zSe+W6LHPAbRSyUEuXYXzWAkcfUpywO76 2P4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=/EKvvpO8ihr7IkGBgmCBFWbU1tN0DPRSB48oBAf2vTQ=; fh=OxAy3aOMh0W3GY0qGBPCIyxcgwHalzjdRL60XqDPYvE=; b=sTFgs1+iHCSawm9ZTKbDYDHJGkcQQIDA0tUhfmPK+zzI3u9jSwYrRCFwzp6NdTYSfY EH+3Z6fYzkoCx031mZIj4+bxSQ65QboGWs2pa4q9Vut1UV45iOxL9Q93k+VEOJ0VjqAY XF9MjLGeWhvNxpeg3FqPjWnmtXzgDNIdUZ/Wjec7TyV8S+5oGLcZiB+IuS+8RPGcTc/5 LPxPQAcq+cGvB+8ToI9aEgslG1jqfv1dN+a5mM7D8f8NWo1ZHgz9JakzznVivy+2ipcN CS7uqZoT9ICq0FbbXKrt4XBsVXz7UovPrKARiLn/WPodBLnyNGGNKx8lo+BGFmPLqN4D vavw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=NQstSq2G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w184-20020a6382c1000000b0054fb9698c4csi7965539pgd.13.2023.06.27.12.05.19; Tue, 27 Jun 2023 12:05:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=NQstSq2G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230450AbjF0TBM (ORCPT + 99 others); Tue, 27 Jun 2023 15:01:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbjF0TBK (ORCPT ); Tue, 27 Jun 2023 15:01:10 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D550119A9; Tue, 27 Jun 2023 12:01:09 -0700 (PDT) Received: from [192.168.10.54] (unknown [182.179.162.32]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madras.collabora.co.uk (Postfix) with ESMTPSA id E48DF6607155; Tue, 27 Jun 2023 20:01:06 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1687892468; bh=/9PrOHnvrybO+vm7KEMCWRQ/zQkS6KYWvsrScJjK7KY=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=NQstSq2G2pKMTArKMF7wiQZ7161dBYh0/WOHI7OckZnQpgxDo34ElDUL2Oylrgltp vdngVF4HMSH88fluxuIMFYAEicAWMv0WsQe3xYy7eJvw6/ae8wG0zC5km2sJ63IiVE b0EBEI1lTPVwb8T3nvrtQ4rtRlKaFP1iCTGpQE1vX8F++tjNCYEKNaN6E9nNYTf/zf HkFbMmOVQ5lA4kqs3Up0TECHJ3bFIfY0gN7sVboYUtKyBe/0m3U/tbKtxmC29Zbj2u tJd4hKGzFZrg2gT+QewrnyT18B18Efqudvb7FhCpmpB2UAJG1K6q1Y1YMtHysgESej SGe2PH4arzLvQ== Message-ID: <758f6c94-ac29-5e9c-f5c1-68210c2427ab@collabora.com> Date: Wed, 28 Jun 2023 00:01:01 +0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Cc: Muhammad Usama Anjum , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v2] selftests: prctl: Add new prctl test for PR_SET_NAME Content-Language: en-US To: Shuah Khan , Osama Muhammad , shuah@kernel.org References: <20230607153600.15816-1-osmtendev@gmail.com> From: Muhammad Usama Anjum In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/10/23 2:43 AM, Shuah Khan wrote: > 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. TASK_COMM_LEN is defined in include/linux/sched.h. It is only to be used by the kernel. If we look at include/uapi/linux/sched.h, TASK_COMM_LEN isn't defined. So this test looks good to me. > > thanks, > -- Shuah -- BR, Muhammad Usama Anjum