Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1595028pxk; Fri, 4 Sep 2020 13:34:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3WGBh/c96McBJ2J08UD6NBdhjzoNOk/Axn9g8pRjBLb6Ut+GTT6Kwhg9ZCVaHTAJsTJ2S X-Received: by 2002:a50:fa88:: with SMTP id w8mr10612584edr.179.1599251686946; Fri, 04 Sep 2020 13:34:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599251686; cv=none; d=google.com; s=arc-20160816; b=q/txhPwQj+UeHQRY99TgWj92U/IcZDjl7FssAV/pf9wzNXXgf4iZ2Y9RX7rUgZsCKq VUNyWvtgyryA/ut0QvXvP+yE8xkwrVkKQ2fRzRnJ2DkUcUjTDH8RL5mZDkA+mhB7LVmy ySYDrbl4pGINwMVkxKBpQriQFjaTMrdljdCz9AC0UdpPwIfgbfMZWn4obMQRjcSCttiW NPxHkwph0IWrwUhG2JLKrL22lcIxL39kA+1OXq2oMBo6s0WD7sHZ3DG+wQ39sKupkJRM QWDjh/dGhAZkBl6Sl+F7n9EJ3KzevZXi0QCM9jixwFvBm1ntEZUg0nSmzgIv5/TPI6ZS O3Iw== 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=QGFyDWanRwoqYnF5wpn5aro9KzvhZ4KaLyv+O4IByAxlnD+izckkCHFWJG7piemOe+ Ektm5TuefrgMqoF6px3tFp2SNTgJTg6sgfim0+uD7R5yly/Azg/7Bv2h+N0MLwWywlLJ y2eqwuu9B+C7Obfz7EK+HoqByipm+gactJqhX3Ud5tKRjUjr/X5YGZOuOCGDU4Y67uuo zuBUuMMaSQvngx1RvLfrqtv8wxk+BW8Y9+WinrRPGYRzNW+yufaaHgxcO5odmH2+XTa4 GmK81rjrVA2Pn2sl03ZSi57vuyqJvRMddVYpjSsQeN+SaABybT1YSFfe70sZC838dJ2z ozFA== 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 qn11si4739347ejb.303.2020.09.04.13.34.24; Fri, 04 Sep 2020 13:34:46 -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 S1728237AbgIDUcq (ORCPT + 99 others); Fri, 4 Sep 2020 16:32:46 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:42080 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728113AbgIDUcJ (ORCPT ); Fri, 4 Sep 2020 16:32:09 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id 4413F29B035 From: Gabriel Krisman Bertazi To: luto@kernel.org, tglx@linutronix.de, keescook@chromium.org Cc: 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 v6 4/9] signal: Expose SYS_USER_DISPATCH si_code type Date: Fri, 4 Sep 2020 16:31:42 -0400 Message-Id: <20200904203147.2908430-5-krisman@collabora.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200904203147.2908430-1-krisman@collabora.com> References: <20200904203147.2908430-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