Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp785739pxf; Thu, 11 Mar 2021 15:08:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1NrLF9JNgDfSHgiNmGVaDOU1caE4XxxdwmR+izJLs0CGtqf73RUPRzBpMnql+WWxshBol X-Received: by 2002:a17:907:3e8b:: with SMTP id hs11mr5392213ejc.117.1615504090298; Thu, 11 Mar 2021 15:08:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615504090; cv=none; d=google.com; s=arc-20160816; b=cbdbzfAP+MQtoYkeelrsGDgOcuoFn7Qr2Uyab/PHR/syZi1JylzXkYdgiMq/QWI+Zu xH0lNXYQq4i3UC+QDY5n21sID27clO9zVkYIfp5HIHGGhqvhnlmMJddoLyU/rHkG0NCm yLxtor84k6Pr4hntrGIMmeHRzZHtO+Mpj1aJNkeEvLISmOrDLTthvfSwh12ycXNrLuT6 xzx8xZNGK4zz8ARwaO4jRcOI9f/u1u/XzChAh4aPDtf8fZnzz9POFa3JwbI/Ghlj1Lg/ Xol1MDFnQTKCB0wEroIv4QbolUkttu4PwjAfB6op3ly7BmMbPRU9OvniKP13dVmmkRR8 bClA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:date:cc:to:from:subject:dkim-signature; bh=HtAWYSLLqT0QGTRR/NdQtQI9u91J7Jlm7FNQuSRjgM8=; b=sVE5Ox2Nzj6UdCy9bdPeOTXNb6hyOg0Zr6/rb1rPAKFe3ucDTr+DsBsC7fquKAQpEr D2d6iQSnBRZmG/QSF97HyOpN7VDau+4y6dh9Wj1hhKa0VjMbwyunJfeAHY6VUFV32Elh 0rYwtNqxzCH7TqYdzFHNZSBgLAE21P++aPbGsJiN9lAHGI9r4hsEVC+PyJt2aG5zEoOG r3p7kSq3VExwN5iFrBttCoqEzj/hmLLAa1Y0UWlEz/tZZ1rDkIOGkHcr8CsQ00eqPJa/ 8jlqQxKx5ps6b7N2gT1ngbLVKJFFDVJKCIR+JvLAqvw5LkPW/JAPtYfm1opv+AAkucrP OihQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bf5oZlfz; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si2644361ejd.56.2021.03.11.15.07.47; Thu, 11 Mar 2021 15:08:10 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=bf5oZlfz; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229677AbhCKXGm (ORCPT + 99 others); Thu, 11 Mar 2021 18:06:42 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:49059 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbhCKXGb (ORCPT ); Thu, 11 Mar 2021 18:06:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615503990; 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=HtAWYSLLqT0QGTRR/NdQtQI9u91J7Jlm7FNQuSRjgM8=; b=bf5oZlfzEMAtK/McZKf/j5yiIytWvRSF4IGDkaSHVwnMiQLeQQE0l17xmuDJ9pjpcltcZ4 Jgicis8vewUpGEPwhY+wXGWaOtfKBEy24Ku3jDH4x4W4475BdHHL+Eee+1AOhbpCPnvvOq 3PE9/YYPrhGSSJdzZF4uEYTuHhax2bE= 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-258-lKX6lvm1Oky9mK8Dr6mfJQ-1; Thu, 11 Mar 2021 18:06:27 -0500 X-MC-Unique: lKX6lvm1Oky9mK8Dr6mfJQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3E4EF1966322; Thu, 11 Mar 2021 23:06:26 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-118-152.rdu2.redhat.com [10.10.118.152]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1D0C819C47; Thu, 11 Mar 2021 23:06:24 +0000 (UTC) Subject: [PATCH v2 0/2] AFS metadata xattr fixes From: David Howells To: linux-afs@lists.infradead.org Cc: Gaja Sophie Peters , dhowells@redhat.com, Gaja Sophie Peters , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 11 Mar 2021 23:06:24 +0000 Message-ID: <161550398415.1983424.4857046033308089813.stgit@warthog.procyon.org.uk> User-Agent: StGit/0.23 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Here's a pair of fixes for AFS. (1) Fix an oops in AFS that can be triggered by accessing one of the afs.yfs.* xattrs against a yfs server[1][2] - for instance by "cp -a" or "rsync -X". These try and copy all of the xattrs. They should pay attention to the list in /etc/xattr.conf, but cp doesn't on Ubuntu and rsync doesn't seem to on Ubuntu or Fedora. xattr.conf has been modified upstream[3], but a new version hasn't been cut yet. I've logged a bug against rsync for the problem there[4]. (2) Stop listing "afs.*" xattrs[6], particularly ACL ones[8]. This removes them from the list returned by listxattr(), but they're still available to get/set. The patches can be found here: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=afs-fixes Changes: ver #2: - Hide all of the afs.* xattrs, not just the ACL ones[7]. David Link: http://lists.infradead.org/pipermail/linux-afs/2021-March/003498.html [1] Link: http://lists.infradead.org/pipermail/linux-afs/2021-March/003501.html [2] Link: https://git.savannah.nongnu.org/cgit/attr.git/commit/?id=74da517cc655a82ded715dea7245ce88ebc91b98 [3] Link: https://github.com/WayneD/rsync/issues/163 [4] Link: http://lists.infradead.org/pipermail/linux-afs/2021-March/003516.html [5] Link: http://lists.infradead.org/pipermail/linux-afs/2021-March/003524.html [6] Link: http://lists.infradead.org/pipermail/linux-afs/2021-March/003565.html # v1 Link: http://lists.infradead.org/pipermail/linux-afs/2021-March/003568.html [7] Link: http://lists.infradead.org/pipermail/linux-afs/2021-March/003570.html [8] --- David Howells (2): afs: Fix accessing YFS xattrs on a non-YFS server afs: Stop listxattr() from listing "afs.*" attributes fs/afs/dir.c | 1 - fs/afs/file.c | 1 - fs/afs/inode.c | 1 - fs/afs/internal.h | 1 - fs/afs/mntpt.c | 1 - fs/afs/xattr.c | 23 ----------------------- 6 files changed, 28 deletions(-)