Skip to content

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Mar 26, 2025

Protect Task.ptraceSeized with TaskSet mutex and Signal mutex.

Previously Task.ptraceSeized was protected only by TaskSet mutex, but some
pathways incorrectly modified the field without holding the lock, leading to
data races.

This CL changes the locking so that TaskSet and Signal mutexes are required to
write Task.ptraceSeized, but only one of them must be held to read
Task.ptraceSeized.

Reported-by: syzbot+b0de1abe368849ca2d00@syzkaller.appspotmail.com

@copybara-service copybara-service bot added the exported Issue was exported automatically label Mar 26, 2025
@copybara-service copybara-service bot force-pushed the test/cl740839780 branch 2 times, most recently from c907330 to de7ddc0 Compare March 27, 2025 19:41
@copybara-service copybara-service bot changed the title Hold TaskSet mutex when accessing Task.ptraceSeized. Protect Task.ptraceSeized with TaskSet mutex and Signal mutex. Mar 27, 2025
@copybara-service copybara-service bot force-pushed the test/cl740839780 branch 4 times, most recently from 5eb904f to 6b49bad Compare March 31, 2025 17:29
Previously Task.ptraceSeized was protected only by TaskSet mutex, but some
pathways incorrectly modified the field without holding the lock, leading to
data races.

This CL changes the locking so that TaskSet and Signal mutexes are required to
write Task.ptraceSeized, but only one of them must be held to read
Task.ptraceSeized.

Reported-by: syzbot+b0de1abe368849ca2d00@syzkaller.appspotmail.com
PiperOrigin-RevId: 742317413
@copybara-service copybara-service bot merged commit 8221e47 into master Mar 31, 2025
1 check was pending
@copybara-service copybara-service bot deleted the test/cl740839780 branch March 31, 2025 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant