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]
Date:   Mon, 8 Jun 2020 17:05:56 +0800
From:   kernel test robot <rong.a.chen@...el.com>
To:     Frank Rowand <frank.rowand@...y.com>
Cc:     Rob Herring <robh@...nel.org>, kernel test robot <lkp@...el.com>,
        Geert Uytterhoeven <geert+renesas@...der.be>,
        LKML <linux-kernel@...r.kernel.org>, lkp@...ts.01.org
Subject: [of] 1adc86798f:
 dmesg.UBSAN:Undefined_behaviour_in_drivers/of/unittest.c

Greeting,

FYI, we noticed the following commit (built with gcc-9):

commit: 1adc86798fda9a9b989433a52640b8ad1446a71d ("of: some unittest overlays not untracked")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master

in testcase: boot

on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 8G

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):




If you fix the issue, kindly add following tag
Reported-by: kernel test robot <rong.a.chen@...el.com>


[   40.301317] ### dt-test ### FAIL of_unittest_overlay_gpio():1740 unittest_gpio_chip_request() called 0 times (expected 1 time)
[   40.302936] ================================================================================
[   40.303510] UBSAN: Undefined behaviour in drivers/of/unittest.c:1886:36
[   40.304084] shift exponent -1 is negative
[   40.304364] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.6.0-rc1-00120-g1adc86798fda9 #1
[   40.304904] Call Trace:
[   40.305090]  dump_stack+0x50/0x63
[   40.305324]  ubsan_epilogue+0x5/0x21
[   40.305573]  __ubsan_handle_shift_out_of_bounds+0xf6/0x108
[   40.305953]  ? __mutex_unlock_slowpath+0x3e/0x208
[   40.306278]  of_unittest_untrack_overlay+0x4e/0xe8
[   40.306615]  of_unittest+0x1997/0x1a34
[   40.306876]  ? of_unittest_changeset+0xab3/0xab3
[   40.307194]  do_one_initcall+0x8a/0x190
[   40.307460]  kernel_init_freeable+0x243/0x2ba
[   40.307764]  ? rest_init+0x110/0x110
[   40.308010]  kernel_init+0x6/0x103
[   40.308245]  ? rest_init+0x110/0x110
[   40.308491]  ret_from_fork+0x1f/0x30
[   40.308745] ================================================================================
[   40.309338] ### dt-test ### FAIL of_unittest_overlay_high_level():2998 overlay_base_root not initialized
[   40.309984] ### dt-test ### end of unittest - 253 passed, 2 failed


To reproduce:

        # build kernel
	cd linux
	cp config-5.6.0-rc1-00120-g1adc86798fda9 .config
	make HOSTCC=gcc-9 CC=gcc-9 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage

        git clone https://github.com/intel/lkp-tests.git
        cd lkp-tests
        bin/lkp qemu -k <bzImage> job-script # job-script is attached in this email



Thanks,
Rong Chen


View attachment "config-5.6.0-rc1-00120-g1adc86798fda9" of type "text/plain" (124806 bytes)

View attachment "job-script" of type "text/plain" (4642 bytes)

Download attachment "dmesg.xz" of type "application/x-xz" (17152 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ