aboutsummaryrefslogtreecommitdiff
path: root/net/8021q/vlanproc.c
diff options
context:
space:
mode:
authorHeiko Carstens2012-05-29 11:11:51 +0200
committerMartin Schwidefsky2012-05-30 09:07:58 +0200
commit1896d256d3513eafa2c2d506299b8f3951319ca2 (patch)
tree98ee2bf3d0408f964b85d6135167f50b9821924f /net/8021q/vlanproc.c
parentbf3db85311292eeacc9a9a8f38a0a4065a43a2fc (diff)
s390/cmpxchg: fix sign extension bugs
For 1 and 2 byte operands for xchg and cmpxchg the old and new values get or'ed into the larger 4 byte old value before the compare and swap instruction gets executed. This is done without using the proper byte mask before or'ing the values. If the caller passed in negative old or new values these got sign extended by the caller. Which in turn means that either the old value never matches, or, even worse, unrelated bytes would be changed in memory. Luckily there don't seem to be any callers around yet, since that would have resulted in the specification exception fixed in an earlies patch. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'net/8021q/vlanproc.c')
0 files changed, 0 insertions, 0 deletions