# git rev-parse -q --verify b59dfdaef173677b0b7e10f375226c0a1114fd20^{commit} b59dfdaef173677b0b7e10f375226c0a1114fd20 already have revision, skipping fetch # git checkout -q -f -B kisskb b59dfdaef173677b0b7e10f375226c0a1114fd20 # git clean -qxdf # < git log -1 # commit b59dfdaef173677b0b7e10f375226c0a1114fd20 # Author: Linus Torvalds # Date: Sat Oct 27 09:10:48 2018 -0700 # # i2c-hid: properly terminate i2c_hid_dmi_desc_override_table[] array # # Commit 9ee3e06610fd ("HID: i2c-hid: override HID descriptors for certain # devices") added a new dmi_system_id quirk table to override certain HID # report descriptors for some systems that lack them. # # But the table wasn't properly terminated, causing the dmi matching to # walk off into la-la-land, and starting to treat random data as dmi # descriptor pointers, causing boot-time oopses if you were at all # unlucky. # # Terminate the array. # # We really should have some way to just statically check that arrays that # should be terminated by an empty entry actually are so. But the HID # people really should have caught this themselves, rather than have me # deal with an oops during the merge window. Tssk, tssk. # # Cc: Julian Sax # Cc: Benjamin Tissoires # Cc: Jiri Kosina # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-gcc --version # < git log --format=%s --max-count=1 b59dfdaef173677b0b7e10f375226c0a1114fd20 # < make -s -j 48 ARCH=x86 O=/kisskb/build/linus_x86-allmodconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- allmodconfig # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_SAMPLES=n # yes \n | make -s -j 48 ARCH=x86 O=/kisskb/build/linus_x86-allmodconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- oldconfig yes: standard output: Broken pipe # make -s -j 48 ARCH=x86 O=/kisskb/build/linus_x86-allmodconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- In file included from /kisskb/src/include/linux/bitmap.h:9, from /kisskb/src/include/linux/cpumask.h:12, from /kisskb/src/arch/x86/include/asm/paravirt.h:17, from /kisskb/src/arch/x86/include/asm/irqflags.h:68, from /kisskb/src/include/linux/irqflags.h:16, from /kisskb/src/include/linux/rcupdate.h:39, from /kisskb/src/include/linux/rculist.h:11, from /kisskb/src/include/linux/pid.h:5, from /kisskb/src/include/linux/sched.h:14, from /kisskb/src/kernel/debug/kdb/kdb_support.c:15: In function 'strncpy', inlined from 'kallsyms_symbol_next' at /kisskb/src/kernel/debug/kdb/kdb_support.c:239:4: /kisskb/src/include/linux/string.h:253:9: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] return __builtin_strncpy(p, q, size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/kernel/debug/kdb/kdb_support.c: In function 'kallsyms_symbol_next': /kisskb/src/include/linux/string.h:274:10: note: length computed here return __builtin_strlen(p); ^~~~~~~~~~~~~~~~~~~ /kisskb/src/lib/ubsan.c:432:1: warning: ignoring attribute 'noreturn' in declaration of a built-in function '__ubsan_handle_builtin_unreachable' because it conflicts with attribute 'const' [-Wattributes] { ^ : note: previous declaration here In file included from /kisskb/src/include/linux/bitmap.h:9, from /kisskb/src/include/linux/cpumask.h:12, from /kisskb/src/arch/x86/include/asm/cpumask.h:5, from /kisskb/src/arch/x86/include/asm/msr.h:11, from /kisskb/src/arch/x86/include/asm/processor.h:21, from /kisskb/src/arch/x86/include/asm/cpufeature.h:8, from /kisskb/src/arch/x86/include/asm/thread_info.h:53, from /kisskb/src/include/linux/thread_info.h:38, from /kisskb/src/arch/x86/include/asm/preempt.h:7, from /kisskb/src/include/linux/preempt.h:81, from /kisskb/src/include/linux/spinlock.h:51, from /kisskb/src/include/linux/seqlock.h:36, from /kisskb/src/include/linux/time.h:6, from /kisskb/src/include/linux/stat.h:19, from /kisskb/src/include/linux/module.h:10, from /kisskb/src/lib/test_hexdump.c:8: In function 'strncpy', inlined from 'test_hexdump_prepare_test.constprop' at /kisskb/src/lib/test_hexdump.c:102:3: /kisskb/src/include/linux/string.h:253:9: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] return __builtin_strncpy(p, q, size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/lib/test_hexdump.c: In function 'test_hexdump_prepare_test.constprop': /kisskb/src/include/linux/string.h:274:10: note: length computed here return __builtin_strlen(p); ^~~~~~~~~~~~~~~~~~~ /kisskb/src/scripts/unifdef.c: In function 'Mpass': /kisskb/src/scripts/unifdef.c:453:28: warning: 'strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] static void Mpass (void) { strncpy(keyword, "if ", 4); Pelif(); } ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Completed OK # rm -rf /kisskb/build/linus_x86-allmodconfig_x86_64-gcc8 # Build took: 0:23:16.387220