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>] [day] [month] [year] [list]
Message-ID: <202108130520.kTlTWVnH-lkp@intel.com>
Date:   Fri, 13 Aug 2021 05:12:26 +0800
From:   kernel test robot <lkp@...el.com>
To:     Yury Norov <yury.norov@...il.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [norov:demotion-final 5/6] mm/mempolicy.c:3074: undefined reference
 to `set_demotion_target'

tree:   https://github.com/norov/linux demotion-final
head:   f669201ff5142089471efbff9844cfc8b83522cc
commit: f2d905fe922bde5baddb485d6152a431b7954e50 [5/6] sysfs: add /sys/kernel/mm/numa/demotion_list
config: x86_64-randconfig-c022-20210812 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/norov/linux/commit/f2d905fe922bde5baddb485d6152a431b7954e50
        git remote add norov https://github.com/norov/linux
        git fetch --no-tags norov demotion-final
        git checkout f2d905fe922bde5baddb485d6152a431b7954e50
        # save the attached .config to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

   ld: mm/mempolicy.o: in function `numa_demotion_list_store':
>> mm/mempolicy.c:3074: undefined reference to `set_demotion_target'


vim +3074 mm/mempolicy.c

  3050	
  3051	static ssize_t numa_demotion_list_store(struct kobject *kobj,
  3052						   struct kobj_attribute *attr,
  3053						   const char *buf, size_t count)
  3054	{
  3055		nodemask_t nodes;
  3056		char *nodelist;
  3057		int from, to, ret;
  3058	
  3059		nodelist = strnchr(buf, count, '>');
  3060		if (!nodelist)
  3061			return -EINVAL;
  3062	
  3063		*nodelist++ = 0;
  3064	
  3065		ret = kstrtoint(buf, 0, &to);
  3066		if (ret)
  3067			return ret;
  3068	
  3069		ret = nodelist_parse(nodelist, nodes);
  3070		if (ret)
  3071			return ret;
  3072	
  3073		for_each_node_mask(from, nodes) {
> 3074			ret = set_demotion_target(from, to);
  3075			if (ret == -EXDEV)
  3076				pr_warn("Cross-node loop for demotion: %d>%d\n", to, from);
  3077			else if (ret)
  3078				return ret;
  3079		}
  3080	
  3081		return count;
  3082	}
  3083	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ