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>] [thread-next>] [day] [month] [year] [list]
Date:   Sun, 1 Oct 2017 07:12:51 +0800
From:   kernel test robot <fengguang.wu@...el.com>
To:     Masami Hiramatsu <mhiramat@...nel.org>
Cc:     Ingo Molnar <mingo@...nel.org>, Alexei Starovoitov <ast@...com>,
        Alexei Starovoitov <ast@...nel.org>,
        Ananth N Mavinakayanahalli <ananth@...ux.vnet.ibm.com>,
        Linus Torvalds <torvalds@...ux-foundation.org>,
        "Paul E . McKenney" <paulmck@...ux.vnet.ibm.com>,
        Peter Zijlstra <peterz@...radead.org>,
        Steven Rostedt <rostedt@...dmis.org>,
        Thomas Gleixner <tglx@...utronix.de>,
        LKML <linux-kernel@...r.kernel.org>,
        "H. Peter Anvin" <hpa@...or.com>, tipbuild@...or.com, lkp@...org
Subject: [kprobes/x86]  a19b2e3d78:
 WARNING:at_kernel/locking/lockdep.c:#trace_hardirqs_off_caller


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

commit: a19b2e3d783964d48d2b494439648e929bcdc976 ("kprobes/x86: Remove IRQ disabling from ftrace-based/optimized kprobes")
https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git perf/core

in testcase: boot

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

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


+----------------------------------------------------------------+------------+------------+
|                                                                | 5bb4fc2d86 | a19b2e3d78 |
+----------------------------------------------------------------+------------+------------+
| boot_successes                                                 | 12         | 0          |
| boot_failures                                                  | 0          | 14         |
| WARNING:at_kernel/locking/lockdep.c:#trace_hardirqs_off_caller | 0          | 14         |
| BUG:kernel_hang_in_test_stage                                  | 0          | 2          |
+----------------------------------------------------------------+------------+------------+



[   86.794775] WARNING: CPU: 1 PID: 1 at kernel/locking/lockdep.c:2962 trace_hardirqs_off_caller+0x6a/0xa1
[   86.816156] Modules linked in:
[   86.823679] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.14.0-rc2-00179-ga19b2e3 #139
[   86.839654] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.9.3-20161025_171302-gandalf 04/01/2014
[   86.860817] task: ffffa01adbd58040 task.stack: ffffc18ac0630000
[   86.873128] RIP: 0010:trace_hardirqs_off_caller+0x6a/0xa1
[   86.885573] RSP: 0000:ffffc18ac0633ca0 EFLAGS: 00010286
[   86.896944] RAX: 0000000000000025 RBX: ffffa01adbd58040 RCX: ffffa01adbd58040
[   86.912305] RDX: 0000000000000092 RSI: ffffffffa013cb72 RDI: 0000000000000293
[   86.927660] RBP: ffffc18ac0633cb0 R08: 0000000000000001 R09: 0000000000000001
[   86.942861] R10: ffffc18ac0633e28 R11: dead000000000200 R12: ffffffffa009c722
[   86.957936] R13: ffffa01adf40dbe0 R14: ffffffffa017f6ca R15: ffffffffa017f6ce
[   86.973045] FS:  0000000000000000(0000) GS:ffffa01adf400000(0000) knlGS:0000000000000000
[   86.990564] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   87.002751] CR2: ffffc18ac06cc000 CR3: 000000000b28f001 CR4: 00000000000206e0
[   87.018115] Call Trace:
[   87.025046]  trace_hardirqs_off+0xd/0xf
[   87.034185]  setjmp_pre_handler+0x6c/0x95
[   87.043738]  kprobe_ftrace_handler+0xc3/0xf4
[   87.054278]  ? arch_local_save_flags+0xd/0xd
[   87.064388]  ? init_test_probes+0x201/0x462
[   87.074271]  ftrace_ops_assist_func+0xa3/0xe0
[   87.084804]  0xffffffffc00830d5
[   87.092808]  ? kprobe_target+0x1/0x16
[   87.101421]  kprobe_target+0x5/0x16
[   87.109749]  init_test_probes+0x201/0x462
[   87.118988]  ? kprobe_target+0x5/0x16
[   87.127846]  ? init_test_probes+0x201/0x462
[   87.137740]  init_kprobes+0x1f7/0x204
[   87.145837]  ? debugfs_kprobe_init+0xaa/0xaa
[   87.155084]  ? set_debug_rodata+0x17/0x17
[   87.162962]  do_one_initcall+0x90/0x138
[   87.171029]  ? set_debug_rodata+0x17/0x17
[   87.179522]  kernel_init_freeable+0x1c6/0x24e
[   87.188499]  ? rest_init+0xca/0xca
[   87.196696]  kernel_init+0xe/0xfa
[   87.219577]  ret_from_fork+0x2a/0x40
[   87.227413] Code: 0f ba e0 09 73 29 e8 d1 09 6d 00 85 c0 74 4e 83 3d 46 be 7a 04 00 75 45 48 c7 c6 cd 92 c5 a2 48 c7 c7 bf 10 c4 a2 e8 89 4d 01 00 <0f> ff eb 2e 83 bb c8 08 00 00 00 74 25 8b 83 a8 08 00 00 c7 83 
[   87.264878] ---[ end trace 7927ffff7c5c9021 ]---


To reproduce:

        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,
lkp

View attachment "config-4.14.0-rc2-00179-ga19b2e3" of type "text/plain" (163080 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ