Re: cdc_acm: debug - BUG - Oops

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 0000000000000249
> IP: [<ffffffffc06531c1>] acm_probe+0x4e1/0x11a0 [cdc_acm]
> PGD 0 
> 
> Oops: 0000 [#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: ffff9ae607c60000 task.stack: ffffb93740cdc000
> RIP: 0010:[<ffffffffc06531c1>]  [<ffffffffc06531c1>] acm_probe+0x4e1/0x11a0 [cdc_acm]
> RSP: 0018:ffffb93740cdf9c0  EFLAGS: 00010202
> RAX: 0000000000000246 RBX: ffff9ae607732800 RCX: 0000000000000000
> RDX: 0000000000000040 RSI: ffff9ae607c60960 RDI: ffffb93740cdf968
> RBP: ffffb93740cdfae8 R08: 0000000000000000 R09: 0000000000000000
> R10: 0000000000000000 R11: 0000000000000000 R12: ffff9ae607732800
> R13: ffff9ae607737000 R14: 0000000000000000 R15: ffff9ae6067fb000
> FS:  00007f6daa69c8c0(0000) GS:ffff9ae60f800000(0000) knlGS:0000000000000000
> CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> CR2: 0000000000000249 CR3: 00000000c7eeb000 CR4: 00000000000006e0
> ...
> Call Trace:
>  [<ffffffff900ecd10>] ? sched_clock_cpu+0x90/0xc0
>  [<ffffffff90907eae>] ? mutex_unlock+0xe/0x10
>  [<ffffffff90110e25>] ? trace_hardirqs_on_caller+0xf5/0x1b0
>  [<ffffffff90110eed>] ? trace_hardirqs_on+0xd/0x10
>  [<ffffffff90907dda>] ? __mutex_unlock_slowpath+0xfa/0x1c0
>  [<ffffffff9069c18f>] usb_probe_interface+0x15f/0x2d0
>  [<ffffffff905eb2f3>] driver_probe_device+0x223/0x430
>  [<ffffffff905eb5e3>] __driver_attach+0xe3/0xf0
>  [<ffffffff905eb500>] ? driver_probe_device+0x430/0x430
>  [<ffffffff905e8bf3>] bus_for_each_dev+0x73/0xc0
>  [<ffffffff905eaa1e>] driver_attach+0x1e/0x20
>  [<ffffffff905ea443>] bus_add_driver+0x173/0x270
>  [<ffffffff905ec240>] driver_register+0x60/0xe0
>  [<ffffffff9069a9fa>] usb_register_driver+0xaa/0x160
>  [<ffffffffc0462000>] ? 0xffffffffc0462000
>  [<ffffffffc04620c2>] acm_init+0xc2/0x1000 [cdc_acm]
>  [<ffffffff90002190>] do_one_initcall+0x50/0x180
>  [<ffffffff90131045>] ? rcu_read_lock_sched_held+0x45/0x80
>  [<ffffffff90275787>] ? kmem_cache_alloc_trace+0x277/0x2d0
>  [<ffffffff901fb2ce>] ? do_init_module+0x27/0x1f1
>  [<ffffffff901fb306>] do_init_module+0x5f/0x1f1
>  [<ffffffff9015e3d1>] load_module+0x2401/0x2b40
>  [<ffffffff9015ac00>] ? __symbol_put+0x70/0x70
>  [<ffffffff900ecd10>] ? sched_clock_cpu+0x90/0xc0
>  [<ffffffff9015ecab>] SYSC_init_module+0x19b/0x1c0
>  [<ffffffff9015edee>] SyS_init_module+0xe/0x10
>  [<ffffffff90003eec>] do_syscall_64+0x6c/0x1f0
>  [<ffffffff9090bd49>] 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  [<ffffffffc06531c1>] acm_probe+0x4e1/0x11a0 [cdc_acm]
>  RSP <ffffb93740cdf9c0>
> CR2: 0000000000000249
> ---[ 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
> ...
> -# CONFIG_DEBUG_OBJECTS is not set
> +CONFIG_DEBUG_OBJECTS=y
> +# CONFIG_DEBUG_OBJECTS_SELFTEST is not set
> +CONFIG_DEBUG_OBJECTS_FREE=y
> +CONFIG_DEBUG_OBJECTS_TIMERS=y
> +CONFIG_DEBUG_OBJECTS_WORK=y
> +CONFIG_DEBUG_OBJECTS_RCU_HEAD=y
> +CONFIG_DEBUG_OBJECTS_PERCPU_COUNTER=y
> +CONFIG_DEBUG_OBJECTS_ENABLE_DEFAULT=1
> ...
> -# CONFIG_DEBUG_KMEMLEAK is not set
> -# CONFIG_DEBUG_STACK_USAGE is not set
> +CONFIG_DEBUG_KMEMLEAK=y
> +CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE=1024
> +# CONFIG_DEBUG_KMEMLEAK_TEST is not set
> +CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF=y
> +CONFIG_DEBUG_STACK_USAGE=y
> ...
> -# CONFIG_DEBUG_VM_PGFLAGS is not set
> +CONFIG_DEBUG_VM_PGFLAGS=y
> ...
> -# CONFIG_DETECT_HUNG_TASK is not set
> -# CONFIG_WQ_WATCHDOG is not set
> +CONFIG_DETECT_HUNG_TASK=y
> +CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=120
> +# CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set
> +CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0
> +CONFIG_WQ_WATCHDOG=y
> ...
> -# CONFIG_DEBUG_RT_MUTEXES is not set
> -# CONFIG_DEBUG_SPINLOCK is not set
> -# CONFIG_DEBUG_MUTEXES is not set
> +CONFIG_DEBUG_RT_MUTEXES=y
> +CONFIG_DEBUG_SPINLOCK=y
> +CONFIG_DEBUG_MUTEXES=y
> ...
> -# CONFIG_DEBUG_LOCK_ALLOC is not set
> -# CONFIG_PROVE_LOCKING is not set
> -# CONFIG_LOCK_STAT is not set
> -# CONFIG_DEBUG_ATOMIC_SLEEP is not set
> +CONFIG_DEBUG_LOCK_ALLOC=y
> +CONFIG_PROVE_LOCKING=y
> +CONFIG_LOCKDEP=y
> +CONFIG_LOCK_STAT=y
> +# CONFIG_DEBUG_LOCKDEP is not set
> +CONFIG_DEBUG_ATOMIC_SLEEP=y
> ...
> -# CONFIG_LOCK_TORTURE_TEST is not set
> +CONFIG_LOCK_TORTURE_TEST=m
> +CONFIG_TRACE_IRQFLAGS=y
> ...
> +# CONFIG_DEBUG_KOBJECT_RELEASE is not set
> ...
> -# CONFIG_DEBUG_PI_LIST is not set
> -# CONFIG_DEBUG_SG is not set
> -# CONFIG_DEBUG_NOTIFIERS is not set
> -# CONFIG_DEBUG_CREDENTIALS is not set
> +CONFIG_DEBUG_PI_LIST=y
> +CONFIG_DEBUG_SG=y
> +CONFIG_DEBUG_NOTIFIERS=y
> +CONFIG_DEBUG_CREDENTIALS=y
> ...
> -# CONFIG_PROVE_RCU is not set
> +CONFIG_PROVE_RCU=y
> +# CONFIG_PROVE_RCU_REPEATEDLY is not set
> ...
> -# CONFIG_FAULT_INJECTION is not set
> +CONFIG_FAULT_INJECTION=y
> +CONFIG_FAILSLAB=y
> +CONFIG_FAIL_PAGE_ALLOC=y
> +CONFIG_FAIL_MAKE_REQUEST=y
> +CONFIG_FAIL_IO_TIMEOUT=y
> +CONFIG_FAIL_MMC_REQUEST=y
> +# CONFIG_FAIL_FUTEX is not set
> +CONFIG_FAULT_INJECTION_DEBUG_FS=y
> ...
> -# CONFIG_TEST_LIST_SORT is not set
> +CONFIG_TEST_LIST_SORT=y
> ...
> -# CONFIG_PERCPU_TEST is not set
> +CONFIG_PERCPU_TEST=m
> ...
> -# CONFIG_TEST_STRING_HELPERS is not set
> +CONFIG_TEST_STRING_HELPERS=m
> ...
> -# CONFIG_DMA_API_DEBUG is not set
> +CONFIG_DMA_API_DEBUG=y
> ...
> -CONFIG_KDB_DEFAULT_ENABLE=0x0
> +CONFIG_KDB_DEFAULT_ENABLE=0x1
> ...
> -# CONFIG_EFI_PGT_DUMP is not set
> +CONFIG_EFI_PGT_DUMP=y
> 

Repaired with mainline 4.9-rc5 i.e. 4.9.0-0.rc5.git0.1.fc26.x86_64[+debug]

Vorsprung durch Technik

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux