Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp7731346ybn; Mon, 30 Sep 2019 19:36:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyvjU76res8a/+/VZCROZBm5puhI3c+mjP4xKXA+ur5Rd6hMmzyj5rv+jCUbj+H0oKMAUN X-Received: by 2002:aa7:d688:: with SMTP id d8mr23172071edr.156.1569897380016; Mon, 30 Sep 2019 19:36:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569897380; cv=none; d=google.com; s=arc-20160816; b=kj650JzZZnXNFjGmA/UvLf/hggMEZD/96igPm2ekcfM5LEQZrgGQgc5bImx4GVptcb eu5vDGM9/b9WpuTqqCDrTeIOJ56TSnJB1cVdZRdq1B+/gy6ZGH8rRpvnltOPqFoQ1U35 c3H4xhXTg7TDc15DS+G76o28RGnyu3/4SZwLM5ILV5m05gCkNNKYqOFaYd5VUCCt1FJB 5pMAyFxLfkbeW2ywM/YnWtshXpXHmN/Il9j5rjmGDlaYSCPKuhJ07zLmDw/UdvoFwidg 8A57p9QULRuJVnjb5Of5nQuqhp1UXjSW1Vu3sxD5eMI3cT7o6MlOV/tu6Y/NfZ5cFy/z DsiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=DUkOY/sp1Z7HHNTPWi7+WkBWsl8tsINlrAqJdPAb6IY=; b=aa8k+ZrsQFaneMu7zfK+nb8jWpX8ABcf3ms1tXIHafTPYcSpMAfBl/B1KRceNwnkxi ndSpUrnJ4XzIFKJIS+jJlPrDqlfSLnwBcpgsJBMplTeGV8+Znp1g422SQtFxwkPtyo5I Bpqedm/JcrDc62NumaggMD/7vhqXpvOhId4snEBnbAQa6TtVSUw14qsmQ3YV1MCgFfNE IHhk65qeYpK7xT7+iUYSa3wD114YpsI3jIQ66Iib4EQj84yORlTlvMj/jl3kJz/JeUqG nWWKw+necG32Y/Klx/yMdDBM2sDQ5rNu+TqJqVqENeXo6OO8xt5c3EhmLvzxJmvca0Z0 K3pw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b17si8094386ejp.326.2019.09.30.19.35.54; Mon, 30 Sep 2019 19:36:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731217AbfJACdM (ORCPT + 99 others); Mon, 30 Sep 2019 22:33:12 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:44004 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727645AbfJACdM (ORCPT ); Mon, 30 Sep 2019 22:33:12 -0400 Received: from [213.220.153.21] (helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iF7yH-0005Pq-RI; Tue, 01 Oct 2019 02:33:01 +0000 Date: Tue, 1 Oct 2019 04:33:01 +0200 From: Christian Brauner To: Aleksa Sarai Cc: Ingo Molnar , Peter Zijlstra , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Kees Cook , Rasmus Villemoes , Al Viro , Linus Torvalds , libc-alpha@sourceware.org, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 3/4] sched_setattr: switch to copy_struct_from_user() Message-ID: <20191001023300.2melco5qvojypsup@wittgenstein> References: <20191001011055.19283-1-cyphar@cyphar.com> <20191001011055.19283-4-cyphar@cyphar.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191001011055.19283-4-cyphar@cyphar.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 01, 2019 at 11:10:54AM +1000, Aleksa Sarai wrote: > The change is very straightforward, and helps unify the syscall > interface for struct-from-userspace syscalls. Ideally we could also > unify sched_getattr(2)-style syscalls as well, but unfortunately the > correct semantics for such syscalls are much less clear (see [1] for > more detail). In future we could come up with a more sane idea for how > the syscall interface should look. > > [1]: commit 1251201c0d34 ("sched/core: Fix uclamp ABI bug, clean up and > robustify sched_read_attr() ABI logic and code") > > Reviewed-by: Kees Cook > Signed-off-by: Aleksa Sarai Reviewed-by: Christian Brauner