Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp633971ybt; Fri, 10 Jul 2020 08:33:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0/WoGvfJ/RpErnK/oAZ0XixDJnI56UaYwvwoQFyxv558QpVb8V9jHZU5+qLEuCc0Tq/EN X-Received: by 2002:aa7:c398:: with SMTP id k24mr466774edq.95.1594395203384; Fri, 10 Jul 2020 08:33:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594395203; cv=none; d=google.com; s=arc-20160816; b=ZQ2OrcdlpJZhbw6qd618M2ZZinzxkU0TaGbw0FNZdu16vjzsRx7UwzEJCDz0DvdS5e QQdzy9tqHB01AryIkSepCt6e2NwXc0hrv6o0TdyoJm89uR707/YsctS4SP4vHSu/4iZk tLFqAPNfjIjXuMYHdwa291GMvbpchC0mL3xHqI4kVd9dNvWzxnqwZJXq0dxa8rwfj11d 681O9k6qLs7T6Z1K4A7EokzqT4blD3f/X4G+bL+afE2mbyZdykjnLDazJWDL5LGKYObd 0GK6cL8jjNHtNr03cU2a1um3VZeB7ZdBDd2uInX46BrcXZOnKdRx6+3KA5jbojXpYOGc TPRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=noRFkj+OQDbBA2VGp4VYO7xlUC6XPPINL2vE+AEdyMs=; b=ntCOprB48caQyXPyXMvFOQ4k1Oc7JwHPLf7lwxZaRT7+uFvn8WVayGSBxhGnIcXEr1 /KI+KPNqJGmBGe+S+A1wLs5zRjeSU3KCGaL+qpo3z79n3CNFXqYtwy6AOU27joe2R/yF uD1DTXNgLIIehwiBMXcW5V2OSC/F3BhP7dOhyAmW4P6vsaKBih3985CaMXqC4w/O6Et+ 2bTPSZ6ejoOgleHYRqB4/K6ika8QoEDX6R8OP6jnXogpYq32Gy2NLMlUbubMAyrKv48X /VTACGh2oVYkjxT23vFeAvG/Fkh/lLVK41poCON62zrMD1HIrqwI7pn1Jpr+FfrsXB2j YkLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=vP7ocyP6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w6si4267883ejn.265.2020.07.10.08.33.00; Fri, 10 Jul 2020 08:33:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=vP7ocyP6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728002AbgGJPcw (ORCPT + 99 others); Fri, 10 Jul 2020 11:32:52 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:55504 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727844AbgGJPcv (ORCPT ); Fri, 10 Jul 2020 11:32:51 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 06AFGfbR091218; Fri, 10 Jul 2020 15:32:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2020-01-29; bh=noRFkj+OQDbBA2VGp4VYO7xlUC6XPPINL2vE+AEdyMs=; b=vP7ocyP6G8yyQHxRakpibhyM1nz+c9fv0HuXARINt0xwJGXnneDkHMx3/I9UqlGe0CDP a0c+6nMpavkOsyuS6N4K9cIu548k77Y6U9ObDCmG20VB/170q6aRnsMcG6RUGknHH8+r gL78ARsbKlZWOO088PwfuNNLnqotvlsP5YvtRQJxhu7FeUTuznVOMKzuBjhEsmUA6par mSbZ6IlrmXcxxdg05cm4SVb2jZhgvAcpfeTaGBpmpkOaSxijP2Ub+hrjs8eVFN3bAZY+ l6reAtwEC+XXnRCO4zxYIo4Q+OIOn2eb8IUP/uHGiLO3288Gxmm5oKDZYPQCs+3Iq53c FQ== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 325y0ar568-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 10 Jul 2020 15:32:18 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 06AFHMZH146270; Fri, 10 Jul 2020 15:32:17 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3030.oracle.com with ESMTP id 325k3k25k2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Jul 2020 15:32:17 +0000 Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 06AFWDQx014888; Fri, 10 Jul 2020 15:32:13 GMT Received: from char.us.oracle.com (/10.152.32.25) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 10 Jul 2020 08:32:13 -0700 Received: by char.us.oracle.com (Postfix, from userid 1000) id 58EB86A00F1; Fri, 10 Jul 2020 11:33:09 -0400 (EDT) Date: Fri, 10 Jul 2020 11:33:09 -0400 From: Konrad Rzeszutek Wilk To: Stefano Garzarella Cc: Jens Axboe , Sargun Dhillon , Kees Cook , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Kernel Hardening , Jann Horn , Aleksa Sarai , Christian Brauner , Stefan Hajnoczi , io-uring@vger.kernel.org, Alexander Viro , Jeff Moyer Subject: Re: [PATCH RFC 0/3] io_uring: add restrictions to support untrusted applications and guests Message-ID: <20200710153309.GA4699@char.us.oracle.com> References: <20200710141945.129329-1-sgarzare@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200710141945.129329-1-sgarzare@redhat.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9678 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 phishscore=0 mlxlogscore=999 bulkscore=0 spamscore=0 mlxscore=0 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007100105 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9678 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 adultscore=0 malwarescore=0 clxscore=1011 impostorscore=0 phishscore=0 suspectscore=0 priorityscore=1501 bulkscore=0 lowpriorityscore=0 mlxlogscore=999 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007100105 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org .snip.. > Just to recap the proposal, the idea is to add some restrictions to the > operations (sqe, register, fixed file) to safely allow untrusted applications > or guests to use io_uring queues. Hi! This is neat and quite cool - but one thing that keeps nagging me is what how much overhead does this cut from the existing setup when you use virtio (with guests obviously)? That is from a high level view the beaty of io_uring being passed in the guest is you don't have the virtio ring -> io_uring processing, right? Thanks!