From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4173C433F5 for ; Sat, 5 Feb 2022 14:18:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A1AED6B008A; Sat, 5 Feb 2022 09:18:38 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 9CB146B008C; Sat, 5 Feb 2022 09:18:38 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8B99C6B0092; Sat, 5 Feb 2022 09:18:38 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0065.hostedemail.com [216.40.44.65]) by kanga.kvack.org (Postfix) with ESMTP id 802936B008A for ; Sat, 5 Feb 2022 09:18:38 -0500 (EST) Received: from smtpin10.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 42EBF9A289 for ; Sat, 5 Feb 2022 14:18:38 +0000 (UTC) X-FDA: 79108931916.10.84CD25C Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by imf12.hostedemail.com (Postfix) with ESMTP id 41F7840003 for ; Sat, 5 Feb 2022 14:18:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644070717; x=1675606717; h=date:from:to:cc:subject:message-id:mime-version; bh=UMAmfa702Ino9hCADPKApeMEnJJH7A4Hxz8hwbcJOKk=; b=bF4UDOl6gtgb5yPeFvzsqzqrXb67FdcZhSf1hCTIkohCh0L2jmcYSByc COkUriDjnpw1MCVMq2qXsHSC8nr5k0NN0U1XgLRlthtArpS03YUS1WoUP 7nPZLWAVDvO2RFeWeSE3zfMoO+C4NvV7rg1KJhXR9mAQ3K37yxLS5LiGw V3su6XG5UnR5hWshFoTeh6tQYJaaJkwIdjniOTu5sdS+NRzZXD0y7Lpu2 jWQz9GTk4X8nDMCTLQxjF1Jdig1T00a1ZZ7kS3IXqqTK6cTHWZzGhWv6r iGJoGFbwTAyvXKuxK0IlrJfQOK7U2cuZ6lcdwlw/jF5EUldUwpa6Y3+8w w==; X-IronPort-AV: E=McAfee;i="6200,9189,10248"; a="311813494" X-IronPort-AV: E=Sophos;i="5.88,345,1635231600"; d="scan'208";a="311813494" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2022 06:18:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,345,1635231600"; d="scan'208";a="481119348" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 05 Feb 2022 06:18:34 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nGLtZ-000Z8E-NY; Sat, 05 Feb 2022 14:18:33 +0000 Date: Sat, 5 Feb 2022 22:18:18 +0800 From: kernel test robot To: Kees Cook Cc: kbuild-all@lists.01.org, Linux Memory Management List Subject: [linux-next:master 3212/4147] drivers/staging/r8188eu/os_dep/ioctl_linux.c:3431:31: sparse: sparse: incorrect type in argument 1 (different address spaces) Message-ID: <202202052224.xLO5qlr0-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: 41F7840003 X-Stat-Signature: r83pksqhm3uqesg1bx89txyubsi9mto9 Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=bF4UDOl6; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf12.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.100) smtp.mailfrom=lkp@intel.com X-Rspam-User: nil X-HE-Tag: 1644070717-583036 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: ef6b35306dd8f15a7e5e5a2532e665917a43c5d9 commit: 0b27a15c23f17d6ca9a01505f38b477178fabb52 [3212/4147] fortify: Add Clang support config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20220205/202202052224.xLO5qlr0-lkp@intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=0b27a15c23f17d6ca9a01505f38b477178fabb52 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 0b27a15c23f17d6ca9a01505f38b477178fabb52 # save the config file to linux build tree mkdir build_dir make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/staging/r8188eu/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) drivers/staging/r8188eu/os_dep/ioctl_linux.c:3430:17: sparse: sparse: cast removes address space '__user' of expression >> drivers/staging/r8188eu/os_dep/ioctl_linux.c:3431:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *const p @@ got void [noderef] __user *pointer @@ drivers/staging/r8188eu/os_dep/ioctl_linux.c:3431:31: sparse: expected void const *const p drivers/staging/r8188eu/os_dep/ioctl_linux.c:3431:31: sparse: got void [noderef] __user *pointer drivers/staging/r8188eu/os_dep/ioctl_linux.c:3433:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *const p @@ got void [noderef] __user *pointer @@ drivers/staging/r8188eu/os_dep/ioctl_linux.c:3433:38: sparse: expected void const *const p drivers/staging/r8188eu/os_dep/ioctl_linux.c:3433:38: sparse: got void [noderef] __user *pointer drivers/staging/r8188eu/os_dep/ioctl_linux.c:3435:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *const p @@ got void [noderef] __user *pointer @@ drivers/staging/r8188eu/os_dep/ioctl_linux.c:3435:38: sparse: expected void const *const p drivers/staging/r8188eu/os_dep/ioctl_linux.c:3435:38: sparse: got void [noderef] __user *pointer drivers/staging/r8188eu/os_dep/ioctl_linux.c:3437:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *const p @@ got void [noderef] __user *pointer @@ drivers/staging/r8188eu/os_dep/ioctl_linux.c:3437:38: sparse: expected void const *const p drivers/staging/r8188eu/os_dep/ioctl_linux.c:3437:38: sparse: got void [noderef] __user *pointer drivers/staging/r8188eu/os_dep/ioctl_linux.c:3439:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *const p @@ got void [noderef] __user *pointer @@ drivers/staging/r8188eu/os_dep/ioctl_linux.c:3439:38: sparse: expected void const *const p drivers/staging/r8188eu/os_dep/ioctl_linux.c:3439:38: sparse: got void [noderef] __user *pointer drivers/staging/r8188eu/os_dep/ioctl_linux.c:3442:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *const p @@ got void [noderef] __user *pointer @@ drivers/staging/r8188eu/os_dep/ioctl_linux.c:3442:38: sparse: expected void const *const p drivers/staging/r8188eu/os_dep/ioctl_linux.c:3442:38: sparse: got void [noderef] __user *pointer drivers/staging/r8188eu/os_dep/ioctl_linux.c:3444:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *const p @@ got void [noderef] __user *pointer @@ drivers/staging/r8188eu/os_dep/ioctl_linux.c:3444:38: sparse: expected void const *const p drivers/staging/r8188eu/os_dep/ioctl_linux.c:3444:38: sparse: got void [noderef] __user *pointer drivers/staging/r8188eu/os_dep/ioctl_linux.c:3447:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *const p @@ got void [noderef] __user *pointer @@ drivers/staging/r8188eu/os_dep/ioctl_linux.c:3447:38: sparse: expected void const *const p drivers/staging/r8188eu/os_dep/ioctl_linux.c:3447:38: sparse: got void [noderef] __user *pointer drivers/staging/r8188eu/os_dep/ioctl_linux.c:3459:9: sparse: sparse: cast removes address space '__user' of expression vim +3431 drivers/staging/r8188eu/os_dep/ioctl_linux.c 2b42bd58b32155 Phillip Potter 2021-07-28 3420 2b42bd58b32155 Phillip Potter 2021-07-28 3421 static int rtw_p2p_get(struct net_device *dev, 2b42bd58b32155 Phillip Potter 2021-07-28 3422 struct iw_request_info *info, 2b42bd58b32155 Phillip Potter 2021-07-28 3423 union iwreq_data *wrqu, char *extra) 2b42bd58b32155 Phillip Potter 2021-07-28 3424 { 2b42bd58b32155 Phillip Potter 2021-07-28 3425 int ret = 0; 2b42bd58b32155 Phillip Potter 2021-07-28 3426 2b42bd58b32155 Phillip Potter 2021-07-28 3427 struct adapter *padapter = (struct adapter *)rtw_netdev_priv(dev); 2b42bd58b32155 Phillip Potter 2021-07-28 3428 2b42bd58b32155 Phillip Potter 2021-07-28 3429 if (padapter->bShowGetP2PState) 2b42bd58b32155 Phillip Potter 2021-07-28 3430 DBG_88E("[%s] extra = %s\n", __func__, (char *)wrqu->data.pointer); 2b42bd58b32155 Phillip Potter 2021-07-28 @3431 if (!memcmp(wrqu->data.pointer, "status", 6)) { 2b42bd58b32155 Phillip Potter 2021-07-28 3432 rtw_p2p_get_status(dev, info, wrqu, extra); 2b42bd58b32155 Phillip Potter 2021-07-28 3433 } else if (!memcmp(wrqu->data.pointer, "role", 4)) { 2b42bd58b32155 Phillip Potter 2021-07-28 3434 rtw_p2p_get_role(dev, info, wrqu, extra); 2b42bd58b32155 Phillip Potter 2021-07-28 3435 } else if (!memcmp(wrqu->data.pointer, "peer_ifa", 8)) { 2b42bd58b32155 Phillip Potter 2021-07-28 3436 rtw_p2p_get_peer_ifaddr(dev, info, wrqu, extra); 2b42bd58b32155 Phillip Potter 2021-07-28 3437 } else if (!memcmp(wrqu->data.pointer, "req_cm", 6)) { 2b42bd58b32155 Phillip Potter 2021-07-28 3438 rtw_p2p_get_req_cm(dev, info, wrqu, extra); 2b42bd58b32155 Phillip Potter 2021-07-28 3439 } else if (!memcmp(wrqu->data.pointer, "peer_deva", 9)) { 2b42bd58b32155 Phillip Potter 2021-07-28 3440 /* Get the P2P device address when receiving the provision discovery request frame. */ 2b42bd58b32155 Phillip Potter 2021-07-28 3441 rtw_p2p_get_peer_devaddr(dev, info, wrqu, extra); 2b42bd58b32155 Phillip Potter 2021-07-28 3442 } else if (!memcmp(wrqu->data.pointer, "group_id", 8)) { 2b42bd58b32155 Phillip Potter 2021-07-28 3443 rtw_p2p_get_groupid(dev, info, wrqu, extra); 2b42bd58b32155 Phillip Potter 2021-07-28 3444 } else if (!memcmp(wrqu->data.pointer, "peer_deva_inv", 9)) { 2b42bd58b32155 Phillip Potter 2021-07-28 3445 /* Get the P2P device address when receiving the P2P Invitation request frame. */ 2b42bd58b32155 Phillip Potter 2021-07-28 3446 rtw_p2p_get_peer_devaddr_by_invitation(dev, info, wrqu, extra); 2b42bd58b32155 Phillip Potter 2021-07-28 3447 } else if (!memcmp(wrqu->data.pointer, "op_ch", 5)) { 2b42bd58b32155 Phillip Potter 2021-07-28 3448 rtw_p2p_get_op_ch(dev, info, wrqu, extra); 2b42bd58b32155 Phillip Potter 2021-07-28 3449 } 2b42bd58b32155 Phillip Potter 2021-07-28 3450 return ret; 2b42bd58b32155 Phillip Potter 2021-07-28 3451 } 2b42bd58b32155 Phillip Potter 2021-07-28 3452 :::::: The code at line 3431 was first introduced by commit :::::: 2b42bd58b32155a1be4dd78991845dec05aaef9e staging: r8188eu: introduce new os_dep dir for RTL8188eu driver :::::: TO: Phillip Potter :::::: CC: Greg Kroah-Hartman --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org