From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751494AbcGNQBb (ORCPT ); Thu, 14 Jul 2016 12:01:31 -0400 Received: from mail-oi0-f41.google.com ([209.85.218.41]:36341 "EHLO mail-oi0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751115AbcGNQB2 (ORCPT ); Thu, 14 Jul 2016 12:01:28 -0400 MIME-Version: 1.0 In-Reply-To: <7d7579a1-2616-0437-5319-23190906a2b4@linux.intel.com> References: <1455671191-32105-1-git-send-email-john.stultz@linaro.org> <1455671191-32105-3-git-send-email-john.stultz@linaro.org> <20160714124806.GB31333@mail.hallyn.com> <7d7579a1-2616-0437-5319-23190906a2b4@linux.intel.com> From: John Stultz Date: Thu, 14 Jul 2016 09:01:27 -0700 Message-ID: Subject: Re: [PATCH 2/2] proc: Add /proc//timerslack_ns interface To: Arjan van de Ven Cc: "Serge E. Hallyn" , Kees Cook , Andrew Morton , Thomas Gleixner , lkml , Oren Laadan , Ruchi Kandoi , Rom Lemarchand , Android Kernel Team , Todd Kjos , Colin Cross , Nick Kralevich , Dmitry Shmidt , Elliott Hughes Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 14, 2016 at 6:42 AM, Arjan van de Ven wrote: > On 7/14/2016 5:48 AM, Serge E. Hallyn wrote: > >> Can someone give a detailed explanation of what you could do with >> the new timerslack feature and compare it to what you can do with >> sys_nice? >> > > what you can do with the timerslack feature is add upto 4 seconds of extra > time/delay on top of each select()/poll()/nanosleep()/... (basically > anything that > uses hrtimers on behalf of the user), and then also control within that > 4 second window exactly when that extra delay ends > (which may help a timing attack kind of scenario) So the interface actually allows for 64bits of nanoseconds, so more or less infinite delay if nothing else is happening. thanks -john