From patchwork Sun Feb 9 20:20:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 1235560 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-109323-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha1 header.s=default header.b=dqB3NScp; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=CVoL7AhY; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 48G0n971M9z9sRQ for ; Mon, 10 Feb 2020 07:21:49 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:in-reply-to:references :message-id:date:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=ob6Bd6yJtpjlI0L4 8naYOsJdIWLQPZAuzoWK34q95PAGvz9PnsyL/gcO1DBI45XGKemUqYGpwnY8o4Rn 0l9S0PriG+DwvHGGKlA7uVCYw7iYVoGZwl3kG/YVRUgGEEl5ODWi4Hze35IDPsfZ dc5PwGi5rYXuDcCbj+/OC7zupu8= 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:from:to:subject:in-reply-to:references :message-id:date:mime-version:content-type :content-transfer-encoding; s=default; bh=z0LQjd9DlQLIonmJcRHVKQ kv/20=; b=dqB3NScp1wX6ZwwQ20yT8/0V3T5m0ywqALxZG1lPAkGDwL4pLCNDx0 Kp6AW07e4yApx/UVOIVvEIORYuloJV+t6WCNOoJpOqGLP0teXHGwA3oh0aCi70kA MY7PuTfp+2An+aNrbqTGFAGvyu5zHrNmpS7LH/T2/2X4i9vEd+Sy4= Received: (qmail 24115 invoked by alias); 9 Feb 2020 20:20:51 -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 Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 24037 invoked by uid 89); 9 Feb 2020 20:20:51 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=2810 X-HELO: us-smtp-delivery-1.mimecast.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581279648; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=taTavQEt9wAYEG69eMpNoWlD6cAT/M1HrUamqz6xl0A=; b=CVoL7AhY+zOtjMKzhbe23RoqPlbVwjss95psVjqBEdTkt7pQwWYRnKH8WnOqjXWBp8df++ EKaE0X7q8vDQYlHyqgtXhUcLc90LapId4kULTHfYAazikm1LGN6IDk12S9WMudBd981Fhk RR/WKnDW8aKFKnIAskctN96+4x3yinw= From: Florian Weimer To: libc-alpha@sourceware.org Subject: [PATCH 15/26] Linux: pkey_mprotect syscall number is always available In-Reply-To: References: X-From-Line: c837ea7168f7efbaf5f7b61b946ee4abcda73580 Mon Sep 17 00:00:00 2001 Message-Id: Date: Sun, 09 Feb 2020 21:20:41 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Due to the built-in tables, __NR_pkey_mprotect is always defined. Reviewed-by: Adhemerval Zanella --- sysdeps/unix/sysv/linux/pkey_mprotect.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sysdeps/unix/sysv/linux/pkey_mprotect.c b/sysdeps/unix/sysv/linux/pkey_mprotect.c index 5d372edfd5..4ec1feba2e 100644 --- a/sysdeps/unix/sysv/linux/pkey_mprotect.c +++ b/sysdeps/unix/sysv/linux/pkey_mprotect.c @@ -28,10 +28,5 @@ pkey_mprotect (void *addr, size_t len, int prot, int pkey) /* If the key is -1, the system call is precisely equivalent to mprotect. */ return __mprotect (addr, len, prot); -#ifdef __NR_pkey_mprotect return INLINE_SYSCALL_CALL (pkey_mprotect, addr, len, prot, pkey); -#else - __set_errno (ENOSYS); - return -1; -#endif }