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:   Tue, 11 Jul 2023 15:16:38 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Arjan van de Ven <arjan@...ux.intel.com>
CC:     <oe-lkp@...ts.linux.dev>, <lkp@...el.com>,
        <linux-kernel@...r.kernel.org>,
        "Rafael J. Wysocki" <rafael.j.wysocki@...el.com>,
        <linux-pm@...r.kernel.org>, <oliver.sang@...el.com>
Subject: [linus:master] [intel_idle]  2f3d08f074:
 Kernel_panic-not_syncing:stack-protector:Kernel_stack_is_corrupted_in:cpuidle_enter_state



Hello,

kernel test robot noticed "Kernel_panic-not_syncing:stack-protector:Kernel_stack_is_corrupted_in:cpuidle_enter_state" on:

commit: 2f3d08f074b02aa449de27238fda72496c789034 ("intel_idle: Add support for using intel_idle in a VM guest using just hlt")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master

[test failed on linus/master 3f01e9fed8454dcd89727016c3e5b2fbb8f8e50c]
[test failed on linux-next/master fe57d0d86f03a8b2afe2869a95477d0ed1824c96]

in testcase: boot

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

(please refer to attached dmesg/kmsg for entire log/backtrace)

this issue doesn't not always happen, and we noticed both this commit and its
parent could have various
  Kernel_panic-not_syncing:stack-protector:Kernel_stack_is_corrupted_in:xxx
in similar context

since "dmesg.Kernel_panic-not_syncing:stack-protector:Kernel_stack_is_corrupted_in:cpuidle_enter_state"
only happens on this commit and never on parent in our tests, and this commit
itself is about intel_idle, though we don't have enough idea if this is really
irrelevant, just report what we observed in tests FYI.


7826c069c8765969 2f3d08f074b02aa449de27238fd
---------------- ---------------------------
       fail:runs  %reproduction    fail:runs
           |             |             |
          1:199         -1%            :100   dmesg.Kernel_panic-not_syncing:stack-protector:Kernel_stack_is_corrupted_in:__do_softirq
          1:199         -1%            :100   dmesg.Kernel_panic-not_syncing:stack-protector:Kernel_stack_is_corrupted_in:__lock_acquire
         42:199        -21%            :100   dmesg.Kernel_panic-not_syncing:stack-protector:Kernel_stack_is_corrupted_in:__schedule
           :199         28%          56:100   dmesg.Kernel_panic-not_syncing:stack-protector:Kernel_stack_is_corrupted_in:cpuidle_enter_state
           :199          1%           1:100   dmesg.Kernel_panic-not_syncing:stack-protector:Kernel_stack_is_corrupted_in:ct_idle_exit
        154:199        -56%          42:100   dmesg.Kernel_panic-not_syncing:stack-protector:Kernel_stack_is_corrupted_in:free_initmem
          1:199         -1%            :100   dmesg.Kernel_panic-not_syncing:stack-protector:Kernel_stack_is_corrupted_in:ktime_get_update_offsets_now
           :199          1%           1:100   dmesg.Kernel_panic-not_syncing:stack-protector:Kernel_stack_is_corrupted_in:lock_unpin_lock



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 <oliver.sang@...el.com>
| Closes: https://lore.kernel.org/oe-lkp/202307111411.7c42759b-oliver.sang@intel.com


[    9.160767][    T1]      nameserver0=10.0.2.3
[    9.163594][    T1] clk: Disabling unused clocks
[    9.164623][    T1] ALSA device list:
[    9.165426][    T1]   No soundcards found.
[    9.172645][    T1] Freeing unused kernel image (initmem) memory: 1184K
[ 9.173049][ T0] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: cpuidle_enter_state (kbuild/src/consumer/drivers/cpuidle/cpuidle.c:326) 
[    9.173053][    T0] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G S                 6.4.0-rc6-00003-g2f3d08f074b0 #1
[    9.173057][    T0] Call Trace:
[ 9.173060][ T0] ? panic (kbuild/src/consumer/lib/dump_stack.c:113 kbuild/src/consumer/kernel/panic.c:340) 
[ 9.173068][ T0] ? __stack_chk_fail (kbuild/src/consumer/kernel/sched/clock.c:297) 
[ 9.173073][ T0] ? cpuidle_enter_state (kbuild/src/consumer/drivers/cpuidle/cpuidle.c:326) 
[ 9.173078][ T0] ? cpuidle_enter_state (kbuild/src/consumer/drivers/cpuidle/cpuidle.c:326) 
[ 9.173086][ T0] ? do_idle (kbuild/src/consumer/drivers/cpuidle/cpuidle.c:390 kbuild/src/consumer/kernel/sched/idle.c:134 kbuild/src/consumer/kernel/sched/idle.c:215 kbuild/src/consumer/kernel/sched/idle.c:282) 


To reproduce:

        # build kernel
	cd linux
	cp config-6.4.0-rc6-00003-g2f3d08f074b0 .config
	make HOSTCC=clang-15 CC=clang-15 ARCH=i386 olddefconfig prepare modules_prepare bzImage modules
	make HOSTCC=clang-15 CC=clang-15 ARCH=i386 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/wiki



View attachment "config-6.4.0-rc6-00003-g2f3d08f074b0" of type "text/plain" (172445 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ