Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7045837imu; Thu, 31 Jan 2019 04:08:41 -0800 (PST) X-Google-Smtp-Source: ALg8bN4FFokn6hJ63eJ/wu68QKT6MXskc7I5zxGxN4nk7s82XaVwyR+VP8XVoKSvKkqMtZg6pVQW X-Received: by 2002:a63:d904:: with SMTP id r4mr31442178pgg.207.1548936521005; Thu, 31 Jan 2019 04:08:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548936520; cv=none; d=google.com; s=arc-20160816; b=0/2mPDjKoUseCiQATEJQ690xuFjARfFyr9vAMh9jqAsUOPk6SCvhZR8wL9lOWtViFp XhmQ68lGbLrhlFKqirtPeJBrdLsPRyhHMwUVsINLLb8TCAsBZBisEAYGcuTLaxUC8wqs g0ktN2nwK3gzucaglyxyxi2LY2SSO9DZHh/scEaiJ0tzSXqkWFMjVjfHX8DMnvVG6ztY 7jorEy1SzTUHg+GUxa57x+AOMCjmx4XCncq1VimhUM2/NWfWkfTHt93qKQyudQa+Jx98 lZiOofv5CfbrrhFESulAJZbCVGkj3pPfqH3cSMLNTG+muqGNdXlUhoM2zv9RiRBmrowB FFkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=YS0NO5yiH+hzqGNX25wsvINs96sN7hTYyApoqyUzdY0=; b=J/FrWqATx75QoXfsdwxWjZmFiDDOCAOiFoBHpTagjGc012dEI0tsXC+drUU8rcGk6S E4vjVoFVOhd6lvs7k2MPM+CUGlwvrRCFIRWQl7GGX/ptb6SvcoDp6/BqCpBNG+R8SKdL lRboNfqDKaix2WuEVKnfOCX4Y7m1FhLj70tUcr+CY2b2g0YpE/bnBztGkrcJAE1gCFY2 hJQzGztsGQ/h45qRECajfnGdOJpMcLOJkAsorAMpPGa8/DGAGW74UcNnYwzQEsQ/0z7p ZJqDIkq6ePuo9wOf0r8RrHTsyEu/B9A2QKGtQFS9AMeJR0Bq5r4GebVqlxxuvXdek2N4 wtUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HGbUe8Q1; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si1861752plo.195.2019.01.31.04.08.25; Thu, 31 Jan 2019 04:08:40 -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=@kernel.org header.s=default header.b=HGbUe8Q1; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732560AbfAaMIG (ORCPT + 99 others); Thu, 31 Jan 2019 07:08:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:42000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726977AbfAaMIG (ORCPT ); Thu, 31 Jan 2019 07:08:06 -0500 Received: from pobox.suse.cz (prg-ext-pat.suse.com [213.151.95.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 823272086C; Thu, 31 Jan 2019 12:08:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548936485; bh=8xiqhQL74NPCiIrNIibRzSqNG12ZScZrkr4RT+/ftLI=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=HGbUe8Q1y9wvs/YPD5E+gnIYoMx6uM84L7B+qKScVKjTy3XS9bKf3oqMNjO4lIWaJ mtmeCQSycFybNyNiIhRtBCY8yioMvLQ8WsXzv2sI+VsohOMh7wvEnIrEkcA7TZbDp8 5qkehS+eB/MhingrKgW+FQP5eleT04QyLDTmX4xg= Date: Thu, 31 Jan 2019 13:08:00 +0100 (CET) From: Jiri Kosina To: Daniel Gruss cc: Vlastimil Babka , Andrew Morton , Linus Torvalds , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-api@vger.kernel.org, Peter Zijlstra , Greg KH , Jann Horn , Dominique Martinet , Andy Lutomirski , Dave Chinner , Kevin Easton , Matthew Wilcox , Cyril Hrubis , Tejun Heo , "Kirill A . Shutemov" Subject: Re: [PATCH 2/3] mm/filemap: initiate readahead even if IOCB_NOWAIT is set for the I/O In-Reply-To: Message-ID: References: <20190130124420.1834-1-vbabka@suse.cz> <20190130124420.1834-3-vbabka@suse.cz> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 31 Jan 2019, Daniel Gruss wrote: > If I understood it correctly, this patch just removes the advantages of > preadv2 over mmmap+access for the attacker. Which is the desired effect. We are not trying to solve the timing aspect, as I don't think there is a reasonable way to do it, is there? -- Jiri Kosina SUSE Labs