Re: cdc_acm: debug - BUG - Oops
On 08.11.2016 10:43, poma wrote: > > Helloo! > > Via Master Chef's debug kernel, the device ist kaputt. > Can you explain why this is happening specifically with the kernel's debug > facility. > > $ uname -r > 4.9.0-0.rc4.git0.1.fc26.x86_64 > > $ file /dev/ttyACM0 > /dev/ttyACM0: character special (166/0) > > $ dmesg -t | grep acm > cdc_acm 2-3:1.0: ttyACM0: USB ACM device > usbcore: registered new interface driver cdc_acm > cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters > > > > $ uname -r > 4.9.0-0.rc4.git0.1.fc26.x86_64+debug > > $ file /dev/ttyACM0 > /dev/ttyACM0: cannot open `/dev/ttyACM0' (No such file or directory) > > $ dmesg -t > ... > BUG: unable to handle kernel NULL pointer dereference at 0249 > IP: [] acm_probe+0x4e1/0x11a0 [cdc_acm] > PGD 0 > > Oops: [#1] SMP > Modules linked in: ... cdc_acm(+) ... > CPU: 2 PID: 374 Comm: systemd-udevd Not tainted > 4.9.0-0.rc4.git0.1.fc26.x86_64+debug #1 > ... > task: 9ae607c6 task.stack: b93740cdc000 > RIP: 0010:[] [] acm_probe+0x4e1/0x11a0 > [cdc_acm] > RSP: 0018:b93740cdf9c0 EFLAGS: 00010202 > RAX: 0246 RBX: 9ae607732800 RCX: > RDX: 0040 RSI: 9ae607c60960 RDI: b93740cdf968 > RBP: b93740cdfae8 R08: R09: > R10: R11: R12: 9ae607732800 > R13: 9ae607737000 R14: R15: 9ae6067fb000 > FS: 7f6daa69c8c0() GS:9ae60f80() knlGS: > CS: 0010 DS: ES: CR0: 80050033 > CR2: 0249 CR3: c7eeb000 CR4: 06e0 > ... > Call Trace: > [] ? sched_clock_cpu+0x90/0xc0 > [] ? mutex_unlock+0xe/0x10 > [] ? trace_hardirqs_on_caller+0xf5/0x1b0 > [] ? trace_hardirqs_on+0xd/0x10 > [] ? __mutex_unlock_slowpath+0xfa/0x1c0 > [] usb_probe_interface+0x15f/0x2d0 > [] driver_probe_device+0x223/0x430 > [] __driver_attach+0xe3/0xf0 > [] ? driver_probe_device+0x430/0x430 > [] bus_for_each_dev+0x73/0xc0 > [] driver_attach+0x1e/0x20 > [] bus_add_driver+0x173/0x270 > [] driver_register+0x60/0xe0 > [] usb_register_driver+0xaa/0x160 > [] ? 0xc0462000 > [] acm_init+0xc2/0x1000 [cdc_acm] > [] do_one_initcall+0x50/0x180 > [] ? rcu_read_lock_sched_held+0x45/0x80 > [] ? kmem_cache_alloc_trace+0x277/0x2d0 > [] ? do_init_module+0x27/0x1f1 > [] do_init_module+0x5f/0x1f1 > [] load_module+0x2401/0x2b40 > [] ? __symbol_put+0x70/0x70 > [] ? sched_clock_cpu+0x90/0xc0 > [] SYSC_init_module+0x19b/0x1c0 > [] SyS_init_module+0xe/0x10 > [] do_syscall_64+0x6c/0x1f0 > [] entry_SYSCALL64_slow_path+0x25/0x25 > Code: 10 41 89 8f ec 0b 00 00 8d 04 80 c1 e0 02 41 89 87 e0 0b 00 00 48 8b 85 > 48 ff ff ff 49 89 07 48 8b 85 70 ff ff ff 48 85 c0 74 0b <0f> b6 40 03 41 89 > 87 f4 0b 00 00 f6 85 50 ff ff ff 04 74 08 41 > RIP [] acm_probe+0x4e1/0x11a0 [cdc_acm] > RSP > CR2: 0249 > ---[ end trace 526abbefa545cbb3 ]--- > > > > $ diff -u /boot/config-4.9.0-0.rc4.git0.1.fc26.x86_64 > /boot/config-4.9.0-0.rc4.git0.1.fc26.x86_64+debug > ... > -# Linux/x86_64 4.9.0-0.rc4.git0.1.fc26.x86_64 Kernel Configuration > +# Linux/x86_64 4.9.0-0.rc4.git0.1.fc26.x86_64+debug Kernel Configuration > ... > -# CONFIG_DEBUG_BLK_CGROUP is not set > +CONFIG_DEBUG_BLK_CGROUP=y > ... > +CONFIG_PERF_USE_VMALLOC=y > ... > -# CONFIG_DEBUG_PERF_USE_VMALLOC is not set > +CONFIG_DEBUG_PERF_USE_VMALLOC=y > ... > -# CONFIG_MODULE_FORCE_UNLOAD is not set > +CONFIG_MODULE_FORCE_UNLOAD=y > ... > -CONFIG_INLINE_SPIN_UNLOCK_IRQ=y > -CONFIG_INLINE_READ_UNLOCK=y > -CONFIG_INLINE_READ_UNLOCK_IRQ=y > -CONFIG_INLINE_WRITE_UNLOCK=y > -CONFIG_INLINE_WRITE_UNLOCK_IRQ=y > +CONFIG_UNINLINE_SPIN_UNLOCK=y > -CONFIG_MUTEX_SPIN_ON_OWNER=y > ... > +CONFIG_PREEMPT_COUNT=y > ... > -# CONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK is not set > +CONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK=y > ... > -# CONFIG_ACPI_DEBUG is not set > +CONFIG_ACPI_DEBUG=y > ... > -# CONFIG_CAN_DEBUG_DEVICES is not set > +CONFIG_CAN_DEBUG_DEVICES=y > ... > -# CONFIG_MAC80211_MESSAGE_TRACING is not set > +CONFIG_MAC80211_MESSAGE_TRACING=y > ... > -# CONFIG_CEPH_LIB_PRETTYDEBUG is not set > +CONFIG_CEPH_LIB_PRETTYDEBUG=y > ... > -# CONFIG_DRBD_FAULT_INJECTION is not set > +CONFIG_DRBD_FAULT_INJECTION=y > ... > -# CONFIG_ATH_DEBUG is not set > +CONFIG_ATH_DEBUG=y > +# CONFIG_ATH_TRACEPOINTS is not set > ... > -# CONFIG_CARL9170_DEBUGFS is not set > +CONFIG_CARL9170_DEBUGFS=y > ... > -# CONFIG_IWLWIFI_DEVICE_TRACING is not set > +CONFIG_IWLWIFI_DEVICE_TRACING=y > ... > -# CONFIG_RTLWIFI_DEBUG is not set > +CONFIG_RTLWIFI_DEBUG=y > ... > -# CONFIG_SPI_DEBUG is not set > +CONFIG_SPI_DEBUG=y > ... > -# CONFIG_EDAC_DEBUG is not set > +CONFIG_EDAC_DEBUG=y > ... > -# CONFIG_DMADEVICES_DEBUG is not set > +CONFIG_DMADEVICES_DEBUG=y > +# CONFIG_DMADEVICES_VDEBUG is not set > ... > -#
cdc_acm: debug - BUG - Oops
Helloo! Via Master Chef's debug kernel, the device ist kaputt. Can you explain why this is happening specifically with the kernel's debug facility. $ uname -r 4.9.0-0.rc4.git0.1.fc26.x86_64 $ file /dev/ttyACM0 /dev/ttyACM0: character special (166/0) $ dmesg -t | grep acm cdc_acm 2-3:1.0: ttyACM0: USB ACM device usbcore: registered new interface driver cdc_acm cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters $ uname -r 4.9.0-0.rc4.git0.1.fc26.x86_64+debug $ file /dev/ttyACM0 /dev/ttyACM0: cannot open `/dev/ttyACM0' (No such file or directory) $ dmesg -t ... BUG: unable to handle kernel NULL pointer dereference at 0249 IP: [] acm_probe+0x4e1/0x11a0 [cdc_acm] PGD 0 Oops: [#1] SMP Modules linked in: ... cdc_acm(+) ... CPU: 2 PID: 374 Comm: systemd-udevd Not tainted 4.9.0-0.rc4.git0.1.fc26.x86_64+debug #1 ... task: 9ae607c6 task.stack: b93740cdc000 RIP: 0010:[] [] acm_probe+0x4e1/0x11a0 [cdc_acm] RSP: 0018:b93740cdf9c0 EFLAGS: 00010202 RAX: 0246 RBX: 9ae607732800 RCX: RDX: 0040 RSI: 9ae607c60960 RDI: b93740cdf968 RBP: b93740cdfae8 R08: R09: R10: R11: R12: 9ae607732800 R13: 9ae607737000 R14: R15: 9ae6067fb000 FS: 7f6daa69c8c0() GS:9ae60f80() knlGS: CS: 0010 DS: ES: CR0: 80050033 CR2: 0249 CR3: c7eeb000 CR4: 06e0 ... Call Trace: [] ? sched_clock_cpu+0x90/0xc0 [] ? mutex_unlock+0xe/0x10 [] ? trace_hardirqs_on_caller+0xf5/0x1b0 [] ? trace_hardirqs_on+0xd/0x10 [] ? __mutex_unlock_slowpath+0xfa/0x1c0 [] usb_probe_interface+0x15f/0x2d0 [] driver_probe_device+0x223/0x430 [] __driver_attach+0xe3/0xf0 [] ? driver_probe_device+0x430/0x430 [] bus_for_each_dev+0x73/0xc0 [] driver_attach+0x1e/0x20 [] bus_add_driver+0x173/0x270 [] driver_register+0x60/0xe0 [] usb_register_driver+0xaa/0x160 [] ? 0xc0462000 [] acm_init+0xc2/0x1000 [cdc_acm] [] do_one_initcall+0x50/0x180 [] ? rcu_read_lock_sched_held+0x45/0x80 [] ? kmem_cache_alloc_trace+0x277/0x2d0 [] ? do_init_module+0x27/0x1f1 [] do_init_module+0x5f/0x1f1 [] load_module+0x2401/0x2b40 [] ? __symbol_put+0x70/0x70 [] ? sched_clock_cpu+0x90/0xc0 [] SYSC_init_module+0x19b/0x1c0 [] SyS_init_module+0xe/0x10 [] do_syscall_64+0x6c/0x1f0 [] entry_SYSCALL64_slow_path+0x25/0x25 Code: 10 41 89 8f ec 0b 00 00 8d 04 80 c1 e0 02 41 89 87 e0 0b 00 00 48 8b 85 48 ff ff ff 49 89 07 48 8b 85 70 ff ff ff 48 85 c0 74 0b <0f> b6 40 03 41 89 87 f4 0b 00 00 f6 85 50 ff ff ff 04 74 08 41 RIP [] acm_probe+0x4e1/0x11a0 [cdc_acm] RSP CR2: 0249 ---[ end trace 526abbefa545cbb3 ]--- $ diff -u /boot/config-4.9.0-0.rc4.git0.1.fc26.x86_64 /boot/config-4.9.0-0.rc4.git0.1.fc26.x86_64+debug ... -# Linux/x86_64 4.9.0-0.rc4.git0.1.fc26.x86_64 Kernel Configuration +# Linux/x86_64 4.9.0-0.rc4.git0.1.fc26.x86_64+debug Kernel Configuration ... -# CONFIG_DEBUG_BLK_CGROUP is not set +CONFIG_DEBUG_BLK_CGROUP=y ... +CONFIG_PERF_USE_VMALLOC=y ... -# CONFIG_DEBUG_PERF_USE_VMALLOC is not set +CONFIG_DEBUG_PERF_USE_VMALLOC=y ... -# CONFIG_MODULE_FORCE_UNLOAD is not set +CONFIG_MODULE_FORCE_UNLOAD=y ... -CONFIG_INLINE_SPIN_UNLOCK_IRQ=y -CONFIG_INLINE_READ_UNLOCK=y -CONFIG_INLINE_READ_UNLOCK_IRQ=y -CONFIG_INLINE_WRITE_UNLOCK=y -CONFIG_INLINE_WRITE_UNLOCK_IRQ=y +CONFIG_UNINLINE_SPIN_UNLOCK=y -CONFIG_MUTEX_SPIN_ON_OWNER=y ... +CONFIG_PREEMPT_COUNT=y ... -# CONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK is not set +CONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK=y ... -# CONFIG_ACPI_DEBUG is not set +CONFIG_ACPI_DEBUG=y ... -# CONFIG_CAN_DEBUG_DEVICES is not set +CONFIG_CAN_DEBUG_DEVICES=y ... -# CONFIG_MAC80211_MESSAGE_TRACING is not set +CONFIG_MAC80211_MESSAGE_TRACING=y ... -# CONFIG_CEPH_LIB_PRETTYDEBUG is not set +CONFIG_CEPH_LIB_PRETTYDEBUG=y ... -# CONFIG_DRBD_FAULT_INJECTION is not set +CONFIG_DRBD_FAULT_INJECTION=y ... -# CONFIG_ATH_DEBUG is not set +CONFIG_ATH_DEBUG=y +# CONFIG_ATH_TRACEPOINTS is not set ... -# CONFIG_CARL9170_DEBUGFS is not set +CONFIG_CARL9170_DEBUGFS=y ... -# CONFIG_IWLWIFI_DEVICE_TRACING is not set +CONFIG_IWLWIFI_DEVICE_TRACING=y ... -# CONFIG_RTLWIFI_DEBUG is not set +CONFIG_RTLWIFI_DEBUG=y ... -# CONFIG_SPI_DEBUG is not set +CONFIG_SPI_DEBUG=y ... -# CONFIG_EDAC_DEBUG is not set +CONFIG_EDAC_DEBUG=y ... -# CONFIG_DMADEVICES_DEBUG is not set +CONFIG_DMADEVICES_DEBUG=y +# CONFIG_DMADEVICES_VDEBUG is not set ... -# CONFIG_EFI_TEST is not set +CONFIG_EFI_TEST=y ... -# CONFIG_EXT4_DEBUG is not set +CONFIG_EXT4_DEBUG=y ... -# CONFIG_JBD2_DEBUG is not set +CONFIG_JBD2_DEBUG=y ... -# CONFIG_XFS_WARN is not set +CONFIG_XFS_WARN=y ... -# CONFIG_QUOTA_DEBUG is not set +CONFIG_QUOTA_DEBUG=y ... -# CONFIG_NFSD_FAULT_INJECTION is not set +CONFIG_NFSD_FAULT_INJECTION=y ... -#