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 X-Patchwork-Id: 833575 Delivered-To: patch@linaro.org Received: by 2002:adf:a1d9:0:b0:367:895a:4699 with SMTP id v25csp289791wrv; Tue, 8 Oct 2024 06:26:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUfJhfu++vmsskhK6NFmgiAY402d8fk94yxOgJACJ3ytq/wrs5Mpauwijnr0CKFxc/BgI7uxg==@linaro.org X-Google-Smtp-Source: AGHT+IFDiCOXlVvfTdcr8SHGc6y7BFkXhEbTFJhZr9q55MqiOdx8VkGNYvIEw/RpTwD+h6GzI3Ii X-Received: by 2002:a05:6214:3d86:b0:6cb:3baa:7ac with SMTP id 6a1803df08f44-6cb9a308c33mr254444706d6.12.1728393997658; Tue, 08 Oct 2024 06:26:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1728393997; cv=pass; d=google.com; s=arc-20240605; b=HGzq16Tc7Ogx8u4aQw8g3V1p4SSO+9PNgLcTvsj63QXNtQ4eKNrQcy3B6ujIH8R20b hJ9Ybl6vDn/U6ZKpAbp5iWAfg3udzLKmMlO6S5iOx+ltVZhOBSTkVxXatyXW8K42Vdl/ h1D7B9gTVL7Zt9YhxfIy08BNUJ75wo4rSdC6i3PPfNJE0bOPy8MYY8TUSlyXNCKL2e6h 05ZQlwqIZJYSBigHB1YnN2oQ17m0UkLcYoSGhxi1a56/K9ziFpxmjqr59iocNX61JysR Id7Z+i5FnqUbor/wdeKq+Ga1ROAsYI+dqDdedOzdhR96Bz/OpTggwb7g86g8h0/ZgmGe Vs2w== 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:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=+NIvwP6gzllpuEAk5/NllswbuK5hrAAvAUt1JtGsxJ0=; fh=dHLBnA+MhGtNtN2B2JMAELi4oD+gmgMg7DL8H0jYbkI=; b=MsvO8/uXoy0l5jbrSvCrUbEwDczWDnLOYhcsfSRtr14NSKjLBsej0qdAqLoL7JELwn CTsFeJx17gxMNER3ofMJGEGnuLndPnh0cuRXKn4RVo0/WAsrQUgI+g3rSAMUjOfeHzUa A8rb8SaJdf4StI1U13wQBiA1P+AYq5k0MmYF7zbgNRQeXVk00RWcXOL8+KG84aQ/n2S9 rROAI5q7JBtg2vTJWN7jFMkhMX5wM/JHz52geb88lhxArrZHVgL1StzLcdiyLgcMYyVO fO/iJceynTVakPh61smwRHQW6LSYVgN3tvVY9DQ6gaZYGXfnvqsMjVMWI3BS6GE8HP9g PX8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=INEBgfjp; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c 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. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id 6a1803df08f44-6cba478c150si85351686d6.457.2024.10.08.06.26.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 06:26:37 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=INEBgfjp; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c 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 463F5385842D for ; Tue, 8 Oct 2024 13:26:37 +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-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~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. --- 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