lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210191914.hggqzIxJ-lkp@intel.com>
Date:   Wed, 19 Oct 2022 23:16:08 +0800
From:   kernel test robot <lkp@...el.com>
To:     Christian Brauner <brauner@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [vfs-idmapping:fs.acl.rework 24/30] fs/internal.h:247: multiple
 definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/idmapping.git fs.acl.rework
head:   19e0dd91f0e42c373c5b21f86d50177c649fc9e1
commit: 53acedeb3eca8d69ac603bfe82601d2ae4f5bb94 [24/30] xattr: use posix acl api
config: um-x86_64_defconfig
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/vfs/idmapping.git/commit/?id=53acedeb3eca8d69ac603bfe82601d2ae4f5bb94
        git remote add vfs-idmapping https://git.kernel.org/pub/scm/linux/kernel/git/vfs/idmapping.git
        git fetch --no-tags vfs-idmapping fs.acl.rework
        git checkout 53acedeb3eca8d69ac603bfe82601d2ae4f5bb94
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=um SUBARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

All error/warnings (new ones prefixed by >>):

   In file included from block/bdev.c:30:
>> block/../fs/internal.h:243:5: warning: no previous prototype for 'do_set_acl' [-Wmissing-prototypes]
     243 | int do_set_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
         |     ^~~~~~~~~~
>> block/../fs/internal.h:248:9: warning: no previous prototype for 'do_get_acl' [-Wmissing-prototypes]
     248 | ssize_t do_get_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
         |         ^~~~~~~~~~
--
   In file included from io_uring/xattr.c:14:
>> io_uring/../fs/internal.h:243:5: warning: no previous prototype for 'do_set_acl' [-Wmissing-prototypes]
     243 | int do_set_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
         |     ^~~~~~~~~~
>> io_uring/../fs/internal.h:248:9: warning: no previous prototype for 'do_get_acl' [-Wmissing-prototypes]
     248 | ssize_t do_get_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
         |         ^~~~~~~~~~
--
   In file included from fs/iomap/buffered-io.c:22:
>> fs/iomap/../internal.h:243:5: warning: no previous prototype for 'do_set_acl' [-Wmissing-prototypes]
     243 | int do_set_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
         |     ^~~~~~~~~~
>> fs/iomap/../internal.h:248:9: warning: no previous prototype for 'do_get_acl' [-Wmissing-prototypes]
     248 | ssize_t do_get_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
         |         ^~~~~~~~~~
--
   In file included from fs/quota/dquot.c:83:
>> fs/quota/../internal.h:243:5: warning: no previous prototype for 'do_set_acl' [-Wmissing-prototypes]
     243 | int do_set_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
         |     ^~~~~~~~~~
>> fs/quota/../internal.h:248:9: warning: no previous prototype for 'do_get_acl' [-Wmissing-prototypes]
     248 | ssize_t do_get_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
         |         ^~~~~~~~~~
--
   ld: fs/read_write.o: in function `do_set_acl':
>> fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/read_write.o: in function `do_get_acl':
>> fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/file_table.o: in function `do_set_acl':
>> fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/file_table.o: in function `do_get_acl':
>> fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/super.o: in function `do_set_acl':
>> fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/super.o: in function `do_get_acl':
>> fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/char_dev.o: in function `do_set_acl':
>> fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/char_dev.o: in function `do_get_acl':
>> fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/stat.o: in function `do_set_acl':
>> fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/stat.o: in function `do_get_acl':
>> fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/exec.o: in function `do_set_acl':
>> fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/exec.o: in function `do_get_acl':
>> fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/pipe.o: in function `do_set_acl':
>> fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/pipe.o: in function `do_get_acl':
>> fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/namei.o: in function `do_set_acl':
>> fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/namei.o: in function `do_get_acl':
>> fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/ioctl.o: in function `do_set_acl':
>> fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/ioctl.o: in function `do_get_acl':
>> fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/dcache.o: in function `do_set_acl':
>> fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/dcache.o: in function `do_get_acl':
>> fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/inode.o: in function `do_set_acl':
   fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/inode.o: in function `do_get_acl':
   fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/file.o: in function `do_set_acl':
   fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/file.o: in function `do_get_acl':
   fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/namespace.o: in function `do_set_acl':
   fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/namespace.o: in function `do_get_acl':
   fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/xattr.o: in function `do_set_acl':
   fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/xattr.o: in function `do_get_acl':
   fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/libfs.o: in function `do_set_acl':
   fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/libfs.o: in function `do_get_acl':
   fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/fs-writeback.o: in function `do_set_acl':
   fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/fs-writeback.o: in function `do_get_acl':
   fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/pnode.o: in function `do_set_acl':
   fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/pnode.o: in function `do_get_acl':
   fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/splice.o: in function `do_set_acl':
   fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/splice.o: in function `do_get_acl':
   fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/sync.o: in function `do_set_acl':
   fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/sync.o: in function `do_get_acl':
   fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/fs_struct.o: in function `do_set_acl':
   fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/fs_struct.o: in function `do_get_acl':
   fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/statfs.o: in function `do_set_acl':
   fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/statfs.o: in function `do_get_acl':
   fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/fs_pin.o: in function `do_set_acl':
   fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/fs_pin.o: in function `do_get_acl':
   fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/nsfs.o: in function `do_set_acl':
   fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/nsfs.o: in function `do_get_acl':
   fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/fs_context.o: in function `do_set_acl':
   fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/fs_context.o: in function `do_get_acl':
   fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/fs_parser.o: in function `do_set_acl':
   fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/fs_parser.o: in function `do_get_acl':
   fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/fsopen.o: in function `do_set_acl':
   fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/fsopen.o: in function `do_get_acl':
   fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/init.o: in function `do_set_acl':
   fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/init.o: in function `do_get_acl':
   fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/remap_range.o: in function `do_set_acl':
   fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/remap_range.o: in function `do_get_acl':
   fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/buffer.o: in function `do_set_acl':
   fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/buffer.o: in function `do_get_acl':
   fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/direct-io.o: in function `do_set_acl':
   fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/direct-io.o: in function `do_get_acl':
   fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/mpage.o: in function `do_set_acl':
   fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/mpage.o: in function `do_get_acl':
   fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/proc_namespace.o: in function `do_set_acl':
   fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/proc_namespace.o: in function `do_get_acl':
   fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/aio.o: in function `do_set_acl':
   fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/aio.o: in function `do_get_acl':
   fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/coredump.o: in function `do_set_acl':
   fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/coredump.o: in function `do_get_acl':
   fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
   ld: fs/drop_caches.o: in function `do_set_acl':
   fs/internal.h:247: multiple definition of `do_set_acl'; fs/open.o:fs/internal.h:247: first defined here
   ld: fs/drop_caches.o: in function `do_get_acl':
   fs/internal.h:252: multiple definition of `do_get_acl'; fs/open.o:fs/internal.h:252: first defined here
--
   In file included from fs/open.c:37:
>> fs/internal.h:243:5: warning: no previous prototype for 'do_set_acl' [-Wmissing-prototypes]
     243 | int do_set_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
         |     ^~~~~~~~~~
>> fs/internal.h:248:9: warning: no previous prototype for 'do_get_acl' [-Wmissing-prototypes]
     248 | ssize_t do_get_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
         |         ^~~~~~~~~~
--
   In file included from fs/pipe.c:33:
>> fs/internal.h:243:5: warning: no previous prototype for 'do_set_acl' [-Wmissing-prototypes]
     243 | int do_set_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
         |     ^~~~~~~~~~
>> fs/internal.h:248:9: warning: no previous prototype for 'do_get_acl' [-Wmissing-prototypes]
     248 | ssize_t do_get_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
         |         ^~~~~~~~~~
   fs/pipe.c:757:15: warning: no previous prototype for 'account_pipe_buffers' [-Wmissing-prototypes]
     757 | unsigned long account_pipe_buffers(struct user_struct *user,
         |               ^~~~~~~~~~~~~~~~~~~~
   fs/pipe.c:763:6: warning: no previous prototype for 'too_many_pipe_buffers_soft' [-Wmissing-prototypes]
     763 | bool too_many_pipe_buffers_soft(unsigned long user_bufs)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/pipe.c:770:6: warning: no previous prototype for 'too_many_pipe_buffers_hard' [-Wmissing-prototypes]
     770 | bool too_many_pipe_buffers_hard(unsigned long user_bufs)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/pipe.c:777:6: warning: no previous prototype for 'pipe_is_unprivileged_user' [-Wmissing-prototypes]
     777 | bool pipe_is_unprivileged_user(void)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~
   fs/pipe.c:1253:5: warning: no previous prototype for 'pipe_resize_ring' [-Wmissing-prototypes]
    1253 | int pipe_resize_ring(struct pipe_inode_info *pipe, unsigned int nr_slots)
         |     ^~~~~~~~~~~~~~~~


vim +247 fs/internal.h

   236	
   237	#ifdef CONFIG_FS_POSIX_ACL
   238	int do_set_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
   239		       const char *acl_name, const void *kvalue, size_t size);
   240	ssize_t do_get_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
   241			   const char *acl_name, void *kvalue, size_t size);
   242	#else
 > 243	int do_set_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
   244		       const char *acl_name, const void *kvalue, size_t size)
   245	{
   246		return -EOPNOTSUPP;
 > 247	}
 > 248	ssize_t do_get_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
   249			   const char *acl_name, void *kvalue, size_t size)
   250	{
   251		return -EOPNOTSUPP;
 > 252	}
   253	#endif
   254	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (41643 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ