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]
Message-ID: <20181214083136.GB23332@shao2-debian>
Date:   Fri, 14 Dec 2018 16:31:36 +0800
From:   kernel test robot <rong.a.chen@...el.com>
To:     Matthew Wilcox <willy@...radead.org>
Cc:     LKML <linux-kernel@...r.kernel.org>,
        Linus Torvalds <torvalds@...ux-foundation.org>, lkp@...org
Subject: [LKP] [xarray] 93eb07f72c: RIP:__sanitizer_cov_trace_pc

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

commit: 93eb07f72c8d86f8fe5e90907df1cc037f6ffbb7 ("xarray: Move multiorder_shrink to kernel tests")
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 768M

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


+---------------------------------------------------------+------------+------------+
|                                                         | d6427f8179 | 93eb07f72c |
+---------------------------------------------------------+------------+------------+
| boot_successes                                          | 0          | 0          |
| boot_failures                                           | 80         | 94         |
| WARNING:at_mm/slab_common.c:#kmalloc_slab               | 80         | 94         |
| RIP:kmalloc_slab                                        | 80         | 94         |
| Mem-Info                                                | 80         | 94         |
| invoked_oom-killer:gfp_mask=0x                          | 65         | 52         |
| Out_of_memory_and_no_killable_processes                 | 63         | 52         |
| Kernel_panic-not_syncing:System_is_deadlocked_on_memory | 63         | 52         |
| BUG:soft_lockup-CPU##stuck_for#s                        | 2          | 34         |
| RIP:native_flush_tlb_global                             | 1          |            |
| Kernel_panic-not_syncing:softlockup:hung_tasks          | 2          | 34         |
| RIP:lock_acquire                                        | 1          | 4          |
| RIP:poison_obj                                          | 0          | 1          |
| RIP:__sanitizer_cov_trace_pc                            | 0          | 21         |
| RIP:lock_release                                        | 0          | 2          |
| RIP:ftrace_likely_update                                | 0          | 2          |
| RIP:check_xa_mark_1                                     | 0          | 1          |
| RIP:kmem_cache_alloc                                    | 0          | 1          |
| RIP:xas_find                                            | 0          | 2          |
| INFO:task_blocked_for_more_than#seconds                 | 0          | 2          |
+---------------------------------------------------------+------------+------------+



[  105.288689] watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [swapper/0:1]
[  105.288689] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G        W         4.19.0-rc5-00319-g93eb07f #1
[  105.288689] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[  105.288689] RIP: 0010:__sanitizer_cov_trace_pc+0x54/0x86
[  105.288689] Code: 7e 81 e2 00 01 1f 00 75 1a 48 ff 05 32 07 e9 03 8b 81 a0 23 00 00 83 f8 02 0f 94 c0 48 ff 05 27 07 e9 03 48 ff 05 40 07 e9 03 <84> c0 74 2d 48 8b 91 a8 23 00 00 8b 89 a4 23 00 00 48 8b 02 48 ff
[  105.288689] RSP: 0000:ffff88002cb07d90 EFLAGS: 00000207 ORIG_RAX: ffffffffffffff13
[  105.288689] RAX: 0000000000000000 RBX: ffff88002cb07e08 RCX: ffff88002cb00040
[  105.288689] RDX: 0000000000000000 RSI: ffffffff824eccbe RDI: ffff88002cb07e08
[  105.288689] RBP: 000000000000003f R08: 0000000000000000 R09: 0000000000000000
[  105.317811] R10: ffff88002cb07b38 R11: 0000000000000020 R12: ffffffffffffffff
[  105.317811] R13: ffffffff83cd2358 R14: 0000000000000000 R15: ffff880000ce1db0
[  105.321794] FS:  0000000000000000(0000) GS:ffff88002ce00000(0000) knlGS:0000000000000000
[  105.321794] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  105.321794] CR2: 0000000000000000 CR3: 000000000346a000 CR4: 00000000000406b0
[  105.325769] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  105.325769] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  105.325769] Call Trace:
[  105.325769]  xas_move_index+0xd/0x36
[  105.329763]  xas_advance+0x28/0x31
[  105.329763]  xas_find+0x282/0x2d9
[  105.329763]  check_xa_mark_1+0x9ad/0xf6a
[  105.329763]  ? check_xa_alloc+0x55d/0x55d
[  105.333763]  check_xa_mark+0x1b/0x45
[  105.333763]  xarray_checks+0x36/0x154
[  105.333763]  do_one_initcall+0x282/0x619
[  105.333763]  ? ftrace_likely_update+0x27a/0x2aa
[  105.333763]  kernel_init_freeable+0x646/0x783
[  105.337780]  ? rest_init+0x1d4/0x1d4
[  105.337780]  kernel_init+0x12/0x21f
[  105.337780]  ? rest_init+0x1d4/0x1d4
[  105.337780]  ret_from_fork+0x24/0x30
[  105.337780] Kernel panic - not syncing: softlockup: hung tasks
[  105.341753] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G        W    L    4.19.0-rc5-00319-g93eb07f #1
[  105.353765] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[  105.353765] Call Trace:
[  105.357769]  <IRQ>
[  105.357769]  dump_stack+0x12d/0x1b9
[  105.357769]  panic+0x165/0x430
[  105.357769]  ? watchdog_timer_fn+0x3b1/0x403
[  105.357769]  watchdog_timer_fn+0x3c4/0x403
[  105.361763]  ? softlockup_fn+0x4d/0x4d
[  105.361763]  __hrtimer_run_queues+0x5e7/0x948
[  105.361763]  hrtimer_interrupt+0x173/0x341
[  105.361763]  smp_apic_timer_interrupt+0x275/0x472
[  105.365834]  apic_timer_interrupt+0xf/0x20
[  105.365834]  </IRQ>
[  105.365834] RIP: 0010:__sanitizer_cov_trace_pc+0x54/0x86
[  105.365834] Code: 7e 81 e2 00 01 1f 00 75 1a 48 ff 05 32 07 e9 03 8b 81 a0 23 00 00 83 f8 02 0f 94 c0 48 ff 05 27 07 e9 03 48 ff 05 40 07 e9 03 <84> c0 74 2d 48 8b 91 a8 23 00 00 8b 89 a4 23 00 00 48 8b 02 48 ff
[  105.369756] RSP: 0000:ffff88002cb07d90 EFLAGS: 00000207 ORIG_RAX: ffffffffffffff13
[  105.369756] RAX: 0000000000000000 RBX: ffff88002cb07e08 RCX: ffff88002cb00040
[  105.373756] RDX: 0000000000000000 RSI: ffffffff824eccbe RDI: ffff88002cb07e08
[  105.373756] RBP: 000000000000003f R08: 0000000000000000 R09: 0000000000000000
[  105.373756] R10: ffff88002cb07b38 R11: 0000000000000020 R12: ffffffffffffffff
[  105.377758] R13: ffffffff83cd2358 R14: 0000000000000000 R15: ffff880000ce1db0
[  105.377758]  ? xas_move_index+0xd/0x36
[  105.377758]  xas_move_index+0xd/0x36
[  105.381757]  xas_advance+0x28/0x31
[  105.381757]  xas_find+0x282/0x2d9
[  105.381757]  check_xa_mark_1+0x9ad/0xf6a
[  105.381757]  ? check_xa_alloc+0x55d/0x55d
[  105.381757]  check_xa_mark+0x1b/0x45
[  105.385751]  xarray_checks+0x36/0x154
[  105.385751]  do_one_initcall+0x282/0x619
[  105.385751]  ? ftrace_likely_update+0x27a/0x2aa
[  105.385751]  kernel_init_freeable+0x646/0x783
[  105.385751]  ? rest_init+0x1d4/0x1d4
[  105.389739]  kernel_init+0x12/0x21f
[  105.389739]  ? rest_init+0x1d4/0x1d4
[  105.389739]  ret_from_fork+0x24/0x30
[  105.389739] Kernel Offset: disabled

Elapsed time: 110

#!/bin/bash

# To reproduce,
# 1) save job-script and this script (both are attached in 0day report email)
# 2) run this script with your compiled kernel and optional env $INSTALL_MOD_PATH

kernel=$1

initrds=(
	/osimage/quantal/quantal-core-x86_64-2018-11-09.cgz
	/lkp/lkp/lkp-x86_64.cgz
	/osimage/pkg/debian-x86_64-2016-08-31.cgz/trinity-static-x86_64-x86_64-6ddabfd2_2017-11-10.cgz
)

HTTP_PREFIX=https://download.01.org/0day-ci/lkp-qemu
wget --timestamping "${initrds[@]/#/$HTTP_PREFIX}"

{
	cat "${initrds[@]//*\//}"
	[[ $INSTALL_MOD_PATH ]] && (
		cd "$INSTALL_MOD_PATH"
		find lib | cpio -o -H newc --quiet | gzip
	)
	echo  job-script | cpio -o -H newc --quiet | gzip
} > initrd.img

qemu-img create -f qcow2 disk-vm-snb-quantal-x86_64-11-0 256G
qemu-img create -f qcow2 disk-vm-snb-quantal-x86_64-11-1 256G


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,
Rong Chen

View attachment "config-4.19.0-rc5-00319-g93eb07f" of type "text/plain" (99748 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ