linux-next: build failure after merge of the vfs-brauner tree
Subsystems (2)
Hi all,
After merging the vfs-brauner tree, today's linux-next build (x86_84 allnoconfig) failed like this:
x86_64-linux-gnu-ld: fs/coredump.o: in function `do_coredump':
coredump.c:(.text+0x1795): undefined reference to `sock_from_file'
x86_64-linux-gnu-ld: coredump.c:(.text+0x17a6): undefined reference to `sock_from_file'
x86_64-linux-gnu-ld: coredump.c:(.text+0x17b3): undefined reference to `kernel_sock_shutdown'
Caused by commit
997e88a74ed6 ("coredump: add coredump socket")
# CONFIG_NET is not set
I have applied the following hack for today to make it build.
From: Stephen Rothwell <[email protected]>
Date: Wed, 21 May 2025 20:41:32 +1000
Subject: [PATCH] hack for "coredump: add coredump socket" and !CONFIG_NET
--- fs/coredump.c | 4 ++++ 1 file changed, 4 insertions(+)
fs/coredump.c +4 -0
@@ -962,8 +962,10 @@ void do_coredump(const kernel_siginfo_t *siginfo)free_vma_snapshot (&cprm); } +#ifdef CONFIG_NET if (sock_from_file (cprm.file))kernel_sock_shutdown (sock_from_file (cprm.file),SHUT_WR ); +#endif /* * When core_pipe_limit is set we wait for the coredump server
@@ -975,6 +977,7 @@ void do_coredump(const kernel_siginfo_t *siginfo)case COREDUMP_PIPE :wait_for_dump_helpers (cprm.file);break ; +#ifdef CONFIG_NET case COREDUMP_SOCK : {/* * We use a simple read to wait for the coredump
@@ -985,6 +988,7 @@ void do_coredump(const kernel_siginfo_t *siginfo)__kernel_read (cprm.file, &(char ){0 },1 ,NULL ); break; } +#endif default :break ; }
Signature · 5 lines
2.47.2 -- Cheers, Stephen Rothwell
Christian Brauner
maintainerQuoted 10 lines · Stephen Rothwell
Hi all,
After merging the vfs-brauner tree, today's linux-next build (
x86_84allnoconfig) failed like this:x86_64-linux-gnu-ld:
fs/coredump.o: in function `do_coredump':
coredump.c:(.text+0x1795): undefined reference to `sock_from_file'
x86_64-linux-gnu-ld: coredump.c:(.text+0x17a6): undefined reference to `sock_from_file'
x86_64-linux-gnu-ld: coredump.c:(.text+0x17b3): undefined reference to `kernel_sock_shutdown'
Quoted 7 lines
Caused by commit
997e88a74ed6("coredump: add coredump socket")#
CONFIG_NETis not setI have applied the following hack for today to make it build.
Thanks, I fixed this a few days ago.