From patchwork Thu Oct 7 15:53:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Howells X-Patchwork-Id: 12542267 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 19E34C433FE for ; Thu, 7 Oct 2021 16:22:49 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id BE06061263 for ; Thu, 7 Oct 2021 16:22:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BE06061263 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 3A1DA6B006C; Thu, 7 Oct 2021 12:22:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 35143900002; Thu, 7 Oct 2021 12:22:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 218AC6B0072; Thu, 7 Oct 2021 12:22:48 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0231.hostedemail.com [216.40.44.231]) by kanga.kvack.org (Postfix) with ESMTP id 13D086B006C for ; Thu, 7 Oct 2021 12:22:48 -0400 (EDT) Received: from smtpin10.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id C68201840CAF8 for ; Thu, 7 Oct 2021 16:22:47 +0000 (UTC) X-FDA: 78670159974.10.E59651C Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf29.hostedemail.com (Postfix) with ESMTP id 774299002BDF for ; Thu, 7 Oct 2021 16:22:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1633623767; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YlCCMepVWxlDt+ZxOI3nKL7iXR5cvBw/XyYjKdfC9HI=; b=WrlemT10fLZTpI5FuqNcpd/a9y5Al/IxXjvzEIDfuuxcbY4SD+zbQPSpglExkDeDc/qczk 2EC8N+uJObLrrKI4EyT9XMG0x97wz+XXukVijEZ0koR2+lRLo6mfFMYdXB/y/GQowSQQZy pFrNUAmokpBUuRUU6oDzKRIrdrx/h1Y= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-38-niXwdHv8Pz2BQVcuslP5yQ-1; Thu, 07 Oct 2021 12:22:45 -0400 X-MC-Unique: niXwdHv8Pz2BQVcuslP5yQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7D97614242DB; Thu, 7 Oct 2021 15:53:13 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.33.36.44]) by smtp.corp.redhat.com (Postfix) with ESMTP id ABDA8D1F28; Thu, 7 Oct 2021 15:53:05 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells To: torvalds@linux-foundation.org cc: dhowells@redhat.com, Dave Wysochanski , Jeff Layton , Jeffrey Altman , Marc Dionne , v9fs-developer@lists.sourceforge.net, linux-afs@lists.infradead.org, ceph-devel@vger.kernel.org, linux-cifs@vger.kernel.org, linux-nfs@vger.kernel.org, linux-cachefs@redhat.com, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@kvack.org Subject: [GIT PULL] netfs, cachefiles, afs: Collected fixes MIME-Version: 1.0 Content-ID: <1961631.1633621984.1@warthog.procyon.org.uk> Date: Thu, 07 Oct 2021 16:53:04 +0100 Message-ID: <1961632.1633621984@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=WrlemT10; spf=none (imf29.hostedemail.com: domain of dhowells@redhat.com has no SPF policy when checking 170.10.133.124) smtp.mailfrom=dhowells@redhat.com; dmarc=pass (policy=none) header.from=redhat.com X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 774299002BDF X-Stat-Signature: 8x46iapobaacn8kyr851opommqixfjk1 X-HE-Tag: 1633623767-70310 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Linus, Can you pull this set of collected fixes please? There are three: (1) Fix another couple of oopses in cachefiles tracing stemming from the possibility of passing in a NULL object pointer[1]. (2) Fix netfs_clear_unread() to set READ on the iov_iter so that source it is passed to doesn't do the wrong thing (some drivers look at the flag on iov_iter rather than other available information to determine the direction)[2]. (3) Fix afs_launder_page() to write back at the correct file position on the server so as not to corrupt data[3]. David Link: https://lore.kernel.org/r/162729351325.813557.9242842205308443901.stgit@warthog.procyon.org.uk/ [1] Link: https://lore.kernel.org/r/162886603464.3940407.3790841170414793899.stgit@warthog.procyon.org.uk [1] Link: https://lore.kernel.org/r/163239074602.1243337.14154704004485867017.stgit@warthog.procyon.org.uk [1] Link: https://lore.kernel.org/r/162729351325.813557.9242842205308443901.stgit@warthog.procyon.org.uk/ [2] Link: https://lore.kernel.org/r/162886603464.3940407.3790841170414793899.stgit@warthog.procyon.org.uk [2] Link: https://lore.kernel.org/r/163239074602.1243337.14154704004485867017.stgit@warthog.procyon.org.uk [2] Link: https://lore.kernel.org/r/162880783179.3421678.7795105718190440134.stgit@warthog.procyon.org.uk/ [3] Link: https://lore.kernel.org/r/162937512409.1449272.18441473411207824084.stgit@warthog.procyon.org.uk/ [3] Link: https://lore.kernel.org/r/162981148752.1901565.3663780601682206026.stgit@warthog.procyon.org.uk/ [3] Link: https://lore.kernel.org/r/163005741670.2472992.2073548908229887941.stgit@warthog.procyon.org.uk/ [3] Link: https://lore.kernel.org/r/163221839087.3143591.14278359695763025231.stgit@warthog.procyon.org.uk/ [3] Link: https://lore.kernel.org/r/163292980654.4004896.7134735179887998551.stgit@warthog.procyon.org.uk/ [3] --- The following changes since commit 9e1ff307c779ce1f0f810c7ecce3d95bbae40896: Linux 5.15-rc4 (2021-10-03 14:08:47 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git tags/misc-fixes-20211007 for you to fetch changes up to 5c0522484eb54b90f2e46a5db8d7a4ff3ff86e5d: afs: Fix afs_launder_page() to set correct start file position (2021-10-05 11:22:06 +0100) ---------------------------------------------------------------- netfslib, cachefiles and afs fixes ---------------------------------------------------------------- Dave Wysochanski (1): cachefiles: Fix oops with cachefiles_cull() due to NULL object David Howells (2): netfs: Fix READ/WRITE confusion when calling iov_iter_xarray() afs: Fix afs_launder_page() to set correct start file position fs/afs/write.c | 3 +-- fs/netfs/read_helper.c | 2 +- include/trace/events/cachefiles.h | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-)