Kernel: Fix spinlock unlocking in x86_64
Spinlock unlock used a 64 bit write on 32 bit integer, overwriting some random memory. This caused some really hard to find bugs
This commit is contained in:
@@ -13,5 +13,5 @@ spinlock_lock_asm:
|
|||||||
|
|
||||||
.global spinlock_unlock_asm
|
.global spinlock_unlock_asm
|
||||||
spinlock_unlock_asm:
|
spinlock_unlock_asm:
|
||||||
movq $0, (%rdi)
|
movl $0, (%rdi)
|
||||||
ret
|
ret
|
||||||
Reference in New Issue
Block a user