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: <202108271211.WcW3xkGb-lkp@intel.com>
Date:   Fri, 27 Aug 2021 12:25:26 +0800
From:   kernel test robot <lkp@...el.com>
To:     Christoph Hellwig <hch@....de>
Cc:     kbuild-all@...ts.01.org,
        user-mode-linux-devel@...ts.sourceforge.net,
        linux-kernel@...r.kernel.org, Richard Weinberger <richard@....at>
Subject: [uml:linux-next 10/10] arch/x86/include/asm/page_64_types.h:64:
 warning: "TASK_SIZE_MAX" redefined

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rw/uml.git linux-next
head:   043f5d3ffaf6f5572883c8f34efced61d85d256b
commit: 043f5d3ffaf6f5572883c8f34efced61d85d256b [10/10] um: Remove set_fs
config: um-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/rw/uml.git/commit/?id=043f5d3ffaf6f5572883c8f34efced61d85d256b
        git remote add uml https://git.kernel.org/pub/scm/linux/kernel/git/rw/uml.git
        git fetch --no-tags uml linux-next
        git checkout 043f5d3ffaf6f5572883c8f34efced61d85d256b
        # save the attached .config to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=um SHELL=/bin/bash arch/um/drivers/ drivers/media/pci/ivtv/

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

All warnings (new ones prefixed by >>):

   In file included from arch/x86/include/asm/pgtable_types.h:8,
                    from arch/x86/include/asm/memtype.h:6,
                    from drivers/media/pci/ivtv/ivtvfb.c:40:
   arch/x86/include/asm/page_types.h:11: warning: "PAGE_SIZE" redefined
      11 | #define PAGE_SIZE  (_AC(1,UL) << PAGE_SHIFT)
         | 
   In file included from include/linux/mm_types_task.h:16,
                    from include/linux/mm_types.h:5,
                    from include/linux/buildid.h:5,
                    from include/linux/module.h:14,
                    from drivers/media/pci/ivtv/ivtv-driver.h:40,
                    from drivers/media/pci/ivtv/ivtvfb.c:29:
   arch/um/include/asm/page.h:14: note: this is the location of the previous definition
      14 | #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT)
         | 
   In file included from arch/x86/include/asm/pgtable_types.h:8,
                    from arch/x86/include/asm/memtype.h:6,
                    from drivers/media/pci/ivtv/ivtvfb.c:40:
   arch/x86/include/asm/page_types.h:36: warning: "PAGE_OFFSET" redefined
      36 | #define PAGE_OFFSET  ((unsigned long)__PAGE_OFFSET)
         | 
   In file included from include/linux/mm_types_task.h:16,
                    from include/linux/mm_types.h:5,
                    from include/linux/buildid.h:5,
                    from include/linux/module.h:14,
                    from drivers/media/pci/ivtv/ivtv-driver.h:40,
                    from drivers/media/pci/ivtv/ivtvfb.c:29:
   arch/um/include/asm/page.h:93: note: this is the location of the previous definition
      93 | #define PAGE_OFFSET (uml_physmem)
         | 
   In file included from arch/x86/include/asm/pgtable_types.h:8,
                    from arch/x86/include/asm/memtype.h:6,
                    from drivers/media/pci/ivtv/ivtvfb.c:40:
   arch/x86/include/asm/page_types.h:38: warning: "VM_DATA_DEFAULT_FLAGS" redefined
      38 | #define VM_DATA_DEFAULT_FLAGS VM_DATA_FLAGS_TSK_EXEC
         | 
   In file included from include/linux/scatterlist.h:8,
                    from include/linux/dmapool.h:14,
                    from include/linux/pci.h:1466,
                    from drivers/media/pci/ivtv/ivtv-driver.h:45,
                    from drivers/media/pci/ivtv/ivtvfb.c:29:
   include/linux/mm.h:393: note: this is the location of the previous definition
     393 | #define VM_DATA_DEFAULT_FLAGS  VM_DATA_FLAGS_EXEC
         | 
   In file included from arch/x86/include/asm/page_types.h:46,
                    from arch/x86/include/asm/pgtable_types.h:8,
                    from arch/x86/include/asm/memtype.h:6,
                    from drivers/media/pci/ivtv/ivtvfb.c:40:
   arch/x86/include/asm/page_64_types.h:15: warning: "THREAD_SIZE_ORDER" redefined
      15 | #define THREAD_SIZE_ORDER (2 + KASAN_STACK_ORDER)
         | 
   In file included from include/linux/thread_info.h:60,
                    from include/asm-generic/preempt.h:5,
                    from ./arch/um/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:78,
                    from include/linux/spinlock.h:51,
                    from include/linux/mm_types.h:9,
                    from include/linux/buildid.h:5,
                    from include/linux/module.h:14,
                    from drivers/media/pci/ivtv/ivtv-driver.h:40,
                    from drivers/media/pci/ivtv/ivtvfb.c:29:
   arch/um/include/asm/thread_info.h:9: note: this is the location of the previous definition
       9 | #define THREAD_SIZE_ORDER CONFIG_KERNEL_STACK_ORDER
         | 
   In file included from arch/x86/include/asm/page_types.h:46,
                    from arch/x86/include/asm/pgtable_types.h:8,
                    from arch/x86/include/asm/memtype.h:6,
                    from drivers/media/pci/ivtv/ivtvfb.c:40:
   arch/x86/include/asm/page_64_types.h:16: warning: "THREAD_SIZE" redefined
      16 | #define THREAD_SIZE  (PAGE_SIZE << THREAD_SIZE_ORDER)
         | 
   In file included from include/linux/thread_info.h:60,
                    from include/asm-generic/preempt.h:5,
                    from ./arch/um/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:78,
                    from include/linux/spinlock.h:51,
                    from include/linux/mm_types.h:9,
                    from include/linux/buildid.h:5,
                    from include/linux/module.h:14,
                    from drivers/media/pci/ivtv/ivtv-driver.h:40,
                    from drivers/media/pci/ivtv/ivtvfb.c:29:
   arch/um/include/asm/thread_info.h:10: note: this is the location of the previous definition
      10 | #define THREAD_SIZE ((1 << CONFIG_KERNEL_STACK_ORDER) * PAGE_SIZE)
         | 
   In file included from arch/x86/include/asm/page_types.h:46,
                    from arch/x86/include/asm/pgtable_types.h:8,
                    from arch/x86/include/asm/memtype.h:6,
                    from drivers/media/pci/ivtv/ivtvfb.c:40:
>> arch/x86/include/asm/page_64_types.h:64: warning: "TASK_SIZE_MAX" redefined
      64 | #define TASK_SIZE_MAX  task_size_max()
         | 
   In file included from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from drivers/media/pci/ivtv/ivtv-driver.h:43,
                    from drivers/media/pci/ivtv/ivtvfb.c:29:
   include/linux/uaccess.h:37: note: this is the location of the previous definition
      37 | #define TASK_SIZE_MAX   TASK_SIZE
         | 
   In file included from arch/x86/include/asm/page_types.h:46,
                    from arch/x86/include/asm/pgtable_types.h:8,
                    from arch/x86/include/asm/memtype.h:6,
                    from drivers/media/pci/ivtv/ivtvfb.c:40:
   arch/x86/include/asm/page_64_types.h:75: warning: "TASK_SIZE" redefined
      75 | #define TASK_SIZE  (test_thread_flag(TIF_ADDR32) ? \
         | 
   In file included from arch/x86/um/asm/processor.h:41,
                    from include/linux/spinlock_up.h:8,
                    from include/linux/spinlock.h:92,
                    from include/linux/mm_types.h:9,
                    from include/linux/buildid.h:5,
                    from include/linux/module.h:14,
                    from drivers/media/pci/ivtv/ivtv-driver.h:40,
                    from drivers/media/pci/ivtv/ivtvfb.c:29:
   arch/um/include/asm/processor-generic.h:73: note: this is the location of the previous definition
      73 | #define TASK_SIZE (task_size)
         | 
   In file included from arch/x86/include/asm/page_types.h:46,
                    from arch/x86/include/asm/pgtable_types.h:8,
                    from arch/x86/include/asm/memtype.h:6,
                    from drivers/media/pci/ivtv/ivtvfb.c:40:
   arch/x86/include/asm/page_64_types.h:77: warning: "TASK_SIZE_OF" redefined
      77 | #define TASK_SIZE_OF(child) ((test_tsk_thread_flag(child, TIF_ADDR32)) ? \
         | 
   In file included from include/linux/sched/signal.h:7,
                    from drivers/media/pci/ivtv/ivtv-driver.h:43,
                    from drivers/media/pci/ivtv/ivtvfb.c:29:
   include/linux/sched.h:2052: note: this is the location of the previous definition
    2052 | #define TASK_SIZE_OF(tsk) TASK_SIZE
         | 
   In file included from arch/x86/include/asm/page_types.h:46,
                    from arch/x86/include/asm/pgtable_types.h:8,
                    from arch/x86/include/asm/memtype.h:6,
                    from drivers/media/pci/ivtv/ivtvfb.c:40:
   arch/x86/include/asm/page_64_types.h:80: warning: "STACK_TOP" redefined
      80 | #define STACK_TOP  TASK_SIZE_LOW
         | 
   In file included from arch/x86/um/asm/processor.h:41,
                    from include/linux/spinlock_up.h:8,
                    from include/linux/spinlock.h:92,
                    from include/linux/mm_types.h:9,
                    from include/linux/buildid.h:5,
                    from include/linux/module.h:14,
                    from drivers/media/pci/ivtv/ivtv-driver.h:40,
                    from drivers/media/pci/ivtv/ivtvfb.c:29:
   arch/um/include/asm/processor-generic.h:81: note: this is the location of the previous definition
      81 | #define STACK_TOP (TASK_SIZE - 2 * PAGE_SIZE)
         | 
   In file included from arch/x86/include/asm/page_types.h:46,
                    from arch/x86/include/asm/pgtable_types.h:8,
                    from arch/x86/include/asm/memtype.h:6,
                    from drivers/media/pci/ivtv/ivtvfb.c:40:
   arch/x86/include/asm/page_64_types.h:81: warning: "STACK_TOP_MAX" redefined
      81 | #define STACK_TOP_MAX  TASK_SIZE_MAX
         | 
   In file included from arch/x86/um/asm/processor.h:41,
                    from include/linux/spinlock_up.h:8,
                    from include/linux/spinlock.h:92,
                    from include/linux/mm_types.h:9,
                    from include/linux/buildid.h:5,
                    from include/linux/module.h:14,
                    from drivers/media/pci/ivtv/ivtv-driver.h:40,
                    from drivers/media/pci/ivtv/ivtvfb.c:29:
   arch/um/include/asm/processor-generic.h:82: note: this is the location of the previous definition
      82 | #define STACK_TOP_MAX STACK_TOP
         | 
   In file included from arch/x86/include/asm/pgtable_types.h:8,
                    from arch/x86/include/asm/memtype.h:6,
                    from drivers/media/pci/ivtv/ivtvfb.c:40:
   arch/x86/include/asm/page_types.h:47: warning: "IOREMAP_MAX_ORDER" redefined
      47 | #define IOREMAP_MAX_ORDER       (PUD_SHIFT)
         | 
   In file included from include/asm-generic/io.h:911,
                    from arch/um/include/asm/io.h:24,
                    from include/linux/io.h:13,
                    from include/linux/irq.h:20,
                    from include/asm-generic/hardirq.h:17,
                    from arch/um/include/asm/hardirq.h:5,
                    from include/linux/hardirq.h:11,
                    from include/linux/interrupt.h:11,
                    from include/linux/pci.h:38,
                    from drivers/media/pci/ivtv/ivtv-driver.h:45,
                    from drivers/media/pci/ivtv/ivtvfb.c:29:
   include/linux/vmalloc.h:49: note: this is the location of the previous definition
      49 | #define IOREMAP_MAX_ORDER (7 + PAGE_SHIFT) /* 128 pages */
         | 
   In file included from arch/x86/include/asm/memtype.h:6,
                    from drivers/media/pci/ivtv/ivtvfb.c:40:
   arch/x86/include/asm/pgtable_types.h:41: warning: "_PAGE_PRESENT" redefined
      41 | #define _PAGE_PRESENT (_AT(pteval_t, 1) << _PAGE_BIT_PRESENT)


vim +/TASK_SIZE_MAX +64 arch/x86/include/asm/page_64_types.h

51c78eb3f0eb03 Jeremy Fitzhardinge 2009-02-08  63  
025768a966a3dd Linus Torvalds      2021-05-04 @64  #define TASK_SIZE_MAX		task_size_max()
999c83e8ffd90c Christoph Hellwig   2020-09-03  65  #define DEFAULT_MAP_WINDOW	((1UL << 47) - PAGE_SIZE)
999c83e8ffd90c Christoph Hellwig   2020-09-03  66  

:::::: The code at line 64 was first introduced by commit
:::::: 025768a966a3dde8455de46d1f121a51bacb6a77 x86/cpu: Use alternative to generate the TASK_SIZE_MAX constant

:::::: TO: Linus Torvalds <torvalds@...ux-foundation.org>
:::::: CC: Ingo Molnar <mingo@...nel.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (62677 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ