Big Sur panic when connect/disconnect usb-c dock

Big Sur panic when connect/disconnect usb-c dock (tested with many usb–c docks including baseus, ugreen, non apple – not reproduced with apple multiport adapter).

Problem persist! I have many panics every day!

panic(cpu 7 caller 0xffffff8017898976): [kext.kalloc.2048]: element modified after free (off:1672, val:0xffffffff00000000, sz:2048, ptr:0xffffff93d7fa5800, prot:zero)
1672: 0xffffffff00000000
Backtrace (CPU 7), Frame : Return Address
0xffffffa1daab2640 : 0xffffff80170870ad
0xffffffa1daab2690 : 0xffffff80171cddd3
0xffffffa1daab26d0 : 0xffffff80171be3ca
0xffffffa1daab2720 : 0xffffff801702ba2f
0xffffffa1daab2740 : 0xffffff80170868cd
0xffffffa1daab2860 : 0xffffff8017086bc3
0xffffffa1daab28d0 : 0xffffff801789694a
0xffffffa1daab2940 : 0xffffff8017898976
0xffffffa1daab2dc0 : 0xffffff80170e5a26
0xffffffa1daab2e30 : 0xffffff801709668c
0xffffffa1daab2e80 : 0xffffff80177a8822
0xffffffa1daab2ea0 : 0xffffff801a1596dc
0xffffffa1daab2ec0 : 0xffffff801a1676bc
0xffffffa1daab2f20 : 0xffffff801a159e2e
0xffffffa1daab2fc0 : 0xffffff801a15bfa7
0xffffffa1daab3270 : 0xffffff801a15fe3d
0xffffffa1daab3540 : 0xffffff801a15cda2
0xffffffa1daab37f0 : 0xffffff801a15a333
0xffffffa1daab3950 : 0xffffff801a1547b1
0xffffffa1daab3b50 : 0xffffff801787fb4a
0xffffffa1daab3b90 : 0xffffff801731a98f
0xffffffa1daab3bd0 : 0xffffff80173407c8
0xffffffa1daab3c90 : 0xffffff80173264a8
0xffffffa1daab3ee0 : 0xffffff8017327059
0xffffffa1daab3f40 : 0xffffff8017739fce
0xffffffa1daab3fa0 : 0xffffff801702c1f6
Kernel Extensions in backtrace:
com.apple.security.sandbox(300.0)[F9746111-2761-31A8-A9C8-3DCA8976E468]@0xffffff801a148000->0xffffff801a18dfff
dependency: com.apple.driver.AppleMobileFileIntegrity(1.0.5)[7C10DA84-DFD9-3C2D-B503-E648E488EC9D]@0xffffff80186c0000->0xffffff80186d5fff
dependency: com.apple.iokit.IOStorageFamily(2.1)[A78CAAA2-43A6-38EF-AEDA-3B957D358855]@0xffffff8019c6d000->0xffffff8019c7efff
dependency: com.apple.kext.AppleMatch(1.0.0d1)[DB7AEFA5-928C-3B7F-87CC-EDC47D98B267]@0xffffff80186bc000->0xffffff80186befff

Process name corresponding to current thread: update_dyld_sim_shared_cache
Boot args: chunklist-security-epoch=0 -chunklist-no-rev2-dev

Mac OS version:
20F5046g

Kernel version:
Darwin Kernel Version 20.5.0: Thu Apr 15 05:31:19 PDT 2021; root:xnu-7195.120.38.111.1~4/RELEASE_X86_64

My reports in feedback assistant: FB9085399, FB9084201, FB9080122, FB9078447, FB9077541, FB9073646, FB9069424, FB9036423, FB9006281, FB8996761, FB8985931, FB8984349, FB8982979 ...

After reading the thread, I saw someone mentioned that the issue could probably occur when connecting the usb-c dock while the laptop is on sleep.

Since yesterday, I open the lid of my macbook and wait for it to wakeup before I connect the cable. I only do this when my macbook is on sleep, usually every morning. I have not encountered the problem again. Hopefully...

Can anyone confirm if issue is fixed with 11.5.2? Only working solution for me is as commented before, disconnect open the lid wait for laptop to wake up and then reconnect.

I confirm that  kjbalgos's trick is helping to some extent; not 100% safe in my case, but definitely better; thanks !

I was constantly running into this problem. Problem went away completely after I switched to a thunderbolt 4 dock, specifically this one - https://www.caldigit.com/thunderbolt-4-element-hub/

i'm having the same problems - crashes when disconnecting from docking station / external displays, crashing when trying to come out of sleep mode, etc. crash report is attached.

[MacBook Pro (16-inch, 2019) / 2.6 GHz 6-Core Intel Core i7 / 16 GB 2667 MHz DDR4 / Intel UHD Graphics 630 1536 MB]

The problem does not seem to be tied to any particular dock. I have none of those, but every morning I get that panic. My usual use case: work unplugged, close the lid, plug in a charger. If I open the lid while plugged, it never happens. But if I unplug first, then it most likely shoots. Though the bug it not stable, too. My usual case does not trigger it throughout a day — next day only in most cases... MBP16.2

Yes, I have the exact problem..

I don't even use a USB Dock, I have to USB-C Screens with regular USB 3 ports on them. But still.. This is getting so frustrating almost used it a year now and I'm seriously thinking of going back to the dark side....

Does @apple even care about this?

If you think you can fly, you don't

I have 3 different MacBook Pros on Big Sur 11.5.2 that I connect to the same docking station, obviously one MBP at the time, only one presents this problem the main difference is that the one that crashes every time has a 'AMD Radeon Pro 5500M 8 GB' graphics card, whereas the other ones don't only the 'Intel Iris Plus Graphics'.

Surprisingly the one that presents the problem is my most powerful and newest one. MacBook Pro (16-inch, 2019) 2.4 GHz 8-Core Intel Core i9 64 GB 2667 MHz DDR4 AMD Radeon Pro 5500M 8 GB Intel UHD Graphics 630 1536 MB

I'm planning to upgrade the docking station with the hopes that a new one fixes the problem, but Apple should fix ASAP for us

Has anyone tried upgrading to 11.6 yet?

MacOS Big Sur 11.5.2 and I am still seeing the issue. After the 5th crash today it managed to connect to the external monitor (using dell docking station)

Have disconnected and reconnected a few times now with MacOS Big Sur 11.6 and so far so good. I was able to reproduce fairly consistently before.

Has anyone else reproduced this issue on 11.6?

mcbp 16 '19 (Big Sur 11.5.2) Same issue here, tried with HP docs and DELL dock. Please fix this. Occurs even with hdmi not only dp. Every time I connect the usb-c dock the device switch to 2-monitor view (the desktop on the laptop change so I know it's connected in double monitor config.) and I see nothing on the second monitor connected tot he dock. after 1 minute max, fan spins, mac crashes an reboots. I tried multiple times sometimes it works after 10-15 attempts, but I'm scared to damage the device so I reverted back to no dock. Please fix this.

I'm getting the exact same issue on my 2019 16" intel MBP

This is with a HP Usb-C gen5 dock. Sometimes the display works but it only detects 60Hz. Other times it forces the mac to shutdown.

Most times when you plug it in and the screen doesnt show, the mac freezes every few seconds.

on my M1 air the dock/screen works fine.

When running bootcamp on the 2019 !6" MBP the dock/screen works fine too.

Care to chime in @Apple? This bug is costing me hours a week on a brand new $3k MacBook Pro. I thought things were supposed to "just work"...including the basics such as connecting an external display.

Hello, Same problem with my Macbook pro 2019 (with AMD 5300).

Updated on Big sur 11.6.

Tried with different adapters. If I plug/unplug one of them or both -> Kernel Panic almost each time.

After two calls with Apple care team, they told me to "reinstall macOs Big Sur". Without any changes...

So, I just lost a day of work to try to avoid the case. With no solution...

Big Sur panic when connect/disconnect usb-c dock
 
 
Q