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: <202208030827.9a9XDIkk-lkp@intel.com>
Date:   Wed, 3 Aug 2022 08:55:00 +0800
From:   kernel test robot <lkp@...el.com>
To:     Maximilian Luz <luzmaximilian@...il.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Steev Klimaszewski <steev@...i.org>
Subject: [steev:linux-v5.19.0 77/198] drivers/soc/qcom/qmi_interface.c:186:
 undefined reference to `kernel_sendmsg'

Hi Maximilian,

First bad commit (maybe != root cause):

tree:   https://github.com/steev/linux linux-v5.19.0
head:   a4510d0cef54eda304739679db13f1f17abe4125
commit: 530efef96636ea3887e975fc0268b5ee83c9dcf8 [77/198] usb: typec: ucsi: Make UCSI_GLINK select QCOM_PDR_HELPERS
config: arc-randconfig-r033-20220801 (https://download.01.org/0day-ci/archive/20220803/202208030827.9a9XDIkk-lkp@intel.com/config)
compiler: arc-elf-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/steev/linux/commit/530efef96636ea3887e975fc0268b5ee83c9dcf8
        git remote add steev https://github.com/steev/linux
        git fetch --no-tags steev linux-v5.19.0
        git checkout 530efef96636ea3887e975fc0268b5ee83c9dcf8
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

   arc-elf-ld: drivers/soc/qcom/qmi_interface.o: in function `qmi_send_new_lookup':
>> drivers/soc/qcom/qmi_interface.c:186: undefined reference to `kernel_sendmsg'
>> arc-elf-ld: drivers/soc/qcom/qmi_interface.c:186: undefined reference to `kernel_sendmsg'
   arc-elf-ld: drivers/soc/qcom/qmi_interface.o: in function `qmi_send_new_server':
   drivers/soc/qcom/qmi_interface.c:251: undefined reference to `kernel_sendmsg'
   arc-elf-ld: drivers/soc/qcom/qmi_interface.c:251: undefined reference to `kernel_sendmsg'
   arc-elf-ld: drivers/soc/qcom/qmi_interface.o: in function `qmi_send_message':
   drivers/soc/qcom/qmi_interface.c:763: undefined reference to `kernel_sendmsg'
   arc-elf-ld: drivers/soc/qcom/qmi_interface.o:drivers/soc/qcom/qmi_interface.c:763: more undefined references to `kernel_sendmsg' follow
   arc-elf-ld: drivers/soc/qcom/qmi_interface.o: in function `qmi_sock_create':
>> drivers/soc/qcom/qmi_interface.c:588: undefined reference to `init_net'
>> arc-elf-ld: drivers/soc/qcom/qmi_interface.c:588: undefined reference to `init_net'
>> arc-elf-ld: drivers/soc/qcom/qmi_interface.c:588: undefined reference to `sock_create_kern'
>> arc-elf-ld: drivers/soc/qcom/qmi_interface.c:588: undefined reference to `sock_create_kern'
>> arc-elf-ld: drivers/soc/qcom/qmi_interface.c:593: undefined reference to `kernel_getsockname'
>> arc-elf-ld: drivers/soc/qcom/qmi_interface.c:593: undefined reference to `kernel_getsockname'
>> arc-elf-ld: drivers/soc/qcom/qmi_interface.c:595: undefined reference to `sock_release'
>> arc-elf-ld: drivers/soc/qcom/qmi_interface.c:595: undefined reference to `sock_release'
   arc-elf-ld: drivers/soc/qcom/qmi_interface.o: in function `qmi_send_message':
   drivers/soc/qcom/qmi_interface.c:763: undefined reference to `kernel_sendmsg'
   arc-elf-ld: drivers/soc/qcom/qmi_interface.c:763: undefined reference to `kernel_sendmsg'
   arc-elf-ld: drivers/soc/qcom/qmi_interface.c:763: undefined reference to `kernel_sendmsg'
   arc-elf-ld: drivers/soc/qcom/qmi_interface.c:763: undefined reference to `kernel_sendmsg'
   arc-elf-ld: drivers/soc/qcom/qmi_interface.o: in function `qmi_handle_release':
>> drivers/soc/qcom/qmi_interface.c:695: undefined reference to `sock_release'
>> arc-elf-ld: drivers/soc/qcom/qmi_interface.c:695: undefined reference to `sock_release'
   arc-elf-ld: drivers/soc/qcom/qmi_interface.o: in function `qmi_data_ready_work':
>> drivers/soc/qcom/qmi_interface.c:537: undefined reference to `kernel_recvmsg'
>> arc-elf-ld: drivers/soc/qcom/qmi_interface.c:537: undefined reference to `kernel_recvmsg'
   arc-elf-ld: drivers/soc/qcom/qmi_interface.o: in function `qmi_sock_create':
>> drivers/soc/qcom/qmi_interface.c:588: undefined reference to `init_net'
>> arc-elf-ld: drivers/soc/qcom/qmi_interface.c:588: undefined reference to `init_net'
>> arc-elf-ld: drivers/soc/qcom/qmi_interface.c:588: undefined reference to `sock_create_kern'
>> arc-elf-ld: drivers/soc/qcom/qmi_interface.c:588: undefined reference to `sock_create_kern'
>> arc-elf-ld: drivers/soc/qcom/qmi_interface.c:593: undefined reference to `kernel_getsockname'
>> arc-elf-ld: drivers/soc/qcom/qmi_interface.c:593: undefined reference to `kernel_getsockname'
   arc-elf-ld: drivers/soc/qcom/qmi_interface.c:595: undefined reference to `sock_release'
   arc-elf-ld: drivers/soc/qcom/qmi_interface.c:595: undefined reference to `sock_release'
   arc-elf-ld: drivers/soc/qcom/qmi_interface.o: in function `qmi_handle_net_reset':
   drivers/soc/qcom/qmi_interface.c:450: undefined reference to `sock_release'
   arc-elf-ld: drivers/soc/qcom/qmi_interface.c:450: undefined reference to `sock_release'

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for QCOM_QMI_HELPERS
   Depends on [n]: NET [=n]
   Selected by [y]:
   - QCOM_PDR_HELPERS [=y]


vim +186 drivers/soc/qcom/qmi_interface.c

3830d0771ef66a Bjorn Andersson 2017-12-05  163  
3830d0771ef66a Bjorn Andersson 2017-12-05  164  static void qmi_send_new_lookup(struct qmi_handle *qmi, struct qmi_service *svc)
3830d0771ef66a Bjorn Andersson 2017-12-05  165  {
3830d0771ef66a Bjorn Andersson 2017-12-05  166  	struct qrtr_ctrl_pkt pkt;
3830d0771ef66a Bjorn Andersson 2017-12-05  167  	struct sockaddr_qrtr sq;
3830d0771ef66a Bjorn Andersson 2017-12-05  168  	struct msghdr msg = { };
3830d0771ef66a Bjorn Andersson 2017-12-05  169  	struct kvec iv = { &pkt, sizeof(pkt) };
3830d0771ef66a Bjorn Andersson 2017-12-05  170  	int ret;
3830d0771ef66a Bjorn Andersson 2017-12-05  171  
3830d0771ef66a Bjorn Andersson 2017-12-05  172  	memset(&pkt, 0, sizeof(pkt));
3830d0771ef66a Bjorn Andersson 2017-12-05  173  	pkt.cmd = cpu_to_le32(QRTR_TYPE_NEW_LOOKUP);
3830d0771ef66a Bjorn Andersson 2017-12-05  174  	pkt.server.service = cpu_to_le32(svc->service);
3830d0771ef66a Bjorn Andersson 2017-12-05  175  	pkt.server.instance = cpu_to_le32(svc->version | svc->instance << 8);
3830d0771ef66a Bjorn Andersson 2017-12-05  176  
3830d0771ef66a Bjorn Andersson 2017-12-05  177  	sq.sq_family = qmi->sq.sq_family;
3830d0771ef66a Bjorn Andersson 2017-12-05  178  	sq.sq_node = qmi->sq.sq_node;
3830d0771ef66a Bjorn Andersson 2017-12-05  179  	sq.sq_port = QRTR_PORT_CTRL;
3830d0771ef66a Bjorn Andersson 2017-12-05  180  
3830d0771ef66a Bjorn Andersson 2017-12-05  181  	msg.msg_name = &sq;
3830d0771ef66a Bjorn Andersson 2017-12-05  182  	msg.msg_namelen = sizeof(sq);
3830d0771ef66a Bjorn Andersson 2017-12-05  183  
3830d0771ef66a Bjorn Andersson 2017-12-05  184  	mutex_lock(&qmi->sock_lock);
3830d0771ef66a Bjorn Andersson 2017-12-05  185  	if (qmi->sock) {
3830d0771ef66a Bjorn Andersson 2017-12-05 @186  		ret = kernel_sendmsg(qmi->sock, &msg, &iv, 1, sizeof(pkt));
3830d0771ef66a Bjorn Andersson 2017-12-05  187  		if (ret < 0)
3830d0771ef66a Bjorn Andersson 2017-12-05  188  			pr_err("failed to send lookup registration: %d\n", ret);
3830d0771ef66a Bjorn Andersson 2017-12-05  189  	}
3830d0771ef66a Bjorn Andersson 2017-12-05  190  	mutex_unlock(&qmi->sock_lock);
3830d0771ef66a Bjorn Andersson 2017-12-05  191  }
3830d0771ef66a Bjorn Andersson 2017-12-05  192  

:::::: The code at line 186 was first introduced by commit
:::::: 3830d0771ef66a3bb9ab57b70630b3598593a4f0 soc: qcom: Introduce QMI helpers

:::::: TO: Bjorn Andersson <bjorn.andersson@...aro.org>
:::::: CC: Andy Gross <andy.gross@...aro.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ