summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2022-03-13 17:21:29 +0000
committerriastradh <riastradh@NetBSD.org>2022-03-13 17:21:29 +0000
commit2e583ee4fb34b20962351090bb8c584c3eeca95a (patch)
tree5bde533963094340629369e7bfcebcfd7847d2cb /sys/dev
parent5ea0a8a9b13be4ead682e960d5f679faed824090 (diff)
kern: Fix ordering of loads for pid_table and pid_tbl_mask.
This introduces a load-acquire where there was none before. This is a simple correctness change. We could avoid the load-acquire, and use only load-consume, if we used a pointer indirection for _both_ pid_table and pid_tbl_mask. Takes a little more work, and probably costs an additional cache line of memory traffic, but might be worth it to avoid the load-acquire for pid lookup. Reported-by: syzbot+c49e405d0b977aeed663@syzkaller.appspotmail.com Reported-by: syzbot+1c88ee7086f93607cea1@syzkaller.appspotmail.com Reported-by: syzbot+da4e9ed1319b75fe2ef3@syzkaller.appspotmail.com
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions