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  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:   Wed, 22 May 2019 12:37:07 +0800
From:   kernel test robot <rong.a.chen@...el.com>
To:     Waiman Long <longman@...hat.com>
Cc:     Ingo Molnar <mingo@...nel.org>,
        Peter Zijlstra <a.p.zijlstra@...llo.nl>,
        Davidlohr Bueso <dbueso@...e.de>,
        Andrew Morton <akpm@...ux-foundation.org>,
        Arnd Bergmann <arnd@...db.de>, Borislav Petkov <bp@...en8.de>,
        Davidlohr Bueso <dave@...olabs.net>,
        Linus Torvalds <torvalds@...ux-foundation.org>,
        "Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
        Peter Zijlstra <peterz@...radead.org>,
        Thomas Gleixner <tglx@...utronix.de>,
        Tim Chen <tim.c.chen@...ux.intel.com>,
        Will Deacon <will.deacon@....com>,
        LKML <linux-kernel@...r.kernel.org>, lkp@...org
Subject: [locking/rwsem] a8654596f0:
 BUG:using__this_cpu_add()in_preemptible[#]code:cryptomgr_probe

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

commit: a8654596f0371c2604c4d475422c48f4fc6a56c9 ("locking/rwsem: Enable lock event counting")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master

in testcase: trinity
with following parameters:

	runtime: 300s

test-description: Trinity is a linux system call fuzz tester.
test-url: http://codemonkey.org.uk/projects/trinity/


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

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


+----------------------------------------------------------------+------------+------------+
|                                                                | bf20616f46 | a8654596f0 |
+----------------------------------------------------------------+------------+------------+
| boot_successes                                                 | 161        | 0          |
| boot_failures                                                  | 3          | 126        |
| BUG:kernel_reboot-without-warning_in_test_stage                | 3          |            |
| BUG:using__this_cpu_add()in_preemptible[#]code:swapper         | 0          | 118        |
| BUG:using__this_cpu_add()in_preemptible[#]code:cryptomgr_probe | 0          | 18         |
| BUG:using__this_cpu_add()in_preemptible[#]code:init            | 0          | 19         |
| RIP:__clear_user                                               | 0          | 19         |
| RIP:copy_user_generic_string                                   | 0          | 12         |
| RIP:create_elf_tables                                          | 0          | 2          |
| BUG:using__this_cpu_add()in_preemptible                        | 0          | 1          |
| BUG:using__this_cpu_add()in_preemptible[#]code:udevadm         | 0          | 1          |
| BUG:using__this_cpu_add()in_preemptible[#]code:systemd-journal | 0          | 2          |
| BUG:using__this_cpu_add()in_preemptible[#]code:systemd-udevd   | 0          | 1          |
| BUG:using__this_cpu_add()in_preemptible[#]code:sed             | 0          | 2          |
| BUG:using__this_cpu_add()in_preemptible[#]code:systemd         | 0          | 1          |
| BUG:using__this_cpu_add()in_preemptible[#]code:rs:main_Q:Reg   | 0          | 1          |
| BUG:using__this_cpu_add()in_preemptible[#]code:in:imklog       | 0          | 1          |
| BUG:using__this_cpu_add()in_preemptible[#]code:trinity-main    | 0          | 4          |
| BUG:using__this_cpu_add()in_preemptible[#]code:meminfo         | 0          | 3          |
| RIP:filldir                                                    | 0          | 1          |
| RIP:__put_user_4                                               | 0          | 2          |
+----------------------------------------------------------------+------------+------------+


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


[   23.899712] BUG: using __this_cpu_add() in preemptible [00000000] code: cryptomgr_probe/248
[   23.901529] caller is rwsem_optimistic_spin+0xf0/0x280
[   23.902657] CPU: 0 PID: 248 Comm: cryptomgr_probe Tainted: G                T 5.1.0-rc4-00069-ga865459 #1
[   23.904690] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   23.906477] Call Trace:
[   23.907125]  dump_stack+0x71/0xa3
[   23.907931]  __this_cpu_preempt_check+0x110/0x120
[   23.908984]  rwsem_optimistic_spin+0xf0/0x280
[   23.909981]  ? rwsem_spin_on_owner+0x100/0x100
[   23.910986]  ? preempt_count_sub+0x13/0xc0
[   23.911929]  ? schedule+0x64/0xc0
[   23.912726]  rwsem_down_write_failed+0xfd/0x4b0
[   23.913747]  ? rwsem_down_read_failed_killable+0x450/0x450
[   23.914941]  ? _raw_spin_lock_irq+0x80/0xd0
[   23.915896]  ? _raw_spin_lock_bh+0xc0/0xc0
[   23.916834]  ? __might_sleep+0x2f/0xd0
[   23.917712]  ? ___might_sleep+0x81/0x200
[   23.918621]  ? preempt_count_sub+0x13/0xc0
[   23.919561]  ? strncmp+0x65/0xa0
[   23.920343]  ? strncmp+0x65/0xa0
[   23.921130]  ? crc_t10dif_rehash+0x43/0xc0
[   23.922067]  ? __might_sleep+0x2f/0xd0
[   23.922942]  ? down_write+0x5a/0x60
[   23.923775]  down_write+0x5a/0x60
[   23.924577]  crypto_larval_kill+0x13/0xb0
[   23.925502]  crypto_register_instance+0x108/0x130
[   23.926547]  ? crypto_ctr_create+0x140/0x140
[   23.927526]  ? cryptomgr_notify+0x5c0/0x5c0
[   23.928476]  crypto_ctr_create+0x125/0x140
[   23.929412]  ? crypto_rfc3686_free+0x20/0x20
[   23.930392]  cryptomgr_probe+0x38/0x120
[   23.931287]  ? cryptomgr_notify+0x5c0/0x5c0
[   23.932245]  kthread+0x1d6/0x200
[   23.933033]  ? __kthread_create_on_node+0x260/0x260
[   23.934127]  ret_from_fork+0x1f/0x30
[   23.935086] BUG: using __this_cpu_add() in preemptible [00000000] code: cryptomgr_probe/248
[   23.936922] caller is rwsem_down_write_failed+0x2fc/0x4b0
[   23.938109] CPU: 0 PID: 248 Comm: cryptomgr_probe Tainted: G                T 5.1.0-rc4-00069-ga865459 #1
[   23.940134] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   23.941917] Call Trace:
[   23.942559]  dump_stack+0x71/0xa3
[   23.943359]  __this_cpu_preempt_check+0x110/0x120
[   23.944413]  ? rwsem_down_write_failed+0x2ef/0x4b0
[   23.945479]  rwsem_down_write_failed+0x2fc/0x4b0
[   23.946520]  ? rwsem_down_read_failed_killable+0x450/0x450
[   23.947714]  ? _raw_spin_lock_irq+0x80/0xd0
[   23.948661]  ? _raw_spin_lock_bh+0xc0/0xc0
[   23.949604]  ? __might_sleep+0x2f/0xd0
[   23.950483]  ? ___might_sleep+0x81/0x200
[   23.951385]  ? preempt_count_sub+0x13/0xc0
[   23.952321]  ? strncmp+0x65/0xa0
[   23.953106]  ? strncmp+0x65/0xa0
[   23.953890]  ? crc_t10dif_rehash+0x43/0xc0
[   23.954821]  ? __might_sleep+0x2f/0xd0
[   23.955708]  ? down_write+0x5a/0x60
[   23.956537]  down_write+0x5a/0x60
[   23.957335]  crypto_larval_kill+0x13/0xb0
[   23.958266]  crypto_register_instance+0x108/0x130
[   23.959316]  ? crypto_ctr_create+0x140/0x140
[   23.960283]  ? cryptomgr_notify+0x5c0/0x5c0
[   23.961236]  crypto_ctr_create+0x125/0x140
[   23.962180]  ? crypto_rfc3686_free+0x20/0x20
[   23.963156]  cryptomgr_probe+0x38/0x120
[   23.964046]  ? cryptomgr_notify+0x5c0/0x5c0
[   23.964997]  kthread+0x1d6/0x200
[   23.965785]  ? __kthread_create_on_node+0x260/0x260
[   23.966876]  ret_from_fork+0x1f/0x30
[   23.971678] BUG: using __this_cpu_add() in preemptible [00000000] code: cryptomgr_probe/248
[   23.973517] caller is rwsem_down_write_failed+0x415/0x4b0
[   23.974703] CPU: 0 PID: 248 Comm: cryptomgr_probe Tainted: G                T 5.1.0-rc4-00069-ga865459 #1
[   23.976712] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   23.978503] Call Trace:
[   23.979146]  dump_stack+0x71/0xa3
[   23.979953]  __this_cpu_preempt_check+0x110/0x120
[   23.981003]  rwsem_down_write_failed+0x415/0x4b0
[   23.982034]  ? rwsem_down_read_failed_killable+0x450/0x450
[   23.983225]  ? _raw_spin_lock_irq+0x80/0xd0
[   23.984177]  ? _raw_spin_lock_bh+0xc0/0xc0
[   23.985127]  ? __might_sleep+0x2f/0xd0
[   23.986001]  ? ___might_sleep+0x81/0x200
[   23.986905]  ? preempt_count_sub+0x13/0xc0
[   23.987854]  ? strncmp+0x65/0xa0
[   23.988638]  ? strncmp+0x65/0xa0
[   23.989418]  ? crc_t10dif_rehash+0x43/0xc0
[   23.990357]  ? __might_sleep+0x2f/0xd0
[   23.991237]  ? down_write+0x5a/0x60
[   23.992061]  down_write+0x5a/0x60
[   23.992856]  crypto_larval_kill+0x13/0xb0
[   23.993781]  crypto_register_instance+0x108/0x130
[   23.994838]  ? crypto_ctr_create+0x140/0x140
[   23.995807]  ? cryptomgr_notify+0x5c0/0x5c0
[   23.996754]  crypto_ctr_create+0x125/0x140
[   23.997696]  ? crypto_rfc3686_free+0x20/0x20
[   23.998664]  cryptomgr_probe+0x38/0x120
[   23.999555]  ? cryptomgr_notify+0x5c0/0x5c0
[   24.000516]  kthread+0x1d6/0x200
[   24.001301]  ? __kthread_create_on_node+0x260/0x260
[   24.002380]  ret_from_fork+0x1f/0x30
[   24.003675] Key type big_key registered
[   24.007311] PM:   Magic number: 3:423:374
[   24.015767] DHCP/BOOTP: Ignoring device wpan0, MTU 123 too small
[   24.017096] DHCP/BOOTP: Ignoring device wpan1, MTU 123 too small
[   24.020223] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
[   24.022414] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   24.039706] Sending DHCP requests ., OK
[   24.056671] IP-Config: Got DHCP answer from 10.0.2.2, my address is 10.0.2.15
[   24.058194] IP-Config: Complete:
[   24.058986]      device=eth0, hwaddr=52:54:00:12:34:56, ipaddr=10.0.2.15, mask=255.255.255.0, gw=10.0.2.2
[   24.061044]      host=vm-snb-2G-903, domain=, nis-domain=(none)
[   24.062335]      bootserver=10.0.2.2, rootserver=10.0.2.2, rootpath=
[   24.062337]      nameserver0=10.0.2.3
[   24.067529] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   24.070534] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   24.072158] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[   24.074058] platform regulatory.0: Falling back to syfs fallback for: regulatory.db
[   24.075816] ALSA device list:
[   24.076581]   #0: Loopback 1
[   24.077304]   #1: MTPAV on parallel port at 0x378
[   24.080586] Freeing unused kernel image memory: 2484K
[   24.095750] Write protecting the kernel read-only data: 59392k
[   24.098779] Freeing unused kernel image memory: 2040K
[   24.100318] Freeing unused kernel image memory: 652K
[   24.206562] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[   24.208053] rodata_test: all tests were successful
[   24.209315] Run /init as init process
[   24.210864] BUG: using __this_cpu_add() in preemptible [00000000] code: init/1
[   24.212520] caller is down_read_trylock+0x62/0xf0
[   24.213614] CPU: 1 PID: 1 Comm: init Tainted: G                T 5.1.0-rc4-00069-ga865459 #1
[   24.215484] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   24.217309] Call Trace:
[   24.217968]  dump_stack+0x71/0xa3
[   24.218780]  __this_cpu_preempt_check+0x110/0x120
[   24.219852]  down_read_trylock+0x62/0xf0
[   24.220775]  ? up+0x70/0x70
[   24.221483]  ? up_write+0x22/0x40
[   24.222293]  __do_page_fault+0x182/0x630
[   24.223217]  async_page_fault+0x1e/0x30
[   24.224127] RIP: 0010:__clear_user+0x31/0x60
[   24.225110] Code: f3 be 13 00 00 00 48 c7 c7 00 06 ee a1 e8 a7 2e 03 fe 66 66 90 48 89 d8 48 c1 eb 03 48 89 ef 83 e0 07 48 89 d9 48 85 c9 74 0f <48> c7 07 00 00 00 00 48 83 c7 08 ff c9 75 f1 48 89 c1 85 c9 74 0a
[   24.228928] RSP: 0000:ffff888067c17c98 EFLAGS: 00010202
[   24.230090] RAX: 0000000000000004 RBX: 00000000000001da RCX: 00000000000001da
[   24.231603] RDX: 0000000000000007 RSI: dffffc0000000000 RDI: 000055b9fa2bd12c
[   24.233113] RBP: 000055b9fa2bd12c R08: 000055b9fa293000 R09: ffffed100b684239
[   24.234618] R10: ffff88805b4211c7 R11: ffffed100b684239 R12: ffff88804f35f918
[   24.236140] R13: ffff88804f35f900 R14: ffff888052901a00 R15: ffff888067c10000
[   24.237652]  ? __clear_user+0x19/0x60
[   24.238524]  load_elf_binary+0x1157/0x1a80
[   24.239482]  ? elf_core_dump+0xe60/0xe60
[   24.240406]  search_binary_handler+0x76/0x140
[   24.241406]  __do_execve_file+0xc13/0xe30
[   24.242340]  ? search_binary_handler+0x140/0x140
[   24.243390]  ? memcpy+0x34/0x50
[   24.244171]  ? getname_kernel+0x105/0x1a0
[   24.245103]  ? rest_init+0xd0/0xd0
[   24.245934]  kernel_init+0x55/0x120
[   24.246778]  ? _raw_spin_unlock_irq+0x20/0x40
[   24.247778]  ? rest_init+0xd0/0xd0
[   24.248597]  ret_from_fork+0x1f/0x30
[   24.252055] BUG: using __this_cpu_add() in preemptible [00000000] code: init/1
[   24.253670] caller is down_read_trylock+0x62/0xf0
[   24.254736] CPU: 0 PID: 1 Comm: init Tainted: G                T 5.1.0-rc4-00069-ga865459 #1
[   24.256541] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   24.258303] Call Trace:
[   24.258946]  dump_stack+0x71/0xa3
[   24.259746]  __this_cpu_preempt_check+0x110/0x120
[   24.260792]  down_read_trylock+0x62/0xf0
[   24.261698]  ? up+0x70/0x70
[   24.262393]  ? up_write+0x22/0x40
[   24.263191]  __do_page_fault+0x182/0x630
[   24.264097]  async_page_fault+0x1e/0x30
[   24.264994] RIP: 0010:__clear_user+0x31/0x60
[   24.265962] Code: f3 be 13 00 00 00 48 c7 c7 00 06 ee a1 e8 a7 2e 03 fe 66 66 90 48 89 d8 48 c1 eb 03 48 89 ef 83 e0 07 48 89 d9 48 85 c9 74 0f <48> c7 07 00 00 00 00 48 83 c7 08 ff c9 75 f1 48 89 c1 85 c9 74 0a
[   24.269714] RSP: 0000:ffff888067c17c98 EFLAGS: 00010202
[   24.270852] RAX: 0000000000000000 RBX: 0000000000000008 RCX: 0000000000000008
[   24.272326] RDX: 0000000000000007 RSI: dffffc0000000000 RDI: 00007f3d7c08ffc0
[   24.273806] RBP: 00007f3d7c08ffc0 R08: 00007f3d7c08e000 R09: ffffed100b684239
[   24.275284] R10: ffff88805b4211c7 R11: ffffed100b684239 R12: 0000000000000000
[   24.276776] R13: ffff88804f35f900 R14: ffff888052901a00 R15: ffff888067c10000
[   24.278259]  ? __clear_user+0x19/0x60
[   24.279116]  load_elf_binary+0x112b/0x1a80
[   24.280060]  ? elf_core_dump+0xe60/0xe60
[   24.280966]  search_binary_handler+0x76/0x140
[   24.281943]  __do_execve_file+0xc13/0xe30
[   24.282867]  ? search_binary_handler+0x140/0x140
[   24.283896]  ? memcpy+0x34/0x50
[   24.284656]  ? getname_kernel+0x105/0x1a0
[   24.285570]  ? rest_init+0xd0/0xd0
[   24.286384]  kernel_init+0x55/0x120
[   24.287214]  ? _raw_spin_unlock_irq+0x20/0x40
[   24.288198]  ? rest_init+0xd0/0xd0
[   24.289013]  ret_from_fork+0x1f/0x30
[   24.289999] BUG: using __this_cpu_add() in preemptible [00000000] code: init/1
[   24.291591] caller is down_read_trylock+0x62/0xf0
[   24.292667] CPU: 0 PID: 1 Comm: init Tainted: G                T 5.1.0-rc4-00069-ga865459 #1
[   24.294477] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   24.296267] Call Trace:
[   24.296914]  dump_stack+0x71/0xa3
[   24.297714]  __this_cpu_preempt_check+0x110/0x120
[   24.298764]  down_read_trylock+0x62/0xf0
[   24.299673]  ? up+0x70/0x70
[   24.300371]  ? kfree+0x7b/0xb0
[   24.301126]  ? load_elf_binary+0x156e/0x1a80
[   24.302096]  ? search_binary_handler+0x76/0x140
[   24.303115]  __do_page_fault+0x182/0x630
[   24.304021]  async_page_fault+0x1e/0x30
[   24.304922] RIP: 0010:copy_user_generic_string+0x31/0x40
[   24.306086] Code: 27 89 f9 83 e1 07 74 15 83 e9 08 f7 d9 29 ca 8a 06 88 07 48 ff c6 48 ff c7 ff c9 75 f2 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 <f3> a4 31 c0 66 66 90 c3 0f 1f 80 00 00 00 00 66 66 90 83 fa 40 0f
[   24.309824] RSP: 0000:ffff888067c17bc8 EFLAGS: 00010297
[   24.310962] RAX: 0000000000000007 RBX: 00007ffeebd505a0 RCX: 0000000000000007
[   24.312446] RDX: 0000000000000007 RSI: ffffffffa10b27a0 RDI: 00007ffeebd50599
[   24.313932] RBP: ffff888052901a00 R08: 1ffffffff42164f4 R09: fffffbfff42164f4
[   24.315417] R10: 0000000000000006 R11: fffffbfff42164f5 R12: ffff88804e4df100
[   24.316906] R13: ffff88804f35f900 R14: ffff888052901a00 R15: ffff888067c10000
[   24.318398]  create_elf_tables+0x123/0x9bb
[   24.319340]  ? insert_vm_struct+0xd6/0x160
[   24.320278]  ? set_brk+0xa5/0xa5
[   24.321056]  ? up_write+0x22/0x40
[   24.321857]  ? map_vdso+0xe0/0x120
[   24.322666]  load_elf_binary+0x15ae/0x1a80
[   24.323605]  ? elf_core_dump+0xe60/0xe60
[   24.324516]  search_binary_handler+0x76/0x140
[   24.325496]  __do_execve_file+0xc13/0xe30
[   24.326419]  ? search_binary_handler+0x140/0x140
[   24.327457]  ? memcpy+0x34/0x50
[   24.328225]  ? getname_kernel+0x105/0x1a0
[   24.329150]  ? rest_init+0xd0/0xd0
[   24.329962]  kernel_init+0x55/0x120
[   24.330798]  ? _raw_spin_unlock_irq+0x20/0x40
[   24.331789]  ? rest_init+0xd0/0xd0
[   24.332597]  ret_from_fork+0x1f/0x30
[   24.335722] BUG: using __this_cpu_add() in preemptible [00000000] code: init/1
[   24.337322] caller is down_read_trylock+0x62/0xf0
[   24.338374] CPU: 0 PID: 1 Comm: init Tainted: G                T 5.1.0-rc4-00069-ga865459 #1
[   24.340187] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   24.341963] Call Trace:
[   24.342602]  dump_stack+0x71/0xa3
[   24.343396]  __this_cpu_preempt_check+0x110/0x120
[   24.344440]  down_read_trylock+0x62/0xf0
[   24.345350]  ? up+0x70/0x70
[   24.346060]  __do_page_fault+0x182/0x630
[   24.346967]  ? async_page_fault+0x8/0x30
[   24.347877]  ? async_page_fault+0x8/0x30
[   24.348786]  async_page_fault+0x1e/0x30
[   24.349671] RIP: 0033:0x7f3d7be6bc20
[   24.350518] Code: Bad RIP value.
[   24.351307] RSP: 002b:00007ffeebd503b0 EFLAGS: 00010202
[   24.352449] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[   24.353943] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[   24.355419] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
[   24.356897] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[   24.358385] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[   24.359942] BUG: using __this_cpu_add() in preemptible [00000000] code: init/1
[   24.361543] caller is down_read_trylock+0x62/0xf0
[   24.362590] CPU: 0 PID: 1 Comm: init Tainted: G                T 5.1.0-rc4-00069-ga865459 #1
[   24.364397] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   24.366180] Call Trace:
[   24.366823]  dump_stack+0x71/0xa3
[   24.367618]  __this_cpu_preempt_check+0x110/0x120
[   24.368662]  down_read_trylock+0x62/0xf0
[   24.369555]  ? up+0x70/0x70
[   24.370261]  __do_page_fault+0x182/0x630
[   24.371173]  ? async_page_fault+0x8/0x30
[   24.372078]  ? async_page_fault+0x8/0x30
[   24.372982]  async_page_fault+0x1e/0x30
[   24.373873] RIP: 0033:0x7f3d7be6c87f
[   24.374718] Code: 00 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 41 55 41 54 49 89 fc 53 48 83 ec 48 0f 31 48 c1 e2 20 89 c0 48 09 c2 <48> 8b 05 fa 25 22 00 48 89 15 d3 23 22 00 48 8d 15 ec 25 22 00 49
[   24.380083] RSP: 002b:00007ffeebd50330 EFLAGS: 00010202
[   24.381227] RAX: 00000000dec2e854 RBX: 0000000000000000 RCX: 0000000000000000
[   24.382709] RDX: 00000012dec2e854 RSI: 0000000000000000 RDI: 00007ffeebd503b0
[   24.384186] RBP: 00007ffeebd503a0 R08: 0000000000000000 R09: 0000000000000000
[   24.385666] R10: 0000000000000000 R11: 0000000000000000 R12: 00007ffeebd503b0
[   24.387143] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[   24.388711] BUG: using __this_cpu_add() in preemptible [00000000] code: init/1
[   24.390305] caller is down_read_trylock+0x62/0xf0
[   24.391366] CPU: 0 PID: 1 Comm: init Tainted: G                T 5.1.0-rc4-00069-ga865459 #1
[   24.393163] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   24.394952] Call Trace:
[   24.395589]  dump_stack+0x71/0xa3
[   24.396394]  __this_cpu_preempt_check+0x110/0x120
[   24.397449]  down_read_trylock+0x62/0xf0
[   24.398355]  ? up+0x70/0x70
[   24.399059]  __do_page_fault+0x182/0x630
[   24.399975]  ? async_page_fault+0x8/0x30
[   24.400888]  ? async_page_fault+0x8/0x30
[   24.401794]  async_page_fault+0x1e/0x30
[   24.402690] RIP: 0033:0x7f3d7be6c886
[   24.403530] Code: 00 00 00 00 55 48 89 e5 41 57 41 56 41 55 41 54 49 89 fc 53 48 83 ec 48 0f 31 48 c1 e2 20 89 c0 48 09 c2 48 8b 05 fa 25 22 00 <48> 89 15 d3 23 22 00 48 8d 15 ec 25 22 00 49 89 d6 4c 2b 35 62 27
[   24.407262] RSP: 002b:00007ffeebd50330 EFLAGS: 00010202
[   24.408400] RAX: 000000000000000e RBX: 0000000000000000 RCX: 0000000000000000
[   24.409887] RDX: 00000012dec2e854 RSI: 0000000000000000 RDI: 00007ffeebd503b0
[   24.411367] RBP: 00007ffeebd503a0 R08: 0000000000000000 R09: 0000000000000000
[   24.412856] R10: 0000000000000000 R11: 0000000000000000 R12: 00007ffeebd503b0
[   24.414344] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[   24.415877] BUG: using __this_cpu_add() in preemptible [00000000] code: init/1
[   24.417465] caller is down_read_trylock+0x62/0xf0
[   24.418531] CPU: 0 PID: 1 Comm: init Tainted: G                T 5.1.0-rc4-00069-ga865459 #1
[   24.420354] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   24.422129] Call Trace:
[   24.422776]  dump_stack+0x71/0xa3
[   24.423569]  __this_cpu_preempt_check+0x110/0x120
[   24.424616]  down_read_trylock+0x62/0xf0
[   24.425524]  ? up+0x70/0x70
[   24.426229]  __do_page_fault+0x182/0x630
[   24.427136]  ? async_page_fault+0x8/0x30
[   24.428051]  ? async_page_fault+0x8/0x30
[   24.428960]  async_page_fault+0x1e/0x30
[   24.429850] RIP: 0033:0x7f3d7be6cc60
[   24.430693] Code: c6 00 00 00 41 0f b6 57 04 49 8b 47 08 48 03 05 8e 2d 22 00 83 e2 0f 80 fa 0a 0f 84 ba 00 00 00 48 83 eb 06 48 83 fb 1e 77 48 <49> 63 14 98 4c 01 c2 ff e2 0f 1f 80 00 00 00 00 48 89 d9 48 29 c1
[   24.434439] RSP: 002b:00007ffeebd50330 EFLAGS: 00010297
[   24.435573] RAX: 00007f3d7c090140 RBX: 0000000000000000 RCX: 00007f3d7c08eff0
[   24.437060] RDX: 0000000000000001 RSI: 00007f3d7be6ba38 RDI: 00007f3d7be6b390
[   24.438540] RBP: 00007ffeebd503a0 R08: 00007f3d7be87080 R09: 00007f3d7be82010
[   24.440022] R10: 0000000000000031 R11: 000000006ffffdff R12: 00007ffeebd503b0
[   24.441502] R13: 00007f3d7be6b9a8 R14: 00007f3d7be6b000 R15: 00007f3d7be6b468
[   24.455099] systemd[1]: RTC configured in localtime, applying delta of 480 minutes to system time.
[   24.462673] random: systemd: uninitialized urandom read (16 bytes read)
[   24.465906] random: systemd: uninitialized urandom read (16 bytes read)


[   24.493245] random: systemd-cryptse: uninitialized urandom read (16 bytes read)
         Mounting Debug File System...
         Starting Load Kernel Modules...
         Mounting RPC Pipe File System...
         Starting Create Static Device Nodes in /dev...
         Starting Remount Root and Kernel File Systems...
         Starting Journal Service...
         Mounting Configuration File System...
         Starting Apply Kernel Variables...
         Mounting FUSE Control File System...
[   24.638397] random: fast init done
See 'systemctl status run-rpc_pipefs.mount' for details.
         Starting udev Coldplug all Devices...
         Starting Load/Save Random Seed...
         Starting udev Kernel Device Manager...
         Starting Raise network interfaces...
         Starting Preprocess NFS configuration...
         Starting Flush Journal to Persistent Storage...
         Starting Create Volatile Files and Directories...
         Starting RPC bind portmap service...
         Starting Network Time Synchronization...
         Starting Update UTMP about System Boot/Shutdown...
         Starting LSB: Execute the kexec -e command to reboot system...
         Starting OpenBSD Secure Shell server...
         Starting /etc/rc.local Compatibility...
         Starting System Logging Service...
         Starting Login Service...
[   25.879824] rc.local[348]: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/lkp/lkp/src/bin
         Starting LSB: Start and stop bmc-watchdog...
         Starting LKP bootstrap...
         Starting Permit User Sessions...
         Starting LSB: Load kernel image with kexec...
LKP: HOSTNAME vm-snb-2G-903, MAC 52:54:00:12:34:56, kernel 5.1.0-rc4-00069-ga865459 1, serial console /dev/ttyS0
[   26.475825] cfg80211: failed to load regulatory.db

Elapsed time: 30

qemu-img create -f qcow2 disk-vm-snb-2G-903-0 256G
qemu-img create -f qcow2 disk-vm-snb-2G-903-1 256G
qemu-img create -f qcow2 disk-vm-snb-2G-903-2 256G
qemu-img create -f qcow2 disk-vm-snb-2G-903-3 256G
qemu-img create -f qcow2 disk-vm-snb-2G-903-4 256G
qemu-img create -f qcow2 disk-vm-snb-2G-903-5 256G
qemu-img create -f qcow2 disk-vm-snb-2G-903-6 256G

kvm=(
	qemu-system-x86_64
	-enable-kvm
	-cpu SandyBridge
	-kernel $kernel
	-initrd initrd-vm-snb-2G-903
	-m 2048
	-smp 2
	-device e1000,netdev=net0
	-netdev user,id=net0,hostfwd=tcp::24010-:22
	-boot order=nc
	-no-reboot
	-watchdog i6300esb
	-watchdog-action debug
	-rtc base=localtime
	-drive file=disk-vm-snb-2G-903-0,media=disk,if=virtio
	-drive file=disk-vm-snb-2G-903-1,media=disk,if=virtio
	-drive file=disk-vm-snb-2G-903-2,media=disk,if=virtio
	-drive file=disk-vm-snb-2G-903-3,media=disk,if=virtio
	-drive file=disk-vm-snb-2G-903-4,media=disk,if=virtio
	-drive file=disk-vm-snb-2G-903-5,media=disk,if=virtio
	-drive file=disk-vm-snb-2G-903-6,media=disk,if=virtio
	-serial stdio
	-display none
	-monitor null
)

append=(
	ip=::::vm-snb-2G-903::dhcp
	root=/dev/ram0


To reproduce:

        # build kernel
	cd linux
	cp config-5.1.0-rc4-00069-ga865459 .config
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 prepare
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 modules_prepare
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 SHELL=/bin/bash
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 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,
lkp


View attachment "config-5.1.0-rc4-00069-ga865459" of type "text/plain" (129278 bytes)

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

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

Powered by blists - more mailing lists