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 X-Patchwork-Id: 833605 Delivered-To: patch@linaro.org Received: by 2002:adf:a1d9:0:b0:367:895a:4699 with SMTP id v25csp448195wrv; Tue, 8 Oct 2024 11:47:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV11I6kM3wSf0qF46oyxtM9GmNsaQWnDMA4M1uEZxFdEpVnrigYN5u5mdQPSWnnIkbNdp7roQ==@linaro.org X-Google-Smtp-Source: AGHT+IEwS6CQ/orJIjrmZUFw0DMgzg1TzfQAdfwO7v0nIUSRjaSCCT5J4Lyn9fHsqya6Aa/GiFtI X-Received: by 2002:a05:620a:2608:b0:7af:cb6b:b4f2 with SMTP id af79cd13be357-7afcb6bc25dmr335463285a.41.1728413270820; Tue, 08 Oct 2024 11:47:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1728413270; cv=pass; d=google.com; s=arc-20240605; b=hRC8J3TnCKFDRKVCFdyyrfrTa7Lqv75DfxTl3DZBo0iLlCNGLUv9srf+3bsrshNeRv cqbPfqOExTuqsq4M2bk7XsQQRZ6Qa73vpAl22RZnvCRaj0VBhh1JeEqVsvMVd6PAaem8 om7cMcz8JmFVByNoOCTPE8BW/5pyD11TX9WqYKUQWK755QjGji8tBT2oF3fAPJoXcxL6 M9Lr9qe0nf5Cxx967rSkN6L3MKj2tK2S3YlhdUGbdpLQC8W0IU9oyQJ0QuEkOV6kViwT QM6BZ1UgHCiszOmzqrsevu/3THDpaTci2rPr8JnoLyoN/qw6VGOmpZqREzpYVp5JiECe ZfSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=XPTzDsVg3UHOoq2C6mNDkCOWJ1sjL3m/61ZtHCqAuQU=; fh=y8c+zjefmHK4fStUusN64Sx8n6mpTt8O9P1WOVzrReM=; b=ejecyO/O8U3fKdmQu3L9Mtyq5yUHq5WpBbz++tnXnjctx/wOMfz9f0/nfsKryd3mFH Jp6iGJSzm4RkmYwfkEbkgy3o5pPRac7vugEnAw1puJthe6q6vvpzN+5jh9UbgvQOUMCK VAne/FnJwi2kYjPY5cFVUlXA3FSpuPUmSQ8PdvsFO5Q6et0MajeLecnBCEBjgCJqMfY2 39qIDpw7XqN9y0VI7MzKMmsoCRIDreNO4/rXDL2cGakfWvnb2sbY8P200xBYb9IyMQvu Sugbigwv+iDqOab3TOmzQrEJiSmBmQVkNCybtZ1PS2ojbh4IXV5ZyGMoxs9sk+/tcXJl pGYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=krCHOV+y; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id af79cd13be357-7ae7562e236si899476285a.210.2024.10.08.11.47.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 11:47:50 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=krCHOV+y; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6C58438650D5 for ; Tue, 8 Oct 2024 18:47:50 +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-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~patch=linaro.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