From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84FBAC5CFEB for ; Mon, 9 Jul 2018 19:52:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 37355208A2 for ; Mon, 9 Jul 2018 19:52:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.b="gMpZ1led" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 37355208A2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=efficios.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933004AbeGITwD (ORCPT ); Mon, 9 Jul 2018 15:52:03 -0400 Received: from mail.efficios.com ([167.114.142.138]:59686 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932764AbeGITwA (ORCPT ); Mon, 9 Jul 2018 15:52:00 -0400 Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id DDEBC2325D5; Mon, 9 Jul 2018 15:51:59 -0400 (EDT) Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id Qg1nILMVSrR9; Mon, 9 Jul 2018 15:51:59 -0400 (EDT) Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id 998512325D2; Mon, 9 Jul 2018 15:51:59 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 998512325D2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1531165919; bh=S0c9lB+/xN9W9VxnuJp08n4eKj/5DnwRG1pUkOeHE3Y=; h=From:To:Date:Message-Id; b=gMpZ1ledg8yTYUU/Ux8O+gyQ5SIxhtuCxGEWXspiZkrLSz1WUr/er1XKxu5kdEWfe LeGumHXbuIVEEdtFdCRsDWoVJBnLiEi/+3b+v68dQ6zl8vO/IbBGePy1rNJSha6Poc 38V1YMLGBPu7J+5uVL+mV+Vmy0/Cal9EAyTutMcaI7IJL8G+YSdI86Dm+fZ1G8Ob4G K243wKdFLWPGSYB8W0Le1ujrD8xdkVbK2RBLPy15p9JqIOvTRH5DroUH/+P04FSnEf rDjqQq8ZFBYBCHbp7nLOwfqABeQwUWzRWqxSSXj2PV6h8gnUIk4WbKx8ehAEtemWRB pOq82DQ8cupZA== X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id lceiwI78wcaW; Mon, 9 Jul 2018 15:51:59 -0400 (EDT) Received: from thinkos.internal.efficios.com (192-222-157-41.qc.cable.ebox.net [192.222.157.41]) by mail.efficios.com (Postfix) with ESMTPSA id 3909E2325CC; Mon, 9 Jul 2018 15:51:59 -0400 (EDT) From: Mathieu Desnoyers To: Thomas Gleixner Cc: linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Peter Zijlstra , "Paul E . McKenney" , Boqun Feng , Andy Lutomirski , Dave Watson , Paul Turner , Andrew Morton , Russell King , Ingo Molnar , "H . Peter Anvin" , Andi Kleen , Chris Lameter , Ben Maurer , Steven Rostedt , Josh Triplett , Linus Torvalds , Catalin Marinas , Will Deacon , Michael Kerrisk , Joel Fernandes , Mathieu Desnoyers Subject: [PATCH v2 for 4.18 0/6] Restartable Sequences updates Date: Mon, 9 Jul 2018 15:51:49 -0400 Message-Id: <20180709195155.7654-1-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Following the recent discussion thread [1] about rseq uapi, here is a set of updates submitted for integration into 4.18. Those change all rseq __get_user/__put_user for get_user/put_user as discussed, and use copy_from_user()/clear_user() to load and clear the rseq_cs __u64. Thanks, Mathieu [1] https://lkml.kernel.org/r/20180702223143.4663-1-mathieu.desnoyers@efficios.com Mathieu Desnoyers (6): rseq: use __u64 for rseq_cs fields, validate user inputs rseq: use get_user/put_user rather than __get_user/__put_user rseq: uapi: update uapi comments rseq: uapi: declare rseq_cs field as union, update includes rseq: remove unused types_32_64.h uapi header rseq/selftests: cleanup: update comment above rseq_prepare_unload include/uapi/linux/rseq.h | 102 ++++++++++++++++++++---------------- include/uapi/linux/types_32_64.h | 50 ------------------ kernel/rseq.c | 41 +++++++++------ tools/testing/selftests/rseq/rseq.h | 24 ++++++--- 4 files changed, 100 insertions(+), 117 deletions(-) delete mode 100644 include/uapi/linux/types_32_64.h -- 2.11.0