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: <202212270830.YrZ4mm7p-lkp@intel.com>
Date:   Tue, 27 Dec 2022 08:09:16 +0800
From:   kernel test robot <lkp@...el.com>
To:     Tomas Winkler <tomas.winkler@...el.com>
Cc:     oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
        Daniele Ceraolo Spurio <daniele.ceraolospurio@...el.com>,
        Vitaly Lubart <vitaly.lubart@...el.com>,
        Alan Previn <alan.previn.teres.alexis@...el.com>
Subject: drivers/gpu/drm/i915/pxp/intel_pxp_huc.c:39:35: sparse: sparse:
 incorrect type in assignment (different base types)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   1b929c02afd37871d5afb9d498426f83432e71c2
commit: 887a193b4fb13e886d34bea4a1d8711fd775c7cf drm/i915/pxp: add huc authentication and loading command
date:   3 months ago
config: x86_64-randconfig-s041-20221226
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.4-39-gce1a6720-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=887a193b4fb13e886d34bea4a1d8711fd775c7cf
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 887a193b4fb13e886d34bea4a1d8711fd775c7cf
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 olddefconfig
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/drm/i915/

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

sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/i915/pxp/intel_pxp_huc.c:39:35: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le64 [assigned] [usertype] huc_base_address @@     got unsigned long long [assigned] [usertype] huc_phys_addr @@
   drivers/gpu/drm/i915/pxp/intel_pxp_huc.c:39:35: sparse:     expected restricted __le64 [assigned] [usertype] huc_base_address
   drivers/gpu/drm/i915/pxp/intel_pxp_huc.c:39:35: sparse:     got unsigned long long [assigned] [usertype] huc_phys_addr

vim +39 drivers/gpu/drm/i915/pxp/intel_pxp_huc.c

    17	
    18	int intel_pxp_huc_load_and_auth(struct intel_pxp *pxp)
    19	{
    20		struct intel_gt *gt = pxp_to_gt(pxp);
    21		struct intel_huc *huc = &gt->uc.huc;
    22		struct pxp_tee_start_huc_auth_in huc_in = {0};
    23		struct pxp_tee_start_huc_auth_out huc_out = {0};
    24		dma_addr_t huc_phys_addr;
    25		u8 client_id = 0;
    26		u8 fence_id = 0;
    27		int err;
    28	
    29		if (!pxp->pxp_component)
    30			return -ENODEV;
    31	
    32		huc_phys_addr = i915_gem_object_get_dma_address(huc->fw.obj, 0);
    33	
    34		/* write the PXP message into the lmem (the sg list) */
    35		huc_in.header.api_version = PXP_TEE_43_APIVER;
    36		huc_in.header.command_id  = PXP_TEE_43_START_HUC_AUTH;
    37		huc_in.header.status      = 0;
    38		huc_in.header.buffer_len  = sizeof(huc_in.huc_base_address);
  > 39		huc_in.huc_base_address   = huc_phys_addr;

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

View attachment "config" of type "text/plain" (175171 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ