Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1051215lqp; Sun, 14 Apr 2024 11:37:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUbKLqcrZQ2Izv7m5LjvUlREsyyXhYsavGn+uGwzDsrqJhTrrgjVC6nyD8RuV0IWI+kM7/Ql7FBn4U/8vSBD0Aao7jgN1F01jWs1SYFKg== X-Google-Smtp-Source: AGHT+IGZ82yXBoYeu86qs5G0eGYP4tvNNZvTmrooVU2VrbGIxDzGJ0h9T1FSdvXk8yF1ktLo8Rv8 X-Received: by 2002:a05:6808:2cc:b0:3c5:f97f:d110 with SMTP id a12-20020a05680802cc00b003c5f97fd110mr8609520oid.52.1713119834051; Sun, 14 Apr 2024 11:37:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713119834; cv=pass; d=google.com; s=arc-20160816; b=JoGgUasDHMhrbBPiaUFRw9nX246BHzPN3GWucnKo3dbKjxTxR3k2SvGmFupGMHCmui LIMVeFKVk5qUHFp2UZlHNl1aqYuO+LGv5WNBPoEa/m5UyFuVWovj2c/n7VjQqW7awPcv EkEDICSSYvQq2JRKni4bOzclCs7/IgP/ExfcFcDYTfIEyYUPAfkov8xafcOvEK0WaYPZ ZAAXwyKa0f2Z9ufOt/mmm37RnE+AElyS7Iohm9FoM29uTnmySaUFoSzn9RP8DNciZFGd JaF3Wrwt/jSg4mhe/U3wYCvgCRu/WdWuyl9zkBNyFCgAyaKCm012Y8Ew76nW6tdtatdn LW1A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xhs6LCmTX0FFwC+epVC4XINC/0Pfi1T8YM8bvd0qyyM=; fh=pTx9fEY7ua+lm7qrJvkJuQzqwoXTh0iZZAyDx4UpkYw=; b=YSiRuQOy356ySR7wtsqQeicjhYbEjyDjacjEOdaXArMJDpE9tjSgx96tudNKFfxfRk xRVfTQPO/oJOKoxGsrP/VsCxCG01XvaJ0tmn3G3qwTRwVaETJRh3O5YYlKTjItW9Urbz 8UTc27B358jRr68Z3IlZDHjIxkzXktwOl+WrIOVznbK6T/g0vQQy3wkh72T/KhlqpHio F3R/1jQRwWacCIdF3bnPD7fIcvg1w3xBXxdLWrWRPjCLPuQ4aKVGhq7DzDt2ntb9Zhpa 8WgQK0yQcYhCJ6u9o6uUwe0kgLFTI01Z30axKuyh447UL7Z0qNy4xuFN0GuWgLiDXhB/ Thyw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=LbeOESU2; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-144323-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144323-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g2-20020ac85802000000b00436969a8c4csi5781251qtg.572.2024.04.14.11.37.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 11:37:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144323-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=LbeOESU2; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-144323-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144323-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id BFE0E1C210B6 for ; Sun, 14 Apr 2024 18:37:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6198B134CFA; Sun, 14 Apr 2024 18:37:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="LbeOESU2" Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3214029B0; Sun, 14 Apr 2024 18:37:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713119825; cv=none; b=IXqTv8PolsQkuGUVIejRu7agX1u7xrpSOmmNhRLNrmVjMJDPnPsI285EjUs4ucTaSmtAGl6J1FMRQcYy13MCCn+drZGwljADbB9YV9yauozV+0lEFB3PUPaS0k07s/tWSnbJQHILk2OU5rnRypcQb7DBwISIHRvye/4QXAyIqss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713119825; c=relaxed/simple; bh=xJFlMWPbhO6+WK3kaxc8AdE1jzxZJmZ4bwMkrBNxlf8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lVgVINh82NbRfhdGXIjgTNchlmJ3JhVVBg6GitwHTWJ8OgZy2JCpn0SG0jeF2y2h/QqQ0qQOUL6dkwjU1+bTvDZPaICpBli03tdimCYHIt2LCDZEOqZcm8a8Tne9X9U1Wrs3FuMS1UMzKNP/wdqovtQ333sTuWYqJt6ZfowntJg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=LbeOESU2; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1713119819; bh=xJFlMWPbhO6+WK3kaxc8AdE1jzxZJmZ4bwMkrBNxlf8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LbeOESU2jXhtSK6Dkm4COT5DG27t+MR3mxNbvW1J0/Y6uJB77Zc2ci9fbwlZovGPN 2HKnhVC8X8LFcK5YrNBz5H47rgZKZeM15GhAUY64cvBt7UReMYntqP9glf5nS3jUGy ogUhQ3sn4j2r1A8lEYXDgn2bDlgyvrxeMxj9Bo4g= Date: Sun, 14 Apr 2024 20:36:57 +0200 From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Willy Tarreau Cc: Shuah Khan , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH] tools/nolibc: add support for uname(2) Message-ID: <03d78f65-c753-4e03-8079-d9ad5a6da125@t-8ch.de> References: <20240414-nolibc-uname-v1-1-28a1fdbd5c64@weissschuh.net> <20240414105646.GA2236@1wt.eu> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240414105646.GA2236@1wt.eu> Hi Willy! On 2024-04-14 12:56:46+0200, Willy Tarreau wrote: > On Sun, Apr 14, 2024 at 09:56:23AM +0200, Thomas Weißschuh wrote: > > All supported kernels are assumed to use struct new_utsname. > > This is validated in test_uname(). > > > > uname(2) can for example be used in ksft_min_kernel_version() from the > > kernels selftest framework. > > > > Link: https://lore.kernel.org/lkml/20240412123536.GA32444@redhat.com/ > > I find it really annoying when other developers waste time trying to > work around some missing trivial syscalls. I would have bet we already > had this one, but obviously not. It's a bit annoying to validate that it works given the fact there are the structs new_utsname, old_utsname and oldold_utsname... > That's obviously an ack by me: Acked-by: Willy Tarreau Thanks, pushed to nolibc/next. (With a tiny change to skip the testcase if procfs is not available. Thomas