summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorAndrzej Zaborowski <andrew.zaborowski@intel.com>2014-06-09 16:50:40 +0200
committerJiri Slaby <jslaby@suse.cz>2014-07-02 12:06:43 +0200
commit8c23d6e199b45b042ae76cdbcfac467c7ce4e52e (patch)
tree8b76014e73df9fadff3ff36b58990da227a049bf /net
parentcc6f6d1dfee2cd1f26814a9de18e71df7a2a8674 (diff)
efi-pstore: Fix an overflow on 32-bit builds
commit 783ee43118dc773bc8b0342c5b230e017d5a04d0 upstream. In generic_id the long int timestamp is multiplied by 100000 and needs an explicit cast to u64. Without that the id in the resulting pstore filename is wrong and userspace may have problems parsing it, but more importantly files in pstore can never be deleted and may fill the EFI flash (brick device?). This happens because when generic pstore code wants to delete a file, it passes the id to the EFI backend which reinterpretes it and a wrong variable name is attempted to be deleted. There's no error message but after remounting pstore, deleted files would reappear. Signed-off-by: Andrew Zaborowski <andrew.zaborowski@intel.com> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions