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: <202301310919.b9d56ee3-yujie.liu@intel.com>
Date:   Tue, 31 Jan 2023 14:59:44 +0800
From:   kernel test robot <yujie.liu@...el.com>
To:     Maxime Ripard <maxime@...no.tech>
CC:     <oe-lkp@...ts.linux.dev>, <lkp@...el.com>,
        <linux-kernel@...r.kernel.org>, Stephen Boyd <sboyd@...nel.org>,
        Linux Kernel Functional Testing <lkft@...aro.org>,
        Naresh Kamboju <naresh.kamboju@...aro.org>,
        <linux-arm-kernel@...ts.infradead.org>, <linux-clk@...r.kernel.org>
Subject: [linus:master] [clk] 262ca38f4b:
 WARNING:at_drivers/clk/clk.c:#clk_core_get_boundaries

Greeting,

FYI, we noticed WARNING:at_drivers/clk/clk.c:#clk_core_get_boundaries due to commit (built with clang-14):

commit: 262ca38f4b6eb418b20b8e1d6d8495c6a98727c1 ("clk: Stop forwarding clk_rate_requests to the parent")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master

in testcase: kunit
version: 
with following parameters:

	group: group-02

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

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


[   78.186954][  T794] ------------[ cut here ]------------
[ 78.189287][ T794] WARNING: CPU: 0 PID: 794 at drivers/clk/clk.c:675 clk_core_get_boundaries (clk.c:?) 
[   78.192842][  T794] Modules linked in: clk_test(N) clk_gate_test(N)
[   78.193678][  T794] CPU: 0 PID: 794 Comm: kunit_try_catch Tainted: G                 N 6.0.0-rc1-00021-g262ca38f4b6e #1
[   78.195052][  T794] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.0-debian-1.16.0-5 04/01/2014
[ 78.196362][ T794] RIP: 0010:clk_core_get_boundaries (clk.c:?) 
[ 78.197220][ T794] Code: 48 89 df e8 fb 2e ee fe 48 8b 03 48 8d 58 c8 48 85 c0 48 0f 44 d8 48 85 db 75 81 48 83 c4 28 5b 41 5c 41 5d 41 5e 41 5f 5d c3 <0f> 0b e9 fa fd ff ff 48 c7 c1 c4 03 a1 87 80 e1 07 80 c1 03 38 c1
All code
========
   0:	48 89 df             	mov    %rbx,%rdi
   3:	e8 fb 2e ee fe       	callq  0xfffffffffeee2f03
   8:	48 8b 03             	mov    (%rbx),%rax
   b:	48 8d 58 c8          	lea    -0x38(%rax),%rbx
   f:	48 85 c0             	test   %rax,%rax
  12:	48 0f 44 d8          	cmove  %rax,%rbx
  16:	48 85 db             	test   %rbx,%rbx
  19:	75 81                	jne    0xffffffffffffff9c
  1b:	48 83 c4 28          	add    $0x28,%rsp
  1f:	5b                   	pop    %rbx
  20:	41 5c                	pop    %r12
  22:	41 5d                	pop    %r13
  24:	41 5e                	pop    %r14
  26:	41 5f                	pop    %r15
  28:	5d                   	pop    %rbp
  29:	c3                   	retq   
  2a:*	0f 0b                	ud2    		<-- trapping instruction
  2c:	e9 fa fd ff ff       	jmpq   0xfffffffffffffe2b
  31:	48 c7 c1 c4 03 a1 87 	mov    $0xffffffff87a103c4,%rcx
  38:	80 e1 07             	and    $0x7,%cl
  3b:	80 c1 03             	add    $0x3,%cl
  3e:	38 c1                	cmp    %al,%cl

Code starting with the faulting instruction
===========================================
   0:	0f 0b                	ud2    
   2:	e9 fa fd ff ff       	jmpq   0xfffffffffffffe01
   7:	48 c7 c1 c4 03 a1 87 	mov    $0xffffffff87a103c4,%rcx
   e:	80 e1 07             	and    $0x7,%cl
  11:	80 c1 03             	add    $0x3,%cl
  14:	38 c1                	cmp    %al,%cl
[   78.199523][  T794] RSP: 0000:ffff88813180fd60 EFLAGS: 00010246
[   78.200306][  T794] RAX: 0000000000000000 RBX: ffff888160f21600 RCX: 0000000000000001
[   78.201396][  T794] RDX: ffff88813180fe30 RSI: 00000000ffffffff RDI: ffffffff87016960
[   78.202431][  T794] RBP: ffff88813180fdb0 R08: dffffc0000000000 R09: ffffed1026301fb6
[   78.203476][  T794] R10: 0000000000000000 R11: dfffe91026301fb7 R12: ffff88813180fe28
[   78.225052][  T794] R13: dffffc0000000000 R14: ffff888160f21600 R15: ffff88813180fe20
[   78.227037][  T794] FS:  0000000000000000(0000) GS:ffffffff86744000(0000) knlGS:0000000000000000
[   78.245081][  T794] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   78.246728][  T794] CR2: 000055826e6bd000 CR3: 000000015227d000 CR4: 00000000000006b0
[   78.248833][  T794] Call Trace:
[   78.249803][  T794]  <TASK>
[ 78.250753][ T794] ? __kasan_check_write (??:?) 
[ 78.252065][ T794] ? __mutex_unlock_slowpath (mutex.c:?) 
[ 78.253148][ T794] clk_core_init_rate_req (clk.c:?) 
[ 78.253900][ T794] clk_hw_init_rate_request (??:?) 
[ 78.254633][ T794] clk_leaf_mux_set_rate_parent_determine_rate (clk_test.c:?) clk_test
[ 78.255725][ T794] ? trace_hardirqs_on (??:?) 
[ 78.256403][ T794] kunit_try_run_case (test.c:?) 
[ 78.257234][ T794] ? __kthread_parkme (kthread.c:?) 
[ 78.257936][ T794] ? kunit_cleanup (test.c:?) 
[ 78.258590][ T794] kunit_generic_run_threadfn_adapter (try-catch.c:?) 
[ 78.259396][ T794] kthread (kthread.c:?) 
[ 78.259975][ T794] ? kunit_try_catch_run (try-catch.c:?) 
[ 78.260775][ T794] ? kthread_blkcg (kthread.c:?) 
[ 78.261423][ T794] ret_from_fork (??:?) 
[   78.262051][  T794]  </TASK>
[   78.262520][  T794] irq event stamp: 1953
[ 78.263114][ T794] hardirqs last enabled at (1965): __up_console_sem (printk.c:?) 
[ 78.264326][ T794] hardirqs last disabled at (1978): __up_console_sem (printk.c:?) 
[ 78.266372][ T794] softirqs last enabled at (1914): __do_softirq (??:?) 
[ 78.268719][ T794] softirqs last disabled at (1905): irq_exit_rcu (??:?) 
[   78.270772][  T794] ---[ end trace 0000000000000000 ]---


If you fix the issue, kindly add following tag
| Reported-by: kernel test robot <yujie.liu@...el.com>
| Link: https://lore.kernel.org/oe-lkp/202301310919.b9d56ee3-yujie.liu@intel.com


To reproduce:

        # build kernel
	cd linux
	cp config-6.0.0-rc1-00021-g262ca38f4b6e .config
	make HOSTCC=clang-14 CC=clang-14 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules
	make HOSTCC=clang-14 CC=clang-14 ARCH=x86_64 INSTALL_MOD_PATH=<mod-install-dir> modules_install
	cd <mod-install-dir>
	find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz


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

        # if come across any failure that blocks the test,
        # please remove ~/.lkp and /lkp dir to run from a clean state.


-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

View attachment "config-6.0.0-rc1-00021-g262ca38f4b6e" of type "text/plain" (170525 bytes)

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

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

View attachment "kunit" of type "text/plain" (342125 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ