From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-1.8 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MIME_CHARSET_FARAWAY,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 2DCE41F45F for ; Fri, 10 May 2019 13:19:49 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-transfer-encoding :in-reply-to; q=dns; s=default; b=p7GDRjz7afpJ8+r44fGfEkR5UB2RQg bMje9l+RrG9pLw4/nCnj1o337tpSubj0WvO13fb8egO+XAuVcb+lm1vLBYKJBKz/ iEeYpk9GvTqOlxcWOsDNveVWgSDD8WfkPmDKzYblkg5k0tflc6rVuZABolO1d/rS ehdlYjde/LLXw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-transfer-encoding :in-reply-to; s=default; bh=dz7z/bBzFt1gjHK4SFX4jqkjmqQ=; b=xJ5q ZLNY1Pph9jnLPTQgsgamCFFnEsW3lWQeeb6E4ZTGQFb0IoG/rvf5TrsSXbXIpvAE zcaCVGVZwKTLVQLk89n4kfPbIHmGDu31GjqGPGRkPSHKqFnNKk8TIaM/zImmLZBL 6I7cSuUStf9pWWmWlDcD5Xy4ywc09IpVL3jSV7c= Received: (qmail 63428 invoked by alias); 10 May 2019 13:19:46 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 63420 invoked by uid 89); 10 May 2019 13:19:46 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: relay13.nicmail.ru Date: Fri, 10 May 2019 17:19:38 +0400 From: Stepan Golosunov To: Joseph Myers Cc: libc-alpha@sourceware.org Subject: Re: Update kernel-features.h files for Linux 5.1 Message-ID: <20190510131938.fonlmcf3mzs6qypr@sghpc.golosunov.pp.ru> References: <20190510102713.udgjb6ilygibgd5x@sghpc.golosunov.pp.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190510102713.udgjb6ilygibgd5x@sghpc.golosunov.pp.ru> User-Agent: NeoMutt/20170113 (1.7.2) 10.05.2019 Χ 14:27:13 +0400 Stepan Golosunov ΞΑΠΙΣΑΜ(Α): > 09.05.2019 Χ 23:00:37 +0000 Joseph Myers ΞΑΠΙΣΑΜ: > > Linux 5.1 adds missing syscalls to the syscall table for many Linux > > kernel architectures. This patch updates the kernel-features.h > > headers accordingly. I believe the statfs64 structure used by alpha > > matches what the new kernel syscalls use, but that should be reviewed > > carefully. > > > > Tested with build-many-glibcs.py. > > The newly added direct ipc syscalls are different from the old ones: > > 1. They do not accept IPC_64. This means that __IPC_64 should be set > to zero when new syscalls are used. And new syscalls can not be used > for compat functions like __old_semctl. > > (Hmm. Is __old_msgctl already buggy due to its use of __IPC_64 when > __ASSUME_DIRECT_SYSVIPC_SYSCALLS is defined? Is there any > architecture with both __ASSUME_DIRECT_SYSVIPC_SYSCALLS and > __old_msgctl currently?) > > 2. semtimedop does not exist on 32-bit ABIs. They have > semtimedop_time64 instead. > (I also think that ipc with IPCOP_semtimedop was accidentally made to > behave like semtimedop_time64 in 32-bit builds of linux 5.1. But that > would be a kernel bug.) And, after rereading https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0d6040d4681735dfc47565de288525de405a5c99 3. There is no semop. semtimedop(_time64)? should be used instead.