linux-next: build failure after merge of the nfsd tree
Subsystems (2)
Mark Brown
maintainerHi all,
After merging the nfsd tree, today's linux-next build (arm64 allnoconfig) failed like this:
ld: Unexpected GOT/PLT entries detected!
ld: Unexpected run-time procedure linkages detected!
ld: fs/xattr.o: in function `simple_xattr_obj_hashfn':
xattr.c:(.text+0x2f0): undefined reference to `xxh32'
ld: xattr.c:(.text+0x300): undefined reference to `xxh32'
ld: fs/xattr.o: in function `simple_xattr_hashfn':
xattr.c:(.text+0x340): undefined reference to `xxh32'
ld: xattr.c:(.text+0x350): undefined reference to `xxh32'
ld: fs/xattr.o: in function `simple_xattr_get':
xattr.c:(.text+0x2374): undefined reference to `xxh32'
ld: fs/xattr.o:xattr.c:(.text+0x2384): more undefined references to `xxh32' follow
I didn't figure out exactly which commit did this but I'm guessing it's one of these from the vfs-brauner tree that you've pulled in:
1cd9d2387c05a (simple_xattr: change interface to pass struct simple_xattrs **) 12e9e3cd03b5a (simpe_xattr: use per-sb cache)
I have used the version from next-20260522 instead.
Mark Brown
maintainerQuoted 6 lines · Mark Brown
After merging the nfsd tree, today's linux-next build (arm64 allnoconfig) failed like this:
ld: Unexpected GOT/PLT entries detected!
ld: Unexpected run-time procedure linkages detected!
Quoted 7 lines
I didn't figure out exactly which commit did this but I'm guessing it's one of these from the vfs-brauner tree that you've pulled in:
1cd9d2387c05a(simple_xattr: change interface to pass structsimple_xattrs**)12e9e3cd03b5a(simpe_xattr: use per-sb cache)I have used the version from next-20260522 instead.
Unsurprisingly the vfs-brauner tree also acquired the same build failure so I also held it back at next-20260522.
Christian Brauner
maintainerQuoted 11 lines · Mark Brown
Quoted 8 lines · Mark Brown
After merging the nfsd tree, today's linux-next build (arm64 allnoconfig) failed like this:
ld: Unexpected GOT/PLT entries detected!
ld: Unexpected run-time procedure linkages detected!I didn't figure out exactly which commit did this but I'm guessing it's one of these from the vfs-brauner tree that you've pulled in:
Quoted 7 lines
Quoted 4 lines
1cd9d2387c05a(simple_xattr: change interface to pass structsimple_xattrs**)12e9e3cd03b5a(simpe_xattr: use per-sb cache)I have used the version from next-20260522 instead.
Unsurprisingly the vfs-brauner tree also acquired the same build failure so I also held it back at next-20260522.
@Miklos, I'm switching this back to jhash() otherwise we have to default-select xxhash. See appended patch.
From 9393223b7e9fec1a73ebb5b572f6843d29d86456 Mon Sep 17 00:00:00 2001
From: Christian Brauner <[email protected]>
Date: Thu, 28 May 2026 10:23:26 +0200
Subject: [PATCH] fs/xattr: use jhash for simple_xattr hashing
After commit c81b88b8932b ("simpe_xattr: use per-sb cache") switched sx_hashfn() from jhash() to xxh32(), arm64 allnoconfig fails to link:
ld: fs/xattr.o: in function `simple_xattr_obj_hashfn':
xattr.c:(.text+0x2f0): undefined reference to `xxh32'
ld: fs/xattr.o: in function `simple_xattr_hashfn':
xattr.c:(.text+0x340): undefined reference to `xxh32'
ld: fs/xattr.o: in function `simple_xattr_get':
xattr.c:(.text+0x2374): undefined reference to `xxh32'
xxh32() lives in lib/xxhash.c, which is only built when CONFIG_XXHASH is selected. fs/xattr.o is built unconditionally via fs/Makefile's obj-y, so a caller from fs/xattr.c needs XXHASH wired in too.
The obvious fix is to add a hidden always-y config in fs/Kconfig that selects XXHASH. But that is the wrong fix for this code: xxh32() does not actually buy simple_xattr anything over jhash() at these key sizes.
xxh32's throughput advantage comes from a four-lane multiply-add main loop that processes 16 bytes per iteration, designed for the checksum- and compression-sized payloads xxhash was written for (lz4, zstd, btrfs csum, ksm page dedup). The fixed setup cost of priming those four lanes only amortizes once the input is well past one iteration. The keys hashed in sx_hashfn() are tiny - 8 bytes for the parent list_head pointer and ~10-30 bytes for typical xattr names like "user.foo" or "security.evm" - exactly the size regime where jhash equals or beats xxh32. Both pass SMHasher and have equivalent avalanche properties, so the rhashtable's collision rate is unchanged.
Switch sx_hashfn() back to jhash(). It is header-inline, has the same distribution quality on these inputs, matches the hash used by the original rhashtable-based infrastructure in commit b32c4a213698 ("xattr: add rhashtable-based simple_xattr infrastructure"), and avoids dragging lib/xxhash.o into every kernel build for a two-call hash composer that does not benefit from xxh32's bulk-hashing strengths.
--- fs/xattr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
fs/xattr.c +2 -2
@@ -23,7 +23,7 @@#include <linux/vmalloc.h> #include <linux/posix_acl_xattr.h> #include <linux/rhashtable.h> -#include <linux/xxhash.h> +#include <linux/jhash.h> #include <linux/uaccess.h>
@@ -1277,7 +1277,7 @@ struct simple_xattr *simple_xattr_alloc(const void *value, size_t size)static u32 sx_hashfn (const char *name,const struct list_head *parent,u32 seed) { -return xxh32 (name,strlen (name),xxh32 (&parent,sizeof (parent), seed)); +return jhash (name,strlen (name),jhash (&parent,sizeof (parent), seed)); }static u32 simple_xattr_hashfn (const void *data,u32 len,u32 seed)
Signature · 1 line
2.47.3
Quoted 2 lines · Christian Brauner
@Miklos, I'm switching this back to
jhash()otherwise we have to default-select xxhash. See appended patch.
Makes sense, thanks.
Miklos
Mark Brown
maintainerQuoted 7 lines · Christian Brauner
Quoted 2 lines · Mark Brown
Unsurprisingly the vfs-brauner tree also acquired the same build failure so I also held it back at next-20260522.
@Miklos, I'm switching this back to
jhash()otherwise we have to default-select xxhash. See appended patch.
This issue is still present today.
Quoted 11 lines · Mark Brown
Quoted 7 lines · Christian Brauner
Quoted 2 lines · Mark Brown
Unsurprisingly the vfs-brauner tree also acquired the same build failure so I also held it back at next-20260522.
@Miklos, I'm switching this back to
jhash()otherwise we have to default-select xxhash. See appended patch.This issue is still present today.
I'm going to resend the series today with various fixes, including this one.
Thanks,
Miklos