-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
s390/bpf: Fully order atomic "add", "and", "or" and "xor" #6969
Conversation
Upstream branch: a9e7715 |
e62ff75
to
4e2f259
Compare
Upstream branch: 8e6d9ae |
d3d9844
to
3e7bc93
Compare
4e2f259
to
2139529
Compare
Upstream branch: e549b39 |
3e7bc93
to
881bc28
Compare
2139529
to
2ae8bbc
Compare
Upstream branch: 41b307a |
881bc28
to
67e1890
Compare
2ae8bbc
to
459d932
Compare
Upstream branch: 329a672 |
67e1890
to
87908ef
Compare
459d932
to
ba083f5
Compare
Upstream branch: 75b0fbf |
87908ef
to
5bae1c7
Compare
ba083f5
to
20150dc
Compare
Upstream branch: 93d1c2d |
5bae1c7
to
79c3a4c
Compare
20150dc
to
606f72a
Compare
Upstream branch: 7e2c7a3 |
79c3a4c
to
45a9af1
Compare
606f72a
to
041b1be
Compare
Upstream branch: e612b5c |
45a9af1
to
768c9dd
Compare
041b1be
to
63334d2
Compare
Upstream branch: 911edc6 |
768c9dd
to
816f3ac
Compare
63334d2
to
2a4c29b
Compare
Upstream branch: 0093670 |
816f3ac
to
e28e0d7
Compare
2a4c29b
to
9fdc018
Compare
Upstream branch: cbe35ad |
e28e0d7
to
b8b4f7c
Compare
9fdc018
to
0ce10a8
Compare
Upstream branch: 0d03a4d |
b8b4f7c
to
4bc71e4
Compare
0ce10a8
to
e20303c
Compare
Upstream branch: fcd1ed8 |
BPF_ATOMIC_OP() macro documentation states that "BPF_ADD | BPF_FETCH" should be the same as atomic_fetch_add(), which is currently not the case on s390x: the synchronization instruction "bcr 14,0" is missing. This should not be a problem in practice, because s390x is allowed to reorder only stores with subsequent fetches from different addresses. Still, just to be on the safe side, and also for consistency, emit the synchronization instruction. Note that it's not required to do this for BPF_XCHG and BPF_CMPXCHG, because COMPARE AND SWAP performs serialization itself. Fixes: ba3b86b ("s390/bpf: Implement new atomic ops") Reported-by: Puranjay Mohan <puranjay12@gmail.com> Closes: https://lore.kernel.org/bpf/mb61p34qvq3wf.fsf@kernel.org/ Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
4bc71e4
to
109f2cd
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=850815 expired. Closing PR. |
Pull request for series with
subject: s390/bpf: Fully order atomic "add", "and", "or" and "xor"
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=850815