Hi Rob,
FYI here is another bisect result.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
commit bea5b158ff0da9c7246ff391f754f5f38e34577a
Author: Rob Herring <robh(a)kernel.org>
AuthorDate: Thu Aug 11 10:20:58 2016 -0500
Commit: Greg Kroah-Hartman <gregkh(a)linuxfoundation.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/0...
Suggested-by: Arnd Bergmann <arnd(a)arndb.de>
Cc: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
Signed-off-by: Rob Herring <robh(a)kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
+--------------------------------------------------------------------------------------+------------+------------+------------+
| |
cebf8fd169 | bea5b158ff | 4bd498c509 |
+--------------------------------------------------------------------------------------+------------+------------+------------+
| boot_successes |
17 | 0 | 0 |
| boot_failures |
75 | 25 | 19 |
| calltrace:SyS_open |
55 | | |
| BUG:kernel_reboot-without-warning_in_test_stage | 9
| | |
| BUG:kernel_hang_in_early-boot_stage,last_printk:Probing_EDD(edd=off_to_disable)...ok | 3
| | |
| RIP:insert | 1
| | |
| calltrace:rbtree_test_init | 1
| 1 | 2 |
| Kernel_panic-not_syncing:softlockup:hung_tasks |
17 | 1 | 2 |
| Kernel_panic-not_syncing:Attempted_to_kill_init!exitcode= |
46 | | |
| RIP:arch_local_irq_restore |
14 | | |
| calltrace:virtio_pci_driver_init |
16 | | |
| RIP:acpi_ds_exec_begin_op | 1
| | |
| RIP:__slab_free | 1
| | |
| calltrace:init | 0
| 23 | 17 |
| general_protection_fault:#[##]SMP | 0
| 23 | 17 |
| RIP:kobject_get | 0
| 23 | 17 |
| Kernel_panic-not_syncing:Fatal_exception | 0
| 23 | 17 |
| BUG:workqueue_lockup-pool | 0
| 1 | |
| RIP:__sanitizer_cov_trace_pc | 0
| 1 | |
| RIP:rb_erase | 0
| 0 | 1 |
| RIP:rb_insert_color | 0
| 0 | 1 |
+--------------------------------------------------------------------------------------+------------+------------+------------+
[ 193.408915] hub 1-0:1.0: 1 port detected
[ 193.412930] kobject (ffff88001cfb30d0): tried to init an initialized object, something
is seriously wrong.
[ 193.414570] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.8.0-rc4-00003-gbea5b15 #1
[ 193.415824] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1
04/01/2014
[ 193.417277] 00000000ffffffff ffff88001ea07ab8 ffffffff81542c23 ffffffff1ea19000
[ 193.418596] ffff88001cfb30d0 ffffffff82bc51e0 00000000fffffff4 ffff88001ea07ad8
[ 193.419916] ffffffff81545430 ffff88001cfb30c0 ffff88001cfb3030 ffff88001ea07af0
[ 193.421239] Call Trace:
[ 193.421667] [<ffffffff81542c23>] dump_stack+0x7e/0xa6
[ 193.422526] [<ffffffff81545430>] kobject_init+0x45/0xa5
[ 193.423417] [<ffffffff8170e498>] device_initialize+0x28/0x110
[ 193.424389] [<ffffffff8170efeb>] device_register+0x15/0x20
[ 193.425331] [<ffffffff81a6a482>] usb_add_gadget_udc_release+0xe1/0x351
[ 193.426445] [<ffffffff8100eba9>] ? paravirt_sched_clock+0x9/0xd
[ 193.427460] [<ffffffff81a6a7ac>] usb_add_gadget_udc+0x24/0x26
[ 193.428435] [<ffffffff81a6ce49>] dummy_udc_probe+0x1bd/0x213
[ 193.429385] [<ffffffff81a6cc8c>] ? dummy_alloc_streams+0x147/0x147
[ 193.430425] [<ffffffff81715002>] platform_drv_probe+0x4e/0xa6
[ 193.431389] [<ffffffff81714fb4>] ? platform_drv_remove+0x53/0x53
[ 193.432400] [<ffffffff817132ce>] driver_probe_device+0x174/0x3db
[ 193.433412] [<ffffffff8171362c>] ? driver_allows_async_probing+0x1e/0x1e
[ 193.434536] [<ffffffff817136e2>] __device_attach_driver+0xb6/0xd7
[ 193.435562] [<ffffffff8171173e>] bus_for_each_drv+0xb5/0xcd
[ 193.436505] [<ffffffff81712fdb>] __device_attach+0xb7/0x13c
[ 193.437449] [<ffffffff817138b4>] device_initial_probe+0x1c/0x1e
[ 193.438447] [<ffffffff81711987>] bus_probe_device+0x46/0xd7
[ 193.439392] [<ffffffff8170ee85>] device_add+0x576/0x6c7
[ 193.440283] [<ffffffff81715963>] platform_device_add+0x1c9/0x24c
[ 193.441292] [<ffffffff82f9230d>] init+0x335/0x4aa
[ 193.442095] [<ffffffff82f91f4f>] ? musb_driver_init+0x19/0x19
[ 193.443067] [<ffffffff82f91fd8>] ? usb_udc_init+0x66/0x66
[ 193.443982] [<ffffffff82f3e926>] ? set_debug_rodata+0x20/0x20
[ 193.444949] [<ffffffff82f3f29d>] do_one_initcall+0xa2/0x14f
[ 193.445892] [<ffffffff82f3e926>] ? set_debug_rodata+0x20/0x20
[ 193.446866] [<ffffffff82f3f530>] kernel_init_freeable+0x1e6/0x291
[ 193.447912] [<ffffffff81feeb69>] kernel_init+0xf/0x147
[ 193.448800] [<ffffffff81ff9dff>] ret_from_fork+0x1f/0x40
[ 193.449712] [<ffffffff81feeb5a>] ? rest_init+0xd1/0xd1
[ 193.450796] general protection fault: 0000 [#1] SMP
[ 193.451624] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.8.0-rc4-00003-gbea5b15 #1
[ 193.452856] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1
04/01/2014
[ 193.454308] task: ffff88001ea19000 task.stack: ffff88001ea04000
[ 193.455294] RIP: 0010:[<ffffffff815454a7>] [<ffffffff815454a7>]
kobject_get+0x17/0x8b
[ 193.456620] RSP: 0000:ffff88001ea07a28 EFLAGS: 00010296
[ 193.457503] RAX: 00000000ffffffff RBX: 6b6b6b6b6b6b6b7b RCX: 00000000000000ff
[ 193.458686] RDX: ffff88001ea19000 RSI: ffff88001b57e2c0 RDI: 6b6b6b6b6b6b6b7b
[ 193.459860] RBP: ffff88001ea07a30 R08: 000000847420b78d R09: 0000000000000000
[ 193.461036] R10: ffff88001ea07a88 R11: 000000000000144b R12: ffffffff8170e8b5
[ 193.462214] R13: ffff88001cfb30d0 R14: ffff88001b452ea8 R15: 0000000000000000
[ 193.463386] FS: 0000000000000000(0000) GS:ffff88001f600000(0000)
knlGS:0000000000000000
[ 193.464725] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 193.465676] CR2: 0000000000000000 CR3: 0000000002814000 CR4: 00000000001406b0
[ 193.466849] Stack:
[ 193.467200] 6b6b6b6b6b6b6b6b ffff88001ea07a48 ffffffff8170e8a6 ffff88001b57e2c0
[ 193.468515] ffff88001ea07a60 ffffffff8170e8cb ffff88001b57e2c0 ffff88001ea07a80
[ 193.469863] ffffffff81feded9 ffff88001b57fbc8 ffff88001b57e2c0 ffff88001ea07aa0
[ 193.471197] Call Trace:
[ 193.471627] [<ffffffff8170e8a6>] get_device+0x20/0x2f
[ 193.472483] [<ffffffff8170e8cb>] klist_children_get+0x16/0x19
[ 193.473453] [<ffffffff81feded9>] klist_node_init+0x5e/0x68
[ 193.474380] [<ffffffff81fee1c4>] klist_add_tail+0x1d/0x50
[ 193.475300] [<ffffffff8170eea0>] device_add+0x591/0x6c7
[ 193.476189] [<ffffffff8170eff3>] device_register+0x1d/0x20
[ 193.477117] [<ffffffff81a6a482>] usb_add_gadget_udc_release+0xe1/0x351
[ 193.478212] [<ffffffff8100eba9>] ? paravirt_sched_clock+0x9/0xd
[ 193.479211] [<ffffffff81a6a7ac>] usb_add_gadget_udc+0x24/0x26
[ 193.480184] [<ffffffff81a6ce49>] dummy_udc_probe+0x1bd/0x213
[ 193.481143] [<ffffffff81a6cc8c>] ? dummy_alloc_streams+0x147/0x147
[ 193.482177] [<ffffffff81715002>] platform_drv_probe+0x4e/0xa6
[ 193.483154] [<ffffffff81714fb4>] ? platform_drv_remove+0x53/0x53
[ 193.484167] [<ffffffff817132ce>] driver_probe_device+0x174/0x3db
[ 193.485179] [<ffffffff8171362c>] ? driver_allows_async_probing+0x1e/0x1e
[ 193.486305] [<ffffffff817136e2>] __device_attach_driver+0xb6/0xd7
[ 193.487338] [<ffffffff8171173e>] bus_for_each_drv+0xb5/0xcd
[ 193.488276] [<ffffffff81712fdb>] __device_attach+0xb7/0x13c
[ 193.489212] [<ffffffff817138b4>] device_initial_probe+0x1c/0x1e
[ 193.490208] [<ffffffff81711987>] bus_probe_device+0x46/0xd7
[ 193.491165] [<ffffffff8170ee85>] device_add+0x576/0x6c7
[ 193.492067] [<ffffffff81715963>] platform_device_add+0x1c9/0x24c
[ 193.493090] [<ffffffff82f9230d>] init+0x335/0x4aa
[ 193.493904] [<ffffffff82f91f4f>] ? musb_driver_init+0x19/0x19
[ 193.494877] [<ffffffff82f91fd8>] ? usb_udc_init+0x66/0x66
[ 193.495790] [<ffffffff82f3e926>] ? set_debug_rodata+0x20/0x20
[ 193.496758] [<ffffffff82f3f29d>] do_one_initcall+0xa2/0x14f
[ 193.497702] [<ffffffff82f3e926>] ? set_debug_rodata+0x20/0x20
[ 193.498674] [<ffffffff82f3f530>] kernel_init_freeable+0x1e6/0x291
[ 193.499710] [<ffffffff81feeb69>] kernel_init+0xf/0x147
[ 193.500575] [<ffffffff81ff9dff>] ret_from_fork+0x1f/0x40
[ 193.501480] [<ffffffff81feeb5a>] ? rest_init+0xd1/0xd1
[ 193.502350] Code: e8 96 b3 be ff e8 1f d7 ff ff e8 bf 89 bc ff 5b 41 5c 5d c3 55 48 89
e5 53 48 89 fb e8 ad 89 bc ff 48 85 db 74 6e e8 a3 89 bc ff <f6> 43 3c 01 75 23 e8
98 89 bc ff 48 8b 0b 49 89 d8 48 c7 c2 46
[ 193.507014] RIP [<ffffffff815454a7>] kobject_get+0x17/0x8b
[ 193.507965] RSP <ffff88001ea07a28>
[ 193.508579] ---[ end trace 77acf6e781a64ed8 ]---
[ 193.509506] Kernel panic - not syncing: Fatal exception
git bisect start 1001354ca34179f3db924eb66672442a173147dc v4.8 --
git bisect bad 513a4befae06c4469abfb836e8f71977de58c636 # 17:05 0- 5 Merge
branch 'for-4.9/block' of git://git.kernel.dk/linux-block
git bisect bad a3443cda5588985a2724d6d0f4a5f04e625be6eb # 17:15 0- 3 Merge
branch 'next' of
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
git bisect good 5e1b834b27fb2c27cde33a0752425f11d10c0b2d # 17:36 22+ 9 Merge
branch 'timers-core-for-linus' of
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect bad 808c2b0583f010d3993ae534980af55c43c1adba # 18:24 0- 13 Merge
tag 'regmap-v4.9' of
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap
git bisect bad e6dce825fba05f447bd22c865e27233182ab3d79 # 19:23 4- 27 Merge
tag 'tty-4.9-rc1' of
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
git bisect good 597f03f9d133e9837d00965016170271d4f87dcf # 19:35 21+ 14 Merge
branch 'smp-hotplug-for-linus' of
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect good 7a53eea1f7b527fd3b6d7ca992914840981afe99 # 19:59 23+ 14 Merge
tag 'char-misc-4.9-rc1' of
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
git bisect bad 9929780e86854833e649b39b290b5fe921eb1701 # 20:15 0- 4 Merge
tag 'driver-core-4.9-rc1' of
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
git bisect bad 775115c06091fcfa1189a50aca488fa596839617 # 20:36 0- 1
drivers/base dmam_declare_coherent_memory leaks
git bisect bad 426bc8e789f8ac84270b196191904d347586032f # 20:46 0- 5 base:
soc: make it explicitly non-modular
git bisect bad bea5b158ff0da9c7246ff391f754f5f38e34577a # 20:57 0- 3 driver
core: add test of driver remove calls during probe
git bisect good cebf8fd16900fdfd58c0028617944f808f97fe50 # 21:06 22+ 21 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 # 21:18 68+ 74 driver
core: fix race between creating/querying glue dir and its cleanup
# extra tests with CONFIG_DEBUG_INFO_REDUCED
git bisect bad bea5b158ff0da9c7246ff391f754f5f38e34577a # 21:40 0- 1 driver
core: add test of driver remove calls during probe
# extra tests on HEAD of linux-devel/devel-spot-201610181241
git bisect bad 4bd498c509a1bc6019b7dbe77940726afcb0eee8 # 21:40 0- 19 0day
head guard for 'devel-spot-201610181241'
# extra tests on tree/branch linus/master
git bisect bad 14155cafeadda946376260e2ad5d39a0528a332f # 21:53 0- 1 btrfs:
assign error values to the correct bio structs
# extra tests with first bad commit reverted
git bisect good fdc229d9ba3d5addc1309ee307d1500c69032911 # 22:10 66+ 52 Revert
"driver core: add test of driver remove calls during probe"
# extra tests on tree/branch linus/master
git bisect bad 14155cafeadda946376260e2ad5d39a0528a332f # 22:10 0- 69 btrfs:
assign error values to the correct bio structs
# extra tests on tree/branch linux-next/master
git bisect bad 406b05876c202a8f0ac5dc3805d13d7a80e6f9c9 # 22:20 0- 1 Add
linux-next specific files for 20161018
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/lkp Intel Corporation