The issue arises when the mirred action is used on a classful egress qdisc and a packet is mirrored or redirected to itself, resulting in a qdisc lock deadlock. This can be recreated using specific tc qdisc and filter commands on devices such as eth0 and eth1. The deadlock occurs due to a possible recursive locking scenario where the task tries to acquire a lock it already holds. To fix this, an owner field (CPU id) is added to struct Qdisc after the root qdisc is entered, and if the softirq enters a second time with the same CPU as the qdisc owner, the packet is dropped to break the loop.