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: <20171102130544.GM13676@yexl-desktop>
Date:   Thu, 2 Nov 2017 21:05:44 +0800
From:   kernel test robot <xiaolong.ye@...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>, lkp@...org
Subject: [lkp-robot] [kprobes/x86]  b664d57f39:
 BUG:using_smp_processor_id()in_preemptible


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

commit: b664d57f39d01e775204d4f1a7e2f8bda77bc549 ("kprobes/x86: Remove IRQ disabling from jprobe handlers")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master

in testcase: boot

on test machine: qemu-system-x86_64 -enable-kvm -smp 2 -m 512M

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


+--------------------------------------------+------------+------------+
|                                            | ee213fc72f | b664d57f39 |
+--------------------------------------------+------------+------------+
| boot_successes                             | 82         | 2          |
| boot_failures                              | 0          | 80         |
| BUG:using_smp_processor_id()in_preemptible | 0          | 80         |
| int3:#[##]                                 | 0          | 17         |
| RIP:jprobe_return_end                      | 0          | 17         |
| Kernel_panic-not_syncing:Fatal_exception   | 0          | 17         |
+--------------------------------------------+------------+------------+



[   43.572944] BUG: using smp_processor_id() in preemptible [00000000] code: swapper/0/1
[   43.589378] caller is debug_smp_processor_id+0x1c/0x1e
[   43.603335] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.0-rc3-00002-gb664d57 #2
[   43.604188] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   43.604188] Call Trace:
[   43.604188]  dump_stack+0x85/0xb0
[   43.604188]  check_preemption_disabled+0x11e/0x13a
[   43.604188]  debug_smp_processor_id+0x1c/0x1e
[   43.604188]  jprobe_return+0x1b/0x2e
[   43.604188]  j_kprobe_target+0x48/0x4d
[   43.604188]  init_test_probes+0x29a/0x5c3
[   43.604188]  init_kprobes+0x262/0x272
[   43.604188]  ? debugfs_kprobe_init+0xd6/0xd6
[   43.604188]  do_one_initcall+0xaa/0x1ae
[   43.604188]  kernel_init_freeable+0x20d/0x2b5
[   43.604188]  ? rest_init+0x157/0x157
[   43.604188]  kernel_init+0x14/0x15d
[   43.604188]  ? rest_init+0x157/0x157
[   43.604188]  ret_from_fork+0x25/0x30
[   43.769768] tsc: Refined TSC clocksource calibration: 2693.508 MHz
[   43.774901] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x26d349e8249, max_idle_ns: 440795288087 ns
[   44.108271] BUG: using smp_processor_id() in preemptible [00000000] code: swapper/0/1
[   44.115706] caller is debug_smp_processor_id+0x1c/0x1e
[   44.123287] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.0-rc3-00002-gb664d57 #2
[   44.136256] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   44.152148] Call Trace:
[   44.160150]  dump_stack+0x85/0xb0
[   44.168150]  check_preemption_disabled+0x11e/0x13a
[   44.176132]  debug_smp_processor_id+0x1c/0x1e
[   44.184148]  jprobe_return+0x1b/0x2e
[   44.192157]  j_kprobe_target+0x48/0x4d
[   44.200144]  init_test_probes+0x341/0x5c3
[   44.216147]  init_kprobes+0x262/0x272
[   44.220151]  ? debugfs_kprobe_init+0xd6/0xd6
[   44.236135]  do_one_initcall+0xaa/0x1ae
[   44.244151]  kernel_init_freeable+0x20d/0x2b5
[   44.252152]  ? rest_init+0x157/0x157
[   44.260151]  kernel_init+0x14/0x15d
[   44.268149]  ? rest_init+0x157/0x157
[   44.276148]  ret_from_fork+0x25/0x30
[   44.293463] BUG: using smp_processor_id() in preemptible [00000000] code: swapper/0/1
[   44.309634] caller is debug_smp_processor_id+0x1c/0x1e
[   44.318450] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.14.0-rc3-00002-gb664d57 #2
[   44.319354] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   44.319354] Call Trace:
[   44.319354]  dump_stack+0x85/0xb0
[   44.319354]  check_preemption_disabled+0x11e/0x13a
[   44.319354]  debug_smp_processor_id+0x1c/0x1e
[   44.319354]  jprobe_return+0x1b/0x2e
[   44.319354]  j_kprobe_target+0x48/0x4d
[   44.319354]  init_test_probes+0x37e/0x5c3
[   44.319354]  init_kprobes+0x262/0x272
[   44.319354]  ? debugfs_kprobe_init+0xd6/0xd6
[   44.319354]  do_one_initcall+0xaa/0x1ae
[   44.319354]  kernel_init_freeable+0x20d/0x2b5
[   44.319354]  ? rest_init+0x157/0x157
[   44.319354]  kernel_init+0x14/0x15d
[   44.319354]  ? rest_init+0x157/0x157
[   44.319354]  ret_from_fork+0x25/0x30
[   44.479432] int3: 0000 [#1] PREEMPT SMP
[   44.480285] Modules linked in:
[   44.480285] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.14.0-rc3-00002-gb664d57 #2
[   44.480285] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   44.480285] task: ffff8c661c630000 task.stack: ffff8c661c638000
[   44.480285] RIP: 0010:jprobe_return_end+0x0/0x4
[   44.480285] RSP: 0000:0000000000000000 EFLAGS: 00000296
[   44.480285] RAX: ffff8c661ca00000 RBX: ffff8c661c63bd90 RCX: ffff8c661c630000
[   44.480285] RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000296
[   44.480285] RBP: ffff8c661c63bd98 R08: 0000000000000000 R09: ffff8c661c630c10
[   44.480285] R10: 00000000fff5c8d7 R11: 0000000000000000 R12: 0000000000000001
[   44.480285] R13: 0000000000000000 R14: ffff8c661c631760 R15: 0000000000000000
[   44.480285] FS:  0000000000000000(0000) GS:ffff8c661ca00000(0000) knlGS:0000000000000000
[   44.480285] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   44.480285] CR2: 00000000ffffffff CR3: 0000000006e11000 CR4: 00000000000006e0
[   44.480285] Call Trace:
[   44.480285] Code: 00 00 55 48 89 e5 53 48 c7 c3 40 d9 00 00 e8 0c c2 11 00 e8 da 53 57 00 89 c0 48 8b 04 c5 40 13 7e 84 48 8b 5c 18 18 48 87 dc cc <90> 5b 5d c3 0f 1f 44 00 00 55 48 89 e5 41 56 41 55 41 54 53 49 
[   44.480285] RIP: jprobe_return_end+0x0/0x4 RSP: 0000000000000000
[   44.683245] ---[ end trace 8b9e4a77732ab913 ]---


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

View attachment "config-4.14.0-rc3-00002-gb664d57" of type "text/plain" (123969 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ