diff options
author | Ari Kauppi <[email protected]> | 2017-05-05 16:07:55 -0400 |
---|---|---|
committer | J. Bruce Fields <[email protected]> | 2017-05-09 17:09:18 -0400 |
commit | b550a32e60a4941994b437a8d662432a486235a5 (patch) | |
tree | ee8f276ffae29999291a7338cb4e3df02619863a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | efda760fe95ea15291853c8fa9235c32d319cd98 (diff) |
nfsd: fix undefined behavior in nfsd4_layout_verify
UBSAN: Undefined behaviour in fs/nfsd/nfs4proc.c:1262:34
shift exponent 128 is too large for 32-bit type 'int'
Depending on compiler+architecture, this may cause the check for
layout_type to succeed for overly large values (which seems to be the
case with amd64). The large value will be later used in de-referencing
nfsd4_layout_ops for function pointers.
Reported-by: Jani Tuovila <[email protected]>
Signed-off-by: Ari Kauppi <[email protected]>
[[email protected]: use LAYOUT_TYPE_MAX instead of 32]
Cc: [email protected]
Reviewed-by: Dan Carpenter <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions