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-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 27 Feb 2018 11:02:34 +0800
From:   kernel test robot <fengguang.wu@...el.com>
To:     Andrew Lunn <andrew@...n.ch>
Cc:     David Miller <davem@...emloft.net>, hkallweit1@...il.com,
        Florian Fainelli <f.fainelli@...il.com>,
        netdev <netdev@...r.kernel.org>, Andrew Lunn <andrew@...n.ch>,
        lkp@...org
Subject: [net]  cb0789fd8b: INFO:task_blocked_for_more_than#seconds

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

commit: cb0789fd8b03b59948257b67531d0b5fd87061c5 ("net: phy: Restore phy_resume() locking assumption")
url: https://github.com/0day-ci/linux/commits/Andrew-Lunn/net-phy-Restore-phy_resume-locking-assumption/20180226-220932


in testcase: boot

on test machine: qemu-system-x86_64 -enable-kvm -m 420M

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


+--------------------------------------------------+------------+------------+
|                                                  | a5f7add332 | cb0789fd8b |
+--------------------------------------------------+------------+------------+
| boot_successes                                   | 10         | 0          |
| boot_failures                                    | 0          | 14         |
| INFO:task_blocked_for_more_than#seconds          | 0          | 12         |
| Kernel_panic-not_syncing:hung_task:blocked_tasks | 0          | 12         |
| BUG:kernel_hang_in_boot_stage                    | 0          | 2          |
| RIP:ring_buffer_lock_reserve                     | 0          | 1          |
| RIP:__sanitizer_cov_trace_pc                     | 0          | 1          |
+--------------------------------------------------+------------+------------+



[  246.754333] INFO: task swapper/0:1 blocked for more than 120 seconds.
[  246.755305]       Not tainted 4.16.0-rc2-00146-gcb0789f #2
[  246.756204] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  246.757066] swapper/0       D13040     1      0 0x80000000
[  246.757638] Call Trace:
[  246.757891]  ? __schedule+0x611/0x730
[  246.758301]  ? __clear_rsb+0x15/0x3d
[  246.758719]  ? __clear_rsb+0x15/0x3d
[  246.759103]  ? schedule+0x8c/0xa0
[  246.759475]  ? schedule_timeout+0x44/0x48b
[  246.759886]  ? trace_preempt_on+0x16/0x15f
[  246.760359]  ? wait_for_common+0x1a6/0x1d8
[  246.760805]  ? do_task_dead+0x4f/0x4f
[  246.761222]  ? flush_work+0x19d/0x1d7
[  246.761635]  ? flush_workqueue_prep_pwqs+0x13b/0x13b
[  246.762161]  ? driver_deferred_probe_trigger+0xaf/0xaf
[  246.762880]  ? do_early_param+0xbe/0xbe
[  246.763542]  ? deferred_probe_initcall+0x22/0x2c
[  246.764233]  ? do_one_initcall+0xaf/0x191
[  246.764671]  ? do_early_param+0xbe/0xbe
[  246.765080]  ? kernel_init_freeable+0x129/0x1de
[  246.765564]  ? rest_init+0xc4/0xc4
[  246.765909]  ? kernel_init+0x10/0x142
[  246.766305]  ? rest_init+0xc4/0xc4
[  246.766681]  ? ret_from_fork+0x3a/0x50
[  246.767075] NMI backtrace for cpu 0
[  246.767504] CPU: 0 PID: 20 Comm: khungtaskd Not tainted 4.16.0-rc2-00146-gcb0789f #2
[  246.768735] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[  246.770035] Call Trace:
[  246.770480]  ? dump_stack+0xb0/0x102
[  246.771055]  ? nmi_cpu_backtrace+0xde/0x117
[  246.771551]  ? lapic_can_unplug_cpu+0x91/0x91
[  246.771983]  ? nmi_trigger_cpumask_backtrace+0xe2/0x1ae
[  246.772535]  ? watchdog+0x366/0x412
[  246.772884]  ? preempt_count_sub+0x44/0x52
[  246.773308]  ? hung_task_panic+0x17/0x17
[  246.773711]  ? kthread+0x13b/0x14a
[  246.774062]  ? kthread_delayed_work_timer_fn+0xb3/0xb3
[  246.774587]  ? ret_from_fork+0x3a/0x50
[  246.775000] Kernel panic - not syncing: hung_task: blocked tasks
[  246.775629] CPU: 0 PID: 20 Comm: khungtaskd Not tainted 4.16.0-rc2-00146-gcb0789f #2
[  246.776398] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[  246.777209] Call Trace:
[  246.777473]  ? dump_stack+0xb0/0x102
[  246.777826]  ? panic+0x10f/0x2bf
[  246.778168]  ? watchdog+0x366/0x412
[  246.778529]  ? watchdog+0x372/0x412
[  246.778879]  ? preempt_count_sub+0x44/0x52
[  246.779302]  ? hung_task_panic+0x17/0x17
[  246.779706]  ? kthread+0x13b/0x14a
[  246.780056]  ? kthread_delayed_work_timer_fn+0xb3/0xb3
[  246.780576]  ? ret_from_fork+0x3a/0x50
[  246.781156] Kernel Offset: disabled

Elapsed time: 250

#!/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/yocto/yocto-tiny-i386-2016-04-22.cgz
	/lkp/lkp/lkp-i386.cgz
	/osimage/deps/debian-x86_64-2016-08-31.cgz/run-ipconfig.i386_2016-09-03.cgz
)

HTTP_PREFIX=https://github.com/0day-ci/lkp-qemu/raw/master
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

kvm=(
	qemu-system-x86_64
	-enable-kvm
	-kernel $kernel
	-initrd initrd.img
	-m 420
	-smp 1
	-device e1000,netdev=net0
	-netdev user,id=net0
	-boot order=nc
	-no-reboot
	-watchdog i6300esb
	-watchdog-action debug
	-rtc base=localtime
	-serial stdio
	-display none
	-monitor null
)



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.16.0-rc2-00146-gcb0789f" of type "text/plain" (146678 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ