From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751473AbcGNNmM (ORCPT ); Thu, 14 Jul 2016 09:42:12 -0400 Received: from mga03.intel.com ([134.134.136.65]:52158 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751452AbcGNNmI (ORCPT ); Thu, 14 Jul 2016 09:42:08 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,362,1464678000"; d="scan'208";a="1021671550" Subject: Re: [PATCH 2/2] proc: Add /proc//timerslack_ns interface To: "Serge E. Hallyn" , Kees Cook 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> Cc: John Stultz , Andrew Morton , Thomas Gleixner , lkml , Oren Laadan , Ruchi Kandoi , Rom Lemarchand , Android Kernel Team , Todd Kjos , Colin Cross , Nick Kralevich , Dmitry Shmidt , Elliott Hughes From: Arjan van de Ven Message-ID: <7d7579a1-2616-0437-5319-23190906a2b4@linux.intel.com> Date: Thu, 14 Jul 2016 06:42:04 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <20160714124806.GB31333@mail.hallyn.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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)