Re: [PATCH] mm: perform all memfd seal checks in a single place

From: Lorenzo Stoakes
Date: Mon Dec 09 2024 - 05:12:02 EST


On Mon, Dec 09, 2024 at 11:59:22AM +0800, kernel test robot wrote:
> Hi Lorenzo,
>
> kernel test robot noticed the following build errors:

Thanks for the report, I did a silly typo for which I'll send a fix-patch.

>
> [auto build test ERROR on akpm-mm/mm-everything]
>
> url: https://github.com/intel-lab-lkp/linux/commits/Lorenzo-Stoakes/mm-perform-all-memfd-seal-checks-in-a-single-place/20241207-053020
> base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
> patch link: https://lore.kernel.org/r/20241206212846.210835-1-lorenzo.stoakes%40oracle.com
> patch subject: [PATCH] mm: perform all memfd seal checks in a single place
> config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20241207/202412070908.wNlwD8Sk-lkp@xxxxxxxxx/config)
> compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241207/202412070908.wNlwD8Sk-lkp@xxxxxxxxx/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@xxxxxxxxx>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202412070908.wNlwD8Sk-lkp@xxxxxxxxx/
>
> All errors (new ones prefixed by >>):
>
> >> ld.lld: error: duplicate symbol: memfd_check_seals_mmap
> >>> defined at gup.c
> >>> mm/gup.o:(memfd_check_seals_mmap) in archive vmlinux.a
> >>> defined at mmap.c
> >>> mm/mmap.o:(.text+0x0) in archive vmlinux.a
> --
> >> ld.lld: error: duplicate symbol: memfd_check_seals_mmap
> >>> defined at gup.c
> >>> mm/gup.o:(memfd_check_seals_mmap) in archive vmlinux.a
> >>> defined at secretmem.c
> >>> mm/secretmem.o:(.text+0x0) in archive vmlinux.a
> --
> >> ld.lld: error: duplicate symbol: memfd_check_seals_mmap
> >>> defined at gup.c
> >>> mm/gup.o:(memfd_check_seals_mmap) in archive vmlinux.a
> >>> defined at fcntl.c
> >>> fs/fcntl.o:(.text+0x0) in archive vmlinux.a
>
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki