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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 98E19C433FE for ; Tue, 15 Feb 2022 18:03:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241542AbiBOSDq (ORCPT ); Tue, 15 Feb 2022 13:03:46 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:39742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242818AbiBOSDp (ORCPT ); Tue, 15 Feb 2022 13:03:45 -0500 Received: from mx0b-00082601.pphosted.com (mx0b-00082601.pphosted.com [67.231.153.30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62691111F8F for ; Tue, 15 Feb 2022 10:03:35 -0800 (PST) Received: from pps.filterd (m0148460.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 21FHtLlT011653 for ; Tue, 15 Feb 2022 10:03:34 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=facebook; bh=O+AZD/5sizKg/ofEBKtzbrbG5esNSkeVKlrI5vJ5LKA=; b=o6sXkCQs2wK+f8o3QWBnTN5xsN+iIZvncIwLsV/F9AqkYGq24OaLvLtJDnigfCWbYpHo JsgxNCpuetzo2QXyDBOMJP7eqNhCwHo4OmAfVvBjtj88oSI491vNlNwvwPRpm2qTh7c4 IOBA9B0/z4Ex5MV5xSqtfrlCphm9Oolqjt0= Received: from mail.thefacebook.com ([163.114.132.120]) by mx0a-00082601.pphosted.com (PPS) with ESMTPS id 3e825s5gfx-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 15 Feb 2022 10:03:34 -0800 Received: from twshared0654.04.ash8.facebook.com (2620:10d:c085:208::11) by mail.thefacebook.com (2620:10d:c085:21d::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Tue, 15 Feb 2022 10:03:33 -0800 Received: by devvm225.atn0.facebook.com (Postfix, from userid 425415) id D1E04AC8C968; Tue, 15 Feb 2022 10:03:29 -0800 (PST) From: Stefan Roesch To: , , CC: , Subject: [PATCH v3 0/2] io-uring: Make statx api stable Date: Tue, 15 Feb 2022 10:03:26 -0800 Message-ID: <20220215180328.2320199-1-shr@fb.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-FB-Internal: Safe Content-Type: text/plain X-Proofpoint-GUID: kCJfeT6kRyb6mwdBKUArRFCVyb-0TQmR X-Proofpoint-ORIG-GUID: kCJfeT6kRyb6mwdBKUArRFCVyb-0TQmR X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-02-15_04,2022-02-14_04,2021-12-02_01 X-Proofpoint-Spam-Details: rule=fb_outbound_notspam policy=fb_outbound score=0 malwarescore=0 spamscore=0 clxscore=1015 adultscore=0 mlxlogscore=763 suspectscore=0 bulkscore=0 lowpriorityscore=0 impostorscore=0 mlxscore=0 priorityscore=1501 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202150104 X-FB-Internal: deliver Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org One of the key architectual tenets of io-uring is to keep the parameters for io-uring stable. After the call has been submitted, its value can be changed. Unfortunaltely this is not the case for the current statx implementation. Patches: Patch 1: fs: replace const char* parameter in vfs_statx and do_statx wit= h struct filename Create filename object outside of do_statx and vfs_statx, so io-uring can create the filename object during the prepare phase Patch 2: io-uring: Copy path name during prepare stage for statx Create and store filename object during prepare phase There is also a patch for the liburing libray to add a new test case. Thi= s patch makes sure that the api is stable. "liburing: add test for stable statx api" The patch has been tested with the liburing test suite and fstests. Changes: V2: don't check name in vfs_fstatat V3: don't check name in statx syscall Stefan Roesch (2): fs: replace const char* parameter in vfs_statx and do_statx with struct filename io-uring: Copy path name during prepare stage for statx fs/internal.h | 4 +++- fs/io_uring.c | 22 ++++++++++++++++++++-- fs/stat.c | 47 ++++++++++++++++++++++++++++++++++------------- 3 files changed, 57 insertions(+), 16 deletions(-) base-commit: 705d84a366cfccda1e7aec1113a5399cd2ffee7d --=20 2.30.2