All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: [arnd-playground:randconfig-7.3-next 428/673] mm/mmap.c:630 __do_sys_mmap2() warn: bitwise AND condition is false here
Date: Sat, 26 Sep 2026 02:58:53 +0200	[thread overview]
Message-ID: <202609260253.DKqZX8BZ-lkp@intel.com> (raw)

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Arnd Bergmann <arnd@arndb.de>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git randconfig-7.3-next
head:   0a1affa74ef2f2c5c5ee74fc604e47a1aefdd286
commit: 4d3c9be36cf7289309c7c25302ca4aa669df9032 [428/673] treewide: replace mmap_pgoff() with mmap2()
:::::: branch date: 6 days ago
:::::: commit date: 9 days ago
config: i386-randconfig-2200-20260925 (https://download.01.org/0day-ci/archive/20260926/202609260253.DKqZX8BZ-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
smatch: v0.5.0-9187-g5189e3fb

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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202609260253.DKqZX8BZ-lkp@intel.com/

smatch warnings:
mm/mmap.c:630 __do_sys_mmap2() warn: bitwise AND condition is false here
mm/mmap.c:630 __do_sys_mmap2() warn: bitwise AND condition is false here

vim +630 mm/mmap.c

66f0dc481e5b80 Hugh Dickins      2009-12-30  625  
4d3c9be36cf728 Arnd Bergmann     2021-12-22  626  SYSCALL_DEFINE6(mmap2, unsigned long, addr, unsigned long, len,
a90f590a1bee36 Dominik Brodowski 2018-03-11  627  		unsigned long, prot, unsigned long, flags,
4d3c9be36cf728 Arnd Bergmann     2021-12-22  628  		unsigned long, fd, unsigned long, off_4k)
a90f590a1bee36 Dominik Brodowski 2018-03-11  629  {
4d3c9be36cf728 Arnd Bergmann     2021-12-22 @630  	if (off_4k & (~PAGE_MASK >> 12))
4d3c9be36cf728 Arnd Bergmann     2021-12-22  631  		return -EINVAL;
4d3c9be36cf728 Arnd Bergmann     2021-12-22  632  
4d3c9be36cf728 Arnd Bergmann     2021-12-22  633  	off_4k >>= (PAGE_SHIFT - 12);
4d3c9be36cf728 Arnd Bergmann     2021-12-22  634  
4d3c9be36cf728 Arnd Bergmann     2021-12-22  635  	return ksys_mmap_pgoff(addr, len, prot, flags, fd, off_4k);
a90f590a1bee36 Dominik Brodowski 2018-03-11  636  }
a90f590a1bee36 Dominik Brodowski 2018-03-11  637  

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

                 reply	other threads:[~2026-09-26  0:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202609260253.DKqZX8BZ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=error27@gmail.com \
    --cc=oe-kbuild@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.