From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by sourceware.org (Postfix) with ESMTPS id 2B12D3858006 for ; Thu, 4 Aug 2022 00:36:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2B12D3858006 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dabbelt.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dabbelt.com Received: by mail-pj1-x102b.google.com with SMTP id o5-20020a17090a3d4500b001ef76490983so3880628pjf.2 for ; Wed, 03 Aug 2022 17:36:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc; bh=Yp4QjQdS20I9pL0WsDttaTgizF0DEh4qG2sz27gA2so=; b=FnqM11bLFhGiFhVy0e3UzCv0h0Yx4WgDoIewYXrK8M9YoiD0vdtp8x9qL+mDuUUmK0 Ri96lzdTWIpRCBUvME0dgYp2xtsaJCrSi0R3tyZU8iR1TGwnRqCI8qSaIES7tx+f3PnA BvkuXD/Of8Gx1ETS+eqJmRk6Eo/OsTl3H8hSyk0qIHWuLPLsK5XtNW3+m9zwTarY9Yit 5CqCGsO/dIBomzxpxqNRi6iQ1rSxyV4e1IvFtFalvbpS+aqjB+Y0lEHQ8NFJAQQTB9wZ b/tM2luK4oNOGWvI5MBLQ82vP/q1oH9rqidzYxMmL1aq0nhZQML+pMRssC3qp+xufCUi pm6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc; bh=Yp4QjQdS20I9pL0WsDttaTgizF0DEh4qG2sz27gA2so=; b=WOq2fjIIeFhnLFGyrYNjZM+dLhdMl4TYTO8qCQy6wPS7QFJupM/yxCPz0DfQakqVny 0dIaKKVG8mQLnpBGYG2/keS3PID7OH+t8Fx/stzTvd7EeJ544C7fvgy64VV0hmf5Ry+z UATo77ZHjRmIzCGYZdrXXrN8l/eVnbJI8ufFhyw7kLNdgzE1LOvCT9sDxrWgPzo9jJMZ k3eEqx20amM6w16Mdk19/7WY3MbK9Q3cAWYWjVIZPe5IrQVabrThJHbYb4Dqu9T3hWyy gzA4HZSCHx18kTzB28kKFr3K1ZxCJHxQg1Hk3aAI1LGnkhv6owgkFJThZ6mCKPwUK4Z2 dDkA== X-Gm-Message-State: ACgBeo3qwdkM6wWQOjq9bGuKSTGpT6chbZdysoDzFTYazyKkcfxezXyE 8WsyxFT5e8YuiewLHWLBWqdYudE/xvqnjg== X-Google-Smtp-Source: AA6agR7cw2RsmsV9AdFgHcHl2AXKpxA2g+Zt0MDgtKG37Ha8cbMP/OiWPWf4e/9JclKbm39kPBH2Nw== X-Received: by 2002:a17:90b:f85:b0:1f3:1d77:244b with SMTP id ft5-20020a17090b0f8500b001f31d77244bmr7641063pjb.210.1659573406423; Wed, 03 Aug 2022 17:36:46 -0700 (PDT) Received: from localhost ([50.221.140.186]) by smtp.gmail.com with ESMTPSA id x16-20020a17090abc9000b001f3126b104fsm2234195pjr.31.2022.08.03.17.36.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Aug 2022 17:36:45 -0700 (PDT) Date: Wed, 03 Aug 2022 17:36:45 -0700 (PDT) X-Google-Original-Date: Wed, 03 Aug 2022 17:36:43 PDT (-0700) Subject: Re: Update syscall lists for Linux 5.19 In-Reply-To: CC: libc-alpha@sourceware.org From: Palmer Dabbelt To: joseph@codesourcery.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, 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.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2022 00:36:49 -0000 On Tue, 02 Aug 2022 12:23:42 PDT (-0700), joseph@codesourcery.com wrote: > Linux 5.19 has no new syscalls, but enables memfd_secret in the uapi > headers for RISC-V. Update the version number in syscall-names.list > to reflect that it is still current for 5.19 and regenerate the > arch-syscall.h headers with build-many-glibcs.py update-syscalls. > > Tested with build-many-glibcs.py. > > diff --git a/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h b/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h > index bf4be80..202520e 100644 > --- a/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h > +++ b/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h > @@ -122,6 +122,7 @@ > #define __NR_mbind 235 > #define __NR_membarrier 283 > #define __NR_memfd_create 279 > +#define __NR_memfd_secret 447 > #define __NR_migrate_pages 238 > #define __NR_mincore 232 > #define __NR_mkdirat 34 > diff --git a/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h b/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h > index d656aed..4e65f33 100644 > --- a/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h > +++ b/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h > @@ -127,6 +127,7 @@ > #define __NR_mbind 235 > #define __NR_membarrier 283 > #define __NR_memfd_create 279 > +#define __NR_memfd_secret 447 > #define __NR_migrate_pages 238 > #define __NR_mincore 232 > #define __NR_mkdirat 34 > diff --git a/sysdeps/unix/sysv/linux/syscall-names.list b/sysdeps/unix/sysv/linux/syscall-names.list > index 6c7b2f7..028ad31 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 5.18. > -kernel 5.18 > +# The list of system calls is current as of Linux 5.19. > +kernel 5.19 > > FAST_atomic_update > FAST_cmpxchg Thanks, this was just a bug in the uapi headers: the syscall itself was has been implemented since 7bb7f2ac24a0 ("arch, mm: wire up memfd_secret system call where relevant"), which IIUC was first released in 5.14. The fix should get backported. I don't think any of that matters so much here, though.