Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp387796ybl; Tue, 28 Jan 2020 05:09:46 -0800 (PST) X-Google-Smtp-Source: APXvYqwI00WXCu45r2sZUnuxX1ONiAp8dnN7WAwfp2sYwnagYJPGWs746E/cPeyJ6YQVCLE9+o6m X-Received: by 2002:aca:a816:: with SMTP id r22mr2787759oie.1.1580216986605; Tue, 28 Jan 2020 05:09:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580216986; cv=none; d=google.com; s=arc-20160816; b=WAFUEz8vaza3o3g06/FO0ebafRR3KC/nO8Vyp1NJ0IKb2L91+HeUEl3VlBrPhRY8Tw XNwEMWrbTyrUm27zn6DfkCImIWrnSi7rs1R0FTtapWXRB3SEq3pnRKmWM9Lnk87oTCj+ tblmVGXMbUsitH36jSBhqG5HC7epEg9G9p5oknyNbhGgt43mV0h2kKVCbbUhNXdu/ujd qPWX+qmKcUhHCPCyqU8D/Q9GWErcsUfgjhcDebnoA9yDWs7N3IJ/QVBC0zEVS6P+y11w X9auGS9hedLdcHryNuSBo/j8n8ixJQ6GoCJE3w7mkGVzedexDJ97UL841LvbqMYKaBUK Kgtw== 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:in-reply-to:references:mime-version; bh=XcwOR/dcMOstCG81GlhvnFj2TI80jQF+EMv1rsXVnUk=; b=FQoaTjzwwJD6VQpe1pNhsK+l1S6fXZG5f4+5gMpfmwmVC5dGpa1J77AbZzFtgEmo9W EDexeQEKPvQ7YC78XelmxzvgTIwQ0AoAyWDQ4S6/08Dh8Nzq93ECvRdVe9BIsZsCHB7/ REudn2tz/aJDqML4xEeVNR9MZKtxQfsS7PTdl9vfFsr2JZ/tEGkHeNClGGdlqpn6NMF9 gNSlRt1cmUnZuhUHX1Nky0xGLUtbVeWEncxesLGW0FH6EW4zEfHGQfi8C8se/yhtBHKv ywU0RlQA0l4CmHDSeID4LA7ouoOB8y2bYfpfPrWeA42BSqPPqDJyDOzplskhLGmtBcxH 8w3Q== 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 j74si4106196otj.246.2020.01.28.05.09.33; Tue, 28 Jan 2020 05:09:46 -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; 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 S1726264AbgA1NIK convert rfc822-to-8bit (ORCPT + 99 others); Tue, 28 Jan 2020 08:08:10 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:50073 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725852AbgA1NIK (ORCPT ); Tue, 28 Jan 2020 08:08:10 -0500 Received: from mail-qv1-f47.google.com ([209.85.219.47]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.145]) with ESMTPSA (Nemesis) id 1N2V8T-1jijaR3rLT-013uS8 for ; Tue, 28 Jan 2020 14:08:09 +0100 Received: by mail-qv1-f47.google.com with SMTP id db9so2587937qvb.3 for ; Tue, 28 Jan 2020 05:08:08 -0800 (PST) X-Gm-Message-State: APjAAAURzhIhdz4K1PIjCzvwoPA4opIz+b19iu5CtyG58vZX7jVOYCLo IegHkwpvFrH/GnXvKe75vtACSuGDttvmhG+JCNM= X-Received: by 2002:a0c:d788:: with SMTP id z8mr20752657qvi.211.1580216887804; Tue, 28 Jan 2020 05:08:07 -0800 (PST) MIME-Version: 1.0 References: <20200121114553.2667556-1-arnd@arndb.de> <20200121125546.GA71415@bogon.m.sigxcpu.org> <1971902c68ff805ee0b4a66f558afe06e6edf0c5.camel@pengutronix.de> <20200122103034.GA67385@bogon.m.sigxcpu.org> <20200122103553.GN25745@shell.armlinux.org.uk> <20200124085616.GA5680@bogon.m.sigxcpu.org> In-Reply-To: <20200124085616.GA5680@bogon.m.sigxcpu.org> From: Arnd Bergmann Date: Tue, 28 Jan 2020 14:07:51 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] drm/etnaviv: only reject timeouts with tv_nsec >= 2 seconds To: =?UTF-8?Q?Guido_G=C3=BCnther?= Cc: Russell King - ARM Linux admin , Lucas Stach , Christian Gmeiner , David Airlie , Daniel Vetter , Philipp Zabel , Sam Ravnborg , Rob Herring , Emil Velikov , The etnaviv authors , dri-devel , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Provags-ID: V03:K1:OSdX+6i7GT66CAFwQ+vhxHK4bua8rOrudPhf7fhYfMGMxN9B6EX fqidXcTQLWSwpKs38T6HxM9m3mZGewm85sPs5p4rrKiXUKh/rVxeTXvRDBoxLCPofXBN0Oy z2iLCY+lzoyXzr92WaCa2RcKyxhndbZrDdMSOukLZ2R6GgfthbDx3Vp/LNI4otWnL5Onn4o OOReDPWj6hh7aZoqbzbXA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Xz9Cq3YR54Q=:eHF9kt6GuEyao/lu52FkNw XYjjNXa7PimYFfIut8n/maixe7zmw6GcceJUpWW/UcBkxfQy7a/cXJ7uaFHm/NYjTCfuJkzEj +VtgXbOR/hvrnLdkFVK0UWBiMryxbytlVup73MTt6I3obvxB4v7RkgDxrjIReimOGcYTTHkjU qyf0JmRC25Pog2EuJBFw4uYgSnbVwa2M6VvUY8yR3sQx6T7cuV1ZHrBI7qd9brS6+QtRYsQa4 40/ZhKoX2bcEkQSgQ64hxhSIQRc0vstV00Q5QrpPIHOmDmc/90iIDa6iCj7gb+eCvYrFqAVD9 SegrjkpqX4cSPASy2pg2Ga216oBh7d8sbIs5Tk5vUtO9Yy6MSQL0QrIVlKrx5PvteQEy8diUv PGxV+svMOYkBE8aJFt/AlNmKN6qHwL9bqKKdm1mHimfJ5Fu8XwawPZDSGGwxzMW0ofw6xyU6p k3ZcxnhxrYwLLF50Bcnsz5fRTUUl/MXo5fJlNzY5o93oBP7PbgmzY+NP1MmshdWEwziHvP22I Lh93RvmKHM5X+2xcHb+mlDS35RQQee2tZSUOdSjn3EhRJFIfoTButh/pWTqfMnPCP8NQWeXIh EhD0GZ0U61bmMXien1un/12WvcGWtA/eBc+Igl98P287yE97gA0Ba8pMrcrwPCYNO46tORwCz y/jTvo/mXIpIiQSVnQmr1FlhupThF/LHPgOkFLKrMy9jcmCO8wwdNmo/f+JlcTAR+T0hy6PXd 9jKPYCsBw/mnRsbn79Yr+62/EqRoXxpOQ0aV+8zZEi5J7h+FXzdzNqAiFAwLq2BCYcxXh7N+U cjtP3a3lcl/9rb10ZNF9KqRIjWYXw3D8/x2awdGiAp4k4EWDOo= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 24, 2020 at 9:56 AM Guido Günther wrote: > On Wed, Jan 22, 2020 at 10:35:53AM +0000, Russell King - ARM Linux admin wrote: > > On Wed, Jan 22, 2020 at 11:30:34AM +0100, Guido Günther wrote: > > I think it would probably be better for the kernel to print a > > warning once when noticing over-large nsec values, suggesting a > > userspace upgrade is in order, but continue the existing behaviour. > > That makes sense to me. This also makes sure we don't break other (non > mesa using) stuff accidentally. We have > > https://gitlab.freedesktop.org/mesa/mesa/commit/d817f2c69615cf37b78f484a25b7831ebe9dbe6f > > and > > https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3534 > > to normalize nsec to [0..999999999] now. > I have reverted my patch that adds the range check now, so I can send the rest of the series for inclusion. I've played around with ways to add a ratelimited warning message and to make sure that a malicious application cannot cause a long stall, but haven't managed to get a version I'm actually happy with. I'll follow up once the series is merged, and then we can add a better workaround later through the drm tree. Arnd