From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932180AbcELQwY (ORCPT ); Thu, 12 May 2016 12:52:24 -0400 Received: from smtp2.it.da.ut.ee ([193.40.5.67]:36254 "EHLO smtp2.it.da.ut.ee" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932104AbcELQwW (ORCPT ); Thu, 12 May 2016 12:52:22 -0400 Date: Thu, 12 May 2016 19:38:00 +0300 (EEST) From: Meelis Roos To: Linux Kernel list , linux-usb@vger.kernel.org, Greg Kroah-Hartman , Alan Stern Subject: UBSAN: Undefined behaviour in drivers/usb/host/ehci-hub.c:877:47 Message-ID: User-Agent: Alpine 2.20 (LRH 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I am seeing it on multiple different PC-s. [ 7.837957] ================================================================================ [ 7.837959] UBSAN: Undefined behaviour in drivers/usb/host/ehci-hub.c:877:47 [ 7.837961] index -1 is out of range for type 'u32 [1]' [ 7.837964] CPU: 3 PID: 213 Comm: systemd-udevd Not tainted 4.6.0-rc6 #202 [ 7.837966] Hardware name: /DQ67OW, BIOS SWQ6710H.86A.0066.2012.1105.1504 11/05/2012 [ 7.837968] ffffc9000001e05c ffffffff8151261d 000000000000002b ffff8802332cf540 [ 7.837971] ffffffffffffffff ffffffff815697a9 ffffffffa01d0080 ffffffff81569e42 [ 7.837974] 0000000000000202 ffffffff8100312d ffff8802332cf630 ffffffffa021fec2 [ 7.837977] Call Trace: [ 7.837983] [] ? dump_stack+0x47/0x6a [ 7.837987] [] ? ubsan_epilogue+0x9/0x40 [ 7.837989] [] ? __ubsan_handle_out_of_bounds+0x62/0x70 [ 7.837993] [] ? syscall_trace_enter_phase2+0x10d/0x3d0 [ 7.837997] [] ? dev_vprintk_emit+0xb9/0x2a0 [ 7.838001] [] ? ehci_hub_control+0xe43/0x10f0 [ehci_hcd] [ 7.838005] [] ? mmu_notifier_unregister+0x60/0x1a0 [ 7.838012] [] ? usb_hcd_submit_urb+0x84b/0xcf0 [usbcore] [ 7.838018] [] ? usb_start_wait_urb+0x5e/0xf0 [usbcore] [ 7.838024] [] ? usb_control_msg+0xbe/0x100 [usbcore] [ 7.838030] [] ? hub_probe+0x429/0xf10 [usbcore] [ 7.838034] [] ? __pm_runtime_resume+0x4b/0x80 [ 7.838040] [] ? usb_probe_interface+0x146/0x3e0 [usbcore] [ 7.838043] [] ? driver_probe_device+0xf7/0x370 [ 7.838045] [] ? __driver_attach+0xf0/0xf0 [ 7.838049] [] ? bus_for_each_drv+0x6e/0xd0 [ 7.838051] [] ? __device_attach+0xbe/0x150 [ 7.838053] [] ? bus_probe_device+0xb5/0x120 [ 7.838056] [] ? device_add+0x46c/0x620 [ 7.838061] [] ? usb_control_msg+0xce/0x100 [usbcore] [ 7.838067] [] ? usb_set_configuration+0x542/0xb50 [usbcore] [ 7.838073] [] ? generic_probe+0x30/0x90 [usbcore] [ 7.838075] [] ? driver_probe_device+0xf7/0x370 [ 7.838077] [] ? __driver_attach+0xf0/0xf0 [ 7.838080] [] ? bus_for_each_drv+0x6e/0xd0 [ 7.838082] [] ? __device_attach+0xbe/0x150 [ 7.838084] [] ? bus_probe_device+0xb5/0x120 [ 7.838087] [] ? device_add+0x46c/0x620 [ 7.838090] [] ? add_device_randomness+0xc0/0x140 [ 7.838096] [] ? usb_new_device+0x2f3/0xa30 [usbcore] [ 7.838102] [] ? usb_add_hcd+0x678/0xa80 [usbcore] [ 7.838108] [] ? usb_hcd_pci_probe+0x488/0x760 [usbcore] [ 7.838112] [] ? pci_device_probe+0xad/0x150 [ 7.838114] [] ? driver_probe_device+0xf7/0x370 [ 7.838116] [] ? __driver_attach+0xac/0xf0 [ 7.838118] [] ? driver_probe_device+0x370/0x370 [ 7.838121] [] ? bus_for_each_dev+0x68/0xb0 [ 7.838123] [] ? bus_add_driver+0x159/0x2b0 [ 7.838126] [] ? 0xffffffffa01ac000 [ 7.838128] [] ? driver_register+0x6c/0x110 [ 7.838130] [] ? do_one_initcall+0x98/0x230 [ 7.838132] [] ? kmem_cache_alloc_trace+0x1c2/0x2f0 [ 7.838136] [] ? do_init_module+0x95/0x264 [ 7.838139] [] ? load_module+0x1e23/0x2fa0 [ 7.838142] [] ? m_show+0x200/0x200 [ 7.838146] [] ? kernel_read_file_from_fd+0x44/0x70 [ 7.838149] [] ? SYSC_finit_module+0xa2/0xb0 [ 7.838153] [] ? entry_SYSCALL_64_fastpath+0x17/0x93 [ 7.838154] ================================================================================ -- Meelis Roos (mroos@linux.ee)