From patchwork Tue Oct 8 18:45:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1994376 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=krCHOV+y; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XNQ4s5G1Xz1xsn for ; Wed, 9 Oct 2024 05:47:57 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id ED591385DDED for ; Tue, 8 Oct 2024 18:47:55 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by sourceware.org (Postfix) with ESMTPS id 43C9D385DDDD for ; Tue, 8 Oct 2024 18:46:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 43C9D385DDDD Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 43C9D385DDDD Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728413207; cv=none; b=TFMjNDC71bHOkn/Ai1od7iO3liurESfJPu6+v+gzj1C6H3rbXo+NLhk8BIbgf2c9y5QRlJwDP9U2qmqJf6fNliN6+kzLldLjy6xYP5mtRcd0Y6ldaYZ1J3QiUW5+oxFKqfB2uffdVptaQ08/8jMdk2GhlvTyOVGQOxO1Al4FAVg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728413207; c=relaxed/simple; bh=e0qaIl3d4bP4mO65d6Ch7FHwoutfhAODBcnI2+khcnc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=rCvyXIqVIPr6c0KwgMJGczKfj1XIlCqVNCtmUqWFZdK2NV6iAhNk8DF9WcG0dTOhYakbSISK8b989Tha4jYWxzQSOmt3pG04WiN0RgRqZrFb/d8H20QYTU6anIY3rTQ/gtJbyECSQAO952nduF4v7tfD5ZSWaewde6/O2l30tAE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-20bc506347dso48136395ad.0 for ; Tue, 08 Oct 2024 11:46:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728413201; x=1729018001; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XPTzDsVg3UHOoq2C6mNDkCOWJ1sjL3m/61ZtHCqAuQU=; b=krCHOV+y+smbcnvrb9pIpTyJVCWO+kKhnddz4XS5pqOYgK1JrRyF1whyVlNfcW9lHn /lwwpqrtf/2xcjKwFb1HXlTKcbQjPVyitrdFMFyzCCY//lPjc9bQ+DtMpX6r7PvMGX0F SlxSCM1iB2gwsh/Lj54r9rIDCV48aJpk5HGcAIyHEoA6uprsMAjhXhp3D8NJPMOwXtba 3imWeTUnhZJlD7sAYwQRl6Lu5dvZbuuwtxIe3nK09IOarELUFUS3Qt/z8nIvPd3sZW+e KmgKvXglJ1nuLSQTX8zKXrldnPQ6OR+KHo7agI0JhyN7UwijFxYyrg8U+XyUUTWj2MZ9 Pe0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728413201; x=1729018001; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XPTzDsVg3UHOoq2C6mNDkCOWJ1sjL3m/61ZtHCqAuQU=; b=HRZ5iCmZkjj8Y/ZDjd48UD+ZLxHbfTNvucl0Hph7okwlv55/8b09PSVYuglghFAgUC kfSPZxoohaTC1rDcoJJfJXpWbKlag2sHo4qjXN1ap2XN68v58e+JQ7iVxlTXpbkByT/7 xDyl6ZgqOJA94RY6zE1Z34Ub8g6TMlFHNfbE695JdVgVVydtgeVoBUw4VKolltpI4qvC VfDDHJHYwssgp4NdQd2S9dPVKe3duYEttTXje2bZyuHZuxvNNdNrk/PxVD3Xx47ayHy5 jC5NCYPGyEKTCJ9jwjEp4IrUYctTA+grIUcMGQ2/vpRMMRnK5Wfg/jMPBQgnA8c88PQk P/lw== X-Gm-Message-State: AOJu0YxVTSuWPjOo3aw8Fh0bYWIF+Gox90pw/RWO2gXCt96lcGpQB99D VmYfcqyL/MQB68kja7azPCwmbAc3IQrv0cQW2slt9uikBLSmWgi1mb/MM8/2HTNONXRGwgcQ8Tn iTl4= X-Google-Smtp-Source: AGHT+IFKshhGL8/G2ReoIpexeF/EjiPNg9nxJj6QmChHMiXCEmlU+2HX9QJR6KEIiLWH0wIdft6iHA== X-Received: by 2002:a17:902:e84b:b0:20c:5d5a:af5c with SMTP id d9443c01a7336-20c5d5ab1a8mr20540335ad.4.1728413200954; Tue, 08 Oct 2024 11:46:40 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c2:68d6:61bb:ff14:bcb3:8ace]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c1395dc41sm58068535ad.217.2024.10.08.11.46.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 11:46:40 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers Subject: [PATCH v2 2/8] Update syscall lists for Linux 6.11 Date: Tue, 8 Oct 2024 15:45:24 -0300 Message-ID: <20241008184634.245607-3-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241008184634.245607-1-adhemerval.zanella@linaro.org> References: <20241008184634.245607-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org Linux 6.11 changes for syscall are: * fstat/newfstatat for loongarch (it should be safe to add since 255dc1e4ed8 that undefine them). * clone3 for nios2, which only adds the entry point but defined __ARCH_BROKEN_SYS_CLONE3 (the syscall will always return ENOSYS). * uretprobe for x86_64 and x32. Update syscall-names.list and regenerate the arch-syscall.h headers with build-many-glibcs.py update-syscalls. Tested with build-many-glibcs.py. Reviewed-by: H.J. Lu --- sysdeps/unix/sysv/linux/loongarch/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/nios2/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/syscall-names.list | 5 +++-- sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h | 1 + 5 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h b/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h index 8bb82448a7..7e732256fd 100644 --- a/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h @@ -59,6 +59,7 @@ #define __NR_fsmount 432 #define __NR_fsopen 430 #define __NR_fspick 433 +#define __NR_fstat 80 #define __NR_fstatfs 44 #define __NR_fsync 82 #define __NR_ftruncate 46 @@ -166,6 +167,7 @@ #define __NR_munmap 215 #define __NR_name_to_handle_at 264 #define __NR_nanosleep 101 +#define __NR_newfstatat 79 #define __NR_nfsservctl 42 #define __NR_open_by_handle_at 265 #define __NR_open_tree 428 diff --git a/sysdeps/unix/sysv/linux/nios2/arch-syscall.h b/sysdeps/unix/sysv/linux/nios2/arch-syscall.h index f94e212995..b1d0fb6f6e 100644 --- a/sysdeps/unix/sysv/linux/nios2/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/nios2/arch-syscall.h @@ -24,6 +24,7 @@ #define __NR_clock_settime 112 #define __NR_clock_settime64 404 #define __NR_clone 220 +#define __NR_clone3 435 #define __NR_close 57 #define __NR_close_range 436 #define __NR_connect 203 diff --git a/sysdeps/unix/sysv/linux/syscall-names.list b/sysdeps/unix/sysv/linux/syscall-names.list index 7871f93b94..aa5b479e2a 100644 --- a/sysdeps/unix/sysv/linux/syscall-names.list +++ b/sysdeps/unix/sysv/linux/syscall-names.list @@ -21,8 +21,8 @@ # This file can list all potential system calls. The names are only # used if the installed kernel headers also provide them. -# The list of system calls is current as of Linux 6.10. -kernel 6.10 +# The list of system calls is current as of Linux 6.11. +kernel 6.11 FAST_atomic_update FAST_cmpxchg @@ -653,6 +653,7 @@ uname unlink unlinkat unshare +uretprobe uselib userfaultfd usr26 diff --git a/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h b/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h index 5d86e75dd5..dfc10d0c7e 100644 --- a/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h @@ -359,6 +359,7 @@ #define __NR_unlink 87 #define __NR_unlinkat 263 #define __NR_unshare 272 +#define __NR_uretprobe 335 #define __NR_uselib 134 #define __NR_userfaultfd 323 #define __NR_ustat 136 diff --git a/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h b/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h index 6c35068d8e..9340daa967 100644 --- a/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h @@ -351,6 +351,7 @@ #define __NR_unlink 1073741911 #define __NR_unlinkat 1073742087 #define __NR_unshare 1073742096 +#define __NR_uretprobe 1073742159 #define __NR_userfaultfd 1073742147 #define __NR_ustat 1073741960 #define __NR_utime 1073741956