5.9: Kernel panic when unplugging USB-C hub with display
NOTE: In case it's relevant, my kernel has extcon patches applied. EDIT: happens on stock 5.9 as well
I've seen it a few times. Happens even when phoc isn't running.
That's what I managed to catch via WiFi connection:
[ 1851.702381] usb 3-1: USB disconnect, device number 2
[ 1851.707545] usb 3-1.1: USB disconnect, device number 3
[ 1851.719214] [drm] hpd irq
[ 1851.745409] xhci-hcd xhci-hcd.5.auto: remove, state 4
[ 1851.753373] usb usb4: USB disconnect, device number 1
[ 1851.767198] usb 3-1.3: USB disconnect, device number 4
[ 1851.773309] xhci-hcd xhci-hcd.5.auto: USB bus 4 deregistered
[ 1851.781981] xhci-hcd xhci-hcd.5.auto: remove, state 1
[ 1851.787505] usb usb3: USB disconnect, device number 1
[ 1851.921748] [drm] Connector status: 0
[ 1851.922994] [drm] Connector status: 0
[ 1851.954428] [drm] Connector status: 0
[ 1851.958286] [drm] HDMI/DP Cable Plug Out
[ 1851.978096] usb 3-1.4: USB disconnect, device number 5
[ 1852.012933] Unable to handle kernel paging request at virtual address ffff7e00aff60880
[ 1852.020994] Mem abort info:
[ 1852.023751] xhci-hcd xhci-hcd.5.auto: USB bus 3 deregistered
[ 1852.023853] ESR = 0x96000004
[ 1852.023859] EC = 0x25: DABT (current EL), IL = 32 bits
[ 1852.029675] dwc3 38100000.usb: dma_pool_destroy buffer-128, 00000000011b1e26 busy
[ 1852.032737] SET = 0, FnV = 0
[ 1852.032739] EA = 0, S1PTW = 0
[ 1852.032740] Data abort info:
[ 1852.032741] ISV = 0, ISS = 0x00000004
[ 1852.032743] CM = 0, WnR = 0
[ 1852.032747] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000081796000
[ 1852.038931] using random self ethernet address
[ 1852.045732] [ffff7e00aff60880] pgd=0000000000000000, p4d=0000000000000000
[ 1852.045742] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[ 1852.045747] Modules linked in: hid_magicmouse usbhid usb_f_eem aes_ce_ccm rfcomm bnep iptable_mangle xt_CHECKSUM xt_tcpudp iptable_nat xt_comment xt_MASQUERADE nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c bridge stp iptable_filter nf_tables nfnetlink binfmt_misc mousedev caam_jr caamhash_desc caamalg_desc rsi_sdio rsi_91x crypto_engine bluetooth mac80211 aes_ce_blk crypto_simd crct10dif_ce ghash_ce uas hantro_vpu(C) v4l2_h264 videobuf2_dma_contig v4l2_mem2mem sha2_ce st_lsm6dsx_spi usb_storage videobuf2_vmalloc sha1_ce videobuf2_memops cfg80211 videobuf2_v4l2 pwm_vibra ofpart videobuf2_common snd_soc_simple_card snd_soc_gtm601 snd_soc_simple_card_utils videodev spi_nor st_lsm6dsx_i2c gnss_mtk vcnl4000 st_lsm6dsx industrialio_triggered_buffer tps6598x gnss_serial bq25890_charger typec mtd snd_soc_wm8962 gnss kfifo_buf edt_ft5x06 leds_lm3560 leds_lm3692x mc caam error snd_soc_fsl_sai imx_pcm_dma snvs_pwrkey snd_soc_core snd_pcm_dmaengine snd_pcm snd_timer snd soundcore
[ 1852.045864] imx2_wdt
[ 1852.050287] using random host ethernet address
[ 1852.052142] imx_sdma watchdog virt_dma ledtrig_timer g_ether usb_f_rndis u_ether libcomposite ledtrig_pattern ip_tables x_tables ipv6 xhci_plat_hcd xhci_hcd usbcore imx_dcss dwc3 cdns_mhdp_imx ulpi cdns_mhdp_drmcore udc_core roles usb_common phy_fsl_imx8mq_usb clk_bd718x7
...and the rest on the screen (caught thanks to the fact that phoc wasn't running):