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>] [day] [month] [year] [list]
Message-ID: <20170226095626.tocn7dq3vio4pujz@wfg-t540p.sh.intel.com>
Date:   Sun, 26 Feb 2017 17:56:26 +0800
From:   Fengguang Wu <fengguang.wu@...el.com>
To:     Felipe Balbi <balbi@...com>
Cc:     Jean Delvare <khali@...ux-fr.org>, linux-i2c@...r.kernel.org,
        linux-usb@...r.kernel.org, Rob Herring <robh@...nel.org>,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        linux-kernel@...r.kernel.org, LKP <lkp@...org>
Subject: [usb] bea5b158ff WARNING: CPU: 0 PID: 25 at
 drivers/usb/core/urb.c:338 usb_submit_urb

Greetings,

This debug patch possibly discloses some USB/I2C bugs. Since the USB
warning shows up earlier in dmesg, it might also be the root cause of
the I2C bug. The attached reproduce-* script may help debug them.

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  driver core: fix race between creating/querying glue dir and its cleanup
bea5b158ff  driver core: add test of driver remove calls during probe
+---------------------------------------------------+------------+------------+
|                                                   | cebf8fd169 | bea5b158ff |
+---------------------------------------------------+------------+------------+
| boot_successes                                    | 215        | 0          |
| boot_failures                                     | 0          | 55         |
| calltrace:init                                    | 0          | 55         |
| WARNING:at_drivers/usb/core/urb.c:#usb_submit_urb | 0          | 30         |
| calltrace:hub_init_func3                          | 0          | 13         |
| BUG:unable_to_handle_kernel                       | 0          | 55         |
| Oops                                              | 0          | 55         |
| EIP_is_at_i2c_do_del_adapter                      | 0          | 55         |
| calltrace:of_unittest                             | 0          | 55         |
| Kernel_panic-not_syncing:Fatal_exception          | 0          | 55         |
| calltrace:pm_runtime_work                         | 0          | 16         |
| calltrace:hub_init_func2                          | 0          | 1          |
+---------------------------------------------------+------------+------------+

[    9.260542] hub 1-0:1.0: 1 port detected
[    9.261049] hub 1-0:1.0: USB hub found
[    9.261458] hub 1-0:1.0: 1 port detected
[    9.262388] kobject (cf9188bc): tried to init an initialized object, something is seriously wrong.
[    9.263589] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.8.0-rc4-00003-gbea5b15 #2
[    9.264595] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.9.3-20161025_171302-gandalf 04/01/2014
[    9.265922]  00000000 00000000 c0047db4 c11aec39 cf9188bc c1c1ba9c c0047dcc c11b0616
[    9.267073]  c1ab0c68 cf9188bc cf9188b4 cf918868 c0047dd8 c13090ec cf9188b4 c0047de4
[    9.268230]  c130a49e ce6a8000 c0047e04 c1402216 ce69300c 00200246 cf9188b4 cf918000
[    9.269388] Call Trace:
[    9.269720]  [<c11aec39>] dump_stack+0x58/0x72
[    9.270312]  [<c11b0616>] kobject_init+0x27/0x71
[    9.270929]  [<c13090ec>] device_initialize+0x1b/0xbd
[    9.271599]  [<c130a49e>] device_register+0xb/0x15
[    9.272236]  [<c1402216>] usb_add_gadget_udc_release+0x85/0x215
[    9.273036]  [<c1402403>] usb_add_gadget_udc+0xa/0xc
[    9.273700]  [<c1403f37>] dummy_udc_probe+0x130/0x168
[    9.274377]  [<c130cf05>] platform_drv_probe+0x44/0x80
[    9.275047]  [<c130bef3>] driver_probe_device+0xfe/0x297
[    9.275748]  [<c130c17a>] __device_attach_driver+0x65/0x71
[    9.276481]  [<c130add0>] bus_for_each_drv+0x3a/0x67
[    9.277130]  [<c130bd02>] __device_attach+0x86/0xdb
[    9.277778]  [<c130c115>] ? driver_allows_async_probing+0xc/0xc
[    9.278561]  [<c130c28a>] device_initial_probe+0xd/0xf
[    9.279235]  [<c130af4f>] bus_probe_device+0x25/0x67
[    9.279895]  [<c130a33d>] device_add+0x341/0x497
[    9.280517]  [<c130930f>] ? dev_set_name+0x14/0x16
[    9.281154]  [<c130d4c5>] platform_device_add+0x117/0x161
[    9.281879]  [<c1d18945>] init+0x20d/0x2f4
[    9.282431]  [<c1d18738>] ? usb_udc_init+0x3f/0x3f
[    9.283075]  [<c1cdeba3>] do_one_initcall+0x7e/0xfc
[    9.283725]  [<c1056209>] ? parse_args+0x19b/0x26f
[    9.284362]  [<c1cded68>] ? kernel_init_freeable+0x147/0x1eb
[    9.285100]  [<c1cded84>] kernel_init_freeable+0x163/0x1eb
[    9.285826]  [<c170d049>] kernel_init+0x8/0xd0
[    9.286417]  [<c17122e2>] ret_from_kernel_thread+0xe/0x24
[    9.287118]  [<c170d041>] ? rest_init+0xa5/0xa5
[    9.288532] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
[    9.290663] serio: i8042 KBD port at 0x60,0x64 irq 1
[    9.291372] serio: i8042 AUX port at 0x60,0x64 irq 12
[    9.293351] serio: i8042 KBD port at 0x60,0x64 irq 1
[    9.294031] serio: i8042 AUX port at 0x60,0x64 irq 12

The attached dmesg has more follow up errors.

git bisect start v4.9 v4.8 --
git bisect  bad 9fe68cad6e74967b88d0c6aeca7d9cd6b6e91942  # 00:43     18-     30  Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
git bisect  bad d8ea757b25ec82687c497fc90aa83f9bcea24b5b  # 01:11      4-      6  Merge tag 'xtensa-20161005' of git://github.com/jcmvbkbc/linux-xtensa
git bisect  bad e6445f52d9c8b0e6557a45fa7d0e8e088d430a8c  # 01:17      6-     11  Merge tag 'usb-4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
git bisect good 1a4a2bc460721bc8f91e4c1294d39b38e5af132f  # 01:32     52+      0  Merge branch 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect good 3ef0a61a467639cf7def299309cd9ea524c3e1c1  # 01:50     52+      0  Merge branch 'x86-boot-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect  bad e6dce825fba05f447bd22c865e27233182ab3d79  # 02:02     17-     27  Merge tag 'tty-4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
git bisect good 597f03f9d133e9837d00965016170271d4f87dcf  # 02:34     55+      0  Merge branch 'smp-hotplug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect good 7a53eea1f7b527fd3b6d7ca992914840981afe99  # 02:55     51+      0  Merge tag 'char-misc-4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
git bisect  bad 9929780e86854833e649b39b290b5fe921eb1701  # 03:03      1-      3  Merge tag 'driver-core-4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
git bisect  bad 2c507e464f791327c94d17a0137f00b4717744fc  # 03:15      2-      4  device core: Remove deprecated create_singlethread_workqueue
git bisect  bad 03aca7b260ea2aadf92596d2f57160e4aee8ffb0  # 03:26      0-      7  attribute_container: Fix typo
git bisect  bad bea5b158ff0da9c7246ff391f754f5f38e34577a  # 03:41      0-      1  driver core: add test of driver remove calls during probe
git bisect good 24ef5f360f22e4408cb49d75755d27d5a21820f7  # 03:57     51+      0  debugfs: remove extra debugfs_create_file_unsafe() declaration
git bisect good cebf8fd16900fdfd58c0028617944f808f97fe50  # 08:29     55+      0  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  # 11:46    160+      0  driver core: fix race between creating/querying glue dir and its cleanup
# extra tests with CONFIG_DEBUG_INFO_REDUCED
# extra tests on HEAD of linux-devel/devel-spot-201702252217
git bisect  bad b2c7455f59b51a4477df19cd36f18ef4734a860e  # 11:51      0-     13  0day head guard for 'devel-spot-201702252217'
# extra tests on tree/branch linus/master
git bisect  bad c4f3f22eddc982d247ffe2a6690c3e4a5c46dd09  # 12:01      2-      1  Merge tag 'linux-kselftest-4.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
# extra tests on tree/branch linux-next/master

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/lkp                          Intel Corporation

Download attachment "dmesg-quantal-ivb41-51:20170226034900:i386-randconfig-h1-02252243:4.8.0-rc4-00003-gbea5b15:2.gz" of type "application/gzip" (22083 bytes)

View attachment "reproduce-quantal-ivb41-51:20170226034900:i386-randconfig-h1-02252243:4.8.0-rc4-00003-gbea5b15:2" of type "text/plain" (890 bytes)

View attachment "config-4.8.0-rc4-00003-gbea5b15" of type "text/plain" (103709 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ