google / kernel-sanitizers

Linux Kernel Sanitizers, fast bug-detectors for the Linux kernel
https://google.github.io/kernel-sanitizers/
437 stars 87 forks source link

Change OOB test, fix deadlocks #56

Closed ramosian-glider closed 4 years ago

ramosian-glider commented 4 years ago

Reverted the console_lock() hack, moved error reporting outside the critical section instead. This could've been made cleaner by making the object index part of struct alloc_metadata, but we won't need it anywhere else except reporting. Please take another look.

ramosian-glider commented 4 years ago

Dropped copy_obj_data(), will merge this PR now. Thanks for the review!