Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp88351ybm; Thu, 28 May 2020 16:52:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvAgSbA6BpQnW8uJnGZ57mPRJZjldCvJ66vYaIq4L2KHateZTxY5n4X+NThFenrL9wiVVT X-Received: by 2002:a17:906:c943:: with SMTP id fw3mr5192675ejb.288.1590709971858; Thu, 28 May 2020 16:52:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590709971; cv=none; d=google.com; s=arc-20160816; b=0dOFhLrdgP/BmjI23z2uhA4gcVoFpONGfOItErH//I4jQU5VgATMs80yZrkzdF/JeI UFTCDbX4ejIdcsKqRVcVzzlMH+PpRBdfsxgGaa7Ug8Fyj5adZBk7AuFcoDuDP1lQ3K0c I05ExQTFfLSRgrDiTMK17D2Izl77PnpbZ0ZbQivfqr6jO1Ha8W4g7K56xnqCta3o52zH KlWpgoJtjFQgKqjGCZBYhSuGryZsgERWRtAa/V3mdvEhTOBVoRRwHu1nd4q8yGPsN+/o 0+tnBSdEoV9KpGCtAeBFQ+qhpwKpAmYx9vm5YA0XfUKzFiconsFzyWuXAzAPK0+Bvn7b MYcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=l7H7zncguiBvZWaM2nj8o/UzLXOmTIpZv5wFnZznZA0=; b=0yoUQKrOI8EyALFJGYqha2vSJp/az0o9q3XEdVof/ayvr5HYfhJMDrYzY2aptgeO4d nIyTHqLFBrlUUvMaZljht3mo/N70Td46akEqDjB7M2ibn8RRVHmMi27fVh5aQ+0GdzFl jRCUqV8N4h8Uxws3Ruu2CiC36QttfdK3cj9yqeESPRdaoXIEVK1Vn0BQL8L1zjPnfxRo Yg3jslQugsU6PLPDDzTk8ItCJl2liQH3evQ0UHMzJmy9fVTePLtjh20ARwS7yzCv7BW3 nl+gjrnGN9yCRti87hAZoC/5s3v0+yQZ6XvKyrf2eVE1wNj1+cPqf9f9tKEFyW9vnV9W wSaw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bz27si4640462ejc.475.2020.05.28.16.52.28; Thu, 28 May 2020 16:52:51 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437701AbgE1Xsh (ORCPT + 99 others); Thu, 28 May 2020 19:48:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437647AbgE1Xse (ORCPT ); Thu, 28 May 2020 19:48:34 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FC8BC014D07; Thu, 28 May 2020 16:48:34 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.93 #3 (Red Hat Linux)) id 1jeSGG-00HDkJ-MD; Thu, 28 May 2020 23:48:32 +0000 Date: Fri, 29 May 2020 00:48:32 +0100 From: Al Viro To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [PATCHES] uaccess readdir Message-ID: <20200528234832.GA4103769@ZenIV.linux.org.uk> References: <20200528234025.GT23230@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200528234025.GT23230@ZenIV.linux.org.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org readdir.c uaccess stuff. Lives in #uaccess.readdir, based at #uaccess.base, gets the rest of fs/readdir.c in sync with getdents()/getdents64(). Al Viro (3): switch readdir(2) to unsafe_copy_dirent_name() readdir.c: get compat_filldir() more or less in sync with filldir() readdir.c: get rid of the last __put_user(), drop now-useless access_ok() fs/readdir.c | 92 +++++++++++++++++++++++++++++------------------------------- 1 file changed, 44 insertions(+), 48 deletions(-)