mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Dmitry Safonov <dsafonov@virtuozzo.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
	0x7f454c46@gmail.com, Dmitry Safonov <dsafonov@virtuozzo.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
	Andy Lutomirski <luto@kernel.org>, Borislav Petkov <bp@suse.de>,
	x86@kernel.org
Subject: Re: [PATCH 1/2] x86/mm: don't mmap() over 4GB with compat syscall
Date: Thu, 12 Jan 2017 19:51:59 +0800	[thread overview]
Message-ID: <201701121952.AhYeGnMe%fengguang.wu@intel.com> (raw)
In-Reply-To: <20170111181730.12458-2-dsafonov@virtuozzo.com>

[-- Attachment #1: Type: text/plain, Size: 1771 bytes --]

Hi Dmitry,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.10-rc3 next-20170111]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Dmitry-Safonov/Fix-compatible-mmap-return-pointer-over-4Gb/20170112-185732
config: x86_64-randconfig-x016-201702 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   arch/x86/kernel/sys_x86_64.c: In function 'find_start_end':
>> arch/x86/kernel/sys_x86_64.c:122:13: error: 'mmap_rnd_compat_bits' undeclared (first use in this function)
         1UL << mmap_rnd_compat_bits);
                ^~~~~~~~~~~~~~~~~~~~
   arch/x86/kernel/sys_x86_64.c:122:13: note: each undeclared identifier is reported only once for each function it appears in
   arch/x86/kernel/sys_x86_64.c: In function 'arch_get_unmapped_area_topdown':
   arch/x86/kernel/sys_x86_64.c:202:31: error: 'mmap_rnd_compat_bits' undeclared (first use in this function)
       unsigned long rnd = 1UL << mmap_rnd_compat_bits;
                                  ^~~~~~~~~~~~~~~~~~~~

vim +/mmap_rnd_compat_bits +122 arch/x86/kernel/sys_x86_64.c

   116				*end = 0x80000000;
   117				return;
   118			}
   119			if (current->thread.status & TS_COMPAT) {
   120				if (current->flags & PF_RANDOMIZE)
   121					*begin = randomize_page(*begin,
 > 122						1UL << mmap_rnd_compat_bits);
   123				*end = IA32_PAGE_OFFSET;
   124				return;
   125			}

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 29284 bytes --]

  parent reply	other threads:[~2017-01-12 11:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-11 18:17 [PATCH 0/2] Fix compatible mmap() return pointer over 4Gb Dmitry Safonov
2017-01-11 18:17 ` [PATCH 1/2] x86/mm: don't mmap() over 4GB with compat syscall Dmitry Safonov
2017-01-11 22:26   ` Andy Lutomirski
2017-01-12  9:46     ` Dmitry Safonov
2017-01-12 11:39     ` Dmitry Safonov
2017-01-12 14:11     ` Dmitry Safonov
2017-01-12 11:51   ` kbuild test robot [this message]
2017-01-11 18:17 ` [PATCH 2/2] selftests/x86: add test to check compat mmap() return addr Dmitry Safonov

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=201701121952.AhYeGnMe%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=0x7f454c46@gmail.com \
    --cc=bp@suse.de \
    --cc=dsafonov@virtuozzo.com \
    --cc=hpa@zytor.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luto@kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®