Revision 65b3bdc807ac7bd83f5b27bc2c29a3c631eed7dd authored by Chris Wilson on 22 May 2018, 12:10:18 UTC, committed by Joonas Lahtinen on 29 May 2018, 10:53:07 UTC
nospec quite reasonably asserts that it will never be used with an index larger than unsigned long (that being the largest possibly index into an C array). However, our ubi uses the convention of u64 for any large integer, running afoul of the assertion on 32b. Reduce our index to an unsigned long, checking for type overflow first. drivers/gpu/drm/i915/i915_query.c: In function 'i915_query_ioctl': include/linux/compiler.h:339:38: error: call to '__compiletime_assert_119' declared with attribute error: BUILD_BUG_ON failed: sizeof(_s) > sizeof(long) Reported-by: kbuild-all@01.org Fixes: 84b510e22da7 ("drm/i915/query: Protect tainted function pointer lookup") Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180522121018.15199-1-chris@chris-wilson.co.uk (cherry picked from commit a33b1dc8a732144e11cb4bf067d24ba51e6b8ab0) Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
1 parent 540ead8
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 1.0 KB |
Makefile | -rw-r--r-- | 420 bytes |
acl.h | -rw-r--r-- | 742 bytes |
attributes.c | -rw-r--r-- | 8.3 KB |
bfind.c | -rw-r--r-- | 6.1 KB |
bitmap.c | -rw-r--r-- | 5.0 KB |
bnode.c | -rw-r--r-- | 15.3 KB |
brec.c | -rw-r--r-- | 13.5 KB |
btree.c | -rw-r--r-- | 11.9 KB |
catalog.c | -rw-r--r-- | 13.5 KB |
dir.c | -rw-r--r-- | 13.9 KB |
extents.c | -rw-r--r-- | 15.0 KB |
hfsplus_fs.h | -rw-r--r-- | 16.1 KB |
hfsplus_raw.h | -rw-r--r-- | 9.5 KB |
inode.c | -rw-r--r-- | 16.7 KB |
ioctl.c | -rw-r--r-- | 3.6 KB |
options.c | -rw-r--r-- | 5.3 KB |
part_tbl.c | -rw-r--r-- | 4.2 KB |
posix_acl.c | -rw-r--r-- | 3.0 KB |
super.c | -rw-r--r-- | 18.0 KB |
tables.c | -rw-r--r-- | 119.1 KB |
unicode.c | -rw-r--r-- | 9.2 KB |
wrapper.c | -rw-r--r-- | 7.0 KB |
xattr.c | -rw-r--r-- | 23.4 KB |
xattr.h | -rw-r--r-- | 1.3 KB |
xattr_security.c | -rw-r--r-- | 2.2 KB |
xattr_trusted.c | -rw-r--r-- | 1017 bytes |
xattr_user.c | -rw-r--r-- | 963 bytes |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...