When I insert a USB, macOS system (running High Sierra, Mavericks, Mojave) restarts or freezes with a panic report:
Panic Report:
panic(cpu 0 caller 0xffffff801e4ba207): "a freed zone element has been modified in zone kalloc.16:
expected 0x3f0011b64302a888 but found 0x3f0011b64302a800, bits changed 0x88, at offset 0 of 16 in element 0xffffff8030ed5ac0,
cookies 0x3f0011b64302a888 0x5352105058b7571"
@/BuildRoot/Library/Caches/com.apple.xbs/Sources/xnu/xnu-4570.71.2/osfmk/kern/zalloc.c:1122
What exactly does "a freed zone element has been modified in zone kalloc.16" mean and how we get it resolved?
the kernel is getting panic when I am using a third party kernel extension to which I have modified and that deals with USB control. could you please suggest me any of debugging method of kext too.