From patchwork Tue Oct 8 13:23:42 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: 1994266 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=INEBgfjp; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4XNGyD6QjPz1xvB for ; Wed, 9 Oct 2024 00:26:44 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 274413861826 for ; Tue, 8 Oct 2024 13:26:43 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by sourceware.org (Postfix) with ESMTPS id 959E1385DDE6 for ; Tue, 8 Oct 2024 13:24:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 959E1385DDE6 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 959E1385DDE6 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1032 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728393891; cv=none; b=Y2zV+a7USbtWlaSiniVm85lPJGM4wDYjVrymOMgn38AEl5mFP3Q2YsCM1a99NMzV7RVwFxn8mDBByHBqUiBdRpyBMffY4C0ohqgBWOVrIjKaqrplc2jQwkULOZxZ8xM33WlLbLbpTemtH18qW8J0Trr+ChqU0lkkXPsVhF6mDl8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728393891; c=relaxed/simple; bh=ckyN3rNhKXrddT8rtBj1a2+4KTOpxpNss6wVzadhOQE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=u2YLx/0TeY6pX41a1LfHy2t869WRHfEldD5Skm0Ad1bpA9Xjf2ZF/R/bLfU2ZGwlMgNThuHcCwngNRXWenFY9nwsjXKIJjAj843ZQWZ3NdGqQFrN9ENIfr07GIuwcSW/sUE/SPPxzafroTnngP//GSbbqy3YZSRKVK3jyfPvjks= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pj1-x1032.google.com with SMTP id 98e67ed59e1d1-2e2976fca23so35897a91.3 for ; Tue, 08 Oct 2024 06:24:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728393887; x=1728998687; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=+NIvwP6gzllpuEAk5/NllswbuK5hrAAvAUt1JtGsxJ0=; b=INEBgfjpenHXnSk5ydBI83ct3lV8JXZHwG4W2ScbWvl+EYbvjzCnF8pD80wHXrjR71 g2KYv8WZdX6mIBiTxk0C1WFVObTbaoMhcUZAjb7fWGtw3s45IhOhRX0qrbKSJy/2Yxki gs7Nk9AYb5ZoFc2zwpDmtpEiaUAXrzjQQhfvapi+6UtrEG3zm6ZXYv37QNp+bAysACJY 4r4FOhZg1YsZQNoH94wVMZeEXnMha71K7tN/WyjxaNgB9c2WOchfueoqe18QsY5Vw2Vh 6vFJGpS7dCxExwt56bCD6BHk9pQ1x0No92SK7G/jmmduWaEDru2cifUKkNqCkSIM+1Tx RnrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728393887; x=1728998687; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+NIvwP6gzllpuEAk5/NllswbuK5hrAAvAUt1JtGsxJ0=; b=Nn0tG3NNaK8e6g4QCAnjifnuyAw41XwNHrBqaPucDW+BoFHzj8BtAHUnzq6pwqDGHc Ek0lYyFuWKBfjSoWiaiU69Gb/Am6Is1GapPbgbLRtmmh+FT1QeNOc1Yv3hzKgXxRA660 GzaHVjOuRx2W13xmhlaH+onx6y6978b3qfFlfFpQcS7M4XDNDBWLWYvRjhQosPcooyYX oPAshiaMFMQASqQCpOkDNWaWCAj7gYgUM4z6o0PAUZk3p1EfF+ca5yMHEhHmeNkSKJmI ZDD8PtXTUw/fEdZLlI+NMvaL7kW2ZHUlDyodSJUcTRj80OyGbaSM/KZFPxBvoMpM5do3 dI5g== X-Gm-Message-State: AOJu0Yw+3GvhLFUehbh1ct/c6f1kZShYuwSDO2ZAH1sjM54GaCiTDlOF MWlKEyO7cyc9C3dRA/f7LbKDF1AOh0mddv6sELi+e9p3k3+H9u1/g6VjskFW9+rWyOfMmVxpMXx 56kMZ0w== X-Google-Smtp-Source: AGHT+IHCthiS+IX5RQx+lC/BJFqfKWjDahCeYAvdI2Zm+/f/IOlw807XRCqDl7Q0ptnzYw+8hW6Odw== X-Received: by 2002:a17:90b:68d:b0:2e0:8e36:132 with SMTP id 98e67ed59e1d1-2e1e6213580mr20686566a91.3.1728393887040; Tue, 08 Oct 2024 06:24:47 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c2:68d6:61bb:ff14:bcb3:8ace]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e20ae7177esm7597909a91.3.2024.10.08.06.24.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 06:24:46 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 2/6] Update syscall lists for Linux 6.11 Date: Tue, 8 Oct 2024 10:23:42 -0300 Message-ID: <20241008132440.722309-3-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241008132440.722309-1-adhemerval.zanella@linaro.org> References: <20241008132440.722309-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.0 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. --- 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 | 1 + 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, 6 insertions(+) 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..1e14572045 100644 --- a/sysdeps/unix/sysv/linux/syscall-names.list +++ b/sysdeps/unix/sysv/linux/syscall-names.list @@ -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