public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* linux-next: build failure after merge of the execve tree
@ 2023-10-03  2:35 Stephen Rothwell
  2023-10-04  2:50 ` Kees Cook
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2023-10-03  2:35 UTC (permalink / raw)
  To: Kees Cook
  Cc: Sebastian Ott, Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 909 bytes --]

Hi all,

After merging the execve tree, today's linux-next build (x86_64
allmodconfig) failed like this:

fs/binfmt_elf.c: In function 'load_elf_library':
fs/binfmt_elf.c:1323:37: error: unused variable 'len' [-Werror=unused-variable]
 1323 |         unsigned long elf_bss, bss, len;
      |                                     ^~~
fs/binfmt_elf.c:1323:32: error: unused variable 'bss' [-Werror=unused-variable]
 1323 |         unsigned long elf_bss, bss, len;
      |                                ^~~
fs/binfmt_elf.c:1323:23: error: unused variable 'elf_bss' [-Werror=unused-variable]
 1323 |         unsigned long elf_bss, bss, len;
      |                       ^~~~~~~
cc1: all warnings being treated as errors

Caused by commit

  f2a1e5fab9ae ("binfmt_elf: Use elf_load() for library")

I have used the execve tree from next-20230929 for today.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: linux-next: build failure after merge of the execve tree
  2023-10-03  2:35 linux-next: build failure after merge of the execve tree Stephen Rothwell
@ 2023-10-04  2:50 ` Kees Cook
  0 siblings, 0 replies; 3+ messages in thread
From: Kees Cook @ 2023-10-04  2:50 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Sebastian Ott, Linux Kernel Mailing List, Linux Next Mailing List

On Tue, Oct 03, 2023 at 01:35:22PM +1100, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the execve tree, today's linux-next build (x86_64
> allmodconfig) failed like this:
> 
> fs/binfmt_elf.c: In function 'load_elf_library':
> fs/binfmt_elf.c:1323:37: error: unused variable 'len' [-Werror=unused-variable]
>  1323 |         unsigned long elf_bss, bss, len;
>       |                                     ^~~
> fs/binfmt_elf.c:1323:32: error: unused variable 'bss' [-Werror=unused-variable]
>  1323 |         unsigned long elf_bss, bss, len;
>       |                                ^~~
> fs/binfmt_elf.c:1323:23: error: unused variable 'elf_bss' [-Werror=unused-variable]
>  1323 |         unsigned long elf_bss, bss, len;
>       |                       ^~~~~~~
> cc1: all warnings being treated as errors
> 
> Caused by commit
> 
>   f2a1e5fab9ae ("binfmt_elf: Use elf_load() for library")
> 
> I have used the execve tree from next-20230929 for today.

Whoops! Fixed now. Thanks. :)

-- 
Kees Cook

^ permalink raw reply	[flat|nested] 3+ messages in thread

* linux-next: build failure after merge of the execve tree
@ 2025-02-24  6:40 Stephen Rothwell
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Rothwell @ 2025-02-24  6:40 UTC (permalink / raw)
  To: Kees Cook, Christian Brauner
  Cc: Mateusz Guzik, Brian Mak, Linux Kernel Mailing List,
	Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 2193 bytes --]

Hi all,

After merging the execve tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:

fs/coredump.c: In function 'dump_vma_snapshot':
fs/coredump.c:1301:45: error: too few arguments to function 'get_dump_page'
 1301 |                         struct page *page = get_dump_page(addr);
      |                                             ^~~~~~~~~~~~~
In file included from fs/coredump.c:6:
include/linux/mm.h:2620:14: note: declared here
 2620 | struct page *get_dump_page(unsigned long addr, int *locked);
      |              ^~~~~~~~~~~~~

Caused by commit

  ff41385709f0 ("coredump: Only sort VMAs when truncating or core_sort_vma sysctl is set")

interacting with commit

  d6ff4c8f6522 ("fs: avoid mmap sem relocks when coredumping with many missing pages")

from the vfs-brauner tree.

I did the obvious (but probably wrong fix up below).

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Mon, 24 Feb 2025 17:27:25 +1100
Subject: [PATCH] fix up for "coredump: Only sort VMAs when truncating or
 core_sort_vma sysctl is set"

interacting with commit

  d6ff4c8f6522 ("fs: avoid mmap sem relocks when coredumping with many missing pages")

from the vfs-brauner tree.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 fs/coredump.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/coredump.c b/fs/coredump.c
index 723c1ae9d2f4..eb75cd30862d 100644
--- a/fs/coredump.c
+++ b/fs/coredump.c
@@ -1243,6 +1243,7 @@ static bool dump_vma_snapshot(struct coredump_params *cprm)
 	VMA_ITERATOR(vmi, mm, 0);
 	int i = 0;
 	size_t sparse_vma_dump_size = 0;
+	int locked = 0;
 
 	/*
 	 * Once the stack expansion code is fixed to not change VMA bounds
@@ -1298,7 +1299,7 @@ static bool dump_vma_snapshot(struct coredump_params *cprm)
 
 		/* Subtract zero pages from the sparse_vma_dump_size. */
 		for (addr = m->start; addr < m->start + m->dump_size; addr += PAGE_SIZE) {
-			struct page *page = get_dump_page(addr);
+			struct page *page = get_dump_page(addr, &locked);
 
 			if (!page)
 				sparse_vma_dump_size -= PAGE_SIZE;
-- 
2.45.2

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-02-24  6:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-03  2:35 linux-next: build failure after merge of the execve tree Stephen Rothwell
2023-10-04  2:50 ` Kees Cook
  -- strict thread matches above, loose matches on Subject: below --
2025-02-24  6:40 Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox