Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4709997pxa; Mon, 10 Aug 2020 16:28:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw17+kjLBqXgMcIUL/Wo+MA4RLj8vJWOriRarujCqBQmmKaHQIUx+GWThTFUBVH7lfYGTbK X-Received: by 2002:a17:907:2662:: with SMTP id ci2mr23494008ejc.334.1597102092440; Mon, 10 Aug 2020 16:28:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597102092; cv=none; d=google.com; s=arc-20160816; b=tDVbTL2sCQK3BuzB9Og2/TYjsvai6QaBo2cYT16BdqoQphmtDdZmEH8DsjNsEHheCt mzdwrpY1viDL17u35+yR/k9wdgbXi/WZOQSsVkVojmuFPaqm0VDsX04IjNT/ATlXjPuV 7hL4tVxbmLmaR7Zag9C+kEFWFzAJZNqoFMNToPcsrq7RQUIfQJ/7VENQP1UA7mYBJLLM wApkUD9Evnb2fwYcxfiqySrfdC+reojYNAbzU2s8enl4TEKiQM8u+KUcK2SjUmF4xyH6 YqT88oHtHOzc0QcbjENA7NqgPPKdJXYft9yHKheyKseNP/CgbByNl7h/x73hzAd/YhLb Vvaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=4GpjtRCUiRW4Pm/xWIxhVH7488fWfM1Io2v8Tgttd24=; b=Wkpp++Ed5sINJbKPD7UUtmDpkEYU6ZHs4AGGUokO02rJNGk2XEeEFuV6M/WInGzQav TgExRv61FCEblQd89+5ww+lykZGLYl8KRZQOfGlIcDAIsM9lftNpEUQxafbJpZaWMXxS qjdRjSAxjs8UunUFyfmknhdrSJ+TwU5vfhHlIJ9VwC4iQqBQ1iJr3M4bFVKpywqPhq7E vpf3TFXAWTIJ4JdHK/6pUr3XineLg4ZipjqJB8NH1MOVVpGtp0fPCMnbe9NNg4MwvEtr v4V6phuB0jEU7I8Fz0yyfRYvXaY11qrXRyHR866O+xXsj0fvyeJpEcCI0ok4eoUOWzm0 bjwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bd21si11478898edb.117.2020.08.10.16.27.45; Mon, 10 Aug 2020 16:28:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727929AbgHJX1C (ORCPT + 99 others); Mon, 10 Aug 2020 19:27:02 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:51386 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726634AbgHJX1A (ORCPT ); Mon, 10 Aug 2020 19:27:00 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id 2908F29480F From: Gabriel Krisman Bertazi To: luto@kernel.org, tglx@linutronix.de Cc: keescook@chromium.org, x86@kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, willy@infradead.org, linux-kselftest@vger.kernel.org, shuah@kernel.org, Gabriel Krisman Bertazi , kernel@collabora.com Subject: [PATCH v5 4/9] signal: Expose SYS_USER_DISPATCH si_code type Date: Mon, 10 Aug 2020 19:26:31 -0400 Message-Id: <20200810232636.1415588-5-krisman@collabora.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200810232636.1415588-1-krisman@collabora.com> References: <20200810232636.1415588-1-krisman@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SYS_USER_DISPATCH will be triggered when a syscall is sent to userspace by the Syscall User Dispatch mechanism. This adjusts eventual BUILD_BUG_ON around the tree. Signed-off-by: Gabriel Krisman Bertazi --- arch/x86/kernel/signal_compat.c | 2 +- include/uapi/asm-generic/siginfo.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/signal_compat.c b/arch/x86/kernel/signal_compat.c index 9ccbf0576cd0..210aecc6eab9 100644 --- a/arch/x86/kernel/signal_compat.c +++ b/arch/x86/kernel/signal_compat.c @@ -31,7 +31,7 @@ static inline void signal_compat_build_tests(void) BUILD_BUG_ON(NSIGBUS != 5); BUILD_BUG_ON(NSIGTRAP != 5); BUILD_BUG_ON(NSIGCHLD != 6); - BUILD_BUG_ON(NSIGSYS != 1); + BUILD_BUG_ON(NSIGSYS != 2); /* This is part of the ABI and can never change in size: */ BUILD_BUG_ON(sizeof(compat_siginfo_t) != 128); diff --git a/include/uapi/asm-generic/siginfo.h b/include/uapi/asm-generic/siginfo.h index cb3d6c267181..37741908b846 100644 --- a/include/uapi/asm-generic/siginfo.h +++ b/include/uapi/asm-generic/siginfo.h @@ -284,7 +284,8 @@ typedef struct siginfo { * SIGSYS si_codes */ #define SYS_SECCOMP 1 /* seccomp triggered */ -#define NSIGSYS 1 +#define SYS_USER_DISPATCH 2 /* syscall user dispatch triggered */ +#define NSIGSYS 2 /* * SIGEMT si_codes -- 2.28.0