[packages/kernel/LINUX_6_18] Rel 2. Update aufs to 6.18-20261116, fix i686 config
arekm
arekm at pld-linux.org
Tue Nov 24 09:20:24 CET 2026
commit a19985baf4da08e6e393d28b305ebdac8c7a3987
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Nov 24 09:18:46 2026 +0100
Rel 2. Update aufs to 6.18-20261116, fix i686 config
Enable the new RTC_HCTOSYS_TIME32_LIMIT.
kernel-aufs.patch | 1764 +++++++++++++++++++++++++++++------------------
kernel-multiarch.config | 3 +-
kernel.spec | 2 +-
3 files changed, 1106 insertions(+), 663 deletions(-)
---
diff --git a/kernel.spec b/kernel.spec
index 2f7790aa..685232a5 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -51,7 +51,7 @@
%define have_drm 0
%endif
-%define rel 1
+%define rel 2
%define basever 6.18
%define postver .65
diff --git a/kernel-aufs.patch b/kernel-aufs.patch
index 2dcda8b4..74556c7a 100644
--- a/kernel-aufs.patch
+++ b/kernel-aufs.patch
@@ -1,6 +1,6 @@
diff -urN /usr/share/empty/Documentation/ABI/testing/debugfs-aufs linux/Documentation/ABI/testing/debugfs-aufs
--- /usr/share/empty/Documentation/ABI/testing/debugfs-aufs 1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/ABI/testing/debugfs-aufs 2022-11-05 23:02:18.955889283 +0100
++++ linux/Documentation/ABI/testing/debugfs-aufs 2026-11-24 08:12:40.874893664 +0100
@@ -0,0 +1,55 @@
+What: /debug/aufs/si_<id>/
+Date: March 2009
@@ -59,7 +59,7 @@ diff -urN /usr/share/empty/Documentation/ABI/testing/debugfs-aufs linux/Document
+ will be empty. About XINO files, see the aufs manual.
diff -urN /usr/share/empty/Documentation/ABI/testing/sysfs-aufs linux/Documentation/ABI/testing/sysfs-aufs
--- /usr/share/empty/Documentation/ABI/testing/sysfs-aufs 1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/ABI/testing/sysfs-aufs 2022-11-05 23:02:18.955889283 +0100
++++ linux/Documentation/ABI/testing/sysfs-aufs 2026-11-24 08:12:40.875009022 +0100
@@ -0,0 +1,31 @@
+What: /sys/fs/aufs/si_<id>/
+Date: March 2009
@@ -94,7 +94,7 @@ diff -urN /usr/share/empty/Documentation/ABI/testing/sysfs-aufs linux/Documentat
+ will be empty. About XINO files, see the aufs manual.
diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/01intro.txt linux/Documentation/filesystems/aufs/design/01intro.txt
--- /usr/share/empty/Documentation/filesystems/aufs/design/01intro.txt 1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/01intro.txt 2026-10-31 10:10:27.686655861 +0100
++++ linux/Documentation/filesystems/aufs/design/01intro.txt 2026-11-24 08:12:40.875254087 +0100
@@ -0,0 +1,171 @@
+
+# Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -269,7 +269,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/01intro.txt lin
+about it. But currently I have implemented it in kernel space.
diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/02struct.txt linux/Documentation/filesystems/aufs/design/02struct.txt
--- /usr/share/empty/Documentation/filesystems/aufs/design/02struct.txt 1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/02struct.txt 2026-10-31 10:10:27.686655861 +0100
++++ linux/Documentation/filesystems/aufs/design/02struct.txt 2026-11-24 08:12:40.875405973 +0100
@@ -0,0 +1,258 @@
+
+# Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -531,7 +531,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/02struct.txt li
+For this purpose, use "aumvdown" command in aufs-util.git.
diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/03atomic_open.txt linux/Documentation/filesystems/aufs/design/03atomic_open.txt
--- /usr/share/empty/Documentation/filesystems/aufs/design/03atomic_open.txt 1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/03atomic_open.txt 2026-10-31 10:10:27.686655861 +0100
++++ linux/Documentation/filesystems/aufs/design/03atomic_open.txt 2026-11-24 08:12:40.875405973 +0100
@@ -0,0 +1,85 @@
+
+# Copyright (C) 2015-2025 Junjiro R. Okajima
@@ -620,7 +620,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/03atomic_open.t
+ be implemented in aufs, but not all I am afraid.
diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/03lookup.txt linux/Documentation/filesystems/aufs/design/03lookup.txt
--- /usr/share/empty/Documentation/filesystems/aufs/design/03lookup.txt 1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/03lookup.txt 2026-10-31 10:10:27.686666666 +0100
++++ linux/Documentation/filesystems/aufs/design/03lookup.txt 2026-11-24 08:12:40.875405973 +0100
@@ -0,0 +1,113 @@
+
+# Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -737,7 +737,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/03lookup.txt li
+ by over-mounting something (or another method).
diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/04branch.txt linux/Documentation/filesystems/aufs/design/04branch.txt
--- /usr/share/empty/Documentation/filesystems/aufs/design/04branch.txt 1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/04branch.txt 2026-10-31 10:10:27.686666666 +0100
++++ linux/Documentation/filesystems/aufs/design/04branch.txt 2026-11-24 08:12:40.875405973 +0100
@@ -0,0 +1,74 @@
+
+# Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -815,7 +815,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/04branch.txt li
+ same named entry on the upper branch.
diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/05wbr_policy.txt linux/Documentation/filesystems/aufs/design/05wbr_policy.txt
--- /usr/share/empty/Documentation/filesystems/aufs/design/05wbr_policy.txt 1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/05wbr_policy.txt 2026-10-31 10:10:27.686666666 +0100
++++ linux/Documentation/filesystems/aufs/design/05wbr_policy.txt 2026-11-24 08:12:40.875405973 +0100
@@ -0,0 +1,64 @@
+
+# Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -883,7 +883,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/05wbr_policy.tx
+ copyup policy.
diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/06dirren.dot linux/Documentation/filesystems/aufs/design/06dirren.dot
--- /usr/share/empty/Documentation/filesystems/aufs/design/06dirren.dot 1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/06dirren.dot 2026-10-31 10:10:27.686666666 +0100
++++ linux/Documentation/filesystems/aufs/design/06dirren.dot 2026-11-24 08:12:40.875405973 +0100
@@ -0,0 +1,44 @@
+
+// to view this graph, run dot(1) command in GRAPHVIZ.
@@ -931,7 +931,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/06dirren.dot li
+}
diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/06dirren.txt linux/Documentation/filesystems/aufs/design/06dirren.txt
--- /usr/share/empty/Documentation/filesystems/aufs/design/06dirren.txt 1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/06dirren.txt 2026-10-31 10:10:27.686666666 +0100
++++ linux/Documentation/filesystems/aufs/design/06dirren.txt 2026-11-24 08:12:40.875405973 +0100
@@ -0,0 +1,102 @@
+
+# Copyright (C) 2017-2025 Junjiro R. Okajima
@@ -1037,7 +1037,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/06dirren.txt li
+equivalen to udba=reval case.
diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/06fhsm.txt linux/Documentation/filesystems/aufs/design/06fhsm.txt
--- /usr/share/empty/Documentation/filesystems/aufs/design/06fhsm.txt 1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/06fhsm.txt 2026-10-31 10:10:27.686666666 +0100
++++ linux/Documentation/filesystems/aufs/design/06fhsm.txt 2026-11-24 08:12:40.875405973 +0100
@@ -0,0 +1,118 @@
+
+# Copyright (C) 2011-2025 Junjiro R. Okajima
@@ -1159,7 +1159,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/06fhsm.txt linu
+should restore the original file state after an error happens.
diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/06mmap.txt linux/Documentation/filesystems/aufs/design/06mmap.txt
--- /usr/share/empty/Documentation/filesystems/aufs/design/06mmap.txt 1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/06mmap.txt 2026-10-31 10:10:27.686666666 +0100
++++ linux/Documentation/filesystems/aufs/design/06mmap.txt 2026-11-24 08:12:40.875405973 +0100
@@ -0,0 +1,40 @@
+
+# Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -1203,7 +1203,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/06mmap.txt linu
+will be much smaller than the approach aufs used to take.
diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/06xattr.txt linux/Documentation/filesystems/aufs/design/06xattr.txt
--- /usr/share/empty/Documentation/filesystems/aufs/design/06xattr.txt 1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/06xattr.txt 2026-10-31 10:10:27.686666666 +0100
++++ linux/Documentation/filesystems/aufs/design/06xattr.txt 2026-11-24 08:12:40.875405973 +0100
@@ -0,0 +1,94 @@
+
+# Copyright (C) 2014-2025 Junjiro R. Okajima
@@ -1301,7 +1301,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/06xattr.txt lin
+now, aufs implements the branch attributes to ignore the error.
diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/07export.txt linux/Documentation/filesystems/aufs/design/07export.txt
--- /usr/share/empty/Documentation/filesystems/aufs/design/07export.txt 1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/07export.txt 2026-10-31 10:10:27.686666666 +0100
++++ linux/Documentation/filesystems/aufs/design/07export.txt 2026-11-24 08:12:40.875405973 +0100
@@ -0,0 +1,58 @@
+
+# Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -1363,7 +1363,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/07export.txt li
+ lookup_one_len(), vfs_getattr(), encode_fh() and others.
diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/08shwh.txt linux/Documentation/filesystems/aufs/design/08shwh.txt
--- /usr/share/empty/Documentation/filesystems/aufs/design/08shwh.txt 1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/08shwh.txt 2026-10-31 10:10:27.686666666 +0100
++++ linux/Documentation/filesystems/aufs/design/08shwh.txt 2026-11-24 08:12:40.875405973 +0100
@@ -0,0 +1,52 @@
+
+# Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -1419,7 +1419,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/08shwh.txt linu
+initramfs will use it to replace the old one at the next boot.
diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/10dynop.txt linux/Documentation/filesystems/aufs/design/10dynop.txt
--- /usr/share/empty/Documentation/filesystems/aufs/design/10dynop.txt 1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/10dynop.txt 2026-10-31 10:10:27.686666666 +0100
++++ linux/Documentation/filesystems/aufs/design/10dynop.txt 2026-11-24 08:12:40.875405973 +0100
@@ -0,0 +1,47 @@
+
+# Copyright (C) 2010-2025 Junjiro R. Okajima
@@ -1470,7 +1470,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/10dynop.txt lin
+regular files only.
diff -urN /usr/share/empty/Documentation/filesystems/aufs/README linux/Documentation/filesystems/aufs/README
--- /usr/share/empty/Documentation/filesystems/aufs/README 1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/README 2026-10-31 10:10:27.686655861 +0100
++++ linux/Documentation/filesystems/aufs/README 2026-11-24 08:12:40.875081061 +0100
@@ -0,0 +1,409 @@
+
+Aufs6 -- advanced multi layered unification filesystem version 6.x
@@ -1883,7 +1883,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/README linux/Documenta
+# End: ;
diff -urN /usr/share/empty/fs/aufs/aufs.h linux/fs/aufs/aufs.h
--- /usr/share/empty/fs/aufs/aufs.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/aufs.h 2026-10-31 10:10:27.692069390 +0100
++++ linux/fs/aufs/aufs.h 2026-11-24 08:12:40.877575963 +0100
@@ -0,0 +1,62 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
@@ -1949,7 +1949,7 @@ diff -urN /usr/share/empty/fs/aufs/aufs.h linux/fs/aufs/aufs.h
+#endif /* __AUFS_H__ */
diff -urN /usr/share/empty/fs/aufs/branch.c linux/fs/aufs/branch.c
--- /usr/share/empty/fs/aufs/branch.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/branch.c 2026-10-31 10:10:27.692069390 +0100
++++ linux/fs/aufs/branch.c 2026-11-24 08:12:40.877575963 +0100
@@ -0,0 +1,1427 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -3380,7 +3380,7 @@ diff -urN /usr/share/empty/fs/aufs/branch.c linux/fs/aufs/branch.c
+}
diff -urN /usr/share/empty/fs/aufs/branch.h linux/fs/aufs/branch.h
--- /usr/share/empty/fs/aufs/branch.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/branch.h 2026-10-31 10:10:27.692069390 +0100
++++ linux/fs/aufs/branch.h 2026-11-24 08:12:40.877575963 +0100
@@ -0,0 +1,375 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
@@ -3759,7 +3759,7 @@ diff -urN /usr/share/empty/fs/aufs/branch.h linux/fs/aufs/branch.h
+#endif /* __AUFS_BRANCH_H__ */
diff -urN /usr/share/empty/fs/aufs/conf.mk linux/fs/aufs/conf.mk
--- /usr/share/empty/fs/aufs/conf.mk 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/conf.mk 2022-11-05 23:02:18.959222617 +0100
++++ linux/fs/aufs/conf.mk 2026-11-24 08:12:40.877575963 +0100
@@ -0,0 +1,40 @@
+# SPDX-License-Identifier: GPL-2.0
+
@@ -3803,8 +3803,8 @@ diff -urN /usr/share/empty/fs/aufs/conf.mk linux/fs/aufs/conf.mk
+-include ${srctree}/${src}/conf_priv.mk
diff -urN /usr/share/empty/fs/aufs/cpup.c linux/fs/aufs/cpup.c
--- /usr/share/empty/fs/aufs/cpup.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/cpup.c 2026-10-31 10:10:27.692069390 +0100
-@@ -0,0 +1,1454 @@
++++ linux/fs/aufs/cpup.c 2026-11-24 08:12:40.877575963 +0100
+@@ -0,0 +1,1452 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -5187,8 +5187,7 @@ diff -urN /usr/share/empty/fs/aufs/cpup.c linux/fs/aufs/cpup.c
+ di_read_unlock(parent, !AuLock_IR);
+ } while (!h_parent);
+
-+ if (d != real_parent)
-+ di_write_lock_child3(d);
++ di_write_lock_unless(d, real_parent, AuLsc_DI_CHILD3);
+
+ /* somebody else might create while we were sleeping */
+ h_dentry = au_h_dptr(d, bdst);
@@ -5204,8 +5203,7 @@ diff -urN /usr/share/empty/fs/aufs/cpup.c linux/fs/aufs/cpup.c
+ }
+ }
+
-+ if (d != real_parent)
-+ di_write_unlock(d);
++ di_write_unlock_unless(d, real_parent);
+ if (unlikely(err))
+ break;
+ }
@@ -5261,7 +5259,7 @@ diff -urN /usr/share/empty/fs/aufs/cpup.c linux/fs/aufs/cpup.c
+}
diff -urN /usr/share/empty/fs/aufs/cpup.h linux/fs/aufs/cpup.h
--- /usr/share/empty/fs/aufs/cpup.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/cpup.h 2026-10-31 10:10:27.692069390 +0100
++++ linux/fs/aufs/cpup.h 2026-11-24 08:12:40.877575963 +0100
@@ -0,0 +1,101 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
@@ -5366,8 +5364,8 @@ diff -urN /usr/share/empty/fs/aufs/cpup.h linux/fs/aufs/cpup.h
+#endif /* __AUFS_CPUP_H__ */
diff -urN /usr/share/empty/fs/aufs/dbgaufs.c linux/fs/aufs/dbgaufs.c
--- /usr/share/empty/fs/aufs/dbgaufs.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/dbgaufs.c 2026-10-31 10:10:27.692069390 +0100
-@@ -0,0 +1,525 @@
++++ linux/fs/aufs/dbgaufs.c 2026-11-24 08:12:40.877575963 +0100
+@@ -0,0 +1,526 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -5537,14 +5535,15 @@ diff -urN /usr/share/empty/fs/aufs/dbgaufs.c linux/fs/aufs/dbgaufs.c
+ strscpy(p->a, str, sizeof(str));
+#undef str
+ }
-+ si_read_unlock(sb);
+
+ err = 0;
+ file->private_data = p;
-+ goto out; /* success */
++ goto out_unlock; /* success */
+
+out_free:
+ free_page((unsigned long)p);
++out_unlock:
++ si_read_unlock(sb);
+out:
+ return err;
+}
@@ -5895,7 +5894,7 @@ diff -urN /usr/share/empty/fs/aufs/dbgaufs.c linux/fs/aufs/dbgaufs.c
+}
diff -urN /usr/share/empty/fs/aufs/dbgaufs.h linux/fs/aufs/dbgaufs.h
--- /usr/share/empty/fs/aufs/dbgaufs.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/dbgaufs.h 2026-10-31 10:10:27.692069390 +0100
++++ linux/fs/aufs/dbgaufs.h 2026-11-24 08:12:40.877575963 +0100
@@ -0,0 +1,53 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
@@ -5952,7 +5951,7 @@ diff -urN /usr/share/empty/fs/aufs/dbgaufs.h linux/fs/aufs/dbgaufs.h
+#endif /* __DBGAUFS_H__ */
diff -urN /usr/share/empty/fs/aufs/dcsub.c linux/fs/aufs/dcsub.c
--- /usr/share/empty/fs/aufs/dcsub.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/dcsub.c 2026-10-31 10:10:27.692069390 +0100
++++ linux/fs/aufs/dcsub.c 2026-11-24 08:12:40.877575963 +0100
@@ -0,0 +1,225 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -6181,7 +6180,7 @@ diff -urN /usr/share/empty/fs/aufs/dcsub.c linux/fs/aufs/dcsub.c
+}
diff -urN /usr/share/empty/fs/aufs/dcsub.h linux/fs/aufs/dcsub.h
--- /usr/share/empty/fs/aufs/dcsub.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/dcsub.h 2026-10-31 10:10:27.692069390 +0100
++++ linux/fs/aufs/dcsub.h 2026-11-24 08:12:40.877575963 +0100
@@ -0,0 +1,139 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
@@ -6324,7 +6323,7 @@ diff -urN /usr/share/empty/fs/aufs/dcsub.h linux/fs/aufs/dcsub.h
+#endif /* __AUFS_DCSUB_H__ */
diff -urN /usr/share/empty/fs/aufs/debug.c linux/fs/aufs/debug.c
--- /usr/share/empty/fs/aufs/debug.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/debug.c 2026-10-31 10:10:27.692069390 +0100
++++ linux/fs/aufs/debug.c 2026-11-24 08:12:40.877575963 +0100
@@ -0,0 +1,448 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -6776,7 +6775,7 @@ diff -urN /usr/share/empty/fs/aufs/debug.c linux/fs/aufs/debug.c
+}
diff -urN /usr/share/empty/fs/aufs/debug.h linux/fs/aufs/debug.h
--- /usr/share/empty/fs/aufs/debug.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/debug.h 2026-10-31 10:10:27.692069390 +0100
++++ linux/fs/aufs/debug.h 2026-11-24 08:12:40.877575963 +0100
@@ -0,0 +1,226 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
@@ -7006,8 +7005,8 @@ diff -urN /usr/share/empty/fs/aufs/debug.h linux/fs/aufs/debug.h
+#endif /* __AUFS_DEBUG_H__ */
diff -urN /usr/share/empty/fs/aufs/dentry.c linux/fs/aufs/dentry.c
--- /usr/share/empty/fs/aufs/dentry.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/dentry.c 2026-10-31 10:10:27.692069390 +0100
-@@ -0,0 +1,1230 @@
++++ linux/fs/aufs/dentry.c 2026-11-24 08:12:40.877575963 +0100
+@@ -0,0 +1,1228 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -8068,8 +8067,7 @@ diff -urN /usr/share/empty/fs/aufs/dentry.c linux/fs/aufs/dentry.c
+ d = parent;
+ }
+
-+ if (d != dentry)
-+ di_write_lock_child2(d);
++ di_write_lock_unless(d, dentry, AuLsc_DI_CHILD2);
+
+ /* someone might update our dentry while we were sleeping */
+ if (au_digen_test(d, sigen)) {
@@ -8082,8 +8080,7 @@ diff -urN /usr/share/empty/fs/aufs/dentry.c linux/fs/aufs/dentry.c
+ di_read_unlock(parent, AuLock_IR);
+ }
+
-+ if (d != dentry)
-+ di_write_unlock(d);
++ di_write_unlock_unless(d, dentry);
+ dput(parent);
+ if (unlikely(err))
+ break;
@@ -8240,8 +8237,8 @@ diff -urN /usr/share/empty/fs/aufs/dentry.c linux/fs/aufs/dentry.c
+};
diff -urN /usr/share/empty/fs/aufs/dentry.h linux/fs/aufs/dentry.h
--- /usr/share/empty/fs/aufs/dentry.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/dentry.h 2026-10-31 10:10:27.692069390 +0100
-@@ -0,0 +1,271 @@
++++ linux/fs/aufs/dentry.h 2026-11-24 08:12:40.877575963 +0100
+@@ -0,0 +1,289 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -8416,6 +8413,24 @@ diff -urN /usr/share/empty/fs/aufs/dentry.h linux/fs/aufs/dentry.h
+#undef AuWriteLockFunc
+#undef AuRWLockFuncs
+
++/*
++ * write-lock/unlock the dinfo of @d unless it is @held, whose dinfo the
++ * caller already holds. Used while walking up the ancestors.
++ */
++static inline void di_write_lock_unless(struct dentry *d, struct dentry *held,
++ unsigned int lsc)
++{
++ if (d != held)
++ di_write_lock(d, lsc);
++}
++
++static inline void di_write_unlock_unless(struct dentry *d,
++ struct dentry *held)
++{
++ if (d != held)
++ di_write_unlock(d);
++}
++
+#define DiMustNoWaiters(d) AuRwMustNoWaiters(&au_di(d)->di_rwsem)
+#define DiMustAnyLock(d) AuRwMustAnyLock(&au_di(d)->di_rwsem)
+#define DiMustWriteLock(d) AuRwMustWriteLock(&au_di(d)->di_rwsem)
@@ -8515,7 +8530,7 @@ diff -urN /usr/share/empty/fs/aufs/dentry.h linux/fs/aufs/dentry.h
+#endif /* __AUFS_DENTRY_H__ */
diff -urN /usr/share/empty/fs/aufs/dinfo.c linux/fs/aufs/dinfo.c
--- /usr/share/empty/fs/aufs/dinfo.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/dinfo.c 2026-10-31 10:10:27.692069390 +0100
++++ linux/fs/aufs/dinfo.c 2026-11-24 08:12:40.877575963 +0100
@@ -0,0 +1,555 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -9074,8 +9089,8 @@ diff -urN /usr/share/empty/fs/aufs/dinfo.c linux/fs/aufs/dinfo.c
+}
diff -urN /usr/share/empty/fs/aufs/dir.c linux/fs/aufs/dir.c
--- /usr/share/empty/fs/aufs/dir.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/dir.c 2026-10-31 10:10:27.692069390 +0100
-@@ -0,0 +1,765 @@
++++ linux/fs/aufs/dir.c 2026-11-24 08:12:40.877575963 +0100
+@@ -0,0 +1,732 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -9460,34 +9475,6 @@ diff -urN /usr/share/empty/fs/aufs/dir.c linux/fs/aufs/dir.c
+
+/* ---------------------------------------------------------------------- */
+
-+static int au_do_fsync_dir_no_file(struct dentry *dentry, int datasync)
-+{
-+ int err;
-+ aufs_bindex_t bbot, bindex;
-+ struct inode *inode;
-+ struct super_block *sb;
-+
-+ err = 0;
-+ sb = dentry->d_sb;
-+ inode = d_inode(dentry);
-+ IMustLock(inode);
-+ bbot = au_dbbot(dentry);
-+ for (bindex = au_dbtop(dentry); !err && bindex <= bbot; bindex++) {
-+ struct path h_path;
-+
-+ if (au_test_ro(sb, bindex, inode))
-+ continue;
-+ h_path.dentry = au_h_dptr(dentry, bindex);
-+ if (!h_path.dentry)
-+ continue;
-+
-+ h_path.mnt = au_sbr_mnt(sb, bindex);
-+ err = vfsub_fsync(NULL, &h_path, datasync);
-+ }
-+
-+ return err;
-+}
-+
+static int au_do_fsync_dir(struct file *file, int datasync)
+{
+ int err;
@@ -9496,10 +9483,7 @@ diff -urN /usr/share/empty/fs/aufs/dir.c linux/fs/aufs/dir.c
+ struct super_block *sb;
+ struct inode *inode;
+
-+ err = au_reval_and_lock_fdi(file, reopen_dir, /*wlock*/1, /*fi_lsc*/0);
-+ if (unlikely(err))
-+ goto out;
-+
++ err = 0;
+ inode = file_inode(file);
+ sb = inode->i_sb;
+ bbot = au_fbbot_dir(file);
@@ -9511,7 +9495,6 @@ diff -urN /usr/share/empty/fs/aufs/dir.c linux/fs/aufs/dir.c
+ err = vfsub_fsync(h_file, &h_file->f_path, datasync);
+ }
+
-+out:
+ return err;
+}
+
@@ -9532,17 +9515,16 @@ diff -urN /usr/share/empty/fs/aufs/dir.c linux/fs/aufs/dir.c
+ inode_lock(inode);
+ sb = dentry->d_sb;
+ si_noflush_read_lock(sb);
-+ if (file)
-+ err = au_do_fsync_dir(file, datasync);
-+ else {
-+ di_write_lock_child(dentry);
-+ err = au_do_fsync_dir_no_file(dentry, datasync);
-+ }
++ /* unlocks finfo and dinfo by itself on error */
++ err = au_reval_and_lock_fdi(file, reopen_dir, /*wlock*/1, /*fi_lsc*/0);
++ if (unlikely(err))
++ goto out;
++ err = au_do_fsync_dir(file, datasync);
+ au_cpup_attr_timesizes(inode);
+ di_write_unlock(dentry);
-+ if (file)
-+ fi_write_unlock(file);
++ fi_write_unlock(file);
+
++out:
+ si_read_unlock(sb);
+ inode_unlock(inode);
+ return err;
@@ -9843,7 +9825,7 @@ diff -urN /usr/share/empty/fs/aufs/dir.c linux/fs/aufs/dir.c
+};
diff -urN /usr/share/empty/fs/aufs/dir.h linux/fs/aufs/dir.h
--- /usr/share/empty/fs/aufs/dir.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/dir.h 2026-10-31 10:10:27.692069390 +0100
++++ linux/fs/aufs/dir.h 2026-11-24 08:12:40.877575963 +0100
@@ -0,0 +1,134 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
@@ -9981,7 +9963,7 @@ diff -urN /usr/share/empty/fs/aufs/dir.h linux/fs/aufs/dir.h
+#endif /* __AUFS_DIR_H__ */
diff -urN /usr/share/empty/fs/aufs/dirren.c linux/fs/aufs/dirren.c
--- /usr/share/empty/fs/aufs/dirren.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/dirren.c 2026-10-31 10:10:27.693333332 +0100
++++ linux/fs/aufs/dirren.c 2026-11-24 08:12:40.877575963 +0100
@@ -0,0 +1,1308 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -11293,7 +11275,7 @@ diff -urN /usr/share/empty/fs/aufs/dirren.c linux/fs/aufs/dirren.c
+}
diff -urN /usr/share/empty/fs/aufs/dirren.h linux/fs/aufs/dirren.h
--- /usr/share/empty/fs/aufs/dirren.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/dirren.h 2026-10-31 10:10:27.693333332 +0100
++++ linux/fs/aufs/dirren.h 2026-11-24 08:12:40.877575963 +0100
@@ -0,0 +1,140 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
@@ -11437,7 +11419,7 @@ diff -urN /usr/share/empty/fs/aufs/dirren.h linux/fs/aufs/dirren.h
+#endif /* __AUFS_DIRREN_H__ */
diff -urN /usr/share/empty/fs/aufs/dynop.c linux/fs/aufs/dynop.c
--- /usr/share/empty/fs/aufs/dynop.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/dynop.c 2026-10-31 10:10:27.693333332 +0100
++++ linux/fs/aufs/dynop.c 2026-11-24 08:12:40.877575963 +0100
@@ -0,0 +1,364 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -11805,7 +11787,7 @@ diff -urN /usr/share/empty/fs/aufs/dynop.c linux/fs/aufs/dynop.c
+}
diff -urN /usr/share/empty/fs/aufs/dynop.h linux/fs/aufs/dynop.h
--- /usr/share/empty/fs/aufs/dynop.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/dynop.h 2026-10-31 10:10:27.693333332 +0100
++++ linux/fs/aufs/dynop.h 2026-11-24 08:12:40.877575963 +0100
@@ -0,0 +1,77 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
@@ -11886,8 +11868,8 @@ diff -urN /usr/share/empty/fs/aufs/dynop.h linux/fs/aufs/dynop.h
+#endif /* __AUFS_DYNOP_H__ */
diff -urN /usr/share/empty/fs/aufs/export.c linux/fs/aufs/export.c
--- /usr/share/empty/fs/aufs/export.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/export.c 2026-10-31 10:10:27.693333332 +0100
-@@ -0,0 +1,839 @@
++++ linux/fs/aufs/export.c 2026-11-24 08:12:40.877575963 +0100
+@@ -0,0 +1,863 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -12201,17 +12183,15 @@ diff -urN /usr/share/empty/fs/aufs/export.c linux/fs/aufs/export.c
+struct au_nfsd_si_lock {
+ unsigned int sigen;
+ aufs_bindex_t bindex, br_id;
-+ unsigned char force_lock;
+};
+
-+static int si_nfsd_read_lock(struct super_block *sb,
-+ struct au_nfsd_si_lock *nsi_lock)
++/* called with si_rwsem read-locked */
++static int si_nfsd_test_br(struct super_block *sb,
++ struct au_nfsd_si_lock *nsi_lock)
+{
+ int err;
+ aufs_bindex_t bindex;
+
-+ si_read_lock(sb, AuLock_FLUSH);
-+
+ /* branch id may be wrapped around */
+ err = 0;
+ bindex = au_br_index(sb, nsi_lock->br_id);
@@ -12220,14 +12200,37 @@ diff -urN /usr/share/empty/fs/aufs/export.c linux/fs/aufs/export.c
+
+ err = -ESTALE;
+ bindex = -1;
-+ if (!nsi_lock->force_lock)
-+ si_read_unlock(sb);
+
+out:
+ nsi_lock->bindex = bindex;
+ return err;
+}
+
++/* returns 0 with si_rwsem read-locked, or -ESTALE with nothing locked */
++static int si_nfsd_read_lock(struct super_block *sb,
++ struct au_nfsd_si_lock *nsi_lock)
++{
++ int err;
++
++ si_read_lock(sb, AuLock_FLUSH);
++ err = si_nfsd_test_br(sb, nsi_lock);
++ if (unlikely(err))
++ si_read_unlock(sb);
++
++ return err;
++}
++
++/*
++ * re-acquire si_rwsem after it was released temporarily. Returns with it
++ * read-locked even if the branch has gone (-ESTALE).
++ */
++static int si_nfsd_relock(struct super_block *sb,
++ struct au_nfsd_si_lock *nsi_lock)
++{
++ si_read_lock(sb, AuLock_FLUSH);
++ return si_nfsd_test_br(sb, nsi_lock);
++}
++
+struct find_name_by_ino {
+ struct dir_context ctx;
+ int called, found;
@@ -12253,8 +12256,8 @@ diff -urN /usr/share/empty/fs/aufs/export.c linux/fs/aufs/export.c
+ return false;
+}
+
-+static struct dentry *au_lkup_by_ino(struct path *path, ino_t ino,
-+ struct au_nfsd_si_lock *nsi_lock)
++/* look up the entry whose inode number is @ino in the dir @path */
++static struct dentry *au_do_lkup_by_ino(struct path *path, ino_t ino)
+{
+ struct dentry *dentry, *parent;
+ struct file *file;
@@ -12267,8 +12270,6 @@ diff -urN /usr/share/empty/fs/aufs/export.c linux/fs/aufs/export.c
+ int err;
+
+ parent = path->dentry;
-+ if (nsi_lock)
-+ si_read_unlock(parent->d_sb);
+ file = vfsub_dentry_open(path, au_dir_roflags);
+ dentry = (void *)file;
+ if (IS_ERR(file))
@@ -12310,12 +12311,23 @@ diff -urN /usr/share/empty/fs/aufs/export.c linux/fs/aufs/export.c
+out_file:
+ fput(file);
+out:
-+ if (unlikely(nsi_lock
-+ && si_nfsd_read_lock(parent->d_sb, nsi_lock) < 0))
-+ if (!IS_ERR(dentry)) {
-+ dput(dentry);
-+ dentry = ERR_PTR(-ESTALE);
-+ }
++ AuTraceErrPtr(dentry);
++ return dentry;
++}
++
++/* called with si_rwsem read-locked, which is released during the lookup */
++static struct dentry *au_lkup_by_ino(struct path *path, ino_t ino,
++ struct au_nfsd_si_lock *nsi_lock)
++{
++ struct dentry *dentry;
++ struct super_block *sb = path->dentry->d_sb;
++
++ si_read_unlock(sb);
++ dentry = au_do_lkup_by_ino(path, ino);
++ if (unlikely(si_nfsd_relock(sb, nsi_lock) < 0) && !IS_ERR(dentry)) {
++ dput(dentry);
++ dentry = ERR_PTR(-ESTALE);
++ }
+ AuTraceErrPtr(dentry);
+ return dentry;
+}
@@ -12456,18 +12468,17 @@ diff -urN /usr/share/empty/fs/aufs/export.c linux/fs/aufs/export.c
+ goto out_path;
+
+ if (ino != d_inode(path.dentry)->i_ino)
-+ dentry = au_lkup_by_ino(&path, ino, /*nsi_lock*/NULL);
++ dentry = au_do_lkup_by_ino(&path, ino);
+ else
+ dentry = dget(path.dentry);
+
+out_path:
+ path_put(&path);
+out_relock:
-+ if (unlikely(si_nfsd_read_lock(sb, nsi_lock) < 0))
-+ if (!IS_ERR(dentry)) {
-+ dput(dentry);
-+ dentry = ERR_PTR(-ESTALE);
-+ }
++ if (unlikely(si_nfsd_relock(sb, nsi_lock) < 0) && !IS_ERR(dentry)) {
++ dput(dentry);
++ dentry = ERR_PTR(-ESTALE);
++ }
+out_pathname:
+ free_page((unsigned long)pathname);
+out_h_parent:
@@ -12487,9 +12498,7 @@ diff -urN /usr/share/empty/fs/aufs/export.c linux/fs/aufs/export.c
+ __u32 *fh = fid->raw;
+ struct au_branch *br;
+ ino_t ino, dir_ino;
-+ struct au_nfsd_si_lock nsi_lock = {
-+ .force_lock = 0
-+ };
++ struct au_nfsd_si_lock nsi_lock = {};
+
+ dentry = ERR_PTR(-ESTALE);
+ /* it should never happen, but the file handle is unreliable */
@@ -12502,7 +12511,6 @@ diff -urN /usr/share/empty/fs/aufs/export.c linux/fs/aufs/export.c
+ br = NULL;
+ if (unlikely(si_nfsd_read_lock(sb, &nsi_lock)))
+ goto out;
-+ nsi_lock.force_lock = 1;
+
+ /* is this inode still cached? */
+ ino = decode_ino(fh + Fh_ino);
@@ -12599,9 +12607,7 @@ diff -urN /usr/share/empty/fs/aufs/export.c linux/fs/aufs/export.c
+
+ h_parent = NULL;
+ sb = inode->i_sb;
-+ err = si_read_lock(sb, AuLock_FLUSH);
-+ if (unlikely(err))
-+ goto out;
++ si_read_lock(sb, AuLock_FLUSH);
+
+#ifdef CONFIG_AUFS_DEBUG
+ if (unlikely(!au_opt_test(au_mntflags(sb), XINO)))
@@ -12729,8 +12735,8 @@ diff -urN /usr/share/empty/fs/aufs/export.c linux/fs/aufs/export.c
+}
diff -urN /usr/share/empty/fs/aufs/fhsm.c linux/fs/aufs/fhsm.c
--- /usr/share/empty/fs/aufs/fhsm.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/fhsm.c 2026-10-31 10:10:27.693333332 +0100
-@@ -0,0 +1,426 @@
++++ linux/fs/aufs/fhsm.c 2026-11-24 08:12:40.877575963 +0100
+@@ -0,0 +1,421 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2011-2025 Junjiro R. Okajima
@@ -12818,8 +12824,9 @@ diff -urN /usr/share/empty/fs/aufs/fhsm.c linux/fs/aufs/fhsm.c
+ }
+}
+
++/* called with br->br_fhsm->bf_lock held */
+static int au_fhsm_stfs(struct super_block *sb, aufs_bindex_t bindex,
-+ struct aufs_stfs *rstfs, int do_lock, int do_notify)
++ struct aufs_stfs *rstfs, int do_notify)
+{
+ int err;
+ struct au_branch *br;
@@ -12830,10 +12837,7 @@ diff -urN /usr/share/empty/fs/aufs/fhsm.c linux/fs/aufs/fhsm.c
+ bf = br->br_fhsm;
+ AuDebugOn(!bf);
+
-+ if (do_lock)
-+ mutex_lock(&bf->bf_lock);
-+ else
-+ MtxMustLock(&bf->bf_lock);
++ MtxMustLock(&bf->bf_lock);
+
+ /* sb->s_root for NFS is unreliable */
+ err = au_br_stfs(br, &bf->bf_stfs);
@@ -12850,8 +12854,6 @@ diff -urN /usr/share/empty/fs/aufs/fhsm.c linux/fs/aufs/fhsm.c
+ *rstfs = bf->bf_stfs;
+
+out:
-+ if (do_lock)
-+ mutex_unlock(&bf->bf_lock);
+ au_fhsm_notify(sb, /*val*/1);
+
+ return err;
@@ -12881,8 +12883,7 @@ diff -urN /usr/share/empty/fs/aufs/fhsm.c linux/fs/aufs/fhsm.c
+ if (force
+ || au_fhsm_pid(fhsm)
+ || au_fhsm_test_jiffy(sbinfo, br))
-+ err = au_fhsm_stfs(sb, bindex, /*rstfs*/NULL, /*do_lock*/0,
-+ /*do_notify*/1);
++ err = au_fhsm_stfs(sb, bindex, /*rstfs*/NULL, /*do_notify*/1);
+ mutex_unlock(&bf->bf_lock);
+}
+
@@ -13159,8 +13160,8 @@ diff -urN /usr/share/empty/fs/aufs/fhsm.c linux/fs/aufs/fhsm.c
+}
diff -urN /usr/share/empty/fs/aufs/file.c linux/fs/aufs/file.c
--- /usr/share/empty/fs/aufs/file.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/file.c 2026-10-31 10:10:27.693333332 +0100
-@@ -0,0 +1,848 @@
++++ linux/fs/aufs/file.c 2026-11-24 08:12:40.877575963 +0100
+@@ -0,0 +1,862 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -13383,13 +13384,11 @@ diff -urN /usr/share/empty/fs/aufs/file.c linux/fs/aufs/file.c
+ struct dentry *dentry;
+ struct au_finfo *finfo;
+
-+ if (!aopen)
-+ err = au_finfo_init(file, args->fidir);
-+ else {
++ if (aopen)
+ lockdep_off();
-+ err = au_finfo_init(file, args->fidir);
++ err = au_finfo_init(file, args->fidir);
++ if (aopen)
+ lockdep_on();
-+ }
+ if (unlikely(err))
+ goto out;
+
@@ -13410,7 +13409,8 @@ diff -urN /usr/share/empty/fs/aufs/file.c linux/fs/aufs/file.c
+ lockdep_on();
+ di_read_unlock(dentry, AuLock_IR);
+ }
-+ }
++ } else
++ di_write_unlock(dentry);
+
+ finfo = au_fi(file);
+ if (!err) {
@@ -13418,13 +13418,11 @@ diff -urN /usr/share/empty/fs/aufs/file.c linux/fs/aufs/file.c
+ au_hbl_add(&finfo->fi_hlist,
+ &au_sbi(file->f_path.dentry->d_sb)->si_files);
+ }
-+ if (!aopen)
-+ fi_write_unlock(file);
-+ else {
++ if (aopen)
+ lockdep_off();
-+ fi_write_unlock(file);
++ fi_write_unlock(file);
++ if (aopen)
+ lockdep_on();
-+ }
+ if (unlikely(err)) {
+ finfo->fi_hdir = NULL;
+ au_finfo_fin(file);
@@ -13620,10 +13618,10 @@ diff -urN /usr/share/empty/fs/aufs/file.c linux/fs/aufs/file.c
+ || !d_unhashed(cpg.dentry) /* copyup and reopen */
+ ) {
+ h_file = au_h_open_pre(cpg.dentry, cpg.bsrc, /*force_wr*/0);
++ di_downgrade_lock(parent, AuLock_IR);
+ if (IS_ERR(h_file))
+ err = PTR_ERR(h_file);
+ else {
-+ di_downgrade_lock(parent, AuLock_IR);
+ if (dbtop > cpg.bdst)
+ err = au_sio_cpup_simple(&cpg);
+ if (!err)
@@ -13877,9 +13875,14 @@ diff -urN /usr/share/empty/fs/aufs/file.c linux/fs/aufs/file.c
+ return err;
+}
+
-+/* common function to regular file and dir */
-+int au_reval_and_lock_fdi(struct file *file, int (*reopen)(struct file *file),
-+ int wlock, unsigned int fi_lsc)
++/*
++ * common function to regular file and dir.
++ * returns 0 with finfo and dinfo write-locked, or an error with nothing
++ * locked.
++ */
++static int au_do_reval_and_lock_fdi(struct file *file,
++ int (*reopen)(struct file *file),
++ unsigned int fi_lsc)
+{
+ int err;
+ unsigned int sigen, figen;
@@ -13900,13 +13903,8 @@ diff -urN /usr/share/empty/fs/aufs/file.c linux/fs/aufs/file.c
+ di_write_lock_child2(dentry);
+ btop = au_dbtop(dentry);
+ pseudo_link = (btop != au_ibtop(inode));
-+ if (sigen == figen && !pseudo_link && au_fbtop(file) == btop) {
-+ if (!wlock) {
-+ di_downgrade_lock(dentry, AuLock_IR);
-+ fi_downgrade_lock(file);
-+ }
++ if (sigen == figen && !pseudo_link && au_fbtop(file) == btop)
+ goto out; /* success */
-+ }
+
+ AuDbg("sigen %d, figen %d\n", sigen, figen);
+ if (au_digen_test(dentry, sigen)) {
@@ -13916,12 +13914,7 @@ diff -urN /usr/share/empty/fs/aufs/file.c linux/fs/aufs/file.c
+
+ if (!err)
+ err = refresh_file(file, reopen);
-+ if (!err) {
-+ if (!wlock) {
-+ di_downgrade_lock(dentry, AuLock_IR);
-+ fi_downgrade_lock(file);
-+ }
-+ } else {
++ if (unlikely(err)) {
+ di_write_unlock(dentry);
+ fi_write_unlock(file);
+ }
@@ -13930,6 +13923,28 @@ diff -urN /usr/share/empty/fs/aufs/file.c linux/fs/aufs/file.c
+ return err;
+}
+
++int au_reval_and_write_lock_fdi(struct file *file,
++ int (*reopen)(struct file *file),
++ unsigned int fi_lsc)
++{
++ return au_do_reval_and_lock_fdi(file, reopen, fi_lsc);
++}
++
++int au_reval_and_read_lock_fdi(struct file *file,
++ int (*reopen)(struct file *file),
++ unsigned int fi_lsc)
++{
++ int err;
++
++ err = au_do_reval_and_lock_fdi(file, reopen, fi_lsc);
++ if (!err) {
++ di_downgrade_lock(file->f_path.dentry, AuLock_IR);
++ fi_downgrade_lock(file);
++ }
++
++ return err;
++}
++
+/* ---------------------------------------------------------------------- */
+
+/* cf. aufs_nopage() */
@@ -14011,8 +14026,8 @@ diff -urN /usr/share/empty/fs/aufs/file.c linux/fs/aufs/file.c
+};
diff -urN /usr/share/empty/fs/aufs/file.h linux/fs/aufs/file.h
--- /usr/share/empty/fs/aufs/file.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/file.h 2026-10-31 10:10:27.693333332 +0100
-@@ -0,0 +1,338 @@
++++ linux/fs/aufs/file.h 2026-11-24 08:12:40.877575963 +0100
+@@ -0,0 +1,364 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -14103,8 +14118,34 @@ diff -urN /usr/share/empty/fs/aufs/file.h linux/fs/aufs/file.h
+int au_reopen_nondir(struct file *file);
+struct au_pin;
+int au_ready_to_write(struct file *file, loff_t len, struct au_pin *pin);
-+int au_reval_and_lock_fdi(struct file *file, int (*reopen)(struct file *file),
-+ int wlock, unsigned int fi_lsc);
++/* return 0 with finfo and dinfo locked, or an error with nothing locked */
++int au_reval_and_read_lock_fdi(struct file *file,
++ int (*reopen)(struct file *file),
++ unsigned int fi_lsc);
++int au_reval_and_write_lock_fdi(struct file *file,
++ int (*reopen)(struct file *file),
++ unsigned int fi_lsc);
++
++/*
++ * Entry point. @wlock must be a constant, which selects the function at
++ * compile time. Returns 0 with the finfo and dinfo locked, or an error
++ * with nothing held.
++ */
++#define au_reval_and_lock_fdi(__file, __reopen, __wlock, __lsc) ({ \
++ struct file *_file = (__file); \
++ int (*_reopen)(struct file *) = (__reopen); \
++ const int _wlock = (__wlock); \
++ unsigned int _lsc = (__lsc); \
++ int _err; \
++ \
++ BUILD_BUG_ON(!__builtin_constant_p(__wlock)); \
++ if (_wlock) \
++ _err = au_reval_and_write_lock_fdi(_file, _reopen, _lsc); \
++ else \
++ _err = au_reval_and_read_lock_fdi(_file, _reopen, _lsc); \
++ _err; \
++})
++
+int au_do_flush(struct file *file, fl_owner_t id,
+ int (*flush)(struct file *file, fl_owner_t id));
+
@@ -14130,7 +14171,7 @@ diff -urN /usr/share/empty/fs/aufs/file.h linux/fs/aufs/file.h
+extern const struct file_operations aufs_file_fop;
+int au_do_open_nondir(struct file *file, int flags, struct file *h_file);
+int aufs_release_nondir(struct inode *inode __maybe_unused, struct file *file);
-+struct file *au_read_pre(struct file *file, int keep_fi, unsigned int lsc);
++struct file *au_read_pre(struct file *file, unsigned int lsc);
+
+/* mf.c */
+void au_mf_add(struct file *h_file, struct file *file);
@@ -14353,7 +14394,7 @@ diff -urN /usr/share/empty/fs/aufs/file.h linux/fs/aufs/file.h
+#endif /* __AUFS_FILE_H__ */
diff -urN /usr/share/empty/fs/aufs/finfo.c linux/fs/aufs/finfo.c
--- /usr/share/empty/fs/aufs/finfo.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/finfo.c 2026-10-31 10:10:27.693333332 +0100
++++ linux/fs/aufs/finfo.c 2026-11-24 08:12:40.877575963 +0100
@@ -0,0 +1,148 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -14505,8 +14546,8 @@ diff -urN /usr/share/empty/fs/aufs/finfo.c linux/fs/aufs/finfo.c
+}
diff -urN /usr/share/empty/fs/aufs/f_op.c linux/fs/aufs/f_op.c
--- /usr/share/empty/fs/aufs/f_op.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/f_op.c 2026-10-31 10:10:27.693333332 +0100
-@@ -0,0 +1,838 @@
++++ linux/fs/aufs/f_op.c 2026-11-24 08:12:40.877575963 +0100
+@@ -0,0 +1,848 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -14664,20 +14705,39 @@ diff -urN /usr/share/empty/fs/aufs/f_op.c linux/fs/aufs/f_op.c
+ * read functions after [fdi]_rwsem are released, but it should be harmless.
+ */
+
-+/* Callers should call au_read_post() or fput() in the end */
-+struct file *au_read_pre(struct file *file, int keep_fi, unsigned int lsc)
++/*
++ * returns 0 with the finfo read-locked and a reference of the top branch
++ * file in *h_file, or an error with nothing locked.
++ * Callers should call fi_read_unlock() and au_read_post() in the end.
++ */
++static int au_read_pre_keep_fi(struct file *file, unsigned int lsc,
++ struct file **h_file)
+{
-+ struct file *h_file;
+ int err;
+
+ err = au_reval_and_lock_fdi(file, au_reopen_nondir, /*wlock*/0, lsc);
+ if (!err) {
+ di_read_unlock(file->f_path.dentry, AuLock_IR);
-+ h_file = au_hf_top(file);
-+ get_file(h_file);
-+ if (!keep_fi)
-+ fi_read_unlock(file);
-+ } else
++ *h_file = au_hf_top(file);
++ get_file(*h_file);
++ }
++
++ return err;
++}
++
++/*
++ * returns a reference of the top branch file, or an error. No aufs lock is
++ * held on return. Callers should call au_read_post() or fput() in the end.
++ */
++struct file *au_read_pre(struct file *file, unsigned int lsc)
++{
++ int err;
++ struct file *h_file;
++
++ err = au_read_pre_keep_fi(file, lsc, &h_file);
++ if (!err)
++ fi_read_unlock(file);
++ else
+ h_file = ERR_PTR(err);
+
+ return h_file;
@@ -14700,14 +14760,14 @@ diff -urN /usr/share/empty/fs/aufs/f_op.c linux/fs/aufs/f_op.c
+};
+
+/*
-+ * return with iinfo is write-locked
-+ * callers should call au_write_post() or iinfo_write_unlock() + fput() in the
-+ * end
++ * returns 0 with the iinfo write-locked and a reference of the top branch
++ * file in *h_file, or an error with nothing locked.
++ * callers should call au_write_post() or ii_write_unlock() + fput() in the
++ * end.
+ */
-+static struct file *au_write_pre(struct file *file, int do_ready,
-+ struct au_write_pre *wpre)
++static int au_write_pre(struct file *file, int do_ready,
++ struct au_write_pre *wpre, struct file **h_file)
+{
-+ struct file *h_file;
+ struct dentry *dentry;
+ int err;
+ unsigned int lsc;
@@ -14717,7 +14777,6 @@ diff -urN /usr/share/empty/fs/aufs/f_op.c linux/fs/aufs/f_op.c
+ if (wpre)
+ lsc = wpre->lsc;
+ err = au_reval_and_lock_fdi(file, au_reopen_nondir, /*wlock*/1, lsc);
-+ h_file = ERR_PTR(err);
+ if (unlikely(err))
+ goto out;
+
@@ -14725,7 +14784,6 @@ diff -urN /usr/share/empty/fs/aufs/f_op.c linux/fs/aufs/f_op.c
+ if (do_ready) {
+ err = au_ready_to_write(file, -1, &pin);
+ if (unlikely(err)) {
-+ h_file = ERR_PTR(err);
+ di_write_unlock(dentry);
+ goto out_fi;
+ }
@@ -14734,20 +14792,20 @@ diff -urN /usr/share/empty/fs/aufs/f_op.c linux/fs/aufs/f_op.c
+ di_downgrade_lock(dentry, /*flags*/0);
+ if (wpre)
+ wpre->btop = au_fbtop(file);
-+ h_file = au_hf_top(file);
-+ get_file(h_file);
++ *h_file = au_hf_top(file);
++ get_file(*h_file);
+ if (wpre)
-+ wpre->blks = file_inode(h_file)->i_blocks;
++ wpre->blks = file_inode(*h_file)->i_blocks;
+ if (do_ready)
+ au_unpin(&pin);
+ di_read_unlock(dentry, /*flags*/0);
+ if (do_ready)
-+ vfsub_file_start_write(h_file);
++ vfsub_file_start_write(*h_file);
+
+out_fi:
+ fi_write_unlock(file);
+out:
-+ return h_file;
++ return err;
+}
+
+static void au_write_post(struct inode *inode, struct file *h_file,
@@ -14840,9 +14898,8 @@ diff -urN /usr/share/empty/fs/aufs/f_op.c linux/fs/aufs/f_op.c
+ sb = inode->i_sb;
+ si_read_lock(sb, AuLock_FLUSH | AuLock_NOPLMW);
+
-+ h_file = au_read_pre(file, /*keep_fi*/1, /*lsc*/0);
-+ err = PTR_ERR(h_file);
-+ if (IS_ERR(h_file))
++ err = au_read_pre_keep_fi(file, /*lsc*/0, &h_file);
++ if (unlikely(err))
+ goto out;
+
+ if (au_test_loopback_kthread()) {
@@ -14876,9 +14933,8 @@ diff -urN /usr/share/empty/fs/aufs/f_op.c linux/fs/aufs/f_op.c
+ au_mtx_and_read_lock(inode);
+
+ wpre.lsc = 0;
-+ h_file = au_write_pre(file, /*do_ready*/1, &wpre);
-+ err = PTR_ERR(h_file);
-+ if (IS_ERR(h_file))
++ err = au_write_pre(file, /*do_ready*/1, &wpre, &h_file);
++ if (unlikely(err))
+ goto out;
+ if (!is_sync_kiocb(kio)) {
+ /* .vs. sb_start_write() in aio_write() */
@@ -14917,7 +14973,7 @@ diff -urN /usr/share/empty/fs/aufs/f_op.c linux/fs/aufs/f_op.c
+ sb = inode->i_sb;
+ si_read_lock(sb, AuLock_FLUSH | AuLock_NOPLMW);
+
-+ h_file = au_read_pre(file, /*keep_fi*/0, /*lsc*/0);
++ h_file = au_read_pre(file, /*lsc*/0);
+ err = PTR_ERR(h_file);
+ if (IS_ERR(h_file))
+ goto out;
@@ -14945,9 +15001,8 @@ diff -urN /usr/share/empty/fs/aufs/f_op.c linux/fs/aufs/f_op.c
+ au_mtx_and_read_lock(inode);
+
+ wpre.lsc = 0;
-+ h_file = au_write_pre(file, /*do_ready*/1, &wpre);
-+ err = PTR_ERR(h_file);
-+ if (IS_ERR(h_file))
++ err = au_write_pre(file, /*do_ready*/1, &wpre, &h_file);
++ if (unlikely(err))
+ goto out;
+
+ err = vfsub_splice_from(pipe, h_file, ppos, len, flags);
@@ -14971,9 +15026,8 @@ diff -urN /usr/share/empty/fs/aufs/f_op.c linux/fs/aufs/f_op.c
+ au_mtx_and_read_lock(inode);
+
+ wpre.lsc = 0;
-+ h_file = au_write_pre(file, /*do_ready*/1, &wpre);
-+ err = PTR_ERR(h_file);
-+ if (IS_ERR(h_file))
++ err = au_write_pre(file, /*do_ready*/1, &wpre, &h_file);
++ if (unlikely(err))
+ goto out;
+
+ lockdep_off();
@@ -15020,28 +15074,25 @@ diff -urN /usr/share/empty/fs/aufs/f_op.c linux/fs/aufs/f_op.c
+ * use f_path.dentry for this comparison.
+ */
+ if (src->f_path.dentry < dst->f_path.dentry) {
-+ a_src.h_file = au_read_pre(src, /*keep_fi*/1, AuLsc_FI_1);
-+ err = PTR_ERR(a_src.h_file);
-+ if (IS_ERR(a_src.h_file))
++ err = au_read_pre_keep_fi(src, AuLsc_FI_1, &a_src.h_file);
++ if (unlikely(err))
+ goto out_si;
+
+ wpre.lsc = AuLsc_FI_2;
-+ a_dst.h_file = au_write_pre(dst, /*do_ready*/1, &wpre);
-+ err = PTR_ERR(a_dst.h_file);
-+ if (IS_ERR(a_dst.h_file)) {
++ err = au_write_pre(dst, /*do_ready*/1, &wpre, &a_dst.h_file);
++ if (unlikely(err)) {
++ fi_read_unlock(src);
+ au_read_post(a_src.inode, a_src.h_file);
+ goto out_si;
+ }
+ } else {
+ wpre.lsc = AuLsc_FI_1;
-+ a_dst.h_file = au_write_pre(dst, /*do_ready*/1, &wpre);
-+ err = PTR_ERR(a_dst.h_file);
-+ if (IS_ERR(a_dst.h_file))
++ err = au_write_pre(dst, /*do_ready*/1, &wpre, &a_dst.h_file);
++ if (unlikely(err))
+ goto out_si;
+
-+ a_src.h_file = au_read_pre(src, /*keep_fi*/1, AuLsc_FI_2);
-+ err = PTR_ERR(a_src.h_file);
-+ if (IS_ERR(a_src.h_file)) {
++ err = au_read_pre_keep_fi(src, AuLsc_FI_2, &a_src.h_file);
++ if (unlikely(err)) {
+ au_write_post(a_dst.inode, a_dst.h_file, &wpre,
+ /*written*/0);
+ goto out_si;
@@ -15081,6 +15132,7 @@ diff -urN /usr/share/empty/fs/aufs/f_op.c linux/fs/aufs/f_op.c
+ unsigned long len, unsigned long pgoff,
+ unsigned long flags)
+{
++ int err;
+ unsigned long ul;
+ const unsigned char wlock = !!(file->f_mode & FMODE_WRITE);
+ struct inode *inode;
@@ -15095,11 +15147,12 @@ diff -urN /usr/share/empty/fs/aufs/f_op.c linux/fs/aufs/f_op.c
+ lockdep_off();
+ si_read_lock(sb, AuLock_NOPLMW);
+
-+ h_file = au_write_pre(file, /*do_ready*/wlock, /*wpre*/NULL);
++ err = au_write_pre(file, /*do_ready*/wlock, /*wpre*/NULL, &h_file);
+ lockdep_on();
-+ ul = PTR_ERR(h_file);
-+ if (IS_ERR(h_file))
++ if (unlikely(err)) {
++ ul = err;
+ goto out;
++ }
+
+ guma = h_file->f_op->get_unmapped_area;
+ if (!guma)
@@ -15192,10 +15245,9 @@ diff -urN /usr/share/empty/fs/aufs/f_op.c linux/fs/aufs/f_op.c
+ lockdep_off();
+ si_read_lock(sb, AuLock_NOPLMW);
+
-+ h_file = au_write_pre(file, /*do_ready*/wlock, /*wpre*/NULL);
++ err = au_write_pre(file, /*do_ready*/wlock, /*wpre*/NULL, &h_file);
+ lockdep_on();
-+ err = PTR_ERR(h_file);
-+ if (IS_ERR(h_file))
++ if (unlikely(err))
+ goto out;
+
+ err = 0;
@@ -15249,9 +15301,8 @@ diff -urN /usr/share/empty/fs/aufs/f_op.c linux/fs/aufs/f_op.c
+ au_mtx_and_read_lock(inode);
+
+ wpre.lsc = 0;
-+ h_file = au_write_pre(file, /*do_ready*/1, &wpre);
-+ err = PTR_ERR(h_file);
-+ if (IS_ERR(h_file))
++ err = au_write_pre(file, /*do_ready*/1, &wpre, &h_file);
++ if (unlikely(err))
+ goto out_unlock;
+
+ err = vfsub_fsync(h_file, &h_file->f_path, datasync);
@@ -15273,7 +15324,7 @@ diff -urN /usr/share/empty/fs/aufs/f_op.c linux/fs/aufs/f_op.c
+ sb = file->f_path.dentry->d_sb;
+ si_read_lock(sb, AuLock_FLUSH | AuLock_NOPLMW);
+
-+ h_file = au_read_pre(file, /*keep_fi*/0, /*lsc*/0);
++ h_file = au_read_pre(file, /*lsc*/0);
+ err = PTR_ERR(h_file);
+ if (IS_ERR(h_file))
+ goto out;
@@ -15296,7 +15347,7 @@ diff -urN /usr/share/empty/fs/aufs/f_op.c linux/fs/aufs/f_op.c
+ sb = file->f_path.dentry->d_sb;
+ si_read_lock(sb, AuLock_FLUSH | AuLock_NOPLMW);
+
-+ h_file = au_read_pre(file, /*keep_fi*/0, /*lsc*/0);
++ h_file = au_read_pre(file, /*lsc*/0);
+ err = PTR_ERR(h_file);
+ if (IS_ERR(h_file))
+ goto out;
@@ -15347,8 +15398,8 @@ diff -urN /usr/share/empty/fs/aufs/f_op.c linux/fs/aufs/f_op.c
+};
diff -urN /usr/share/empty/fs/aufs/fsctx.c linux/fs/aufs/fsctx.c
--- /usr/share/empty/fs/aufs/fsctx.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/fsctx.c 2026-10-31 10:10:27.693333332 +0100
-@@ -0,0 +1,1245 @@
++++ linux/fs/aufs/fsctx.c 2026-11-24 08:12:40.877575963 +0100
+@@ -0,0 +1,1244 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2022-2025 Junjiro R. Okajima
@@ -15409,8 +15460,7 @@ diff -urN /usr/share/empty/fs/aufs/fsctx.c linux/fs/aufs/fsctx.c
+
+ AuDbg("fc %p\n", fc);
+
-+ root = fc->root;
-+ sb = root->d_sb;
++ sb = fc->root->d_sb;
+ root = sb->s_root; /* "bind"-mount may give us non-root */
+ AuDebugOn(!IS_ROOT(root));
+ err = si_write_lock(sb, AuLock_FLUSH | AuLock_NOPLM);
@@ -16596,7 +16646,7 @@ diff -urN /usr/share/empty/fs/aufs/fsctx.c linux/fs/aufs/fsctx.c
+}
diff -urN /usr/share/empty/fs/aufs/fstype.h linux/fs/aufs/fstype.h
--- /usr/share/empty/fs/aufs/fstype.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/fstype.h 2026-10-31 10:10:27.693333332 +0100
++++ linux/fs/aufs/fstype.h 2026-11-24 08:12:40.877575963 +0100
@@ -0,0 +1,419 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
@@ -17019,7 +17069,7 @@ diff -urN /usr/share/empty/fs/aufs/fstype.h linux/fs/aufs/fstype.h
+#endif /* __AUFS_FSTYPE_H__ */
diff -urN /usr/share/empty/fs/aufs/hbl.h linux/fs/aufs/hbl.h
--- /usr/share/empty/fs/aufs/hbl.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/hbl.h 2026-10-31 10:10:27.693333332 +0100
++++ linux/fs/aufs/hbl.h 2026-11-24 08:12:40.877575963 +0100
@@ -0,0 +1,65 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
@@ -17088,7 +17138,7 @@ diff -urN /usr/share/empty/fs/aufs/hbl.h linux/fs/aufs/hbl.h
+#endif /* __AUFS_HBL_H__ */
diff -urN /usr/share/empty/fs/aufs/hfsnotify.c linux/fs/aufs/hfsnotify.c
--- /usr/share/empty/fs/aufs/hfsnotify.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/hfsnotify.c 2026-10-31 10:10:27.693333332 +0100
++++ linux/fs/aufs/hfsnotify.c 2026-11-24 08:12:40.877575963 +0100
@@ -0,0 +1,290 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -17382,7 +17432,7 @@ diff -urN /usr/share/empty/fs/aufs/hfsnotify.c linux/fs/aufs/hfsnotify.c
+};
diff -urN /usr/share/empty/fs/aufs/hfsplus.c linux/fs/aufs/hfsplus.c
--- /usr/share/empty/fs/aufs/hfsplus.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/hfsplus.c 2026-10-31 10:10:27.693333332 +0100
++++ linux/fs/aufs/hfsplus.c 2026-11-24 08:12:40.877575963 +0100
@@ -0,0 +1,60 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -17446,7 +17496,7 @@ diff -urN /usr/share/empty/fs/aufs/hfsplus.c linux/fs/aufs/hfsplus.c
+}
diff -urN /usr/share/empty/fs/aufs/hnotify.c linux/fs/aufs/hnotify.c
--- /usr/share/empty/fs/aufs/hnotify.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/hnotify.c 2026-10-31 10:10:27.693333332 +0100
++++ linux/fs/aufs/hnotify.c 2026-11-24 08:12:40.877575963 +0100
@@ -0,0 +1,715 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -18165,7 +18215,7 @@ diff -urN /usr/share/empty/fs/aufs/hnotify.c linux/fs/aufs/hnotify.c
+}
diff -urN /usr/share/empty/fs/aufs/iinfo.c linux/fs/aufs/iinfo.c
--- /usr/share/empty/fs/aufs/iinfo.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/iinfo.c 2026-10-31 10:10:27.696666666 +0100
++++ linux/fs/aufs/iinfo.c 2026-11-24 08:12:40.877575963 +0100
@@ -0,0 +1,288 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -18457,8 +18507,8 @@ diff -urN /usr/share/empty/fs/aufs/iinfo.c linux/fs/aufs/iinfo.c
+}
diff -urN /usr/share/empty/fs/aufs/inode.c linux/fs/aufs/inode.c
--- /usr/share/empty/fs/aufs/inode.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/inode.c 2026-10-31 10:10:27.696666666 +0100
-@@ -0,0 +1,532 @@
++++ linux/fs/aufs/inode.c 2026-11-24 08:12:40.879999999 +0100
+@@ -0,0 +1,541 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -18831,7 +18881,8 @@ diff -urN /usr/share/empty/fs/aufs/inode.c linux/fs/aufs/inode.c
+
+/* successful returns with iinfo write_locked */
+/* todo: return with unlocked? */
-+struct inode *au_new_inode(struct dentry *dentry, int must_new)
++/* returns the inode iinfo write-locked, or an error */
++static struct inode *au_do_new_inode(struct dentry *dentry, int must_new)
+{
+ struct inode *inode, *h_inode;
+ struct dentry *h_dentry;
@@ -18947,6 +18998,14 @@ diff -urN /usr/share/empty/fs/aufs/inode.c linux/fs/aufs/inode.c
+ return inode;
+}
+
++int au_new_inode(struct dentry *dentry, int must_new, struct inode **inode)
++{
++ *inode = au_do_new_inode(dentry, must_new);
++ if (IS_ERR(*inode))
++ return PTR_ERR(*inode);
++ return 0;
++}
++
+/* ---------------------------------------------------------------------- */
+
+int au_test_ro(struct super_block *sb, aufs_bindex_t bindex,
@@ -18993,8 +19052,8 @@ diff -urN /usr/share/empty/fs/aufs/inode.c linux/fs/aufs/inode.c
+}
diff -urN /usr/share/empty/fs/aufs/inode.h linux/fs/aufs/inode.h
--- /usr/share/empty/fs/aufs/inode.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/inode.h 2026-10-31 10:10:27.696666666 +0100
-@@ -0,0 +1,728 @@
++++ linux/fs/aufs/inode.h 2026-11-24 08:12:40.879999999 +0100
+@@ -0,0 +1,733 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -19152,7 +19211,8 @@ diff -urN /usr/share/empty/fs/aufs/inode.h linux/fs/aufs/inode.h
+int au_refresh_hinode(struct inode *inode, struct dentry *dentry);
+int au_ino(struct super_block *sb, aufs_bindex_t bindex, ino_t h_ino,
+ unsigned int d_type, ino_t *ino);
-+struct inode *au_new_inode(struct dentry *dentry, int must_new);
++/* returns 0 with the iinfo of the new *inode write-locked */
++int au_new_inode(struct dentry *dentry, int must_new, struct inode **inode);
+int au_test_ro(struct super_block *sb, aufs_bindex_t bindex,
+ struct inode *inode);
+int au_test_h_perm(struct mnt_idmap *h_idmap, struct inode *h_inode,
@@ -19227,8 +19287,12 @@ diff -urN /usr/share/empty/fs/aufs/inode.h linux/fs/aufs/inode.h
+int au_pin_and_icpup(struct dentry *dentry, struct iattr *ia,
+ struct au_icpup_args *a);
+
++/* returns 0 with the dinfo read-locked, or an error with nothing locked */
+int au_h_path_getattr(struct dentry *dentry, struct inode *inode, int force,
-+ struct path *h_path, int locked);
++ struct path *h_path);
++/* the caller already holds the dinfo lock */
++int au_h_path_getattr_locked(struct dentry *dentry, struct inode *inode,
++ int force, struct path *h_path);
+
+/* i_op_add.c */
+int au_may_add(struct dentry *dentry, aufs_bindex_t bindex,
@@ -19725,7 +19789,7 @@ diff -urN /usr/share/empty/fs/aufs/inode.h linux/fs/aufs/inode.h
+#endif /* __AUFS_INODE_H__ */
diff -urN /usr/share/empty/fs/aufs/ioctl.c linux/fs/aufs/ioctl.c
--- /usr/share/empty/fs/aufs/ioctl.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/ioctl.c 2026-10-31 10:10:27.696666666 +0100
++++ linux/fs/aufs/ioctl.c 2026-11-24 08:12:40.879999999 +0100
@@ -0,0 +1,220 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -19949,8 +20013,8 @@ diff -urN /usr/share/empty/fs/aufs/ioctl.c linux/fs/aufs/ioctl.c
+#endif
diff -urN /usr/share/empty/fs/aufs/i_op_add.c linux/fs/aufs/i_op_add.c
--- /usr/share/empty/fs/aufs/i_op_add.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/i_op_add.c 2026-10-31 10:10:27.696666666 +0100
-@@ -0,0 +1,955 @@
++++ linux/fs/aufs/i_op_add.c 2026-11-24 08:12:40.877575963 +0100
+@@ -0,0 +1,975 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -20007,8 +20071,8 @@ diff -urN /usr/share/empty/fs/aufs/i_op_add.c linux/fs/aufs/i_op_add.c
+ goto out;
+ }
+
-+ inode = au_new_inode(dentry, /*must_new*/1);
-+ if (!IS_ERR(inode)) {
++ err = au_new_inode(dentry, /*must_new*/1, &inode);
++ if (!err) {
+ d_instantiate(dentry, inode);
+ dir = d_inode(dentry->d_parent); /* dir inode is locked */
+ IMustLock(dir);
@@ -20018,7 +20082,6 @@ diff -urN /usr/share/empty/fs/aufs/i_op_add.c linux/fs/aufs/i_op_add.c
+ return 0; /* success */
+ }
+
-+ err = PTR_ERR(inode);
+ if (!wh_dentry)
+ goto out;
+
@@ -20193,8 +20256,17 @@ diff -urN /usr/share/empty/fs/aufs/i_op_add.c linux/fs/aufs/i_op_add.c
+ } u;
+};
+
-+static int add_simple(struct inode *dir, struct dentry *dentry,
-+ struct simple_arg *arg)
++/* to reduce stack size */
++struct au_add_simple_a {
++ struct au_dtime dt;
++ struct au_pin pin;
++ struct path h_path;
++ struct au_wr_dir_args wr_dir_args;
++};
++
++/* called with the dinfo of @dentry and its parent write-locked */
++static int au_do_add_simple(struct inode *dir, struct dentry *dentry,
++ struct simple_arg *arg, struct au_add_simple_a *a)
+{
+ int err, rerr;
+ aufs_bindex_t btop;
@@ -20202,44 +20274,16 @@ diff -urN /usr/share/empty/fs/aufs/i_op_add.c linux/fs/aufs/i_op_add.c
+ const unsigned char try_aopen
+ = (arg->type == Creat && arg->u.c.try_aopen);
+ struct vfsub_aopen_args *aopen = arg->u.c.aopen;
-+ struct dentry *wh_dentry, *parent;
++ struct dentry *wh_dentry;
+ struct inode *h_dir;
+ struct super_block *sb;
+ struct au_branch *br;
-+ /* to reduce stack size */
-+ struct {
-+ struct au_dtime dt;
-+ struct au_pin pin;
-+ struct path h_path;
-+ struct au_wr_dir_args wr_dir_args;
-+ } *a;
-+
-+ AuDbg("%pd\n", dentry);
-+ IMustLock(dir);
-+
-+ err = -ENOMEM;
-+ a = kmalloc(sizeof(*a), GFP_NOFS);
-+ if (unlikely(!a))
-+ goto out;
-+ a->wr_dir_args.force_btgt = -1;
-+ a->wr_dir_args.flags = AuWrDir_ADD_ENTRY;
+
-+ parent = dentry->d_parent; /* dir inode is locked */
-+ if (!try_aopen) {
-+ err = aufs_read_lock(dentry, AuLock_DW | AuLock_GEN);
-+ if (unlikely(err))
-+ goto out_free;
-+ }
-+ err = au_d_may_add(dentry);
-+ if (unlikely(err))
-+ goto out_unlock;
-+ if (!try_aopen)
-+ di_write_lock_parent(parent);
+ wh_dentry = lock_hdir_lkup_wh(dentry, &a->dt, /*src_dentry*/NULL,
+ &a->pin, &a->wr_dir_args);
+ err = PTR_ERR(wh_dentry);
+ if (IS_ERR(wh_dentry))
-+ goto out_parent;
++ goto out;
+
+ btop = au_dbtop(dentry);
+ sb = dentry->d_sb;
@@ -20301,16 +20345,57 @@ diff -urN /usr/share/empty/fs/aufs/i_op_add.c linux/fs/aufs/i_op_add.c
+out_unpin:
+ au_unpin(&a->pin);
+ dput(wh_dentry);
-+out_parent:
-+ if (!try_aopen)
++out:
++ return err;
++}
++
++static int add_simple(struct inode *dir, struct dentry *dentry,
++ struct simple_arg *arg)
++{
++ int err;
++ const unsigned char try_aopen
++ = (arg->type == Creat && arg->u.c.try_aopen);
++ struct dentry *parent;
++ struct au_add_simple_a *a;
++
++ AuDbg("%pd\n", dentry);
++ IMustLock(dir);
++
++ err = -ENOMEM;
++ a = kmalloc(sizeof(*a), GFP_NOFS);
++ if (unlikely(!a))
++ goto out;
++ a->wr_dir_args.force_btgt = -1;
++ a->wr_dir_args.flags = AuWrDir_ADD_ENTRY;
++
++ parent = dentry->d_parent; /* dir inode is locked */
++ if (try_aopen) {
++ /* aufs_atomic_open() holds the dinfo locks */
++ err = au_d_may_add(dentry);
++ if (!err)
++ err = au_do_add_simple(dir, dentry, arg, a);
++ if (unlikely(err)) {
++ au_update_dbtop(dentry);
++ d_drop(dentry);
++ }
++ goto out_free;
++ }
++
++ err = aufs_read_lock(dentry, AuLock_DW | AuLock_GEN);
++ if (unlikely(err))
++ goto out_free;
++ err = au_d_may_add(dentry);
++ if (!err) {
++ di_write_lock_parent(parent);
++ err = au_do_add_simple(dir, dentry, arg, a);
+ di_write_unlock(parent);
-+out_unlock:
++ }
+ if (unlikely(err)) {
+ au_update_dbtop(dentry);
+ d_drop(dentry);
+ }
-+ if (!try_aopen)
-+ aufs_read_unlock(dentry, AuLock_DW);
++ aufs_read_unlock(dentry, AuLock_DW);
++
+out_free:
+ au_kfree_rcu(a);
+out:
@@ -20446,9 +20531,8 @@ diff -urN /usr/share/empty/fs/aufs/i_op_add.c linux/fs/aufs/i_op_add.c
+ au_set_dbtop(dentry, bindex);
+ au_set_dbbot(dentry, bindex);
+ au_set_h_dptr(dentry, bindex, dget(h_dentry));
-+ inode = au_new_inode(dentry, /*must_new*/1);
-+ if (IS_ERR(inode)) {
-+ err = PTR_ERR(inode);
++ err = au_new_inode(dentry, /*must_new*/1, &inode);
++ if (unlikely(err)) {
+ au_set_h_dptr(dentry, bindex, NULL);
+ au_set_dbtop(dentry, -1);
+ au_set_dbbot(dentry, -1);
@@ -20908,8 +20992,8 @@ diff -urN /usr/share/empty/fs/aufs/i_op_add.c linux/fs/aufs/i_op_add.c
+}
diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
--- /usr/share/empty/fs/aufs/i_op.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/i_op.c 2026-10-31 10:10:27.696666666 +0100
-@@ -0,0 +1,1518 @@
++++ linux/fs/aufs/i_op.c 2026-11-24 08:12:40.877575963 +0100
+@@ -0,0 +1,1591 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -21074,6 +21158,24 @@ diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
+
+/* ---------------------------------------------------------------------- */
+
++/*
++ * after d_splice_alias(@inode, @dentry) returned @ret. If @dentry got
++ * @inode, the iinfo lock is released later by di_write_unlock(@dentry),
++ * otherwise here.
++ */
++static void au_lookup_post(struct dentry *dentry, struct inode *inode,
++ struct dentry *ret)
++{
++ if (!IS_ERR(ret)) {
++ iput(inode);
++ if (ret && ret != dentry)
++ ii_write_unlock(inode);
++ } else {
++ ii_write_unlock(inode);
++ iput(inode);
++ }
++}
++
+static struct dentry *aufs_lookup(struct inode *dir, struct dentry *dentry,
+ unsigned int flags)
+{
@@ -21104,7 +21206,6 @@ diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
+ if (unlikely(err))
+ goto out_si;
+
-+ inode = NULL;
+ npositive = 0; /* suppress a warning */
+ parent = dentry->d_parent; /* dir inode is locked */
+ di_read_lock_parent(parent, AuLock_IR);
@@ -21123,35 +21224,16 @@ diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
+ goto out_unlock;
+
+ if (npositive) {
-+ inode = au_new_inode(dentry, /*must_new*/0);
-+ if (IS_ERR(inode)) {
-+ ret = (void *)inode;
-+ inode = NULL;
++ err = au_new_inode(dentry, /*must_new*/0, &inode);
++ if (unlikely(err)) {
++ ret = ERR_PTR(err);
+ goto out_unlock;
+ }
-+ }
-+
-+ if (inode)
+ atomic_inc(&inode->i_count);
-+ ret = d_splice_alias(inode, dentry);
-+#if 0 /* reserved for future use */
-+ if (unlikely(d_need_lookup(dentry))) {
-+ spin_lock(&dentry->d_lock);
-+ dentry->d_flags &= ~DCACHE_NEED_LOOKUP;
-+ spin_unlock(&dentry->d_lock);
++ ret = d_splice_alias(inode, dentry);
++ au_lookup_post(dentry, inode, ret);
+ } else
-+#endif
-+ if (inode) {
-+ if (!IS_ERR(ret)) {
-+ iput(inode);
-+ if (ret && ret != dentry)
-+ ii_write_unlock(inode);
-+ } else {
-+ ii_write_unlock(inode);
-+ iput(inode);
-+ inode = NULL;
-+ }
-+ }
++ ret = d_splice_alias(NULL, dentry);
+
+out_unlock:
+ di_write_unlock(dentry);
@@ -21364,19 +21446,15 @@ diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
+
+/* ---------------------------------------------------------------------- */
+
-+static int au_wr_dir_cpup(struct dentry *dentry, struct dentry *parent,
-+ const unsigned char add_entry, aufs_bindex_t bcpup,
-+ aufs_bindex_t btop)
++/* the caller holds the dinfo lock of @parent */
++static int au_do_wr_dir_cpup(struct dentry *dentry, struct dentry *parent,
++ const unsigned char add_entry,
++ aufs_bindex_t bcpup, aufs_bindex_t btop)
+{
+ int err;
+ struct dentry *h_parent;
+ struct inode *h_dir;
+
-+ if (add_entry)
-+ IMustLock(d_inode(parent));
-+ else
-+ di_write_lock_parent(parent);
-+
+ err = 0;
+ if (!au_h_dptr(parent, bcpup)) {
+ if (btop > bcpup)
@@ -21402,8 +21480,6 @@ diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
+ }
+ }
+
-+ if (!add_entry)
-+ di_write_unlock(parent);
+ if (!err)
+ err = bcpup; /* success */
+
@@ -21411,6 +21487,27 @@ diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
+ return err;
+}
+
++static int au_wr_dir_cpup(struct dentry *dentry, struct dentry *parent,
++ const unsigned char add_entry, aufs_bindex_t bcpup,
++ aufs_bindex_t btop)
++{
++ int err;
++
++ if (add_entry) {
++ /* the dinfo of @parent is locked by the caller */
++ IMustLock(d_inode(parent));
++ err = au_do_wr_dir_cpup(dentry, parent, add_entry, bcpup,
++ btop);
++ } else {
++ di_write_lock_parent(parent);
++ err = au_do_wr_dir_cpup(dentry, parent, add_entry, bcpup,
++ btop);
++ di_write_unlock(parent);
++ }
++
++ return err;
++}
++
+/*
+ * decide the branch and the parent dir where we will create a new entry.
+ * returns new bindex or an error.
@@ -21583,6 +21680,22 @@ diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
+ return NULL;
+}
+
++/*
++ * Lock/unlock the parent dinfo unless the caller has locked it
++ * (AuPin_DI_LOCKED).
++ */
++static void au_pin_di_read_lock(struct au_pin *p)
++{
++ if (!au_ftest_pin(p->flags, DI_LOCKED))
++ di_read_lock(p->parent, AuLock_IR, p->lsc_di);
++}
++
++static void au_pin_di_read_unlock(struct au_pin *p)
++{
++ if (!au_ftest_pin(p->flags, DI_LOCKED))
++ di_read_unlock(p->parent, AuLock_IR);
++}
++
+void au_unpin(struct au_pin *p)
+{
+ if (p->hdir)
@@ -21592,8 +21705,7 @@ diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
+ if (!p->hdir)
+ return;
+
-+ if (!au_ftest_pin(p->flags, DI_LOCKED))
-+ di_read_unlock(p->parent, AuLock_IR);
++ au_pin_di_read_unlock(p);
+ iput(p->hdir->hi_inode);
+ dput(p->parent);
+ p->parent = NULL;
@@ -21628,8 +21740,7 @@ diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
+ p->h_dentry = au_h_dptr(p->dentry, p->bindex);
+
+ p->parent = dget_parent(p->dentry);
-+ if (!au_ftest_pin(p->flags, DI_LOCKED))
-+ di_read_lock(p->parent, AuLock_IR, p->lsc_di);
++ au_pin_di_read_lock(p);
+
+ h_dir = NULL;
+ p->h_parent = au_h_dptr(p->parent, p->bindex);
@@ -21644,8 +21755,7 @@ diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
+ */
+ if (unlikely(!p->hdir || !h_dir || !p->h_parent)) {
+ err = -EBUSY;
-+ if (!au_ftest_pin(p->flags, DI_LOCKED))
-+ di_read_unlock(p->parent, AuLock_IR);
++ au_pin_di_read_unlock(p);
+ dput(p->parent);
+ p->parent = NULL;
+ goto out_err;
@@ -21656,8 +21766,7 @@ diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
+ err = vfsub_mnt_want_write(p->h_mnt);
+ if (unlikely(err)) {
+ au_fclr_pin(p->flags, MNT_WRITE);
-+ if (!au_ftest_pin(p->flags, DI_LOCKED))
-+ di_read_unlock(p->parent, AuLock_IR);
++ au_pin_di_read_unlock(p);
+ dput(p->parent);
+ p->parent = NULL;
+ goto out_err;
@@ -21735,6 +21844,40 @@ diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
+ return err;
+}
+
++/*
++ * The parent dinfo is write-locked by au_icpup_lock_parent() unless the
++ * dentry is the root, i.e. it is held iff the returned parent is non-NULL.
++ * au_icpup_pass_parent() downgrades it and hands it over to the pin, which
++ * then releases it in au_unpin().
++ */
++static struct dentry *au_icpup_lock_parent(struct dentry *dentry)
++{
++ struct dentry *parent;
++
++ if (IS_ROOT(dentry))
++ return NULL;
++ parent = dget_parent(dentry);
++ di_write_lock_parent(parent);
++ return parent;
++}
++
++static void au_icpup_unlock_parent(struct dentry *parent)
++{
++ if (parent) {
++ di_write_unlock(parent);
++ dput(parent);
++ }
++}
++
++static void au_icpup_pass_parent(struct au_pin *pin, struct dentry *parent)
++{
++ if (parent) {
++ au_pin_set_parent_lflag(pin, /*lflag*/0);
++ di_downgrade_lock(parent, AuLock_IR);
++ dput(parent);
++ }
++}
++
+int au_pin_and_icpup(struct dentry *dentry, struct iattr *ia,
+ struct au_icpup_args *a)
+{
@@ -21765,12 +21908,9 @@ diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
+
+ err = 0;
+ a->pin_flags = AuPin_MNT_WRITE;
-+ parent = NULL;
-+ if (!IS_ROOT(dentry)) {
++ parent = au_icpup_lock_parent(dentry);
++ if (parent)
+ au_fset_pin(a->pin_flags, DI_LOCKED);
-+ parent = dget_parent(dentry);
-+ di_write_lock_parent(parent);
-+ }
+
+ err = au_pin(&a->pin, dentry, a->btgt, a->udba, a->pin_flags);
+ if (unlikely(err))
@@ -21805,12 +21945,8 @@ diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
+ }
+ }
+
-+ if (parent) {
-+ au_pin_set_parent_lflag(&a->pin, /*lflag*/0);
-+ di_downgrade_lock(parent, AuLock_IR);
-+ dput(parent);
-+ parent = NULL;
-+ }
++ au_icpup_pass_parent(&a->pin, parent);
++ parent = NULL;
+ if (!au_ftest_icpup(a->flags, DID_CPUP))
+ goto out; /* success */
+
@@ -21837,81 +21973,34 @@ diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
+ goto out; /* success */
+ au_unpin(&a->pin);
+out_parent:
-+ if (parent) {
-+ di_write_unlock(parent);
-+ dput(parent);
-+ }
++ au_icpup_unlock_parent(parent);
+out:
+ if (!err)
+ inode_lock_nested(a->h_inode, AuLsc_I_CHILD);
+ return err;
+}
+
-+static int aufs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
-+ struct iattr *ia)
++/*
++ * called with the dinfo of @dentry write-locked, and the finfo too for
++ * ATTR_FILE
++ */
++static int au_do_setattr(struct dentry *dentry, struct iattr *ia,
++ struct au_icpup_args *a)
+{
+ int err;
+ struct inode *inode;
-+ struct super_block *sb;
-+ struct file *file;
-+ struct au_icpup_args *a;
+ struct mnt_idmap *h_idmap;
+
+ inode = d_inode(dentry);
-+ IMustLock(inode);
-+
-+ err = setattr_prepare(idmap, dentry, ia);
-+ if (unlikely(err))
-+ goto out;
-+
-+ err = -ENOMEM;
-+ a = kzalloc(sizeof(*a), GFP_NOFS);
-+ if (unlikely(!a))
-+ goto out;
-+
-+ if (ia->ia_valid & (ATTR_KILL_SUID | ATTR_KILL_SGID))
-+ ia->ia_valid &= ~ATTR_MODE;
-+
-+ file = NULL;
-+ sb = dentry->d_sb;
-+ err = si_read_lock(sb, AuLock_FLUSH | AuLock_NOPLM);
-+ if (unlikely(err))
-+ goto out_kfree;
-+
-+ if (ia->ia_valid & ATTR_FILE) {
-+ /* currently ftruncate(2) only */
-+ AuDebugOn(!d_is_reg(dentry));
-+ file = ia->ia_file;
-+ err = au_reval_and_lock_fdi(file, au_reopen_nondir, /*wlock*/1,
-+ /*fi_lsc*/0);
-+ if (unlikely(err))
-+ goto out_si;
-+ ia->ia_file = au_hf_top(file);
-+ a->udba = AuOpt_UDBA_NONE;
-+ } else {
-+ /* fchmod() doesn't pass ia_file */
-+ a->udba = au_opt_udba(sb);
-+ di_write_lock_child(dentry);
-+ /* no d_unlinked(), to set UDBA_NONE for root */
-+ if (d_unhashed(dentry))
-+ a->udba = AuOpt_UDBA_NONE;
-+ if (a->udba != AuOpt_UDBA_NONE) {
-+ AuDebugOn(IS_ROOT(dentry));
-+ err = au_reval_for_attr(dentry, au_sigen(sb));
-+ if (unlikely(err))
-+ goto out_dentry;
-+ }
-+ }
-+
+ err = au_pin_and_icpup(dentry, ia, a);
+ if (unlikely(err < 0))
-+ goto out_dentry;
++ goto out;
+ if (au_ftest_icpup(a->flags, DID_CPUP)) {
+ ia->ia_file = NULL;
+ ia->ia_valid &= ~ATTR_FILE;
+ }
+
-+ a->h_path.mnt = au_sbr_mnt(sb, a->btgt);
++ a->h_path.mnt = au_sbr_mnt(dentry->d_sb, a->btgt);
+ err = vfsub_mnt_want_write(a->h_path.mnt);
+ if (unlikely(err))
+ goto out_unlock;
@@ -21961,13 +22050,71 @@ diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
+ au_unpin(&a->pin);
+ if (unlikely(err))
+ au_update_dbtop(dentry);
-+out_dentry:
-+ di_write_unlock(dentry);
-+ if (file) {
++out:
++ return err;
++}
++
++static int aufs_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
++ struct iattr *ia)
++{
++ int err;
++ struct inode *inode;
++ struct super_block *sb;
++ struct file *file;
++ struct au_icpup_args *a;
++
++ inode = d_inode(dentry);
++ IMustLock(inode);
++
++ err = setattr_prepare(idmap, dentry, ia);
++ if (unlikely(err))
++ goto out;
++
++ err = -ENOMEM;
++ a = kzalloc(sizeof(*a), GFP_NOFS);
++ if (unlikely(!a))
++ goto out;
++
++ if (ia->ia_valid & (ATTR_KILL_SUID | ATTR_KILL_SGID))
++ ia->ia_valid &= ~ATTR_MODE;
++
++ sb = dentry->d_sb;
++ err = si_read_lock(sb, AuLock_FLUSH | AuLock_NOPLM);
++ if (unlikely(err))
++ goto out_kfree;
++
++ if (ia->ia_valid & ATTR_FILE) {
++ /* currently ftruncate(2) only */
++ AuDebugOn(!d_is_reg(dentry));
++ file = ia->ia_file;
++ AuDebugOn(file->f_path.dentry != dentry);
++ err = au_reval_and_lock_fdi(file, au_reopen_nondir, /*wlock*/1,
++ /*fi_lsc*/0);
++ if (unlikely(err))
++ goto out_si;
++ ia->ia_file = au_hf_top(file);
++ a->udba = AuOpt_UDBA_NONE;
++ err = au_do_setattr(dentry, ia, a);
++ di_write_unlock(file->f_path.dentry);
+ fi_write_unlock(file);
+ ia->ia_file = file;
+ ia->ia_valid |= ATTR_FILE;
++ } else {
++ /* fchmod() doesn't pass ia_file */
++ a->udba = au_opt_udba(sb);
++ di_write_lock_child(dentry);
++ /* no d_unlinked(), to set UDBA_NONE for root */
++ if (d_unhashed(dentry))
++ a->udba = AuOpt_UDBA_NONE;
++ if (a->udba != AuOpt_UDBA_NONE) {
++ AuDebugOn(IS_ROOT(dentry));
++ err = au_reval_for_attr(dentry, au_sigen(sb));
++ }
++ if (!err)
++ err = au_do_setattr(dentry, ia, a);
++ di_write_unlock(dentry);
+ }
++
+out_si:
+ si_read_unlock(sb);
+out_kfree:
@@ -22105,28 +22252,62 @@ diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
+ * returns zero or negative (an error).
+ * @dentry will be read-locked in success.
+ */
-+int au_h_path_getattr(struct dentry *dentry, struct inode *inode, int force,
-+ struct path *h_path, int locked)
++int au_h_path_getattr_locked(struct dentry *dentry, struct inode *inode,
++ int force, struct path *h_path)
+{
-+ int err;
-+ unsigned int mnt_flags, sigen;
-+ unsigned char udba_none;
++ unsigned int mnt_flags;
+ aufs_bindex_t bindex;
+ struct super_block *sb, *h_sb;
+
+ h_path->mnt = NULL;
+ h_path->dentry = NULL;
+
-+ err = 0;
+ sb = dentry->d_sb;
+ mnt_flags = au_mntflags(sb);
-+ udba_none = !!au_opt_test(mnt_flags, UDBA_NONE);
+
-+ if (unlikely(locked))
-+ goto body; /* skip locking dinfo */
++ if (!inode) {
++ inode = d_inode(dentry);
++ if (unlikely(!inode))
++ goto out;
++ }
++ bindex = au_ibtop(inode);
++ h_path->mnt = au_sbr_mnt(sb, bindex);
++ h_sb = h_path->mnt->mnt_sb;
++ if (!force
++ && !au_test_fs_bad_iattr(h_sb)
++ && au_opt_test(mnt_flags, UDBA_NONE))
++ goto out; /* success */
++
++ if (au_dbtop(dentry) == bindex)
++ h_path->dentry = au_h_dptr(dentry, bindex);
++ else if (au_opt_test(mnt_flags, PLINK) && au_plink_test(inode)) {
++ h_path->dentry = au_plink_lkup(inode, bindex);
++ if (IS_ERR(h_path->dentry))
++ /* pretending success */
++ h_path->dentry = NULL;
++ else
++ dput(h_path->dentry);
++ }
++
++out:
++ return 0;
++}
++
++int au_h_path_getattr(struct dentry *dentry, struct inode *inode, int force,
++ struct path *h_path)
++{
++ int err;
++ unsigned int sigen;
++ struct super_block *sb;
++
++ h_path->mnt = NULL;
++ h_path->dentry = NULL;
++
++ err = 0;
++ sb = dentry->d_sb;
+
+ /* support fstat(2) */
-+ if (!d_unlinked(dentry) && !udba_none) {
++ if (!d_unlinked(dentry) && !au_opt_test(au_mntflags(sb), UDBA_NONE)) {
+ sigen = au_sigen(sb);
+ err = au_digen_test(dentry, sigen);
+ if (!err) {
@@ -22152,30 +22333,7 @@ diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
+ } else
+ di_read_lock_child(dentry, AuLock_IR);
+
-+body:
-+ if (!inode) {
-+ inode = d_inode(dentry);
-+ if (unlikely(!inode))
-+ goto out;
-+ }
-+ bindex = au_ibtop(inode);
-+ h_path->mnt = au_sbr_mnt(sb, bindex);
-+ h_sb = h_path->mnt->mnt_sb;
-+ if (!force
-+ && !au_test_fs_bad_iattr(h_sb)
-+ && udba_none)
-+ goto out; /* success */
-+
-+ if (au_dbtop(dentry) == bindex)
-+ h_path->dentry = au_h_dptr(dentry, bindex);
-+ else if (au_opt_test(mnt_flags, PLINK) && au_plink_test(inode)) {
-+ h_path->dentry = au_plink_lkup(inode, bindex);
-+ if (IS_ERR(h_path->dentry))
-+ /* pretending success */
-+ h_path->dentry = NULL;
-+ else
-+ dput(h_path->dentry);
-+ }
++ err = au_h_path_getattr_locked(dentry, inode, force, h_path);
+
+out:
+ return err;
@@ -22197,8 +22355,7 @@ diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
+ err = si_read_lock(sb, AuLock_FLUSH | AuLock_NOPLM);
+ if (unlikely(err))
+ goto out;
-+ err = au_h_path_getattr(dentry, /*inode*/NULL, /*force*/0, &h_path,
-+ /*locked*/0);
++ err = au_h_path_getattr(dentry, /*inode*/NULL, /*force*/0, &h_path);
+ if (unlikely(err))
+ goto out_si;
+ if (unlikely(!h_path.dentry))
@@ -22430,7 +22587,7 @@ diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
+};
diff -urN /usr/share/empty/fs/aufs/i_op_del.c linux/fs/aufs/i_op_del.c
--- /usr/share/empty/fs/aufs/i_op_del.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/i_op_del.c 2026-10-31 10:10:27.696666666 +0100
++++ linux/fs/aufs/i_op_del.c 2026-11-24 08:12:40.877575963 +0100
@@ -0,0 +1,517 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -22951,8 +23108,8 @@ diff -urN /usr/share/empty/fs/aufs/i_op_del.c linux/fs/aufs/i_op_del.c
+}
diff -urN /usr/share/empty/fs/aufs/i_op_ren.c linux/fs/aufs/i_op_ren.c
--- /usr/share/empty/fs/aufs/i_op_ren.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/i_op_ren.c 2026-10-31 10:10:27.696666666 +0100
-@@ -0,0 +1,1242 @@
++++ linux/fs/aufs/i_op_ren.c 2026-11-24 08:12:40.877575963 +0100
+@@ -0,0 +1,1267 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -23899,6 +24056,47 @@ diff -urN /usr/share/empty/fs/aufs/i_op_ren.c linux/fs/aufs/i_op_ren.c
+
+/* ---------------------------------------------------------------------- */
+
++/*
++ * The dst parent dinfo is write-locked through the rename, and the src
++ * parent too when they differ (ISSAMEDIR is cleared).
++ */
++
++/*
++ * called with the dst parent write-locked, returns with both parents
++ * write-locked.
++ */
++static int au_ren_need_wh_diffdir(struct au_ren_args *a)
++{
++ int err;
++
++ /*
++ * this temporary unlock is safe,
++ * because both dir->i_mutex are locked.
++ */
++ di_write_unlock(a->dst_parent);
++ AuDebugOn(a->src_parent == a->dst_dentry);
++ AuDebugOn(d_inode(a->src_parent) == d_inode(a->dst_dentry));
++ AuDebugOn(a->src_parent == a->src_dentry);
++ AuDebugOn(d_inode(a->src_parent) == d_inode(a->src_dentry));
++ di_write_lock_parent(a->src_parent);
++ err = au_wr_dir_need_wh(a->src_dentry,
++ au_ftest_ren(a->auren_flags, ISDIR_SRC),
++ &a->btgt);
++ di_write_unlock(a->src_parent);
++ di_write_lock2_parent(a->src_parent, a->dst_parent, /*isdir*/1);
++ au_fclr_ren(a->auren_flags, ISSAMEDIR);
++
++ return err;
++}
++
++static void au_ren_unlock_parents(struct au_ren_args *a)
++{
++ if (au_ftest_ren(a->auren_flags, ISSAMEDIR))
++ di_write_unlock(a->dst_parent);
++ else
++ di_write_unlock2(a->src_parent, a->dst_parent);
++}
++
+int aufs_rename(struct mnt_idmap *idmap,
+ struct inode *_src_dir, struct dentry *_src_dentry,
+ struct inode *_dst_dir, struct dentry *_dst_dentry,
@@ -24027,22 +24225,9 @@ diff -urN /usr/share/empty/fs/aufs/i_op_ren.c linux/fs/aufs/i_op_ren.c
+
+ err = 0;
+ if (!a->exchange) {
-+ if (a->src_dir != a->dst_dir) {
-+ /*
-+ * this temporary unlock is safe,
-+ * because both dir->i_mutex are locked.
-+ */
-+ di_write_unlock(a->dst_parent);
-+ di_write_lock_parent(a->src_parent);
-+ err = au_wr_dir_need_wh(a->src_dentry,
-+ au_ftest_ren(a->auren_flags,
-+ ISDIR_SRC),
-+ &a->btgt);
-+ di_write_unlock(a->src_parent);
-+ di_write_lock2_parent(a->src_parent, a->dst_parent,
-+ /*isdir*/1);
-+ au_fclr_ren(a->auren_flags, ISSAMEDIR);
-+ } else
++ if (a->src_dir != a->dst_dir)
++ err = au_ren_need_wh_diffdir(a);
++ else
+ err = au_wr_dir_need_wh(a->src_dentry,
+ au_ftest_ren(a->auren_flags,
+ ISDIR_SRC),
@@ -24180,10 +24365,7 @@ diff -urN /usr/share/empty/fs/aufs/i_op_ren.c linux/fs/aufs/i_op_ren.c
+ if (!a->dst_inode)
+ d_drop(a->dst_dentry);
+ }
-+ if (au_ftest_ren(a->auren_flags, ISSAMEDIR))
-+ di_write_unlock(a->dst_parent);
-+ else
-+ di_write_unlock2(a->src_parent, a->dst_parent);
++ au_ren_unlock_parents(a);
+out_unlock:
+ aufs_read_and_write_unlock2(a->dst_dentry, a->src_dentry);
+out_free:
@@ -24197,7 +24379,7 @@ diff -urN /usr/share/empty/fs/aufs/i_op_ren.c linux/fs/aufs/i_op_ren.c
+}
diff -urN /usr/share/empty/fs/aufs/Kconfig linux/fs/aufs/Kconfig
--- /usr/share/empty/fs/aufs/Kconfig 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/Kconfig 2025-07-24 19:31:57.786514124 +0200
++++ linux/fs/aufs/Kconfig 2026-11-24 08:12:40.877423591 +0100
@@ -0,0 +1,201 @@
+# SPDX-License-Identifier: GPL-2.0
+config AUFS_FS
@@ -24402,7 +24584,7 @@ diff -urN /usr/share/empty/fs/aufs/Kconfig linux/fs/aufs/Kconfig
+endif
diff -urN /usr/share/empty/fs/aufs/lcnt.h linux/fs/aufs/lcnt.h
--- /usr/share/empty/fs/aufs/lcnt.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/lcnt.h 2026-10-31 10:10:27.696666666 +0100
++++ linux/fs/aufs/lcnt.h 2026-11-24 08:12:40.879999999 +0100
@@ -0,0 +1,186 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
@@ -24592,7 +24774,7 @@ diff -urN /usr/share/empty/fs/aufs/lcnt.h linux/fs/aufs/lcnt.h
+#endif /* __AUFS_LCNT_H__ */
diff -urN /usr/share/empty/fs/aufs/loop.c linux/fs/aufs/loop.c
--- /usr/share/empty/fs/aufs/loop.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/loop.c 2026-10-31 10:10:27.696666666 +0100
++++ linux/fs/aufs/loop.c 2026-11-24 08:12:40.879999999 +0100
@@ -0,0 +1,157 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -24753,7 +24935,7 @@ diff -urN /usr/share/empty/fs/aufs/loop.c linux/fs/aufs/loop.c
+}
diff -urN /usr/share/empty/fs/aufs/loop.h linux/fs/aufs/loop.h
--- /usr/share/empty/fs/aufs/loop.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/loop.h 2026-10-31 10:10:27.696666666 +0100
++++ linux/fs/aufs/loop.h 2026-11-24 08:12:40.879999999 +0100
@@ -0,0 +1,55 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
@@ -24812,7 +24994,7 @@ diff -urN /usr/share/empty/fs/aufs/loop.h linux/fs/aufs/loop.h
+#endif /* __AUFS_LOOP_H__ */
diff -urN /usr/share/empty/fs/aufs/magic.mk linux/fs/aufs/magic.mk
--- /usr/share/empty/fs/aufs/magic.mk 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/magic.mk 2026-10-31 10:10:27.696666666 +0100
++++ linux/fs/aufs/magic.mk 2026-11-24 08:12:40.879999999 +0100
@@ -0,0 +1,31 @@
+# SPDX-License-Identifier: GPL-2.0
+
@@ -24847,7 +25029,7 @@ diff -urN /usr/share/empty/fs/aufs/magic.mk linux/fs/aufs/magic.mk
+endif
diff -urN /usr/share/empty/fs/aufs/Makefile linux/fs/aufs/Makefile
--- /usr/share/empty/fs/aufs/Makefile 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/Makefile 2026-10-31 10:10:27.692069390 +0100
++++ linux/fs/aufs/Makefile 2026-11-24 08:12:40.877575963 +0100
@@ -0,0 +1,47 @@
+# SPDX-License-Identifier: GPL-2.0
+
@@ -24898,7 +25080,7 @@ diff -urN /usr/share/empty/fs/aufs/Makefile linux/fs/aufs/Makefile
+aufs-$(CONFIG_AUFS_MAGIC_SYSRQ) += sysrq.o
diff -urN /usr/share/empty/fs/aufs/mf.c linux/fs/aufs/mf.c
--- /usr/share/empty/fs/aufs/mf.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/mf.c 2026-10-31 10:10:27.699999999 +0100
++++ linux/fs/aufs/mf.c 2026-11-24 08:12:40.879999999 +0100
@@ -0,0 +1,119 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -25021,7 +25203,7 @@ diff -urN /usr/share/empty/fs/aufs/mf.c linux/fs/aufs/mf.c
+EXPORT_SYMBOL_GPL(au_do_file_user_inode);
diff -urN /usr/share/empty/fs/aufs/module.c linux/fs/aufs/module.c
--- /usr/share/empty/fs/aufs/module.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/module.c 2026-10-31 10:10:27.699999999 +0100
++++ linux/fs/aufs/module.c 2026-11-24 08:12:40.879999999 +0100
@@ -0,0 +1,275 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -25300,7 +25482,7 @@ diff -urN /usr/share/empty/fs/aufs/module.c linux/fs/aufs/module.c
+module_exit(aufs_exit);
diff -urN /usr/share/empty/fs/aufs/module.h linux/fs/aufs/module.h
--- /usr/share/empty/fs/aufs/module.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/module.h 2026-10-31 10:10:27.699999999 +0100
++++ linux/fs/aufs/module.h 2026-11-24 08:12:40.879999999 +0100
@@ -0,0 +1,180 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
@@ -25370,11 +25552,11 @@ diff -urN /usr/share/empty/fs/aufs/module.h linux/fs/aufs/module.h
+ kfree_rcu(a, rcu);
+}
+
-+#define au_kfree_rcu(_p) do { \
-+ typeof(_p) p = (_p); \
-+ BUILD_BUG_ON(sizeof(*p) < sizeof(struct rcu_head)); \
-+ if (p) \
-+ au_kfree_do_rcu(p); \
++#define au_kfree_rcu(__p) do { \
++ typeof(__p) _p = (__p); \
++ BUILD_BUG_ON(sizeof(*_p) < sizeof(struct rcu_head)); \
++ if (_p) \
++ au_kfree_do_rcu(_p); \
+ } while (0)
+
+#define au_kfree_do_sz_test(sz) (sz >= sizeof(struct rcu_head))
@@ -25484,8 +25666,8 @@ diff -urN /usr/share/empty/fs/aufs/module.h linux/fs/aufs/module.h
+#endif /* __AUFS_MODULE_H__ */
diff -urN /usr/share/empty/fs/aufs/mvdown.c linux/fs/aufs/mvdown.c
--- /usr/share/empty/fs/aufs/mvdown.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/mvdown.c 2026-10-31 10:10:27.699999999 +0100
-@@ -0,0 +1,700 @@
++++ linux/fs/aufs/mvdown.c 2026-11-24 08:12:40.879999999 +0100
+@@ -0,0 +1,697 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2011-2025 Junjiro R. Okajima
@@ -26151,9 +26333,7 @@ diff -urN /usr/share/empty/fs/aufs/mvdown.c linux/fs/aufs/mvdown.c
+ }
+
+ inode_lock_nested(inode, I_MUTEX_CHILD);
-+ err = aufs_read_lock(dentry, AuLock_DW | AuLock_FLUSH | AuLock_NOPLMW);
-+ if (unlikely(err))
-+ goto out_inode;
++ aufs_read_lock(dentry, AuLock_DW | AuLock_FLUSH | AuLock_NOPLMW);
+
+ di_write_lock_parent(args->parent);
+ err = au_mvd_args(dmsg, args);
@@ -26173,7 +26353,6 @@ diff -urN /usr/share/empty/fs/aufs/mvdown.c linux/fs/aufs/mvdown.c
+out_parent:
+ di_write_unlock(args->parent);
+ aufs_read_unlock(dentry, AuLock_DW);
-+out_inode:
+ inode_unlock(inode);
+out_dir:
+ inode_unlock(args->dir);
@@ -26188,8 +26367,8 @@ diff -urN /usr/share/empty/fs/aufs/mvdown.c linux/fs/aufs/mvdown.c
+}
diff -urN /usr/share/empty/fs/aufs/opts.c linux/fs/aufs/opts.c
--- /usr/share/empty/fs/aufs/opts.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/opts.c 2026-10-31 10:10:27.699999999 +0100
-@@ -0,0 +1,1030 @@
++++ linux/fs/aufs/opts.c 2026-11-24 08:12:40.879999999 +0100
+@@ -0,0 +1,1045 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -26920,6 +27099,44 @@ diff -urN /usr/share/empty/fs/aufs/opts.c linux/fs/aufs/opts.c
+ return err;
+}
+
++/*
++ * whether the whiteout bases of @br need no (re-)initialization.
++ * called with br->br_wbr (if any) read-locked.
++ */
++static unsigned char au_opts_verify_skip(struct au_branch *br,
++ unsigned char do_plink)
++{
++ unsigned char skip;
++ struct au_wbr *wbr = br->br_wbr;
++
++ if (!au_br_writable(br->br_perm)) {
++ skip = (!wbr
++ || (!wbr->wbr_whbase
++ && !wbr->wbr_plink
++ && !wbr->wbr_orph));
++ } else if (!au_br_wh_linkable(br->br_perm)) {
++ /* skip = (!br->br_whbase && !br->br_orph); */
++ skip = (!wbr || !wbr->wbr_whbase);
++ if (skip && wbr) {
++ if (do_plink)
++ skip = !!wbr->wbr_plink;
++ else
++ skip = !wbr->wbr_plink;
++ }
++ } else {
++ /* skip = (br->br_whbase && br->br_ohph); */
++ skip = (wbr && wbr->wbr_whbase);
++ if (skip) {
++ if (do_plink)
++ skip = !!wbr->wbr_plink;
++ else
++ skip = !wbr->wbr_plink;
++ }
++ }
++
++ return skip;
++}
++
+int au_opts_verify(struct super_block *sb, unsigned long sb_flags,
+ unsigned int pending)
+{
@@ -26975,38 +27192,14 @@ diff -urN /usr/share/empty/fs/aufs/opts.c linux/fs/aufs/opts.c
+ br->br_perm &= ~AuBrAttr_ICEX_SEC;
+#endif
+
-+ do_free = 0;
+ wbr = br->br_wbr;
-+ if (wbr)
++ do_free = !au_br_writable(br->br_perm) && wbr;
++ if (wbr) {
+ wbr_wh_read_lock(wbr);
-+
-+ if (!au_br_writable(br->br_perm)) {
-+ do_free = !!wbr;
-+ skip = (!wbr
-+ || (!wbr->wbr_whbase
-+ && !wbr->wbr_plink
-+ && !wbr->wbr_orph));
-+ } else if (!au_br_wh_linkable(br->br_perm)) {
-+ /* skip = (!br->br_whbase && !br->br_orph); */
-+ skip = (!wbr || !wbr->wbr_whbase);
-+ if (skip && wbr) {
-+ if (do_plink)
-+ skip = !!wbr->wbr_plink;
-+ else
-+ skip = !wbr->wbr_plink;
-+ }
-+ } else {
-+ /* skip = (br->br_whbase && br->br_ohph); */
-+ skip = (wbr && wbr->wbr_whbase);
-+ if (skip) {
-+ if (do_plink)
-+ skip = !!wbr->wbr_plink;
-+ else
-+ skip = !wbr->wbr_plink;
-+ }
-+ }
-+ if (wbr)
++ skip = au_opts_verify_skip(br, do_plink);
+ wbr_wh_read_unlock(wbr);
++ } else
++ skip = au_opts_verify_skip(br, do_plink);
+
+ if (can_no_dreval) {
+ dentry = br->br_path.dentry;
@@ -27027,11 +27220,12 @@ diff -urN /usr/share/empty/fs/aufs/opts.c linux/fs/aufs/opts.c
+
+ hdir = au_hi(dir, bindex);
+ au_hn_inode_lock_nested(hdir, AuLsc_I_PARENT);
-+ if (wbr)
++ if (wbr) {
+ wbr_wh_write_lock(wbr);
-+ err = au_wh_init(br, sb);
-+ if (wbr)
++ err = au_wh_init(br, sb);
+ wbr_wh_write_unlock(wbr);
++ } else
++ err = au_wh_init(br, sb);
+ au_hn_inode_unlock(hdir);
+
+ if (!err && do_free) {
@@ -27222,7 +27416,7 @@ diff -urN /usr/share/empty/fs/aufs/opts.c linux/fs/aufs/opts.c
+}
diff -urN /usr/share/empty/fs/aufs/opts.h linux/fs/aufs/opts.h
--- /usr/share/empty/fs/aufs/opts.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/opts.h 2026-10-31 10:10:27.699999999 +0100
++++ linux/fs/aufs/opts.h 2026-11-24 08:12:40.879999999 +0100
@@ -0,0 +1,264 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
@@ -27490,8 +27684,8 @@ diff -urN /usr/share/empty/fs/aufs/opts.h linux/fs/aufs/opts.h
+#endif /* __AUFS_OPTS_H__ */
diff -urN /usr/share/empty/fs/aufs/plink.c linux/fs/aufs/plink.c
--- /usr/share/empty/fs/aufs/plink.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/plink.c 2026-10-31 10:10:27.699999999 +0100
-@@ -0,0 +1,508 @@
++++ linux/fs/aufs/plink.c 2026-11-24 08:12:40.879999999 +0100
+@@ -0,0 +1,501 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -27572,19 +27766,12 @@ diff -urN /usr/share/empty/fs/aufs/plink.c linux/fs/aufs/plink.c
+ }
+ rcu_read_unlock();
+
-+ if (au_ftest_lock(flags, NOPLMW)) {
-+ /* if there is no i_mutex lock in VFS, we don't need to wait */
-+ /* AuDebugOn(!lockdep_depth(current)); */
-+ while (sbi->si_plink_maint_pid) {
-+ si_read_unlock(sb);
-+ /* gave up wake_up_bit() */
-+ wait_event(sbi->si_plink_wq, !sbi->si_plink_maint_pid);
-+
-+ if (au_ftest_lock(flags, FLUSH))
-+ au_nwt_flush(&sbi->si_nowait);
-+ si_noflush_read_lock(sb);
-+ }
-+ } else if (au_ftest_lock(flags, NOPLM)) {
++ /*
++ * Another process is maintaining the pseudo-links. Only report it;
++ * waiting (AuLock_NOPLMW) is done by si_{read,write}_lock(), which
++ * know whether si_rwsem is held shared or exclusive.
++ */
++ if (au_ftest_lock(flags, NOPLMW) || au_ftest_lock(flags, NOPLM)) {
+ AuDbg("ppid %d, pid %d\n", ppid, pid);
+ err = -EAGAIN;
+ }
@@ -28002,7 +28189,7 @@ diff -urN /usr/share/empty/fs/aufs/plink.c linux/fs/aufs/plink.c
+}
diff -urN /usr/share/empty/fs/aufs/poll.c linux/fs/aufs/poll.c
--- /usr/share/empty/fs/aufs/poll.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/poll.c 2026-10-31 10:10:27.699999999 +0100
++++ linux/fs/aufs/poll.c 2026-11-24 08:12:40.879999999 +0100
@@ -0,0 +1,51 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -28040,7 +28227,7 @@ diff -urN /usr/share/empty/fs/aufs/poll.c linux/fs/aufs/poll.c
+ sb = file->f_path.dentry->d_sb;
+ si_read_lock(sb, AuLock_FLUSH | AuLock_NOPLMW);
+
-+ h_file = au_read_pre(file, /*keep_fi*/0, /*lsc*/0);
++ h_file = au_read_pre(file, /*lsc*/0);
+ if (IS_ERR(h_file)) {
+ AuDbg("h_file %ld\n", PTR_ERR(h_file));
+ goto out;
@@ -28057,7 +28244,7 @@ diff -urN /usr/share/empty/fs/aufs/poll.c linux/fs/aufs/poll.c
+}
diff -urN /usr/share/empty/fs/aufs/posix_acl.c linux/fs/aufs/posix_acl.c
--- /usr/share/empty/fs/aufs/posix_acl.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/posix_acl.c 2026-10-31 10:10:27.699999999 +0100
++++ linux/fs/aufs/posix_acl.c 2026-11-24 08:12:40.879999999 +0100
@@ -0,0 +1,108 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -28169,7 +28356,7 @@ diff -urN /usr/share/empty/fs/aufs/posix_acl.c linux/fs/aufs/posix_acl.c
+}
diff -urN /usr/share/empty/fs/aufs/procfs.c linux/fs/aufs/procfs.c
--- /usr/share/empty/fs/aufs/procfs.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/procfs.c 2026-10-31 10:10:27.699999999 +0100
++++ linux/fs/aufs/procfs.c 2026-11-24 08:12:40.879999999 +0100
@@ -0,0 +1,168 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -28341,7 +28528,7 @@ diff -urN /usr/share/empty/fs/aufs/procfs.c linux/fs/aufs/procfs.c
+}
diff -urN /usr/share/empty/fs/aufs/rdu.c linux/fs/aufs/rdu.c
--- /usr/share/empty/fs/aufs/rdu.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/rdu.c 2026-10-31 10:10:27.699999999 +0100
++++ linux/fs/aufs/rdu.c 2026-11-24 08:12:40.879999999 +0100
@@ -0,0 +1,384 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -28729,7 +28916,7 @@ diff -urN /usr/share/empty/fs/aufs/rdu.c linux/fs/aufs/rdu.c
+#endif
diff -urN /usr/share/empty/fs/aufs/rwsem.h linux/fs/aufs/rwsem.h
--- /usr/share/empty/fs/aufs/rwsem.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/rwsem.h 2026-10-31 10:10:27.699999999 +0100
++++ linux/fs/aufs/rwsem.h 2026-11-24 08:12:40.879999999 +0100
@@ -0,0 +1,89 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
@@ -28822,8 +29009,8 @@ diff -urN /usr/share/empty/fs/aufs/rwsem.h linux/fs/aufs/rwsem.h
+#endif /* __AUFS_RWSEM_H__ */
diff -urN /usr/share/empty/fs/aufs/sbinfo.c linux/fs/aufs/sbinfo.c
--- /usr/share/empty/fs/aufs/sbinfo.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/sbinfo.c 2026-10-31 10:10:27.699999999 +0100
-@@ -0,0 +1,316 @@
++++ linux/fs/aufs/sbinfo.c 2026-11-24 08:12:40.879999999 +0100
+@@ -0,0 +1,456 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -29024,14 +29211,73 @@ diff -urN /usr/share/empty/fs/aufs/sbinfo.c linux/fs/aufs/sbinfo.c
+/* ---------------------------------------------------------------------- */
+
+/* it is ok that new 'nwt' tasks are appended while we are sleeping */
-+int si_read_lock(struct super_block *sb, int flags)
++static void si_flush(struct super_block *sb, int flags)
+{
-+ int err;
-+
-+ err = 0;
+ if (au_ftest_lock(flags, FLUSH))
+ au_nwt_flush(&au_sbi(sb)->si_nowait);
++}
++
++/* wait for the pseudo-link maintainer to leave, si_rwsem not held */
++static void si_plink_maint_wait(struct super_block *sb, int flags)
++{
++ struct au_sbinfo *sbi = au_sbi(sb);
+
++ /* if there is no i_mutex lock in VFS, we don't need to wait */
++ /* AuDebugOn(!lockdep_depth(current)); */
++
++ /* gave up wake_up_bit() */
++ wait_event(sbi->si_plink_wq, !sbi->si_plink_maint_pid);
++ si_flush(sb, flags);
++}
++
++/*
++ * Never fails. With AuLock_NOPLMW, sleeps (with si_rwsem released) while
++ * another process maintains the pseudo-links. The si_read_lock() macro
++ * calls do_si_read_lock_noplm() instead for AuLock_NOPLM.
++ */
++void do_si_read_lock(struct super_block *sb, int flags)
++{
++ AuDebugOn(au_ftest_lock(flags, NOPLM));
++
++ si_flush(sb, flags);
++ si_noflush_read_lock(sb);
++ if (!au_ftest_lock(flags, NOPLMW))
++ return;
++ while (au_plink_maint(sb, flags)) {
++ si_read_unlock(sb);
++ si_plink_maint_wait(sb, flags);
++ si_noflush_read_lock(sb);
++ }
++}
++
++void do_si_write_lock(struct super_block *sb, int flags)
++{
++ AuDebugOn(au_ftest_lock(flags, NOPLM));
++
++ si_flush(sb, flags);
++ /* au_debug_on(); AuDbgSleep(5); au_debug_off(); */
++ si_noflush_write_lock(sb);
++ /* pr_info("here\n"); */
++ if (!au_ftest_lock(flags, NOPLMW))
++ return;
++ while (au_plink_maint(sb, flags)) {
++ si_write_unlock(sb);
++ si_plink_maint_wait(sb, flags);
++ si_noflush_write_lock(sb);
++ }
++}
++
++/*
++ * @flags must contain AuLock_NOPLM. Returns -EAGAIN, with si_rwsem NOT
++ * held, if another process maintains the pseudo-links; 0 with it held.
++ */
++int do_si_read_lock_noplm(struct super_block *sb, int flags)
++{
++ int err;
++
++ AuDebugOn(!au_ftest_lock(flags, NOPLM));
++
++ si_flush(sb, flags);
+ si_noflush_read_lock(sb);
+ err = au_plink_maint(sb, flags);
+ if (unlikely(err))
@@ -29040,13 +29286,13 @@ diff -urN /usr/share/empty/fs/aufs/sbinfo.c linux/fs/aufs/sbinfo.c
+ return err;
+}
+
-+int si_write_lock(struct super_block *sb, int flags)
++int do_si_write_lock_noplm(struct super_block *sb, int flags)
+{
+ int err;
+
-+ if (au_ftest_lock(flags, FLUSH))
-+ au_nwt_flush(&au_sbi(sb)->si_nowait);
++ AuDebugOn(!au_ftest_lock(flags, NOPLM));
+
++ si_flush(sb, flags);
+ si_noflush_write_lock(sb);
+ err = au_plink_maint(sb, flags);
+ if (unlikely(err))
@@ -29055,48 +29301,124 @@ diff -urN /usr/share/empty/fs/aufs/sbinfo.c linux/fs/aufs/sbinfo.c
+ return err;
+}
+
-+/* dentry and super_block lock. call at entry point */
-+int aufs_read_lock(struct dentry *dentry, int flags)
++/*
++ * dentry and super_block lock. call at entry point.
++ *
++ * Called through the aufs_read_{lock,unlock}() macros in super.h, which
++ * select one of these by @flags. do_aufs_read_lock{,_gen_noplm}()
++ * read-lock the dinfo and the _dw variants write-lock it. The _gen_noplm
++ * variants are for AuLock_GEN and/or AuLock_NOPLM and may fail, the others
++ * never fail.
++ */
++void do_aufs_read_lock(struct dentry *dentry, int flags)
+{
-+ int err;
-+ struct super_block *sb;
++ AuDebugOn(au_ftest_lock(flags, GEN) || au_ftest_lock(flags, NOPLM));
++ AuDebugOn(au_ftest_lock(flags, DW));
+
-+ sb = dentry->d_sb;
-+ err = si_read_lock(sb, flags);
-+ if (unlikely(err))
-+ goto out;
++ do_si_read_lock(dentry->d_sb, flags);
++ di_read_lock_child(dentry, flags);
++}
+
-+ if (au_ftest_lock(flags, DW))
-+ di_write_lock_child(dentry);
-+ else
-+ di_read_lock_child(dentry, flags);
++void do_aufs_read_lock_dw(struct dentry *dentry, int flags)
++{
++ AuDebugOn(au_ftest_lock(flags, GEN) || au_ftest_lock(flags, NOPLM));
++ AuDebugOn(!au_ftest_lock(flags, DW));
++
++ do_si_read_lock(dentry->d_sb, flags);
++ di_write_lock_child(dentry);
++}
++
++/* si_rwsem part of do_aufs_read_lock_gen_noplm{,_dw}() */
++static int aufs_si_read_lock_noplm(struct super_block *sb, int flags)
++{
++ if (au_ftest_lock(flags, NOPLM))
++ return do_si_read_lock_noplm(sb, flags);
++ do_si_read_lock(sb, flags);
++ return 0;
++}
++
++/* AuLock_GEN part of do_aufs_read_lock_gen_noplm{,_dw}(), with locks held */
++static int aufs_read_lock_test_gen(struct dentry *dentry, int flags)
++{
++ int err;
++ struct super_block *sb;
+
++ err = 0;
+ if (au_ftest_lock(flags, GEN)) {
++ sb = dentry->d_sb;
+ err = au_digen_test(dentry, au_sigen(sb));
+ if (!au_opt_test(au_mntflags(sb), UDBA_NONE))
+ AuDebugOn(!err && au_dbrange_test(dentry));
+ else if (!err)
+ err = au_dbrange_test(dentry);
-+ if (unlikely(err))
-+ aufs_read_unlock(dentry, flags);
+ }
+
++ return err;
++}
++
++/*
++ * Returns 0 with the locks held, or an error (generation mismatch, -EAGAIN
++ * for AuLock_NOPLM) with nothing held.
++ */
++int do_aufs_read_lock_gen_noplm(struct dentry *dentry, int flags)
++{
++ int err;
++
++ AuDebugOn(!au_ftest_lock(flags, GEN) && !au_ftest_lock(flags, NOPLM));
++ AuDebugOn(au_ftest_lock(flags, DW));
++
++ err = aufs_si_read_lock_noplm(dentry->d_sb, flags);
++ if (unlikely(err))
++ goto out;
++
++ di_read_lock_child(dentry, flags);
++ err = aufs_read_lock_test_gen(dentry, flags);
++ if (unlikely(err))
++ do_aufs_read_unlock(dentry, flags);
++
+out:
+ return err;
+}
+
-+void aufs_read_unlock(struct dentry *dentry, int flags)
++int do_aufs_read_lock_gen_noplm_dw(struct dentry *dentry, int flags)
+{
-+ if (au_ftest_lock(flags, DW))
-+ di_write_unlock(dentry);
-+ else
-+ di_read_unlock(dentry, flags);
++ int err;
++
++ AuDebugOn(!au_ftest_lock(flags, GEN) && !au_ftest_lock(flags, NOPLM));
++ AuDebugOn(!au_ftest_lock(flags, DW));
++
++ err = aufs_si_read_lock_noplm(dentry->d_sb, flags);
++ if (unlikely(err))
++ goto out;
++
++ di_write_lock_child(dentry);
++ err = aufs_read_lock_test_gen(dentry, flags);
++ if (unlikely(err))
++ do_aufs_read_unlock_dw(dentry, flags);
++
++out:
++ return err;
++}
++
++void do_aufs_read_unlock(struct dentry *dentry, int flags)
++{
++ AuDebugOn(au_ftest_lock(flags, DW));
++
++ di_read_unlock(dentry, flags);
++ si_read_unlock(dentry->d_sb);
++}
++
++void do_aufs_read_unlock_dw(struct dentry *dentry, int flags)
++{
++ AuDebugOn(!au_ftest_lock(flags, DW));
++
++ di_write_unlock(dentry);
+ si_read_unlock(dentry->d_sb);
+}
+
+void aufs_write_lock(struct dentry *dentry)
+{
-+ si_write_lock(dentry->d_sb, AuLock_FLUSH | AuLock_NOPLMW);
++ do_si_write_lock(dentry->d_sb, AuLock_FLUSH | AuLock_NOPLMW);
+ di_write_lock_child(dentry);
+}
+
@@ -29113,9 +29435,14 @@ diff -urN /usr/share/empty/fs/aufs/sbinfo.c linux/fs/aufs/sbinfo.c
+ struct super_block *sb;
+
+ sb = d1->d_sb;
-+ err = si_read_lock(sb, flags);
-+ if (unlikely(err))
-+ goto out;
++ if (au_ftest_lock(flags, NOPLM)) {
++ err = do_si_read_lock_noplm(sb, flags);
++ if (unlikely(err))
++ goto out;
++ } else {
++ err = 0;
++ do_si_read_lock(sb, flags);
++ }
+
+ di_write_lock2_child(d1, d2, au_ftest_lock(flags, DIRS));
+
@@ -29142,8 +29469,8 @@ diff -urN /usr/share/empty/fs/aufs/sbinfo.c linux/fs/aufs/sbinfo.c
+}
diff -urN /usr/share/empty/fs/aufs/super.c linux/fs/aufs/super.c
--- /usr/share/empty/fs/aufs/super.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/super.c 2026-10-31 10:10:27.699999999 +0100
-@@ -0,0 +1,872 @@
++++ linux/fs/aufs/super.c 2026-11-24 08:12:40.879999999 +0100
+@@ -0,0 +1,889 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -29960,6 +30287,23 @@ diff -urN /usr/share/empty/fs/aufs/super.c linux/fs/aufs/super.c
+
+/* ---------------------------------------------------------------------- */
+
++/* the first and the last part of aufs_kill_sb(), with si_rwsem held */
++static void au_kill_sb_fin(struct super_block *sb)
++{
++ struct au_sbinfo *sbinfo = au_sbi(sb);
++
++ au_fhsm_fin(sb);
++ if (sbinfo->si_wbr_create_ops->fin)
++ sbinfo->si_wbr_create_ops->fin(sb);
++}
++
++static void au_kill_sb_pclr(struct super_block *sb)
++{
++ if (au_opt_test(au_sbi(sb)->si_mntflags, PLINK))
++ au_plink_put(sb, /*verbose*/1);
++ au_xino_clr(sb);
++}
++
+static void aufs_kill_sb(struct super_block *sb)
+{
+ struct au_sbinfo *sbinfo;
@@ -29972,28 +30316,28 @@ diff -urN /usr/share/empty/fs/aufs/super.c linux/fs/aufs/super.c
+ au_sbilist_del(sb);
+
+ root = sb->s_root;
-+ if (root)
++ if (root) {
+ aufs_write_lock(root);
-+ else
-+ __si_write_lock(sb);
-+
-+ au_fhsm_fin(sb);
-+ if (sbinfo->si_wbr_create_ops->fin)
-+ sbinfo->si_wbr_create_ops->fin(sb);
-+ if (au_opt_test(sbinfo->si_mntflags, UDBA_HNOTIFY)) {
-+ au_opt_set_udba(sbinfo->si_mntflags, UDBA_NONE);
-+ au_remount_refresh(sb, /*do_idop*/0);
-+ }
-+ if (au_opt_test(sbinfo->si_mntflags, PLINK))
-+ au_plink_put(sb, /*verbose*/1);
-+ au_xino_clr(sb);
-+ if (root)
++ au_kill_sb_fin(sb);
++ if (au_opt_test(sbinfo->si_mntflags, UDBA_HNOTIFY)) {
++ au_opt_set_udba(sbinfo->si_mntflags, UDBA_NONE);
++ au_remount_refresh(sb, /*do_idop*/0);
++ }
++ au_kill_sb_pclr(sb);
+ au_dr_opt_flush(sb);
-+
-+ if (root)
+ aufs_write_unlock(root);
-+ else
++ } else {
++ /* the mount failed */
++ __si_write_lock(sb);
++ au_kill_sb_fin(sb);
++ /*
++ * au_remount_refresh() requires the root. udba=notify cannot
++ * be left set by a failed mount.
++ */
++ AuDebugOn(au_opt_test(sbinfo->si_mntflags, UDBA_HNOTIFY));
++ au_kill_sb_pclr(sb);
+ __si_write_unlock(sb);
++ }
+
+ sbinfo->si_sb = NULL;
+ au_nwt_flush(&sbinfo->si_nowait);
@@ -30018,8 +30362,8 @@ diff -urN /usr/share/empty/fs/aufs/super.c linux/fs/aufs/super.c
+};
diff -urN /usr/share/empty/fs/aufs/super.h linux/fs/aufs/super.h
--- /usr/share/empty/fs/aufs/super.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/super.h 2026-10-31 10:10:27.699999999 +0100
-@@ -0,0 +1,618 @@
++++ linux/fs/aufs/super.h 2026-11-24 08:12:40.879999999 +0100
+@@ -0,0 +1,692 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -30305,15 +30649,89 @@ diff -urN /usr/share/empty/fs/aufs/super.h linux/fs/aufs/super.h
+unsigned int au_sigen_inc(struct super_block *sb);
+aufs_bindex_t au_new_br_id(struct super_block *sb);
+
-+int si_read_lock(struct super_block *sb, int flags);
-+int si_write_lock(struct super_block *sb, int flags);
-+int aufs_read_lock(struct dentry *dentry, int flags);
-+void aufs_read_unlock(struct dentry *dentry, int flags);
++void do_si_read_lock(struct super_block *sb, int flags);
++void do_si_write_lock(struct super_block *sb, int flags);
++int do_si_read_lock_noplm(struct super_block *sb, int flags);
++int do_si_write_lock_noplm(struct super_block *sb, int flags);
++
++/*
++ * Entry points of si_rwsem. @flags must be a constant, which selects the
++ * function at compile time, so that each of them has a fixed contract:
++ * with AuLock_NOPLM it may fail with -EAGAIN and nothing held, otherwise
++ * it never fails.
++ */
++#define si_read_lock(__sb, __flags) ({ \
++ struct super_block *_sb = (__sb); \
++ const int _flags = (__flags); \
++ int _err = 0; \
++ \
++ BUILD_BUG_ON(!__builtin_constant_p(__flags)); \
++ if (au_ftest_lock(_flags, NOPLM)) \
++ _err = do_si_read_lock_noplm(_sb, _flags); \
++ else \
++ do_si_read_lock(_sb, _flags); \
++ _err; \
++})
++
++#define si_write_lock(__sb, __flags) ({ \
++ struct super_block *_sb = (__sb); \
++ const int _flags = (__flags); \
++ int _err = 0; \
++ \
++ BUILD_BUG_ON(!__builtin_constant_p(__flags)); \
++ if (au_ftest_lock(_flags, NOPLM)) \
++ _err = do_si_write_lock_noplm(_sb, _flags); \
++ else \
++ do_si_write_lock(_sb, _flags); \
++ _err; \
++})
++
++void do_aufs_read_lock(struct dentry *dentry, int flags);
++void do_aufs_read_lock_dw(struct dentry *dentry, int flags);
++int do_aufs_read_lock_gen_noplm(struct dentry *dentry, int flags);
++int do_aufs_read_lock_gen_noplm_dw(struct dentry *dentry, int flags);
++void do_aufs_read_unlock(struct dentry *dentry, int flags);
++void do_aufs_read_unlock_dw(struct dentry *dentry, int flags);
+void aufs_write_lock(struct dentry *dentry);
+void aufs_write_unlock(struct dentry *dentry);
+int aufs_read_and_write_lock2(struct dentry *d1, struct dentry *d2, int flags);
+void aufs_read_and_write_unlock2(struct dentry *d1, struct dentry *d2);
+
++/*
++ * Entry points of aufs_read_{lock,unlock}(). @flags must be a constant,
++ * which selects the function at compile time. AuLock_DW write-locks the
++ * dinfo instead of read-locking it. With AuLock_GEN or AuLock_NOPLM,
++ * aufs_read_lock() may fail with nothing held, otherwise it never fails.
++ */
++#define aufs_read_lock(__d, __flags) ({ \
++ struct dentry *_d = (__d); \
++ const int _flags = (__flags); \
++ int _err = 0; \
++ \
++ BUILD_BUG_ON(!__builtin_constant_p(__flags)); \
++ if (au_ftest_lock(_flags, GEN) || au_ftest_lock(_flags, NOPLM)) { \
++ if (au_ftest_lock(_flags, DW)) \
++ _err = do_aufs_read_lock_gen_noplm_dw(_d, _flags); \
++ else \
++ _err = do_aufs_read_lock_gen_noplm(_d, _flags); \
++ } else if (au_ftest_lock(_flags, DW)) \
++ do_aufs_read_lock_dw(_d, _flags); \
++ else \
++ do_aufs_read_lock(_d, _flags); \
++ _err; \
++})
++
++#define aufs_read_unlock(__d, __flags) do { \
++ struct dentry *_d = (__d); \
++ const int _flags = (__flags); \
++ \
++ BUILD_BUG_ON(!__builtin_constant_p(__flags)); \
++ if (au_ftest_lock(_flags, DW)) \
++ do_aufs_read_unlock_dw(_d, _flags); \
++ else \
++ do_aufs_read_unlock(_d, _flags); \
++} while (0)
++
+/* wbr_policy.c */
+extern struct au_wbr_copyup_operations au_wbr_copyup_ops[];
+extern struct au_wbr_create_operations au_wbr_create_ops[];
@@ -30640,7 +31058,7 @@ diff -urN /usr/share/empty/fs/aufs/super.h linux/fs/aufs/super.h
+#endif /* __AUFS_SUPER_H__ */
diff -urN /usr/share/empty/fs/aufs/sysaufs.c linux/fs/aufs/sysaufs.c
--- /usr/share/empty/fs/aufs/sysaufs.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/sysaufs.c 2026-10-31 10:10:27.699999999 +0100
++++ linux/fs/aufs/sysaufs.c 2026-11-24 08:12:40.879999999 +0100
@@ -0,0 +1,94 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -30738,7 +31156,7 @@ diff -urN /usr/share/empty/fs/aufs/sysaufs.c linux/fs/aufs/sysaufs.c
+}
diff -urN /usr/share/empty/fs/aufs/sysaufs.h linux/fs/aufs/sysaufs.h
--- /usr/share/empty/fs/aufs/sysaufs.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/sysaufs.h 2026-10-31 10:10:27.699999999 +0100
++++ linux/fs/aufs/sysaufs.h 2026-11-24 08:12:40.879999999 +0100
@@ -0,0 +1,102 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
@@ -30844,7 +31262,7 @@ diff -urN /usr/share/empty/fs/aufs/sysaufs.h linux/fs/aufs/sysaufs.h
+#endif /* __SYSAUFS_H__ */
diff -urN /usr/share/empty/fs/aufs/sysfs.c linux/fs/aufs/sysfs.c
--- /usr/share/empty/fs/aufs/sysfs.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/sysfs.c 2026-10-31 10:10:27.699999999 +0100
++++ linux/fs/aufs/sysfs.c 2026-11-24 08:12:40.879999999 +0100
@@ -0,0 +1,374 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -31222,7 +31640,7 @@ diff -urN /usr/share/empty/fs/aufs/sysfs.c linux/fs/aufs/sysfs.c
+}
diff -urN /usr/share/empty/fs/aufs/sysrq.c linux/fs/aufs/sysrq.c
--- /usr/share/empty/fs/aufs/sysrq.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/sysrq.c 2026-10-31 10:10:27.699999999 +0100
++++ linux/fs/aufs/sysrq.c 2026-11-24 08:12:40.879999999 +0100
@@ -0,0 +1,157 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -31383,7 +31801,7 @@ diff -urN /usr/share/empty/fs/aufs/sysrq.c linux/fs/aufs/sysrq.c
+}
diff -urN /usr/share/empty/fs/aufs/vdir.c linux/fs/aufs/vdir.c
--- /usr/share/empty/fs/aufs/vdir.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/vdir.c 2026-10-31 10:10:27.703333333 +0100
++++ linux/fs/aufs/vdir.c 2026-11-24 08:12:40.879999999 +0100
@@ -0,0 +1,896 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -32283,7 +32701,7 @@ diff -urN /usr/share/empty/fs/aufs/vdir.c linux/fs/aufs/vdir.c
+}
diff -urN /usr/share/empty/fs/aufs/vfsub.c linux/fs/aufs/vfsub.c
--- /usr/share/empty/fs/aufs/vfsub.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/vfsub.c 2026-10-31 10:10:27.703333333 +0100
++++ linux/fs/aufs/vfsub.c 2026-11-24 08:12:40.879999999 +0100
@@ -0,0 +1,1007 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -33294,7 +33712,7 @@ diff -urN /usr/share/empty/fs/aufs/vfsub.c linux/fs/aufs/vfsub.c
+}
diff -urN /usr/share/empty/fs/aufs/vfsub.h linux/fs/aufs/vfsub.h
--- /usr/share/empty/fs/aufs/vfsub.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/vfsub.h 2026-10-31 10:10:27.703333333 +0100
++++ linux/fs/aufs/vfsub.h 2026-11-24 08:12:40.879999999 +0100
@@ -0,0 +1,436 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
@@ -33734,7 +34152,7 @@ diff -urN /usr/share/empty/fs/aufs/vfsub.h linux/fs/aufs/vfsub.h
+#endif /* __AUFS_VFSUB_H__ */
diff -urN /usr/share/empty/fs/aufs/wbr_policy.c linux/fs/aufs/wbr_policy.c
--- /usr/share/empty/fs/aufs/wbr_policy.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/wbr_policy.c 2026-10-31 10:10:27.703333333 +0100
++++ linux/fs/aufs/wbr_policy.c 2026-11-24 08:12:40.879999999 +0100
@@ -0,0 +1,841 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -34579,7 +34997,7 @@ diff -urN /usr/share/empty/fs/aufs/wbr_policy.c linux/fs/aufs/wbr_policy.c
+};
diff -urN /usr/share/empty/fs/aufs/whout.c linux/fs/aufs/whout.c
--- /usr/share/empty/fs/aufs/whout.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/whout.c 2026-10-31 10:10:27.703333333 +0100
++++ linux/fs/aufs/whout.c 2026-11-24 08:12:40.883333333 +0100
@@ -0,0 +1,1073 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -35071,6 +35489,7 @@ diff -urN /usr/share/empty/fs/aufs/whout.c linux/fs/aufs/whout.c
+ if (wbr)
+ WbrWhMustWriteLock(wbr);
+
++ need_drop = 0;
+ for (i = 0; i < AuBrWh_Last; i++) {
+ /* doubly whiteouted */
+ struct dentry *d;
@@ -35092,7 +35511,6 @@ diff -urN /usr/share/empty/fs/aufs/whout.c linux/fs/aufs/whout.c
+ wbr->wbr_wh[i] = NULL;
+ }
+
-+ need_drop = 0;
+ err = vfsub_mnt_want_write(path.mnt);
+ if (unlikely(err))
+ goto out_err;
@@ -35656,7 +36074,7 @@ diff -urN /usr/share/empty/fs/aufs/whout.c linux/fs/aufs/whout.c
+}
diff -urN /usr/share/empty/fs/aufs/whout.h linux/fs/aufs/whout.h
--- /usr/share/empty/fs/aufs/whout.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/whout.h 2026-10-31 10:10:27.703333333 +0100
++++ linux/fs/aufs/whout.h 2026-11-24 08:12:40.883333333 +0100
@@ -0,0 +1,87 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
@@ -35747,7 +36165,7 @@ diff -urN /usr/share/empty/fs/aufs/whout.h linux/fs/aufs/whout.h
+#endif /* __AUFS_WHOUT_H__ */
diff -urN /usr/share/empty/fs/aufs/wkq.c linux/fs/aufs/wkq.c
--- /usr/share/empty/fs/aufs/wkq.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/wkq.c 2026-10-31 10:10:27.703333333 +0100
++++ linux/fs/aufs/wkq.c 2026-11-24 08:12:40.883333333 +0100
@@ -0,0 +1,370 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
@@ -36121,7 +36539,7 @@ diff -urN /usr/share/empty/fs/aufs/wkq.c linux/fs/aufs/wkq.c
+}
diff -urN /usr/share/empty/fs/aufs/wkq.h linux/fs/aufs/wkq.h
--- /usr/share/empty/fs/aufs/wkq.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/wkq.h 2026-10-31 10:10:27.703333333 +0100
++++ linux/fs/aufs/wkq.h 2026-11-24 08:12:40.883333333 +0100
@@ -0,0 +1,89 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
@@ -36214,8 +36632,8 @@ diff -urN /usr/share/empty/fs/aufs/wkq.h linux/fs/aufs/wkq.h
+#endif /* __AUFS_WKQ_H__ */
diff -urN /usr/share/empty/fs/aufs/xattr.c linux/fs/aufs/xattr.c
--- /usr/share/empty/fs/aufs/xattr.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/xattr.c 2026-10-31 10:10:27.703333333 +0100
-@@ -0,0 +1,360 @@
++++ linux/fs/aufs/xattr.c 2026-11-24 08:12:40.883333333 +0100
+@@ -0,0 +1,371 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2014-2025 Junjiro R. Okajima
@@ -36450,48 +36868,59 @@ diff -urN /usr/share/empty/fs/aufs/xattr.c linux/fs/aufs/xattr.c
+ } u;
+};
+
-+static ssize_t au_lgxattr(struct dentry *dentry, struct inode *inode,
-+ struct au_lgxattr *arg)
++/* the caller holds the dinfo lock of the dentry @h_path came from */
++static ssize_t au_do_lgxattr(struct path *h_path, struct au_lgxattr *arg)
+{
+ ssize_t err;
-+ int reenter;
-+ struct path h_path;
-+ struct super_block *sb;
+
-+ sb = dentry->d_sb;
-+ reenter = au_smack_reentering(sb);
-+ if (!reenter) {
-+ err = si_read_lock(sb, AuLock_FLUSH | AuLock_NOPLM);
-+ if (unlikely(err))
-+ goto out;
-+ }
-+ err = au_h_path_getattr(dentry, inode, /*force*/1, &h_path, reenter);
-+ if (unlikely(err))
-+ goto out_si;
-+ if (unlikely(!h_path.dentry))
++ err = 0;
++ if (unlikely(!h_path->dentry))
+ /* illegally overlapped or something */
-+ goto out_di; /* pretending success */
++ goto out; /* pretending success */
+
+ /* always topmost entry only */
+ switch (arg->type) {
+ case AU_XATTR_LIST:
-+ err = vfs_listxattr(h_path.dentry,
++ err = vfs_listxattr(h_path->dentry,
+ arg->u.list.list, arg->u.list.size);
+ break;
+ case AU_XATTR_GET:
-+ AuDebugOn(d_is_negative(h_path.dentry));
-+ err = vfs_getxattr(mnt_idmap(h_path.mnt), h_path.dentry,
++ AuDebugOn(d_is_negative(h_path->dentry));
++ err = vfs_getxattr(mnt_idmap(h_path->mnt), h_path->dentry,
+ arg->u.get.name, arg->u.get.value,
+ arg->u.get.size);
+ break;
+ }
+
-+out_di:
-+ if (!reenter)
++out:
++ return err;
++}
++
++static ssize_t au_lgxattr(struct dentry *dentry, struct inode *inode,
++ struct au_lgxattr *arg)
++{
++ ssize_t err;
++ struct path h_path;
++ struct super_block *sb;
++
++ sb = dentry->d_sb;
++ if (au_smack_reentering(sb)) {
++ /* locks held by the aufs operation we re-entered from */
++ au_h_path_getattr_locked(dentry, inode, /*force*/1, &h_path);
++ err = au_do_lgxattr(&h_path, arg);
++ goto out;
++ }
++
++ err = si_read_lock(sb, AuLock_FLUSH | AuLock_NOPLM);
++ if (unlikely(err))
++ goto out;
++ err = au_h_path_getattr(dentry, inode, /*force*/1, &h_path);
++ if (!err) {
++ err = au_do_lgxattr(&h_path, arg);
+ di_read_unlock(dentry, AuLock_IR);
-+out_si:
-+ if (!reenter)
-+ si_read_unlock(sb);
++ }
++ si_read_unlock(sb);
++
+out:
+ AuTraceErr(err);
+ return err;
@@ -36578,8 +37007,8 @@ diff -urN /usr/share/empty/fs/aufs/xattr.c linux/fs/aufs/xattr.c
+}
diff -urN /usr/share/empty/fs/aufs/xino.c linux/fs/aufs/xino.c
--- /usr/share/empty/fs/aufs/xino.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/xino.c 2026-10-31 10:10:27.703333333 +0100
-@@ -0,0 +1,1927 @@
++++ linux/fs/aufs/xino.c 2026-11-24 08:12:40.883333333 +0100
+@@ -0,0 +1,1940 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2005-2025 Junjiro R. Okajima
@@ -36739,6 +37168,20 @@ diff -urN /usr/share/empty/fs/aufs/xino.c linux/fs/aufs/xino.c
+
+/* ---------------------------------------------------------------------- */
+
++/* open @fpath, and on success dget and lock its parent dir */
++static struct file *au_xino_do_open(char *fpath, struct dentry **h_parent)
++{
++ struct file *file;
++
++ file = vfsub_filp_open(fpath, O_RDWR | O_CREAT | O_EXCL | O_LARGEFILE
++ /* | __FMODE_NONOTIFY */,
++ 0666);
++ if (!IS_ERR(file))
++ *h_parent = au_dget_parent_lock(file->f_path.dentry,
++ AuLsc_I_PARENT);
++ return file;
++}
++
+/*
+ * create and set a new xino file
+ */
@@ -36756,14 +37199,14 @@ diff -urN /usr/share/empty/fs/aufs/xino.c linux/fs/aufs/xino.c
+ * hnotify is disabled so we have no notify events to ignore.
+ * when a user specified the xino, we cannot get au_hdir to be ignored.
+ */
-+ if (!wbrtop)
++ if (wbrtop)
++ file = au_xino_do_open(fpath, &h_parent);
++ else {
+ mutex_lock(&mtx);
-+ file = vfsub_filp_open(fpath, O_RDWR | O_CREAT | O_EXCL | O_LARGEFILE
-+ /* | __FMODE_NONOTIFY */,
-+ 0666);
++ file = au_xino_do_open(fpath, &h_parent);
++ mutex_unlock(&mtx);
++ }
+ if (IS_ERR(file)) {
-+ if (!wbrtop)
-+ mutex_unlock(&mtx);
+ if (!silent)
+ pr_err("open %s(%ld)\n", fpath, PTR_ERR(file));
+ return file;
@@ -36772,9 +37215,6 @@ diff -urN /usr/share/empty/fs/aufs/xino.c linux/fs/aufs/xino.c
+ /* keep file count */
+ err = 0;
+ d = file->f_path.dentry;
-+ h_parent = au_dget_parent_lock(d, AuLsc_I_PARENT);
-+ if (!wbrtop)
-+ mutex_unlock(&mtx);
+ h_dir = d_inode(h_parent);
+ inode = file_inode(file);
+ if (vfsub_inode_nlink(inode, AU_I_BRANCH)) {
@@ -36844,8 +37284,10 @@ diff -urN /usr/share/empty/fs/aufs/xino.c linux/fs/aufs/xino.c
+
+ path.mnt = base->mnt;
+ err = vfsub_mnt_want_write(path.mnt);
-+ if (unlikely(err))
++ if (unlikely(err)) {
++ file = ERR_PTR(err);
+ goto out_dput;
++ }
+
+ err = vfs_create(mnt_idmap(base->mnt), dir, path.dentry, 0666, NULL);
+ if (unlikely(err)) {
@@ -38509,7 +38951,7 @@ diff -urN /usr/share/empty/fs/aufs/xino.c linux/fs/aufs/xino.c
+}
diff -urN /usr/share/empty/include/uapi/linux/aufs_type.h linux/include/uapi/linux/aufs_type.h
--- /usr/share/empty/include/uapi/linux/aufs_type.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/include/uapi/linux/aufs_type.h 2026-10-31 10:10:27.703333333 +0100
++++ linux/include/uapi/linux/aufs_type.h 2026-11-24 08:12:40.887388981 +0100
@@ -0,0 +1,452 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
+/*
@@ -38553,7 +38995,7 @@ diff -urN /usr/share/empty/include/uapi/linux/aufs_type.h linux/include/uapi/lin
+#include <limits.h>
+#endif /* __KERNEL__ */
+
-+#define AUFS_VERSION "6.18-20260914"
++#define AUFS_VERSION "6.18-20261116"
+
+/* todo? move this to linux-2.6.19/include/magic.h */
+#define AUFS_SUPER_MAGIC ('a' << 24 | 'u' << 16 | 'f' << 8 | 's')
@@ -39771,11 +40213,11 @@ index 94e6e26568c5e..e4a2162a52d2b 100644
static int loop_clr_fd(struct loop_device *lo)
diff --git a/fs/aufs/f_op.c b/fs/aufs/f_op.c
-index 13ea9cbf0b75f..94ec74e10c120 100644
+index 5fa3d41cd6563..447059c678555 100644
--- a/fs/aufs/f_op.c
+++ b/fs/aufs/f_op.c
-@@ -326,7 +326,7 @@ static ssize_t aufs_read_iter(struct kiocb *kio, struct iov_iter *iov_iter)
- if (IS_ERR(h_file))
+@@ -342,7 +342,7 @@ static ssize_t aufs_read_iter(struct kiocb *kio, struct iov_iter *iov_iter)
+ if (unlikely(err))
goto out;
- if (au_test_loopback_kthread()) {
@@ -39830,7 +40272,7 @@ index 519efba31c700..ac701381da792 100644
#endif /* __KERNEL__ */
diff --git a/fs/aufs/super.c b/fs/aufs/super.c
-index 149b1e74fd798..18cdac3097df6 100644
+index 850d065395c17..92d15aa97c5b6 100644
--- a/fs/aufs/super.c
+++ b/fs/aufs/super.c
@@ -758,7 +758,10 @@ const struct super_operations aufs_sop = {
diff --git a/kernel-multiarch.config b/kernel-multiarch.config
index ead66336..26cd1796 100644
--- a/kernel-multiarch.config
+++ b/kernel-multiarch.config
@@ -10874,6 +10874,7 @@ RPMSG_VIRTIO all=m
#-
RTC_CLASS all=y
RTC_HCTOSYS all=y
+RTC_HCTOSYS_TIME32_LIMIT all=y
RTC_HCTOSYS_DEVICE all="rtc0"
RTC_SYSTOHC all=y
RTC_SYSTOHC_DEVICE all="rtc0"
@@ -11946,7 +11947,7 @@ SERIAL_8250_ACCENT alpha=m i386=m
SERIAL_8250_ASPEED_VUART arm=m arm64=m
SERIAL_8250_BOCA alpha=m i386=m
SERIAL_8250_EXAR_ST16C554 alpha=m i386=m
-SERIAL_8250_HUB6 alpha=m i386=m
+SERIAL_8250_HUB6 alpha=y i386=y
SERIAL_8250_PCI1XXXX all=m
SERIAL_8250_SHARE_IRQ all=y
SERIAL_8250_DETECT_IRQ all=y
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/kernel.git/commitdiff/a19985baf4da08e6e393d28b305ebdac8c7a3987
More information about the pld-cvs-commit
mailing list