Re: [PATCH] x86/stackprotector: Work around strict Clang TLS symbol requirements

kernel test robot
2024-10-03T14:17:38Z

Hi Ard,

kernel test robot noticed the following build warnings:

[auto build test WARNING on tip/x86/core]
[also build test WARNING on tip/master linus/master tip/x86/asm v6.12-rc1 next-20241003]
[cannot apply to tip/auto-latest]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Ard-Biesheuvel/x86-stackprotector-Work-around-strict-Clang-TLS-symbol-requirements/20241002-172733
base: tip/x86/core
patch link: https://lore.kernel.org/r/20241002092534.3163838-2-ardb%2Bgit%40google.com
patch subject: [PATCH] x86/stackprotector: Work around strict Clang TLS symbol requirements
config: i386-buildonly-randconfig-006-20241003 (https://download.01.org/0day-ci/archive/20241003/202410032133.9218ziFI-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241003/202410032133.9218ziFI-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202410032133.9218ziFI-lkp@intel.com/

All warnings (new ones prefixed by >>, old ones prefixed by <<):

WARNING: modpost: missing MODULE_DESCRIPTION() in arch/x86/mm/testmmiotrace.o
WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/devfreq/governor_performance.o
WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/devfreq/governor_powersave.o
>> WARNING: modpost: EXPORT symbol "__ref_stack_chk_guard" [vmlinux] version generation failed, symbol will not be versioned.
Is "__ref_stack_chk_guard" prototyped in <asm/asm-prototypes.h>?
>> WARNING: modpost: "__ref_stack_chk_guard" [arch/x86/events/amd/amd-uncore.ko] has no CRC!
>> WARNING: modpost: "__ref_stack_chk_guard" [arch/x86/events/intel/intel-uncore.ko] has no CRC!
>> WARNING: modpost: "__ref_stack_chk_guard" [arch/x86/kernel/apm.ko] has no CRC!
>> WARNING: modpost: "__ref_stack_chk_guard" [arch/x86/crypto/serpent-sse2-i586.ko] has no CRC!
>> WARNING: modpost: "__ref_stack_chk_guard" [arch/x86/platform/iris/iris.ko] has no CRC!
>> WARNING: modpost: "__ref_stack_chk_guard" [kernel/locking/locktorture.ko] has no CRC!
>> WARNING: modpost: "__ref_stack_chk_guard" [kernel/rcu/rcutorture.ko] has no CRC!
>> WARNING: modpost: "__ref_stack_chk_guard" [kernel/rcu/rcuscale.ko] has no CRC!
>> WARNING: modpost: "__ref_stack_chk_guard" [kernel/time/test_udelay.ko] has no CRC!
>> WARNING: modpost: "__ref_stack_chk_guard" [kernel/trace/ring_buffer_benchmark.ko] has no CRC!
>> WARNING: modpost: "__ref_stack_chk_guard" [kernel/backtracetest.ko] has no CRC!
>> WARNING: modpost: "__ref_stack_chk_guard" [fs/quota/quota_v1.ko] has no CRC!
>> WARNING: modpost: "__ref_stack_chk_guard" [fs/configfs/configfs.ko] has no CRC!
>> WARNING: modpost: "__ref_stack_chk_guard" [fs/nls/nls_base.ko] has no CRC!
>> WARNING: modpost: "__ref_stack_chk_guard" [fs/nls/nls_euc-jp.ko] has no CRC!
>> WARNING: modpost: "__ref_stack_chk_guard" [fs/nls/nls_utf8.ko] has no CRC!
>> WARNING: modpost: "__ref_stack_chk_guard" [fs/autofs/autofs4.ko] has no CRC!
>> WARNING: modpost: "__ref_stack_chk_guard" [fs/fuse/fuse.ko] has no CRC!
>> WARNING: modpost: "__ref_stack_chk_guard" [crypto/geniv.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [crypto/echainiv.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [crypto/crypto_null.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [crypto/xts.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [crypto/ctr.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [crypto/ccm.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [crypto/chacha20poly1305.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [crypto/cryptd.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [crypto/chacha_generic.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [crypto/authenc.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [crypto/authencesn.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [crypto/lzo.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [crypto/lzo-rle.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [crypto/essiv.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [crypto/ecdh_generic.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [crypto/crypto_simd.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [lib/kunit/kunit-example-test.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [lib/math/rational-test.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [lib/crypto/libcurve25519-generic.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [lib/crypto/libdes.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [lib/test_hexdump.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [lib/cpumask_kunit.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [lib/test_hash.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [lib/test_ubsan.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [lib/test_vmalloc.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [lib/test_scanf.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [lib/test_xarray.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [lib/test_maple_tree.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [lib/test_lockup.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [lib/842/842_compress.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [lib/842/842_decompress.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [lib/lzo/lzo_compress.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [lib/overflow_kunit.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [lib/siphash_kunit.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/bus/mhi/host/mhi.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/bus/mhi/host/mhi_pci_generic.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/phy/allwinner/phy-sun6i-mipi-dphy.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/phy/intel/phy-intel-lgm-emmc.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/phy/marvell/phy-berlin-sata.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/phy/mediatek/phy-mtk-pcie.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/phy/mediatek/phy-mtk-hdmi-drv.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/phy/mediatek/phy-mtk-mipi-dsi-drv.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/phy/qualcomm/phy-qcom-qmp-combo.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/phy/qualcomm/phy-qcom-qmp-usbc.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/phy/qualcomm/phy-qcom-qmp-usb-legacy.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/phy/qualcomm/phy-qcom-snps-femto-v2.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/phy/ralink/phy-ralink-usb.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/phy/rockchip/phy-rockchip-pcie.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/phy/ti/phy-da8xx-usb.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/phy/ti/phy-am654-serdes.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/phy/ti/phy-j721e-wiz.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/pinctrl/freescale/pinctrl-imx.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/pinctrl/nuvoton/pinctrl-wpcm450.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/pinctrl/pxa/pinctrl-pxa25x.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/pinctrl/pxa/pinctrl-pxa27x.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/pinctrl/qcom/pinctrl-msm.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/pinctrl/qcom/pinctrl-ssbi-gpio.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/pinctrl/qcom/pinctrl-ssbi-mpp.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/pinctrl/qcom/pinctrl-lpass-lpi.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/pinctrl/sprd/pinctrl-sprd.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/pinctrl/pinctrl-da9062.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/pinctrl/pinctrl-max77620.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/pinctrl/pinctrl-microchip-sgpio.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/pinctrl/pinctrl-single.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/pinctrl/meson/pinctrl-meson.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/gpio/gpio-104-dio-48e.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/gpio/gpio-aspeed.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/gpio/gpio-ath79.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/gpio/gpio-bd71815.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/gpio/gpio-cadence.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/gpio/gpio-da9055.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/gpio/gpio-eic-sprd.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/gpio/gpio-hlwd.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/gpio/gpio-idt3243x.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/gpio/gpio-lp873x.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/gpio/gpio-max77620.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/gpio/gpio-mc33880.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/gpio/gpio-pch.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/gpio/gpio-sch311x.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/gpio/gpio-sim.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/gpio/gpio-syscon.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/gpio/gpio-tps65912.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/gpio/gpio-ts4800.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/gpio/gpio-ts4900.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/gpio/gpio-uniphier.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/gpio/gpio-wm8994.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/gpio/gpio-xgene-sb.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/gpio/gpio-xra1403.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/pci/hotplug/cpqphp.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/pci/controller/pcie-altera.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/pci/controller/pcie-mt7621.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/pci/pci-stub.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/video/backlight/ams369fg06.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/video/backlight/l4f00242t03.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/video/backlight/lms283gf05.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/video/backlight/88pm860x_bl.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/video/backlight/aat2870_bl.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/video/backlight/adp8870_bl.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/video/backlight/as3711_bl.ko] has no CRC!
WARNING: modpost: "__ref_stack_chk_guard" [drivers/video/backlight/backlight.ko] has no CRC!

--
0-DAY CI Kernel Test Service