Received: by 10.223.185.116 with SMTP id b49csp1159294wrg; Wed, 21 Feb 2018 13:11:39 -0800 (PST) X-Google-Smtp-Source: AH8x225HDyY1h9J9ffLJdSTmXXmJ0xMamoWQyyJwa//uj1IcDsFHtP3D7bQE9u2RVq0BrqW1IaXe X-Received: by 10.167.128.194 with SMTP id a2mr4614624pfn.186.1519247499461; Wed, 21 Feb 2018 13:11:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519247499; cv=none; d=google.com; s=arc-20160816; b=ai8korNb/k0ARqbHKa0BotWV/DOCnqHzYzqkrUfgEfzZNiciEOjWuRYlxSX453Lkd0 Yb39YsDFLYH6PMZGNx3A3lMddq2tY2trgP1qKZ5bTRNQmwJ6YLgNxGh4eE4VsTx7pbk9 uk58OylaeGd5Yzfo2S/nG3le6h+bcrwI+TkumzVp6mNEqZYU8k44a8cJwo/QqTg02eXq TGsax6O4vrFAaJy7W3kTv0+mtbPwcb5bLRVRKzgEtf6WA3ZQULBJCI1MZAvQ3aSa38M2 fnEW0X8rmz6d3bN8BCek6WZfcgq+nM23YarWV2IxFErJl08DNctc9qhcNQpC9CbPkAPq qp+A== 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:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=NeeGx4p6nQ5uXd1G1tE/TI/JJvE4/nkzA9Etbbca9+g=; b=LNmWzXEFvD4eUfnzH/qczq2COVwERfdsRiE3KLBUIklKKX25Z+zrilrxMS3OlmKoMe P/obiPHpH9KkGxW2WUaJ2RZXpNKeQ83h90slZRxtLyQ+m3Ulkas+8lksZYz6no9W6GCr +OEk2gOP1D5utc6S4xyWG5qE2Qmwnfp5FfprLKN/qjen2nQ5VNc6dR+F0cD0BQOwsMJ1 W0tiqfEkd3dPLUnH5iQjLFh+RwVW9XmUZ+BEimgZUOizny5eli0kgiWMz3j5t+elmWbx 1oFC5gRfkx3mezTRBU4XVZ/d5VTsdSMXN1MtpbzbbHyIGcRQbYlXGaVP2mH4n/tMY0v6 07gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YT5OMMir; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l6si1774503pgq.562.2018.02.21.13.11.24; Wed, 21 Feb 2018 13:11:39 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YT5OMMir; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751997AbeBUVKd (ORCPT + 99 others); Wed, 21 Feb 2018 16:10:33 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:44009 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751711AbeBUVKa (ORCPT ); Wed, 21 Feb 2018 16:10:30 -0500 Received: by mail-wr0-f194.google.com with SMTP id u49so8347177wrc.10 for ; Wed, 21 Feb 2018 13:10:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=NeeGx4p6nQ5uXd1G1tE/TI/JJvE4/nkzA9Etbbca9+g=; b=YT5OMMirvn2Fxkz89MtaHu1hno7AUNAaNm5c+pvDiF7D3Fq2Lwr+L7CRiHXwDNZgeB 6X7nzqM4PUwnCH/WfV14D0VFn3qObn5Q0rd6R24/MLSpWFvBkVf673jb+/+b9FyuTVcy y9ETHeyg5W0Nq/NtQ5agR4aQlWBS+xGmmvAl1Qfcg0baFNyxJUbE/uVJfG5LR2ww+sO/ dZkQZ2lBfzZyTNQzVuVMKazxtwt1spiod1ltlW71Qp50vZ97gX4lnilOjVi2LrnoQ1Iu z2itUDvElGNYgPi9JJ7Ixnf7ppI6HrO4IZ9GYvf3W0rRAn8YTZsLHXcR6j4BEI2mKCyy 05Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=NeeGx4p6nQ5uXd1G1tE/TI/JJvE4/nkzA9Etbbca9+g=; b=G+yyQdmyS7lJ9qCkSSIXLLt1bj+S+eT4C+U8ACnpTjWBicLTav0541GlOwlEtXQrRP 04OsrXyY3pdfi6HOSwuoCuux0VGIdPJhRDo2Xvdv8yOk0gbNxyn84iHkIKBM82V97FCt Jg/S+WbMTE38OICVyMlACMRXfnLgChwzfTzyha3oLaje26mHkm6R78OOh12qHWUJ7lok PQwfazkZagezc8qWM4a/FWUs3Om1qo7qV0KG+TfTUH3DHEag5AJ1nA+0SpulXxKbC21a vOMyuLf/0oIZFAa9NnOgRf9I28bkaGl7TO95Fs0/nWkrvvjLWVdv5I7BdUvjr7Pig4Z6 xK5g== X-Gm-Message-State: APf1xPCIuB7Q7okmFp02F0bUf7gHDKXMRi5rTklQsWSh/1o0wZNeuM7h P22IUXWsIXUy8PRPulBPIeJ5oO+UwHSxQzhKJvQ= X-Received: by 10.223.161.144 with SMTP id u16mr4237257wru.137.1519247429216; Wed, 21 Feb 2018 13:10:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.234.136 with HTTP; Wed, 21 Feb 2018 13:10:28 -0800 (PST) In-Reply-To: <20180220131253.GF25314@hirez.programming.kicks-ass.net> References: <20180220125829.27060-1-christian.koenig@amd.com> <20180220131253.GF25314@hirez.programming.kicks-ass.net> From: Emil Velikov Date: Wed, 21 Feb 2018 21:10:28 +0000 Message-ID: Subject: Re: [PATCH 1/4] locking/ww_mutex: add ww_mutex_is_owned_by function v3 To: Peter Zijlstra Cc: =?UTF-8?Q?Christian_K=C3=B6nig?= , ML dri-devel , amd-gfx mailing list , "Linux-Kernel@Vger. Kernel. Org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20 February 2018 at 13:12, Peter Zijlstra wrote: > On Tue, Feb 20, 2018 at 01:58:26PM +0100, Christian K=C3=B6nig wrote: >> amdgpu needs to verify if userspace sends us valid addresses and the sim= plest >> way of doing this is to check if the buffer object is locked with the ti= cket >> of the current submission. >> >> Clean up the access to the ww_mutex internals by providing a function >> for this and extend the check to the thread owning the underlying mutex. > >> Signed-off-by: Christian K=C3=B6nig > > Much thanks for Cc'ing the relevant maintainers :/ > Doubt it's intentional. The get-maintainer script seems confused and lists no maintainers? $ ./scripts/get_maintainer.pl include/linux/ww_mutex.h linux-kernel@vger.kernel.org (open list) While the normal mutex header works fine. $ ./scripts/get_maintainer.pl include/linux/mutex.h Peter Zijlstra (maintainer:LOCKING PRIMITIVES) Ingo Molnar (maintainer:LOCKING PRIMITIVES) linux-kernel@vger.kernel.org (open list:LOCKING PRIMITIVES) HTH Emil