bisecting fixing commit since 0519359784328bfa92bf0931bf0cff3b58c16932 building syzkaller on 9be5aa1d051dea559961cb42d3fa750ca40e2d5e testing commit 0519359784328bfa92bf0931bf0cff3b58c16932 with gcc (GCC) 8.1.0 all runs: crashed: general protection fault in kvm_pv_send_ipi testing current HEAD 8fde2832bd0bdc5a2b57330a9e9c3d2fa16bd1d8 testing commit 8fde2832bd0bdc5a2b57330a9e9c3d2fa16bd1d8 with gcc (GCC) 8.1.0 all runs: OK # git bisect start 8fde2832bd0bdc5a2b57330a9e9c3d2fa16bd1d8 0519359784328bfa92bf0931bf0cff3b58c16932 Bisecting: 37655 revisions left to test after this (roughly 15 steps) [6bab69c65013bed5fce9f101a64a84d0385b3946] build_bug.h: add wrapper for _Static_assert testing commit 6bab69c65013bed5fce9f101a64a84d0385b3946 with gcc (GCC) 8.1.0 all runs: OK # git bisect bad 6bab69c65013bed5fce9f101a64a84d0385b3946 Bisecting: 18841 revisions left to test after this (roughly 14 steps) [b3cc2bfe7244e848f5e8caa77bbdc72c04abd17c] Merge tag 'i3c/for-4.21' of git://git.kernel.org/pub/scm/linux/kernel/git/i3c/linux testing commit b3cc2bfe7244e848f5e8caa77bbdc72c04abd17c with gcc (GCC) 8.1.0 all runs: OK # git bisect bad b3cc2bfe7244e848f5e8caa77bbdc72c04abd17c Bisecting: 9409 revisions left to test after this (roughly 13 steps) [b27186abb37b7bd19e0ca434f4f425c807dbd708] Merge tag 'devicetree-for-4.20' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux testing commit b27186abb37b7bd19e0ca434f4f425c807dbd708 with gcc (GCC) 8.1.0 all runs: crashed: general protection fault in kvm_pv_send_ipi # git bisect good b27186abb37b7bd19e0ca434f4f425c807dbd708 Bisecting: 4704 revisions left to test after this (roughly 12 steps) [b5c212374c85353a4412a08a958ecb6e0d2aa95f] fs/proc/vmcore.c: Convert to use vmf_error() testing commit b5c212374c85353a4412a08a958ecb6e0d2aa95f with gcc (GCC) 8.1.0 run #0: crashed: general protection fault in kvm_pv_send_ipi run #1: crashed: general protection fault in kvm_pv_send_ipi run #2: crashed: general protection fault in kvm_pv_send_ipi run #3: crashed: general protection fault in kvm_pv_send_ipi run #4: crashed: general protection fault in kvm_pv_send_ipi run #5: crashed: general protection fault in corrupted run #6: crashed: general protection fault in kvm_pv_send_ipi run #7: crashed: general protection fault in kvm_pv_send_ipi run #8: crashed: general protection fault in kvm_pv_send_ipi run #9: boot failed: KASAN: use-after-free Read in dd_has_work # git bisect good b5c212374c85353a4412a08a958ecb6e0d2aa95f Bisecting: 2339 revisions left to test after this (roughly 11 steps) [4b78317679c4f3782a3cff0ddb269c1fcfde7621] Merge branch 'x86-pti-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit 4b78317679c4f3782a3cff0ddb269c1fcfde7621 with gcc (GCC) 8.1.0 run #0: crashed: no output from test machine run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK # git bisect good 4b78317679c4f3782a3cff0ddb269c1fcfde7621 Bisecting: 1157 revisions left to test after this (roughly 10 steps) [e69aa5f9b97f7f871643336deb281db5cb14878b] Merge tag 'drm-misc-next-2018-12-06' of git://anongit.freedesktop.org/drm/drm-misc into drm-next testing commit e69aa5f9b97f7f871643336deb281db5cb14878b with gcc (GCC) 8.1.0 run #0: crashed: general protection fault in kvm_pv_send_ipi run #1: crashed: general protection fault in kvm_pv_send_ipi run #2: crashed: general protection fault in kvm_pv_send_ipi run #3: crashed: general protection fault in corrupted run #4: crashed: general protection fault in kvm_pv_send_ipi run #5: crashed: general protection fault in kvm_pv_send_ipi run #6: crashed: general protection fault in kvm_pv_send_ipi run #7: crashed: general protection fault in kvm_pv_send_ipi run #8: crashed: general protection fault in kvm_pv_send_ipi run #9: crashed: general protection fault in kvm_pv_send_ipi # git bisect good e69aa5f9b97f7f871643336deb281db5cb14878b Bisecting: 580 revisions left to test after this (roughly 9 steps) [2dd516ff7d852c2cda8c5b883d6625d1c812714e] Merge tag 'dma-mapping-4.20-4' of git://git.infradead.org/users/hch/dma-mapping testing commit 2dd516ff7d852c2cda8c5b883d6625d1c812714e with gcc (GCC) 8.1.0 all runs: OK # git bisect bad 2dd516ff7d852c2cda8c5b883d6625d1c812714e Bisecting: 287 revisions left to test after this (roughly 8 steps) [4b04e73a78c5c89dc1a75fb35dea6c947c1d2ac7] Merge branch 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit 4b04e73a78c5c89dc1a75fb35dea6c947c1d2ac7 with gcc (GCC) 8.1.0 all runs: OK # git bisect bad 4b04e73a78c5c89dc1a75fb35dea6c947c1d2ac7 Bisecting: 140 revisions left to test after this (roughly 7 steps) [7f80c7325be49db3fb8b5f343f47691b7999fda7] Merge tag 'nfs-for-4.20-5' of git://git.linux-nfs.org/projects/trondmy/linux-nfs testing commit 7f80c7325be49db3fb8b5f343f47691b7999fda7 with gcc (GCC) 8.1.0 all runs: OK # git bisect bad 7f80c7325be49db3fb8b5f343f47691b7999fda7 Bisecting: 77 revisions left to test after this (roughly 6 steps) [0072a0c14d5b7cb72c611d396f143f5dcd73ebe2] Merge tag 'media/v4.20-4' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media testing commit 0072a0c14d5b7cb72c611d396f143f5dcd73ebe2 with gcc (GCC) 8.1.0 run #0: crashed: INFO: rcu detected stall in kvm_vcpu_ioctl run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK # git bisect good 0072a0c14d5b7cb72c611d396f143f5dcd73ebe2 Bisecting: 36 revisions left to test after this (roughly 5 steps) [cf76c364a1e1e5224af80edf70a1e3023e1fcf8c] Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi testing commit cf76c364a1e1e5224af80edf70a1e3023e1fcf8c with gcc (GCC) 8.1.0 all runs: OK # git bisect bad cf76c364a1e1e5224af80edf70a1e3023e1fcf8c Bisecting: 19 revisions left to test after this (roughly 4 steps) [91dd51f6e7ce7f1eba5d7b583790e134367d0fbb] Merge tag 'pm-4.20-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm testing commit 91dd51f6e7ce7f1eba5d7b583790e134367d0fbb with gcc (GCC) 8.1.0 all runs: OK # git bisect bad 91dd51f6e7ce7f1eba5d7b583790e134367d0fbb Bisecting: 10 revisions left to test after this (roughly 3 steps) [ad33429cd02565c28404bb16ae7a4c2bdfda6626] Input: elan_i2c - add ACPI ID for Lenovo IdeaPad 330-15ARR testing commit ad33429cd02565c28404bb16ae7a4c2bdfda6626 with gcc (GCC) 8.1.0 all runs: OK # git bisect bad ad33429cd02565c28404bb16ae7a4c2bdfda6626 Bisecting: 4 revisions left to test after this (roughly 2 steps) [dda2af7418db9dd51913cb71d9ec9266d4f7924d] Input: migor_ts - convert to SPDX identifiers testing commit dda2af7418db9dd51913cb71d9ec9266d4f7924d with gcc (GCC) 8.1.0 all runs: OK # git bisect bad dda2af7418db9dd51913cb71d9ec9266d4f7924d Bisecting: 2 revisions left to test after this (roughly 1 step) [3ed64da3b790be7c63601e8ca6341b7dff74a660] Input: elan_i2c - add ELAN0620 to the ACPI table testing commit 3ed64da3b790be7c63601e8ca6341b7dff74a660 with gcc (GCC) 8.1.0 all runs: OK # git bisect bad 3ed64da3b790be7c63601e8ca6341b7dff74a660 Bisecting: 0 revisions left to test after this (roughly 0 steps) [d55bda1b3e7c5a87f10da54fdda866a9a9cef30b] Input: matrix_keypad - check for errors from of_get_named_gpio() testing commit d55bda1b3e7c5a87f10da54fdda866a9a9cef30b with gcc (GCC) 8.1.0 all runs: OK # git bisect bad d55bda1b3e7c5a87f10da54fdda866a9a9cef30b d55bda1b3e7c5a87f10da54fdda866a9a9cef30b is the first bad commit commit d55bda1b3e7c5a87f10da54fdda866a9a9cef30b Author: Christian Hoff Date: Mon Nov 12 11:11:29 2018 -0800 Input: matrix_keypad - check for errors from of_get_named_gpio() "of_get_named_gpio()" returns a negative error value if it fails and drivers should check for this. This missing check was now added to the matrix_keypad driver. In my case "of_get_named_gpio()" returned -EPROBE_DEFER because the referenced GPIOs belong to an I/O expander, which was not yet probed at the point in time when the matrix_keypad driver was loading. Because the driver did not check for errors from the "of_get_named_gpio()" routine, it was assuming that "-EPROBE_DEFER" is actually a GPIO number and continued as usual, which led to further errors like this later on: WARNING: CPU: 3 PID: 167 at drivers/gpio/gpiolib.c:114 gpio_to_desc+0xc8/0xd0 invalid GPIO -517 Note that the "GPIO number" -517 in the error message above is actually "-EPROBE_DEFER". As part of the patch a misleading error message "no platform data defined" was also removed. This does not lead to information loss because the other error paths in matrix_keypad_parse_dt() already print an error. Signed-off-by: Christian Hoff Suggested-by: Sebastian Reichel Reviewed-by: Sebastian Reichel Cc: stable@vger.kernel.org Signed-off-by: Dmitry Torokhov :040000 040000 82461e2f997ab5a7448f92835c272715195bcd16 ae904427f1a02821839dc122ff3030f880ecc3df M drivers revisions tested: 18, total time: 4h13m2.870577484s (build: 1h19m53.656885178s, test: 2h46m24.764021948s) first good commit: d55bda1b3e7c5a87f10da54fdda866a9a9cef30b Input: matrix_keypad - check for errors from of_get_named_gpio() cc: ["christian_hoff@gmx.net" "dmitry.torokhov@gmail.com" "gregkh@linuxfoundation.org" "kstewart@linuxfoundation.org" "linux-input@vger.kernel.org" "linux-kernel@vger.kernel.org" "sre@kernel.org" "tglx@linutronix.de"]