Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2699997rwp; Fri, 14 Jul 2023 09:56:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlHADqytJ8+S8g4PCHNo8QkdYFo2i0xebt4oOUQ4w55YB2RO7DNkLxjaM3zg+EXqe7hdKpiK X-Received: by 2002:a2e:8ece:0:b0:2b6:9ed5:bf15 with SMTP id e14-20020a2e8ece000000b002b69ed5bf15mr4462057ljl.23.1689353814635; Fri, 14 Jul 2023 09:56:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689353814; cv=none; d=google.com; s=arc-20160816; b=ZZK6VBbru89yVeal2PK6A1wh930NGRg83AS28kL/7bRYoK/bPGUNBArA6zvPYjvVZE /svYqZIztexb84p83VS8pHWc6DOFAtcz2O55FY4200NrC0IRK/RfI1OZMogEDhlnbJrT 0WBlyU5QFQJcTtbYzeK+/5y85jm5FCwcSbLQZMoM6Vi6xDpzYPEkxqtjhSMLbJW3bpNC 6VU5HyEU4bXu20P3b4Hl4yUd12D6EGpGYfLBORR2sGqQtEzMpglMXPTjEs/nx+tvPaJ3 8CjhRE/PEAyF1aiqnxpyMvlW+cf+F3XMPCr9OcF0LK2quo/XwlUVbbXh9eDMRDfWh3mV HU8A== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=A/cGtvz8XeWSeI/2ga1OjJQj7bUnENfy64USXIaMRls=; fh=KZ5irkkSb0O5fBDM/Mbkv/q5iPkZxCfVCke9bnT7CY0=; b=wY549Mynmae6hlPNSEKgZfTylt6PxuZd0lheyOqMo80cBCBWSuzW8nTj2OJU99bNKF sSs9lARgfm+/TaVqUHhhJ1peoKJOl98DQb7wZE+f0728V8XiDJ3Tc41zJguOQkzFxcd2 W7gqZnLmiv+qnwVYOpKZmc2A9EHB1rVGIIF7WSPEGbyoXgKJCq5jn0huPAYhX5y8gIxr ingHbmps50CQ0Maj7VmEleDVQxL/RYWmO+nK/4vqWNpx8prEnGS5n2DYtY1U8CNt8WI5 sWQge5rYmRttMJXoBJ6gOuzuMX2gdaxJ1rjo/1uB36V7gerRys/XA2pyNA+OHqY1fxkf SS3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=RTwPA+Ns; 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 p24-20020a17090628d800b00992969da8d7si1485427ejd.373.2023.07.14.09.56.30; Fri, 14 Jul 2023 09:56:54 -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=RTwPA+Ns; 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 S236051AbjGNQVY (ORCPT + 99 others); Fri, 14 Jul 2023 12:21:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235737AbjGNQVX (ORCPT ); Fri, 14 Jul 2023 12:21:23 -0400 Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E2631FD4 for ; Fri, 14 Jul 2023 09:21:22 -0700 (PDT) Received: by mail-io1-xd41.google.com with SMTP id ca18e2360f4ac-7835bbeb6a0so15245439f.0 for ; Fri, 14 Jul 2023 09:21:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1689351682; x=1689956482; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=A/cGtvz8XeWSeI/2ga1OjJQj7bUnENfy64USXIaMRls=; b=RTwPA+NsI6EAvbf0dITS+kJ/8I1AiDxT76aDhGrwVCcUXQHiHHE4v6UFSNUq+aSCGz ToMxIEC7pWGZ+ZkD9fJRjfauM1HZR7/7FeFewmmlGFuMG/RV7V2idZaUWL/l5TVTJhye aU3ntOHO9Kgu0L7KelkSP4IN/giRFc4qwLS5M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689351682; x=1689956482; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=A/cGtvz8XeWSeI/2ga1OjJQj7bUnENfy64USXIaMRls=; b=Z19LuqxZyyRJ01IHIZLyrKwrsQBVIBGJdS/ZEfp5dFWYqHNfC93QlKr+Y5GV93bMUm WpYvzYZxLCcP4IszBCKcSYBp3YFslwyZ28XiWGRDkleCLYxdC0DlyGaUh4MnzOGFq16N BiLjqP/QltfS1yWWvJaIkvO9CjIG790SPIzaS2EFyYn0b4xH9gJVsmBDt3ABGJQnwB06 ydPO4dV4vDUlnc23Cd7azbT/e8V55CFb2psPpNN2RTmMJf08wgwUPjzazhk3gSLE6f8q pZ2ylNEkdsb863t8+thcAVWYxh5vIlaXQNvmv4PMDyoE9WYSQHeS8gpVV8nh9kuELsLc 0e2w== X-Gm-Message-State: ABy/qLZF4v72R4Bx8vgyLaBbM7oSSqUnggqv67VLglmA2jf2nBs700qU WeR+H91UnzfxoJsJ+Xvmm7mzTBXtU7Vwdoiuaqiw0iMt X-Received: by 2002:a05:6602:3ce:b0:780:c6bb:ad8d with SMTP id g14-20020a05660203ce00b00780c6bbad8dmr5651673iov.0.1689351681771; Fri, 14 Jul 2023 09:21:21 -0700 (PDT) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id f9-20020a056602038900b007862a536f21sm2745024iov.14.2023.07.14.09.21.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Jul 2023 09:21:21 -0700 (PDT) Message-ID: Date: Fri, 14 Jul 2023 10:21:20 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v2] selftests: prctl: Add new prctl test for PR_SET_NAME To: Osama Muhammad Cc: shuah@kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Shuah Khan References: <20230607153600.15816-1-osmtendev@gmail.com> <3c03e28b-8006-a4ac-30bc-6aaf83ccb5d5@linuxfoundation.org> Content-Language: en-US From: Shuah Khan In-Reply-To: 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_BLOCKED,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/26/23 12:36, Osama Muhammad wrote: > Hi Shuah, > > Any feedback on this patch?. > > Thanks, > Osama > > Please don't top post when you are responding on kernel mailing lists. It gets very difficult to follow the comments in the email thread. > On Sat, 17 Jun 2023 at 18:01, Osama Muhammad wrote: >> >> Hi, >> >> Yes, I did install the latest kernel headers and TASK_COMM_LEN is not >> accessible in userspace. >> >> I looked into the test which uses TASK_COMM_LEN but the test defines >> it in its own header file. >> >> Example: https://elixir.bootlin.com/linux/latest/source/tools/testing/selftests/bpf/progs/pyperf.h#L13 bfp test does things differently because its dependencies on run-time environment. >> >> TASK_COMM_LEN is defined in include/linux/sched.h, but this header >> file is not exposed to userspace. Correct. you can include linux/sched.h like other tests do Take a look at tools/testing/selftests/clone3 thanks, -- Shuah