[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20170218051527.4sslspt4cppbktrb@wfg-t540p.sh.intel.com>
Date: Sat, 18 Feb 2017 13:15:27 +0800
From: Fengguang Wu <fengguang.wu@...el.com>
To: linux-usb@...r.kernel.org, Rob Herring <robh@...nel.org>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-kernel@...r.kernel.org, LKP <lkp@...org>
Subject: [USB] bea5b158ff WARNING: CPU: 0 PID: 1 at lib/list_debug.c:33
__list_add
Greetings,
FYI, this debug patch triggers bug in USB subsystem.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
commit bea5b158ff0da9c7246ff391f754f5f38e34577a
Author: Rob Herring <robh@...nel.org>
AuthorDate: Thu Aug 11 10:20:58 2016 -0500
Commit: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
CommitDate: Wed Aug 31 15:13:55 2016 +0200
driver core: add test of driver remove calls during probe
In recent discussions on ksummit-discuss[1], it was suggested to do a
sequence of probe, remove, probe for testing driver remove paths. This
adds a kconfig option for said test.
[1] https://lists.linuxfoundation.org/pipermail/ksummit-discuss/2016-August/003459.html
Suggested-by: Arnd Bergmann <arnd@...db.de>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Signed-off-by: Rob Herring <robh@...nel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
+---------------------------------------------------+------------+------------+------------+
| | cebf8fd169 | bea5b158ff | 54c71a28c0 |
+---------------------------------------------------+------------+------------+------------+
| boot_successes | 122 | 0 | 0 |
| boot_failures | 14 | 34 | 13 |
| BUG:kernel_reboot-without-warning_in_test_stage | 14 | | |
| calltrace:init | 0 | 34 | |
| WARNING:at_lib/list_debug.c:#__list_add | 0 | 33 | |
| WARNING:at_lib/list_debug.c:#__list_add_valid | 0 | 0 | 13 |
| WARNING:at_kernel/sched/sched.h:#set_next_entity | 0 | 0 | 1 |
| WARNING:at_drivers/usb/core/urb.c:#usb_submit_urb | 0 | 0 | 1 |
+---------------------------------------------------+------------+------------+------------+
[ 2.441910] 0000000000000000 ffff8a87de84fb80 ffffffffbda3a516 ffff8a87dea8af78
[ 2.443032] ffffffffbe7aee60 ffff8a87de84fba0 ffffffffbda3c413 ffff8a87dea8af68
[ 2.444034] 00000000fffffff4 ffff8a87de84fbb8 ffffffffbdb78c1f ffff8a87dea8af68
[ 2.445070] Call Trace:
[ 2.445396] [<ffffffffbda3a516>] dump_stack+0x86/0xc0
[ 2.445989] [<ffffffffbda3c413>] kobject_init+0x31/0x7f
[ 2.446681] [<ffffffffbdb78c1f>] device_initialize+0x23/0xda
[ 2.447514] [<ffffffffbdb7a67f>] device_register+0xd/0x18
[ 2.448194] [<ffffffffbdc6d513>] usb_add_gadget_udc_release+0xb9/0x249
[ 2.449297] [<ffffffffbdc6d71c>] usb_add_gadget_udc+0xb/0xd
[ 2.449899] [<ffffffffbdc6fa2d>] dummy_udc_probe+0x163/0x1a4
[ 2.450631] [<ffffffffbdb7de5f>] platform_drv_probe+0x35/0x78
[ 2.451489] [<ffffffffbdb7caf4>] driver_probe_device+0x1ab/0x422
[ 2.452319] [<ffffffffbdb7cf27>] __device_attach_driver+0xd1/0xd9
[ 2.453151] [<ffffffffbdb7ce56>] ? driver_allows_async_probing+0xd/0xd
[ 2.453921] [<ffffffffbdb7b2d6>] bus_for_each_drv+0x52/0x87
[ 2.454682] [<ffffffffbdb7c7e2>] __device_attach+0x9e/0x11d
[ 2.455410] [<ffffffffbdb7d063>] device_initial_probe+0xe/0x10
[ 2.460573] [<ffffffffbdb7b4e2>] bus_probe_device+0x2e/0x99
[ 2.461589] [<ffffffffbdb7a4b5>] device_add+0x3d3/0x590
[ 2.462613] [<ffffffffbdb7e513>] platform_device_add+0x17b/0x1db
[ 2.463670] [<ffffffffbeae6c09>] init+0x262/0x374
[ 2.464535] [<ffffffffbeae693e>] ? musb_driver_init+0x14/0x14
[ 2.465641] [<ffffffffbeae69a7>] ? usb_udc_init+0x4b/0x4b
[ 2.466642] [<ffffffffbeaaf6e7>] ? do_early_param+0x8f/0x8f
[ 2.467627] [<ffffffffbeab00e8>] do_one_initcall+0x9a/0x141
[ 2.468823] [<ffffffffbd8af900>] ? parse_args+0x1d4/0x357
[ 2.471295] [<ffffffffbeaaf6e7>] ? do_early_param+0x8f/0x8f
[ 2.472203] [<ffffffffbeab02b4>] kernel_init_freeable+0x125/0x1b4
[ 2.473182] [<ffffffffbdf90923>] kernel_init+0x9/0xeb
[ 2.473989] [<ffffffffbdf971ef>] ret_from_fork+0x1f/0x40
[ 2.474840] [<ffffffffbdf9091a>] ? rest_init+0x131/0x131
[ 2.475987] ------------[ cut here ]------------
[ 2.476751] WARNING: CPU: 0 PID: 1 at lib/list_debug.c:33 __list_add+0x5f/0xa1
[ 2.478203] list_add corruption. prev->next should be next (ffff8a87dd3b2248), but was ffff8a87dd3b2370. (prev=ffff8a87dd3b2370).
[ 2.480019] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.8.0-rc4-00003-gbea5b15 #1
[ 2.481405] 0000000000000000 ffff8a87de84fa88 ffffffffbda3a516 ffff8a87de84fad8
[ 2.482631] 0000000000000000 ffff8a87de84fac8 ffffffffbd89635b 00000021de84fb40
[ 2.483848] ffff8a87dd3b2370 ffff8a87dd3b2248 ffff8a87dd3b2370 ffff8a87de999c00
[ 2.485087] Call Trace:
[ 2.485482] [<ffffffffbda3a516>] dump_stack+0x86/0xc0
[ 2.486288] [<ffffffffbd89635b>] __warn+0xb3/0xce
[ 2.487039] [<ffffffffbd8963bc>] warn_slowpath_fmt+0x46/0x4e
[ 2.487933] [<ffffffffbda527fe>] __list_add+0x5f/0xa1
[ 2.488747] [<ffffffffbdf8ff9b>] klist_add_tail+0x32/0x3f
[ 2.489605] [<ffffffffbdb7a4d1>] device_add+0x3ef/0x590
[ 2.490446] [<ffffffffbdc6d5af>] usb_add_gadget_udc_release+0x155/0x249
[ 2.491481] [<ffffffffbdc6d71c>] usb_add_gadget_udc+0xb/0xd
[ 2.492364] [<ffffffffbdc6fa2d>] dummy_udc_probe+0x163/0x1a4
[ 2.493253] [<ffffffffbdb7de5f>] platform_drv_probe+0x35/0x78
[ 2.494155] [<ffffffffbdb7caf4>] driver_probe_device+0x1ab/0x422
[ 2.495092] [<ffffffffbdb7cf27>] __device_attach_driver+0xd1/0xd9
[ 2.496046] [<ffffffffbdb7ce56>] ? driver_allows_async_probing+0xd/0xd
[ 2.497068] [<ffffffffbdb7b2d6>] bus_for_each_drv+0x52/0x87
[ 2.497938] [<ffffffffbdb7c7e2>] __device_attach+0x9e/0x11d
[ 2.498817] [<ffffffffbdb7d063>] device_initial_probe+0xe/0x10
[ 2.499732] [<ffffffffbdb7b4e2>] bus_probe_device+0x2e/0x99
[ 2.500606] [<ffffffffbdb7a4b5>] device_add+0x3d3/0x590
[ 2.501413] [<ffffffffbdb7e513>] platform_device_add+0x17b/0x1db
[ 2.502331] [<ffffffffbeae6c09>] init+0x262/0x374
[ 2.503058] [<ffffffffbeae693e>] ? musb_driver_init+0x14/0x14
[ 2.503933] [<ffffffffbeae69a7>] ? usb_udc_init+0x4b/0x4b
[ 2.504775] [<ffffffffbeaaf6e7>] ? do_early_param+0x8f/0x8f
[ 2.505646] [<ffffffffbeab00e8>] do_one_initcall+0x9a/0x141
[ 2.506520] [<ffffffffbd8af900>] ? parse_args+0x1d4/0x357
[ 2.507369] [<ffffffffbeaaf6e7>] ? do_early_param+0x8f/0x8f
[ 2.508243] [<ffffffffbeab02b4>] kernel_init_freeable+0x125/0x1b4
[ 2.509196] [<ffffffffbdf90923>] kernel_init+0x9/0xeb
[ 2.509982] [<ffffffffbdf971ef>] ret_from_fork+0x1f/0x40
[ 2.510819] [<ffffffffbdf9091a>] ? rest_init+0x131/0x131
[ 2.511724] ---[ end trace 503a3de72f73d486 ]---
[ 2.512456] ------------[ cut here ]------------
git bisect start v4.9 v4.8 --
git bisect bad 9fe68cad6e74967b88d0c6aeca7d9cd6b6e91942 # 01:19 0- 7 Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
git bisect bad 5fa0eb0b4d4780fbd6d8a09850cc4fd539e9fe65 # 01:30 0- 15 Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect bad d8ea757b25ec82687c497fc90aa83f9bcea24b5b # 01:42 0- 15 Merge tag 'xtensa-20161005' of git://github.com/jcmvbkbc/linux-xtensa
git bisect bad e6445f52d9c8b0e6557a45fa7d0e8e088d430a8c # 01:50 0- 20 Merge tag 'usb-4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
git bisect good 1a4a2bc460721bc8f91e4c1294d39b38e5af132f # 02:08 34+ 2 Merge branch 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect good 49deffe0b0e4c2030696c7a6fd680bacf4761069 # 02:20 34+ 7 Merge tag 'arc-4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc
git bisect good 597f03f9d133e9837d00965016170271d4f87dcf # 02:32 34+ 0 Merge branch 'smp-hotplug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect bad 9929780e86854833e649b39b290b5fe921eb1701 # 02:43 0- 4 Merge tag 'driver-core-4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
git bisect good 7a53eea1f7b527fd3b6d7ca992914840981afe99 # 02:56 31+ 4 Merge tag 'char-misc-4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
git bisect bad 775115c06091fcfa1189a50aca488fa596839617 # 03:04 0- 15 drivers/base dmam_declare_coherent_memory leaks
git bisect bad 426bc8e789f8ac84270b196191904d347586032f # 03:14 0- 6 base: soc: make it explicitly non-modular
git bisect bad bea5b158ff0da9c7246ff391f754f5f38e34577a # 03:29 0- 3 driver core: add test of driver remove calls during probe
git bisect good cebf8fd16900fdfd58c0028617944f808f97fe50 # 03:43 33+ 1 driver core: fix race between creating/querying glue dir and its cleanup
# first bad commit: [bea5b158ff0da9c7246ff391f754f5f38e34577a] driver core: add test of driver remove calls during probe
git bisect good cebf8fd16900fdfd58c0028617944f808f97fe50 # 03:53 93+ 13 driver core: fix race between creating/querying glue dir and its cleanup
# extra tests with CONFIG_DEBUG_INFO_REDUCED
git bisect bad bea5b158ff0da9c7246ff391f754f5f38e34577a # 04:09 0- 5 driver core: add test of driver remove calls during probe
# extra tests on HEAD of linux-devel/devel-spot-201702112342
git bisect bad 54c71a28c0eef7975298cf652b81d595fb6cf485 # 04:10 0- 13 0day head guard for 'devel-spot-201702112342'
# extra tests on tree/branch linus/master
git bisect bad 2fe1e8a7b2f4dcac3fcb07ff06b0ae7396201fd6 # 04:18 0- 5 Merge tag 'powerpc-4.10-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
# extra tests on tree/branch linus/master
git bisect bad 2fe1e8a7b2f4dcac3fcb07ff06b0ae7396201fd6 # 04:18 0- 5 Merge tag 'powerpc-4.10-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
# extra tests on tree/branch linux-next/master
git bisect bad 4ce4a759a3e221b5265ebd03c2f8888b69a7cf3e # 04:36 0- 5 Add linux-next specific files for 20170217
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/lkp Intel Corporation
Download attachment "dmesg-yocto-vp-38:20170218033007:x86_64-randconfig-s0-02120016:4.8.0-rc4-00003-gbea5b15:1.gz" of type "application/gzip" (85288 bytes)
View attachment "config-4.8.0-rc4-00003-gbea5b15" of type "text/plain" (101549 bytes)
Powered by blists - more mailing lists