summaryrefslogtreecommitdiffstats
path: root/mm/cma.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-12-22 05:20:43 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2021-01-07 18:07:32 -0500
commit2f80d502d627f30257ba7e3655e71c373b7d1a5a (patch)
tree6ae8dfc54febca3a30949453e538d4f9ec1915a7 /mm/cma.h
parentb268b6f0bd36322358accb15c45683a9e1220231 (diff)
downloadlinux-2f80d502d627f30257ba7e3655e71c373b7d1a5a.tar.bz2
KVM: x86: fix shift out of bounds reported by UBSAN
Since we know that e >= s, we can reassociate the left shift, changing the shifted number from 1 to 2 in exchange for decreasing the right hand side by 1. Reported-by: syzbot+e87846c48bf72bc85311@syzkaller.appspotmail.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mm/cma.h')
0 files changed, 0 insertions, 0 deletions