All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Charlie Jenkins <charlie@rivosinc.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH RFC v3 1/2] mm: Add personality flag to limit address to 47 bits
Date: Mon, 9 Sep 2024 01:27:11 +0800	[thread overview]
Message-ID: <202409090150.Po6fKG3u-lkp@intel.com> (raw)
In-Reply-To: <20240905-patches-below_hint_mmap-v3-1-3cd5564efbbb@rivosinc.com>

Hi Charlie,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build warnings:

[auto build test WARNING on 5be63fc19fcaa4c236b307420483578a56986a37]

url:    https://github.com/intel-lab-lkp/linux/commits/Charlie-Jenkins/mm-Add-personality-flag-to-limit-address-to-47-bits/20240906-052121
base:   5be63fc19fcaa4c236b307420483578a56986a37
patch link:    https://lore.kernel.org/r/20240905-patches-below_hint_mmap-v3-1-3cd5564efbbb%40rivosinc.com
patch subject: [PATCH RFC v3 1/2] mm: Add personality flag to limit address to 47 bits
config: i386-defconfig (https://download.01.org/0day-ci/archive/20240909/202409090150.Po6fKG3u-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240909/202409090150.Po6fKG3u-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409090150.Po6fKG3u-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> mm/mmap.c:1770:44: warning: shift count >= width of type [-Wshift-count-overflow]
    1770 |                 info->high_limit = MIN(info->high_limit, BIT(47) - 1);
         |                                    ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
   include/vdso/bits.h:7:26: note: expanded from macro 'BIT'
       7 | #define BIT(nr)                 (UL(1) << (nr))
         |                                        ^
   include/linux/minmax.h:329:30: note: expanded from macro 'MIN'
     329 | #define MIN(a,b) __cmp(min,a,b)
         |                  ~~~~~~~~~~~~^~
   include/linux/minmax.h:90:45: note: expanded from macro '__cmp'
      90 | #define __cmp(op, x, y) ((x) __cmp_op_##op (y) ? (x) : (y))
         |                                             ^
>> mm/mmap.c:1770:44: warning: shift count >= width of type [-Wshift-count-overflow]
    1770 |                 info->high_limit = MIN(info->high_limit, BIT(47) - 1);
         |                                    ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
   include/vdso/bits.h:7:26: note: expanded from macro 'BIT'
       7 | #define BIT(nr)                 (UL(1) << (nr))
         |                                        ^
   include/linux/minmax.h:329:30: note: expanded from macro 'MIN'
     329 | #define MIN(a,b) __cmp(min,a,b)
         |                  ~~~~~~~~~~~~^~
   include/linux/minmax.h:90:57: note: expanded from macro '__cmp'
      90 | #define __cmp(op, x, y) ((x) __cmp_op_##op (y) ? (x) : (y))
         |                                                         ^
   2 warnings generated.


vim +1770 mm/mmap.c

  1755	
  1756	/*
  1757	 * Search for an unmapped address range.
  1758	 *
  1759	 * We are looking for a range that:
  1760	 * - does not intersect with any VMA;
  1761	 * - is contained within the [low_limit, high_limit) interval;
  1762	 * - is at least the desired size.
  1763	 * - satisfies (begin_addr & align_mask) == (align_offset & align_mask)
  1764	 */
  1765	unsigned long vm_unmapped_area(struct vm_unmapped_area_info *info)
  1766	{
  1767		unsigned long addr;
  1768	
  1769		if (current->personality & ADDR_LIMIT_47BIT)
> 1770			info->high_limit = MIN(info->high_limit, BIT(47) - 1);
  1771	
  1772		if (info->flags & VM_UNMAPPED_AREA_TOPDOWN)
  1773			addr = unmapped_area_topdown(info);
  1774		else
  1775			addr = unmapped_area(info);
  1776	
  1777		trace_vm_unmapped_area(addr, info);
  1778		return addr;
  1779	}
  1780	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  parent reply	other threads:[~2024-09-08 17:27 UTC|newest]

Thread overview: 81+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-05 21:15 [PATCH RFC v3 0/2] mm: Introduce ADDR_LIMIT_47BIT personality flag Charlie Jenkins
2024-09-05 21:15 ` Charlie Jenkins
2024-09-05 21:15 ` [PATCH RFC v3 1/2] mm: Add personality flag to limit address to 47 bits Charlie Jenkins
2024-09-05 21:15   ` Charlie Jenkins
2024-09-06  6:59   ` Michael Ellerman
2024-09-06  6:59     ` Michael Ellerman
2024-09-09 19:07     ` Charlie Jenkins
2024-09-09 19:07       ` Charlie Jenkins
2024-09-10  9:20       ` Christophe Leroy
2024-09-10  9:20         ` Christophe Leroy
2024-09-10 12:43         ` Geert Uytterhoeven
2024-09-10 12:43           ` Geert Uytterhoeven
2024-09-11 13:38           ` Michael Ellerman
2024-09-11 13:38             ` Michael Ellerman
2024-09-12  6:20             ` Charlie Jenkins
2024-09-12  6:20               ` Charlie Jenkins
2024-09-20  5:10               ` Michael Ellerman
2024-09-20  5:10                 ` Michael Ellerman
2024-09-11 13:37       ` Michael Ellerman
2024-09-11 13:37         ` Michael Ellerman
2024-09-06  7:17   ` Arnd Bergmann
2024-09-06  7:17     ` Arnd Bergmann
2024-09-06  8:02     ` Lorenzo Stoakes
2024-09-06  8:02       ` Lorenzo Stoakes
2024-09-06  8:14     ` Lorenzo Stoakes
2024-09-06  8:14       ` Lorenzo Stoakes
2024-09-06  9:14       ` Arnd Bergmann
2024-09-06  9:14         ` Arnd Bergmann
2024-09-06  9:52         ` Lorenzo Stoakes
2024-09-06  9:52           ` Lorenzo Stoakes
2024-09-09 23:22           ` Charlie Jenkins
2024-09-09 23:22             ` Charlie Jenkins
2024-09-10  9:13             ` Arnd Bergmann
2024-09-10  9:13               ` Arnd Bergmann
2024-09-10 23:29               ` Charlie Jenkins
2024-09-10 23:29                 ` Charlie Jenkins
2024-09-11 13:50               ` Michael Ellerman
2024-09-11 13:50                 ` Michael Ellerman
2024-09-06  9:14     ` Guo Ren
2024-09-06  9:14       ` Guo Ren
2024-09-06  9:55       ` Arnd Bergmann
2024-09-06  9:55         ` Arnd Bergmann
2024-09-06 11:43         ` Catalin Marinas
2024-09-06 11:43           ` Catalin Marinas
2024-09-10 19:08           ` Liam R. Howlett
2024-09-10 19:08             ` Liam R. Howlett
2024-09-11  0:45             ` Charlie Jenkins
2024-09-11  0:45               ` Charlie Jenkins
2024-09-11  7:25               ` Arnd Bergmann
2024-09-11  7:25                 ` Arnd Bergmann
2024-09-12  6:06                 ` Charlie Jenkins
2024-09-12  6:06                   ` Charlie Jenkins
2024-09-11 18:21               ` Catalin Marinas
2024-09-11 18:21                 ` Catalin Marinas
2024-09-12  6:18                 ` Charlie Jenkins
2024-09-12  6:18                   ` Charlie Jenkins
2024-09-12 10:53                   ` Catalin Marinas
2024-09-12 10:53                     ` Catalin Marinas
2024-09-12 21:15                     ` Charlie Jenkins
2024-09-12 21:15                       ` Charlie Jenkins
2024-09-13 10:08                       ` Catalin Marinas
2024-09-13 10:08                         ` Catalin Marinas
2024-09-13 10:21                         ` Catalin Marinas
2024-09-13 10:21                           ` Catalin Marinas
2024-09-13 20:15                         ` Charlie Jenkins
2024-09-13 20:15                           ` Charlie Jenkins
2024-09-13  7:41                   ` Lorenzo Stoakes
2024-09-13  7:41                     ` Lorenzo Stoakes
2024-09-13 21:04                     ` Charlie Jenkins
2024-09-13 21:04                       ` Charlie Jenkins
2024-10-02 14:26                       ` Palmer Dabbelt
2024-10-02 14:26                         ` Palmer Dabbelt
2024-09-08 17:27   ` kernel test robot [this message]
2024-09-05 21:15 ` [PATCH RFC v3 2/2] selftests/mm: Create ADDR_LIMIT_47BIT test Charlie Jenkins
2024-09-05 21:15   ` Charlie Jenkins
2024-09-06  6:08 ` [PATCH RFC v3 0/2] mm: Introduce ADDR_LIMIT_47BIT personality flag Guo Ren
2024-09-06  6:08   ` Guo Ren
2024-09-06  6:19 ` John Paul Adrian Glaubitz
2024-09-06  6:19   ` John Paul Adrian Glaubitz
2024-09-08 11:26 ` Jiaxun Yang
2024-09-08 11:26   ` Jiaxun Yang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202409090150.Po6fKG3u-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=charlie@rivosinc.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.