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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 21 Jun 2016 22:42:21 +0800
From:	kbuild test robot <lkp@...el.com>
To:	zhongjiang <zhongjiang@...wei.com>
Cc:	kbuild-all@...org, mhocko@...nel.org, akpm@...ux-foundation.org,
	linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mm/huge_memory: fix the memory leak due to the race

Hi,

[auto build test ERROR on v4.7-rc4]
[also build test ERROR on next-20160621]
[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/zhongjiang/mm-huge_memory-fix-the-memory-leak-due-to-the-race/20160621-221736
config: s390-allyesconfig (attached as .config)
compiler: s390x-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=s390 

All errors (new ones prefixed by >>):

   mm/huge_memory.c: In function 'do_huge_pmd_wp_page':
>> mm/huge_memory.c:1383:25: error: incompatible type for argument 3 of 'pmd_populate'
      pmd_populate(mm, pmd, entry);
                            ^
   In file included from arch/s390/include/asm/tlbflush.h:7:0,
                    from include/linux/hugetlb.h:21,
                    from mm/huge_memory.c:13:
   arch/s390/include/asm/pgalloc.h:120:20: note: expected 'pgtable_t {aka struct <anonymous> *}' but argument is of type 'pmd_t {aka struct <anonymous>}'
    static inline void pmd_populate(struct mm_struct *mm,
                       ^

vim +/pmd_populate +1383 mm/huge_memory.c

  1377			entry = mk_huge_pmd(new_page, vma->vm_page_prot);
  1378			entry = maybe_pmd_mkwrite(pmd_mkdirty(entry), vma);
  1379			pmdp_invalidate(vma, haddr, pmd);	
  1380			page_add_new_anon_rmap(new_page, vma, haddr, true);
  1381			mem_cgroup_commit_charge(new_page, memcg, false, true);
  1382			lru_cache_add_active_or_unevictable(new_page, vma);
> 1383			pmd_populate(mm, pmd, entry);
  1384			update_mmu_cache_pmd(vma, address, pmd);
  1385			if (!page) {
  1386				add_mm_counter(mm, MM_ANONPAGES, HPAGE_PMD_NR);

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

Download attachment ".config.gz" of type "application/octet-stream" (41724 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ