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: <202111250023.2nQP8Msm-lkp@intel.com>
Date:   Thu, 25 Nov 2021 00:43:40 +0800
From:   kernel test robot <lkp@...el.com>
To:     "Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Kuppuswamy Sathyanarayanan 
        <sathyanarayanan.kuppuswamy@...ux.intel.com>
Subject: [intel-tdx:guest 113/144] arch/x86/boot/compressed/misc.c:443:17:
 warning: cast from pointer to integer of different size

tree:   https://github.com/intel/tdx.git guest
head:   41fe88a1b3c28543f49fa6ed9e0e9b6650ed7614
commit: f6aa202e95b516db1b1b365f08a338387a3b78d7 [113/144] x86/boot/compressed: Handle unaccepted memory
config: i386-randconfig-c021-20211122 (https://download.01.org/0day-ci/archive/20211125/202111250023.2nQP8Msm-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/intel/tdx/commit/f6aa202e95b516db1b1b365f08a338387a3b78d7
        git remote add intel-tdx https://github.com/intel/tdx.git
        git fetch --no-tags intel-tdx guest
        git checkout f6aa202e95b516db1b1b365f08a338387a3b78d7
        # save the config file to linux build tree
        make W=1 ARCH=i386 

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

All warnings (new ones prefixed by >>):

   arch/x86/boot/compressed/misc.c: In function 'extract_kernel':
>> arch/x86/boot/compressed/misc.c:443:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     443 |   accept_memory((phys_addr_t)output,
         |                 ^
   arch/x86/boot/compressed/misc.c:444:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     444 |          (phys_addr_t)output + needed_size);
         |          ^


vim +443 arch/x86/boot/compressed/misc.c

   437	
   438		debug_putstr("\nDecompressing Linux... ");
   439	
   440		if (IS_ENABLED(CONFIG_UNACCEPTED_MEMORY) &&
   441		    boot_params->unaccepted_memory) {
   442			debug_putstr("Accepting memory... ");
 > 443			accept_memory((phys_addr_t)output,
   444				      (phys_addr_t)output + needed_size);
   445		}
   446	
   447		__decompress(input_data, input_len, NULL, NULL, output, output_len,
   448				NULL, error);
   449		parse_elf(output);
   450		handle_relocations(output, output_len, virt_addr);
   451		debug_putstr("done.\nBooting the kernel.\n");
   452	
   453		/* Disable exception handling before booting the kernel */
   454		cleanup_exception_handling();
   455	
   456		return output;
   457	}
   458	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ