Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2684324rwd; Fri, 9 Jun 2023 15:25:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7obDIiKhkLJUYdNkG3b6FQFkae1iQCvGcaol6RUAQFLpjHyoOlNiDeT+NChZfvJFnm9487 X-Received: by 2002:a05:6a20:e689:b0:10c:ff51:99bb with SMTP id mz9-20020a056a20e68900b0010cff5199bbmr2493750pzb.20.1686349550880; Fri, 09 Jun 2023 15:25:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686349550; cv=none; d=google.com; s=arc-20160816; b=baE33vz+lEVHbXVud6+otcs4oQrZbdUmTYBk8MT9ScVMQGTB2Ocbdzj7MqinbE2QUz IJtW/qDLGWbSiPnYYbDMXCkcb+nV0xu6nVwbfAHCNlQ7f1oHWByCMaIyoR/BkYo3Sc21 A1CMvMxhEzja5zyxHrhXCqBjPD3mL3tUoRLXFsOtXZ67oXRoLjk2rq0nJrz3Sngj/jOr R88U398Wz8zW8AxhzCi829yn8otRor4oueST0KGgd4HFsAXrCoRMdr++a0bylR63T2gM 063vi0cbcAi8dFCrFmblSTzpfa104OVr7rHm8txKwiBUy9mJK3zOHhpQjgi8jNIGN7gm Uz6w== 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:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=zTniS9s9n8Hii/rpOvujGvQzp0uGfuz+V/CHX4S8b1A=; b=mJVV0aEjZLJFy/od6Qmg0r3Uv6zgfGADhJashCfnZf59VOoPzUVTYBSihX6I2uieAN d3AFEwTVUl3spup3lMGYS1sz4nYYjFZ9uCyoG9LeyZyUz4ekHR0TmZEmKSVak2UAmEhV +fbUG9zG9rzFFF5MFXh6GcxxmzVd2wdQHhKANu5PZXHcL7aTiH2k6Ym6MjI8Hhtlcx2a wbFTdOGyzAsTLUldu6XvSFIgk/8qrmLxjY4zTHyoWwkZudiuFRWUTYgN1u/5kNo/C17N ab61/rkmx2VVafivsHbtLWnyQjONEOcnmtkGDgZp4gwuOoGEXkGqlYlh0oVi8YnoIo2i CCiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=L2gBH5LR; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f17-20020a637551000000b005455d43615csi3240643pgn.736.2023.06.09.15.25.39; Fri, 09 Jun 2023 15:25:50 -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=@linuxfoundation.org header.s=google header.b=L2gBH5LR; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229599AbjFIVnn (ORCPT + 99 others); Fri, 9 Jun 2023 17:43:43 -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-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 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,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/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