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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 24 Nov 2020 10:51:07 +0800
From:   kernel test robot <lkp@...el.com>
To:     Dmitry Safonov <dima@...sta.com>, linux-kernel@...r.kernel.org
Cc:     kbuild-all@...ts.01.org, Dmitry Safonov <0x7f454c46@...il.com>,
        Alexander Viro <viro@...iv.linux.org.uk>,
        Andrew Morton <akpm@...ux-foundation.org>,
        Linux Memory Management List <linux-mm@...ck.org>,
        Andy Lutomirski <luto@...nel.org>,
        Arnd Bergmann <arnd@...db.de>, Borislav Petkov <bp@...en8.de>,
        Catalin Marinas <catalin.marinas@....com>,
        Christophe Leroy <christophe.leroy@...roup.eu>
Subject: Re: [PATCH v2 15/19] x86/vdso: Migrate to generic vdso_base

Hi Dmitry,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on 62918e6fd7b5751c1285c7f8c6cbd27eb6600c02]

url:    https://github.com/0day-ci/linux/commits/Dmitry-Safonov/Add-generic-vdso_base-tracking/20201124-083732
base:    62918e6fd7b5751c1285c7f8c6cbd27eb6600c02
config: i386-randconfig-s001-20201123 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-134-gb59dbdaf-dirty
        # https://github.com/0day-ci/linux/commit/bef228ec5535f5941e842ca57e7bd54d23427cde
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Dmitry-Safonov/Add-generic-vdso_base-tracking/20201124-083732
        git checkout bef228ec5535f5941e842ca57e7bd54d23427cde
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 

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


"sparse warnings: (new ones prefixed by >>)"
>> arch/x86/entry/vdso/extable.c:28:36: sparse: sparse: incompatible types in comparison expression (different address spaces):
>> arch/x86/entry/vdso/extable.c:28:36: sparse:    void [noderef] __user *
>> arch/x86/entry/vdso/extable.c:28:36: sparse:    void *

vim +28 arch/x86/entry/vdso/extable.c

    11	
    12	bool fixup_vdso_exception(struct pt_regs *regs, int trapnr,
    13				  unsigned long error_code, unsigned long fault_addr)
    14	{
    15		const struct vdso_image *image = current->mm->context.vdso_image;
    16		const struct vdso_exception_table_entry *extable;
    17		unsigned int nr_entries, i;
    18		unsigned long base;
    19	
    20		/*
    21		 * Do not attempt to fixup #DB or #BP.  It's impossible to identify
    22		 * whether or not a #DB/#BP originated from within an SGX enclave and
    23		 * SGX enclaves are currently the only use case for vDSO fixup.
    24		 */
    25		if (trapnr == X86_TRAP_DB || trapnr == X86_TRAP_BP)
    26			return false;
    27	
  > 28		if (current->mm->vdso_base == (void *)UNMAPPED_VDSO_BASE)

---
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" (37924 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ