bisecting fixing commit since 7edd66cf61670d2d0c31f89cb3a247016e489a8a building syzkaller on 03d97a1bcdd0542ca2240cf468d9be585cfc06b7 testing commit 7edd66cf61670d2d0c31f89cb3a247016e489a8a with gcc (GCC) 8.1.0 kernel signature: 1b57745dde865def32ec19da8198951f9b35ad4550b9dcdd1d605c79861d239e all runs: crashed: INFO: trying to register non-static key in uhid_dev_destroy testing current HEAD 015e94d0e37b6860e4354ce3cac56bd7c39c8992 testing commit 015e94d0e37b6860e4354ce3cac56bd7c39c8992 with gcc (GCC) 8.1.0 kernel signature: 9f8426db99527c20d471cdc3d378e62e81cea0ec0011185b5f606a8d684fde0c all runs: OK # git bisect start 015e94d0e37b6860e4354ce3cac56bd7c39c8992 7edd66cf61670d2d0c31f89cb3a247016e489a8a Bisecting: 1143 revisions left to test after this (roughly 10 steps) [39dad73040572bf5437ea3abd469b906d6522bc0] cifs/smb3: Fix data inconsistent when zero file range testing commit 39dad73040572bf5437ea3abd469b906d6522bc0 with gcc (GCC) 8.1.0 kernel signature: 6bc853f5d67bb6c05bfdb68f1f5ed109d26845623bcaf99815b2a17bb05338c0 all runs: crashed: INFO: trying to register non-static key in uhid_dev_destroy # git bisect good 39dad73040572bf5437ea3abd469b906d6522bc0 Bisecting: 571 revisions left to test after this (roughly 9 steps) [64918e3f716ec0b13417f4396118183889c80636] drm/arm: fix unintentional integer overflow on left shift testing commit 64918e3f716ec0b13417f4396118183889c80636 with gcc (GCC) 8.1.0 kernel signature: f9394612bb6041a83b485315f3d5ae8baf6a614c516c9642271375cc583a19fb all runs: crashed: INFO: trying to register non-static key in uhid_dev_destroy # git bisect good 64918e3f716ec0b13417f4396118183889c80636 Bisecting: 285 revisions left to test after this (roughly 8 steps) [1838bdf6cabc2b6b0c12363b82f19d388cbd20e9] powerpc/xive: Ignore kmemleak false positives testing commit 1838bdf6cabc2b6b0c12363b82f19d388cbd20e9 with gcc (GCC) 8.1.0 kernel signature: 393a35b4c06cc104e3a44707f3ca3465a8938ac7f44e404195dc12c6975309c0 all runs: crashed: INFO: trying to register non-static key in uhid_dev_destroy # git bisect good 1838bdf6cabc2b6b0c12363b82f19d388cbd20e9 Bisecting: 142 revisions left to test after this (roughly 7 steps) [9895dfea9610ae54be8890b98eb17fd7f1496c75] bnxt_en: Fix PCI AER error recovery flow testing commit 9895dfea9610ae54be8890b98eb17fd7f1496c75 with gcc (GCC) 8.1.0 kernel signature: 3d3ba6fadac563015c8871450fb66d151d351f6d1c49478e6620109fb14a00b5 all runs: OK # git bisect bad 9895dfea9610ae54be8890b98eb17fd7f1496c75 Bisecting: 71 revisions left to test after this (roughly 6 steps) [c1fe757dd3d18497eaca831ed82aa20b4186affd] vt: defer kfree() of vc_screenbuf in vc_do_resize() testing commit c1fe757dd3d18497eaca831ed82aa20b4186affd with gcc (GCC) 8.1.0 kernel signature: 47284faa6ac9459f161187a4d139836a2d6e25f9d8011a2393c0f80a485229d1 all runs: crashed: INFO: trying to register non-static key in uhid_dev_destroy # git bisect good c1fe757dd3d18497eaca831ed82aa20b4186affd Bisecting: 35 revisions left to test after this (roughly 5 steps) [dc828b79feea72cfbc34fd6104a8386bade6fd78] tpm: Unify the mismatching TPM space buffer sizes testing commit dc828b79feea72cfbc34fd6104a8386bade6fd78 with gcc (GCC) 8.1.0 kernel signature: 0dbdc0134a6fd5a4943ea7f7e7c0a73d793b528dcadf40c4d5552e5176d79341 all runs: crashed: INFO: trying to register non-static key in uhid_dev_destroy # git bisect good dc828b79feea72cfbc34fd6104a8386bade6fd78 Bisecting: 17 revisions left to test after this (roughly 4 steps) [fcaafd72ad6408bd4d463f18b289c27c16cb331e] dmaengine: of-dma: Fix of_dma_router_xlate's of_dma_xlate handling testing commit fcaafd72ad6408bd4d463f18b289c27c16cb331e with gcc (GCC) 8.1.0 kernel signature: 12c0ef53026d38e313e611ff4e7b0fb16098367bd82fee200300ea296755b02b all runs: OK # git bisect bad fcaafd72ad6408bd4d463f18b289c27c16cb331e Bisecting: 8 revisions left to test after this (roughly 3 steps) [ee385b41089d948987764f462adc246be028e32e] tty: serial: qcom_geni_serial: Drop __init from qcom_geni_console_setup testing commit ee385b41089d948987764f462adc246be028e32e with gcc (GCC) 8.1.0 kernel signature: 25614a2231c2512f71d9a3dc1b54b6c366d15bdd406be1fb72229205f9435f98 all runs: OK # git bisect bad ee385b41089d948987764f462adc246be028e32e Bisecting: 4 revisions left to test after this (roughly 2 steps) [abae259fdccc5e41ff302dd80a2b944ce385c970] HID: core: Correctly handle ReportSize being zero testing commit abae259fdccc5e41ff302dd80a2b944ce385c970 with gcc (GCC) 8.1.0 kernel signature: 7b93e9668208b02214792adf2dc8e4e80aa3e4a1c014f252d0bc76d32dfef7e4 all runs: OK # git bisect bad abae259fdccc5e41ff302dd80a2b944ce385c970 Bisecting: 1 revision left to test after this (roughly 1 step) [79361df22e723d97607b4a8e871f0b3720ada7be] ALSA: usb-audio: Update documentation comment for MS2109 quirk testing commit 79361df22e723d97607b4a8e871f0b3720ada7be with gcc (GCC) 8.1.0 kernel signature: d848d2c154b7c87aeb64052097b3f9a51f135def1c93b8836592c9308e144857 all runs: crashed: INFO: trying to register non-static key in uhid_dev_destroy # git bisect good 79361df22e723d97607b4a8e871f0b3720ada7be Bisecting: 0 revisions left to test after this (roughly 0 steps) [c37da90efff5f183bea6ae4c2af33571f61fe317] Linux 4.19.143 testing commit c37da90efff5f183bea6ae4c2af33571f61fe317 with gcc (GCC) 8.1.0 kernel signature: 68626ef007f266835726bad4cf0c9f0bb40a0d321762917dd39128c476360704 all runs: crashed: INFO: trying to register non-static key in uhid_dev_destroy # git bisect good c37da90efff5f183bea6ae4c2af33571f61fe317 abae259fdccc5e41ff302dd80a2b944ce385c970 is the first bad commit commit abae259fdccc5e41ff302dd80a2b944ce385c970 Author: Marc Zyngier Date: Sat Aug 29 12:26:01 2020 +0100 HID: core: Correctly handle ReportSize being zero commit bce1305c0ece3dc549663605e567655dd701752c upstream. It appears that a ReportSize value of zero is legal, even if a bit non-sensical. Most of the HID code seems to handle that gracefully, except when computing the total size in bytes. When fed as input to memset, this leads to some funky outcomes. Detect the corner case and correctly compute the size. Cc: stable@vger.kernel.org Signed-off-by: Marc Zyngier Signed-off-by: Benjamin Tissoires Signed-off-by: Greg Kroah-Hartman drivers/hid/hid-core.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) culprit signature: 7b93e9668208b02214792adf2dc8e4e80aa3e4a1c014f252d0bc76d32dfef7e4 parent signature: 68626ef007f266835726bad4cf0c9f0bb40a0d321762917dd39128c476360704 revisions tested: 13, total time: 3h18m53.217354136s (build: 1h50m56.556114499s, test: 1h26m41.834702734s) first good commit: abae259fdccc5e41ff302dd80a2b944ce385c970 HID: core: Correctly handle ReportSize being zero recipients (to): ["benjamin.tissoires@gmail.com" "gregkh@linuxfoundation.org" "maz@kernel.org"] recipients (cc): []