klogg / fl2000_drm

Linux kernel FL2000DX/IT66121FN dongle DRM driver
GNU General Public License v2.0
113 stars 30 forks source link

i2c detect crash #1

Closed klogg closed 5 years ago

klogg commented 5 years ago

Steps to reproduce

  1. insmod both drivers
  2. rmmod both drivers
  3. insmod fl2000.ko
  4. insmod it66121.ko ---> crash
[  145.533231] usb 2-1: Failed to create 2-1 debugfs directory
[  145.540140] i2c i2c-2: Connected FL2000 I2C adapter
[  145.542596] usb 2-1: Probing Streaming interface (1)
[  145.545080] usb 2-1: Probing Interrupt interface (2)
[  145.547537] fl2000_usb 2-1:1.2: Setting interrupt interface 2: altsetting 0, endpoint 3
[  145.555110] usb 2-1:  *** 0x48000020
[  145.556973] usbcore: registered new interface driver fl2000_usb
[  145.599042] BUG: unable to handle kernel paging request at ffffffffc05ac310
[  145.600015] PGD 560e067 P4D 560e067 PUD 5610067 PMD 3d68067 PTE 0
[  145.600861] Oops: 0000 [#1] SMP PTI
[  145.601352] CPU: 0 PID: 321 Comm: insmod Tainted: G           OE     4.18.0-13-generic #14-Ubuntu
[  145.602576] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.11.1-1ubuntu1 04/01/2014
[  145.603826] RIP: 0010:i2c_default_probe+0x26/0x140
[  145.604407] Code: 00 00 00 00 0f 1f 44 00 00 55 48 89 e5 41 54 53 48 89 fb 48 83 ec 30 65 48 8b 04 25 28 00 00 00 48 89 45 e8 31 c0 48 8b 47 10 <48> 8b 40 10 66 83 fe 73 0f 84 86 00 00 00 44 0f b7 e6 44 89 e2 83 
[  145.606676] RSP: 0018:ffffb10680217ac8 EFLAGS: 00010246
[  145.607309] RAX: ffffffffc05ac300 RBX: ffff99f383a8d018 RCX: 0000000000000000
[  145.608169] RDX: ffff99f383b35480 RSI: 000000000000004c RDI: ffff99f383a8d018
[  145.609012] RBP: ffffb10680217b08 R08: 000000000000004c R09: ffff99f383e81400
[  145.609783] R10: fffff429800e9c00 R11: 0000000000000000 R12: ffff99f383e81400
[  145.610546] R13: 0000000000000000 R14: ffffffffc05a6000 R15: 000000000000004c
[  145.611311] FS:  00007f6c5b4eeb80(0000) GS:ffff99f387a00000(0000) knlGS:0000000000000000
[  145.612175] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  145.612793] CR2: ffffffffc05ac310 CR3: 00000000038bc002 CR4: 0000000000360ef0
[  145.613564] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  145.614273] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  145.614962] Call Trace:
[  145.615213]  i2c_detect+0x126/0x310
[  145.615562]  ? kfree_skbmem+0x52/0x70
[  145.615922]  __process_new_driver+0x28/0x50
[  145.616331]  ? i2c_detect+0x310/0x310
[  145.616694]  bus_for_each_dev+0x74/0xb0
[  145.617070]  ? i2c_detect+0x310/0x310
[  145.617433]  i2c_for_each_dev+0x32/0x50
[  145.617810]  i2c_register_driver+0x5d/0x90
[  145.618212]  ? 0xffffffffc0419000
[  145.618539]  it66121_driver_init+0x1c/0x1000 [it66121]
[  145.619031]  do_one_initcall+0x4a/0x1c4
[  145.619377]  ? kvfree+0x33/0x40
[  145.619664]  ? _cond_resched+0x19/0x30
[  145.620000]  ? kmem_cache_alloc_trace+0xb8/0x1d0
[  145.620413]  ? do_init_module+0x27/0x220
[  145.620762]  do_init_module+0x60/0x220
[  145.621096]  load_module+0x14f4/0x1890
[  145.621437]  __do_sys_finit_module+0xbd/0x120
[  145.621828]  ? __do_sys_finit_module+0xbd/0x120
[  145.622236]  __x64_sys_finit_module+0x1a/0x20
[  145.622627]  do_syscall_64+0x5a/0x110
[  145.622958]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[  145.623410] RIP: 0033:0x7f6c5b62b219
[  145.623730] Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 47 fc 0c 00 f7 d8 64 89 01 48 
[  145.625300] RSP: 002b:00007ffd76b6b7c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[  145.625903] RAX: ffffffffffffffda RBX: 000055bb3b97b7a0 RCX: 00007f6c5b62b219
[  145.626511] RDX: 0000000000000000 RSI: 000055bb3b6fb338 RDI: 0000000000000003
[  145.627167] RBP: 000055bb3b6fb338 R08: 0000000000000000 R09: 00007f6c5b6fe000
[  145.627773] R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000000
[  145.628380] R13: 000055bb3b97b760 R14: 0000000000000000 R15: 0000000000000000
[  145.628971] Modules linked in: it66121(OE+) fl2000(OE) drm_kms_helper fb_sys_fops syscopyarea sysfillrect sysimgblt drm kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel aes_x86_64 crypto_simd cryptd glue_helper input_leds psmouse serio_raw i2c_piix4 mac_hid floppy qemu_fw_cfg pata_acpi 9pnet_virtio 9p 9pnet fscache [last unloaded: fl2000]
[  145.631479] CR2: ffffffffc05ac310
[  145.631736] ---[ end trace 30235f710e094dac ]---
[  145.632087] RIP: 0010:i2c_default_probe+0x26/0x140
[  145.632449] Code: 00 00 00 00 0f 1f 44 00 00 55 48 89 e5 41 54 53 48 89 fb 48 83 ec 30 65 48 8b 04 25 28 00 00 00 48 89 45 e8 31 c0 48 8b 47 10 <48> 8b 40 10 66 83 fe 73 0f 84 86 00 00 00 44 0f b7 e6 44 89 e2 83 
[  145.633865] RSP: 0018:ffffb10680217ac8 EFLAGS: 00010246
[  145.634262] RAX: ffffffffc05ac300 RBX: ffff99f383a8d018 RCX: 0000000000000000
[  145.634799] RDX: ffff99f383b35480 RSI: 000000000000004c RDI: ffff99f383a8d018
[  145.635336] RBP: ffffb10680217b08 R08: 000000000000004c R09: ffff99f383e81400
[  145.635874] R10: fffff429800e9c00 R11: 0000000000000000 R12: ffff99f383e81400
[  145.636410] R13: 0000000000000000 R14: ffffffffc05a6000 R15: 000000000000004c
[  145.636945] FS:  00007f6c5b4eeb80(0000) GS:ffff99f387a00000(0000) knlGS:0000000000000000
[  145.637555] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  145.637985] CR2: ffffffffc05ac310 CR3: 00000000038bc002 CR4: 0000000000360ef0
[  145.638517] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  145.639050] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Killed