bisecting fixing commit since ec681c53f8d2d0ee362ff67f5b98dd8263c15002 building syzkaller on 0c5d9412d774262384cbdbe9d672b077364ed776 testing commit ec681c53f8d2d0ee362ff67f5b98dd8263c15002 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 88272bbace97f9cf2ca8657461d2ff28405771971b744c1ad7fa2f77e21ab8c4 all runs: crashed: general protection fault in scsi_queue_rq testing current HEAD eccea80be2576dee642bc6cab20f1a242d58a08c testing commit eccea80be2576dee642bc6cab20f1a242d58a08c compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: b4a31fb2e2927da3e668ff5ca9074d788bf6705e3c632b7b7b5acdd73fa82381 all runs: OK # git bisect start eccea80be2576dee642bc6cab20f1a242d58a08c ec681c53f8d2d0ee362ff67f5b98dd8263c15002 Bisecting: 7903 revisions left to test after this (roughly 13 steps) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [dcd68326d29b62f3039e4f4d23d3e38f24d37360] Merge tag 'devicetree-for-5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux testing commit dcd68326d29b62f3039e4f4d23d3e38f24d37360 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 2e4fd87f26d708d3c1da230d0d4fe7369442665627624676847b6f9a42934394 all runs: crashed: general protection fault in scsi_queue_rq # git bisect good dcd68326d29b62f3039e4f4d23d3e38f24d37360 Bisecting: 3958 revisions left to test after this (roughly 12 steps) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [7fd982f394c42f25a73fe9dfbf1e6b11fa26b40a] module: change to print useful messages from elf_validity_check() testing commit 7fd982f394c42f25a73fe9dfbf1e6b11fa26b40a compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 95a957e60eb0c961b41f3f2356fde8be41e7863b4ad0dd0114ab12d555097447 all runs: crashed: general protection fault in scsi_queue_rq # git bisect good 7fd982f394c42f25a73fe9dfbf1e6b11fa26b40a Bisecting: 2037 revisions left to test after this (roughly 11 steps) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [f78e9de80f5ad15719a069a4e6c11e2777122188] Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input testing commit f78e9de80f5ad15719a069a4e6c11e2777122188 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 8589e878c3d79217dc3ef35426d8f8cf51cbb916161c69f5bdd0b8396cc5cfc7 all runs: crashed: general protection fault in scsi_queue_rq # git bisect good f78e9de80f5ad15719a069a4e6c11e2777122188 Bisecting: 1022 revisions left to test after this (roughly 10 steps) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [5d9f4cf36721aba199975a9be7863a3ff5cd4b59] Merge tag 'selinux-pr-20211123' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux testing commit 5d9f4cf36721aba199975a9be7863a3ff5cd4b59 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 12dc7c954f42372c5e709e6fc3676ca4f7a3c4dc1f44c8cb971d6c2e069f6d44 all runs: OK # git bisect bad 5d9f4cf36721aba199975a9be7863a3ff5cd4b59 Bisecting: 508 revisions left to test after this (roughly 9 steps) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [1654e95ee30a82bec843e73a591f9ea3db8da8db] Merge tag 'x86_urgent_for_v5.16_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit 1654e95ee30a82bec843e73a591f9ea3db8da8db compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 15122d4d42eeb5328447f00d5d2c335ca578866b605e6209f08e4189ed3a65b5 all runs: OK # git bisect bad 1654e95ee30a82bec843e73a591f9ea3db8da8db Bisecting: 250 revisions left to test after this (roughly 8 steps) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [be427a88a3dc2de30688b08d078f4f4c1bb035d6] Merge tag 's390-5.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux testing commit be427a88a3dc2de30688b08d078f4f4c1bb035d6 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: bc3a90f4f40a4eb4b90da5cede1913927e0f38d935adf09be4586e637f9aa976 all runs: OK # git bisect bad be427a88a3dc2de30688b08d078f4f4c1bb035d6 Bisecting: 129 revisions left to test after this (roughly 7 steps) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [447212bb4f8ebd7d95dd6e160cd82c69c9a23c4c] BackMerge tag 'v5.15' into drm-next testing commit 447212bb4f8ebd7d95dd6e160cd82c69c9a23c4c compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ef6b6845bbbff2ef4f1dec0a7970593805f7ef8d6b032226f26d87753e57c068 all runs: crashed: general protection fault in scsi_queue_rq # git bisect good 447212bb4f8ebd7d95dd6e160cd82c69c9a23c4c Bisecting: 82 revisions left to test after this (roughly 6 steps) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [3344b58b53a76199dae48faa396e9fc37bf86992] scsi: scsi_debug: Don't call kcalloc() if size arg is zero testing commit 3344b58b53a76199dae48faa396e9fc37bf86992 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: b110817fbf66e62c57e206331e5f157f8edb7d9b688896e61f3708352d873d5c all runs: OK # git bisect bad 3344b58b53a76199dae48faa396e9fc37bf86992 Bisecting: 23 revisions left to test after this (roughly 5 steps) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [36f468bfe98c7de7916ab3391ee5dd6fd2549979] scsi: qla2xxx: edif: Fix inconsistent check of db_flags testing commit 36f468bfe98c7de7916ab3391ee5dd6fd2549979 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 951c5a7adc02dac6f09468b14ffc23a57256314f0580e67583166cea0c2c033e all runs: crashed: general protection fault in scsi_queue_rq # git bisect good 36f468bfe98c7de7916ab3391ee5dd6fd2549979 Bisecting: 11 revisions left to test after this (roughly 4 steps) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [3f02cc9ea7bd7dda313543001a4de0bf935d0b1e] scsi: ufs: ufs-exynos: Factor out priv data init testing commit 3f02cc9ea7bd7dda313543001a4de0bf935d0b1e compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 905a26ca576f7e7d91dcecb048d910fb13c32e77d4bbba48d45b4cb0f751ff30 all runs: crashed: general protection fault in scsi_queue_rq # git bisect good 3f02cc9ea7bd7dda313543001a4de0bf935d0b1e Bisecting: 5 revisions left to test after this (roughly 3 steps) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [5f7cf82c1d7373fcf9e1062f5654efd5fa2b9211] scsi: bsg: Fix errno when scsi_bsg_register_queue() fails testing commit 5f7cf82c1d7373fcf9e1062f5654efd5fa2b9211 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 1f41d2e99c68e4f10ee144cc79778cfee5835e0d7fc248e0ae5a3a69384e9723 all runs: crashed: general protection fault in scsi_queue_rq # git bisect good 5f7cf82c1d7373fcf9e1062f5654efd5fa2b9211 Bisecting: 2 revisions left to test after this (roughly 2 steps) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [9ec5128a8b5631d652ed06b37e0166f337802f90] scsi: ufs: ufshpb: Properly handle max-single-cmd testing commit 9ec5128a8b5631d652ed06b37e0166f337802f90 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 04d3376cf6b1938541853e0fb79afc0031896a5503b7ece3f5c817dae07ecff5 all runs: crashed: general protection fault in scsi_queue_rq # git bisect good 9ec5128a8b5631d652ed06b37e0166f337802f90 Bisecting: 0 revisions left to test after this (roughly 1 step) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [703535e6ae1e94c89a9c1396b4c7b6b41160ef0c] scsi: core: Remove command size deduction from scsi_setup_scsi_cmnd() testing commit 703535e6ae1e94c89a9c1396b4c7b6b41160ef0c compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: b110817fbf66e62c57e206331e5f157f8edb7d9b688896e61f3708352d873d5c run #0: OK run #1: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "/tmp/syz-executor387089917" "root@10.128.15.207:./syz-executor387089917"]: exit status 1 Connection timed out during banner exchange Connection to 10.128.15.207 port 22 timed out lost connection 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 bad 703535e6ae1e94c89a9c1396b4c7b6b41160ef0c Bisecting: 0 revisions left to test after this (roughly 0 steps) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [20aaef52eb08f1d987d46ad26edb8f142f74d83a] scsi: scsi_ioctl: Validate command size testing commit 20aaef52eb08f1d987d46ad26edb8f142f74d83a compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 145a1f9e0379c55027bd8d49c1f9bcaff72b51c0f47dab6a9e183b8b9d213fc3 all runs: OK # git bisect bad 20aaef52eb08f1d987d46ad26edb8f142f74d83a warning: unable to access '/syzkaller/.config/git/attributes': Permission denied 20aaef52eb08f1d987d46ad26edb8f142f74d83a is the first bad commit commit 20aaef52eb08f1d987d46ad26edb8f142f74d83a Author: Tadeusz Struk Date: Wed Nov 3 10:06:58 2021 -0700 scsi: scsi_ioctl: Validate command size Need to make sure the command size is valid before copying the command from user space. Link: https://lore.kernel.org/r/20211103170659.22151-1-tadeusz.struk@linaro.org Cc: Bart Van Assche Cc: Christoph Hellwig Cc: James E.J. Bottomley Cc: Martin K. Petersen Cc: Cc: Cc: # 5.15, 5.14, 5.10 Signed-off-by: Tadeusz Struk Signed-off-by: Martin K. Petersen drivers/scsi/scsi_ioctl.c | 2 ++ 1 file changed, 2 insertions(+) culprit signature: 145a1f9e0379c55027bd8d49c1f9bcaff72b51c0f47dab6a9e183b8b9d213fc3 parent signature: 04d3376cf6b1938541853e0fb79afc0031896a5503b7ece3f5c817dae07ecff5 revisions tested: 16, total time: 3h6m50.10585523s (build: 1h39m39.593130462s, test: 1h25m31.833040251s) first good commit: 20aaef52eb08f1d987d46ad26edb8f142f74d83a scsi: scsi_ioctl: Validate command size recipients (to): ["jejb@linux.ibm.com" "linux-scsi@vger.kernel.org" "martin.petersen@oracle.com" "martin.petersen@oracle.com" "tadeusz.struk@linaro.org"] recipients (cc): ["linux-kernel@vger.kernel.org"]