From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3A49C33CA7 for ; Sat, 11 Jan 2020 23:10:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B7D6C2084D for ; Sat, 11 Jan 2020 23:10:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=shutemov-name.20150623.gappssmtp.com header.i=@shutemov-name.20150623.gappssmtp.com header.b="ek53wvr+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731649AbgAKXKQ (ORCPT ); Sat, 11 Jan 2020 18:10:16 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:42863 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731635AbgAKXKP (ORCPT ); Sat, 11 Jan 2020 18:10:15 -0500 Received: by mail-lf1-f68.google.com with SMTP id y19so4215786lfl.9 for ; Sat, 11 Jan 2020 15:10:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=JGwjCwjrE/FFSrouiscxDxwOQNaut4YCL+E/ntxvkLk=; b=ek53wvr+YlCxw4RZH/KIJwvKFAOlTWk3Q7bvWshJrNCGX222zu7pTWxsYY91YLogH/ TsFuUwwbexBeA//p5cedB1CuaX0tBBs8pYf1wC0Qlu0/+0rg5b1lW9FKmbhFsZsnRA8c Mzlh3FYcebzKZRTE/KYT+Glr1te9v3V+8yY8MLNdmPItYU0QxNH0URRcrnuyOEjD4+No 0IsIUoEs7lKmZk775eGat37EwEDHtqCjoorJ1bOLEaw05T6WBYWuzx+L3cw1X2CqKB9z TtWTRysDG/homUoSOQ3Jykbs5VLoXZuobbfFlANkWWgpoff1XLD1obxSxO2WpkdU6hvC zUuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=JGwjCwjrE/FFSrouiscxDxwOQNaut4YCL+E/ntxvkLk=; b=EpFr8tVWa0R1r0mrYu9b9IwWnxMK9LYm+tu+lwK/jhEaB+nceSo4doIeS9OEEeNYIq Exe4l6o/s8Ea/dpFDKJL6Sy7+lW4ewqpK/FSJl+ytiuG6N1W9qvOgL4MQx6qhqCvJaOS 30znAYSrXOhMwuB3JHVcz9IX5W8tg8YiMHQr49udC2YUufhpS4Y9k5u/y327jtVMlPM+ NjmyHNrj/ibSd5KUkkuUd+KPGDatCdDoN5vKfnB3J6Px+JXUchxQTrNt1cYApmQ03NJZ 6CeHDElTa7wYRvrsDKYW3IwwgHQ1zLho698TPhiakfG/p6zBva2nGRZNsj+5EcBBCNo8 YMnw== X-Gm-Message-State: APjAAAVw1NChjGMxdVSU5mphG5GlcpDZ4PKL7hNIFHtJi/N1cFmT/A7H jBNO+RyHaWHPE4nM3IEZHoTdxA== X-Google-Smtp-Source: APXvYqyVLZJrMH2WTpP/Pm2kwNmX9kpoZaifgqplxgcVA8vntvnh6xWYR00UDtyESJEmJEnudgqL7Q== X-Received: by 2002:a19:40d8:: with SMTP id n207mr6110718lfa.4.1578784213877; Sat, 11 Jan 2020 15:10:13 -0800 (PST) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id t9sm3324524lfl.51.2020.01.11.15.10.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jan 2020 15:10:13 -0800 (PST) Received: by box.localdomain (Postfix, from userid 1000) id 9455B10036D; Sun, 12 Jan 2020 02:10:14 +0300 (+03) Date: Sun, 12 Jan 2020 02:10:14 +0300 From: "Kirill A. Shutemov" To: Jens Axboe Cc: io-uring@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 3/3] io_uring: add IORING_OP_MADVISE Message-ID: <20200111231014.bmpxdg2juw3mxiwr@box> References: <20200110154739.2119-1-axboe@kernel.dk> <20200110154739.2119-4-axboe@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200110154739.2119-4-axboe@kernel.dk> User-Agent: NeoMutt/20180716 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Fri, Jan 10, 2020 at 08:47:39AM -0700, Jens Axboe wrote: > This adds support for doing madvise(2) through io_uring. We assume that > any operation can block, and hence punt everything async. This could be > improved, but hard to make bullet proof. The async punt ensures it's > safe. > > Signed-off-by: Jens Axboe How capability checks work with io_uring? MADV_HWPOISON requires CAP_SYS_ADMIN and I just want to make sure it will not open a way around. -- Kirill A. Shutemov