bisecting fixing commit since 0f1b4cb77d7f5a442b03f8ad597768b422e8ec58 building syzkaller on c59079a693ad1d89c782f7db14b9f1c5629e2abc testing commit 0f1b4cb77d7f5a442b03f8ad597768b422e8ec58 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 8ea0b58905af7895b683755431e2b4d90f3d270d2f69c37c19a2d77fd1a09e47 all runs: crashed: WARNING in drm_prime_destroy_file_private testing current HEAD addba38e7c3bc19036a05c83bcce7878dc644d87 testing commit addba38e7c3bc19036a05c83bcce7878dc644d87 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 9d54610697b9eaa23e45b0ee22369e07c3e2222bfcc614a651ef680183caa2a8 all runs: OK # git bisect start addba38e7c3bc19036a05c83bcce7878dc644d87 0f1b4cb77d7f5a442b03f8ad597768b422e8ec58 Bisecting: 804 revisions left to test after this (roughly 10 steps) [eb575cd5d7f60241d016fdd13a9e86d962093c9b] Linux 4.19.195 testing commit eb575cd5d7f60241d016fdd13a9e86d962093c9b compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 4cbf94f61fc9289ddfae613d6f5fd84b2b337000a5cabbf01cc6e844e4174b62 all runs: crashed: WARNING in drm_prime_destroy_file_private # git bisect good eb575cd5d7f60241d016fdd13a9e86d962093c9b Bisecting: 402 revisions left to test after this (roughly 9 steps) [cba5008c8581a5cdebf62b1d4699148c606ab423] net: fix mistake path for netdev_features_strings testing commit cba5008c8581a5cdebf62b1d4699148c606ab423 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 1a8409a2a8054f9962492ce76abe1af3ca0e95ebf80a24482bebf2b4931f7310 all runs: crashed: WARNING in drm_prime_destroy_file_private # git bisect good cba5008c8581a5cdebf62b1d4699148c606ab423 Bisecting: 201 revisions left to test after this (roughly 8 steps) [2655699f2e625486be2d8c8b2e8506654df58cde] net: ipv6: fix return value of ip6_skb_dst_mtu testing commit 2655699f2e625486be2d8c8b2e8506654df58cde compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 2faf921f81179eb34cb10b6339f78d2a44a5452c6a029f7d71fcdd70b37d6e3b all runs: crashed: WARNING in drm_prime_destroy_file_private # git bisect good 2655699f2e625486be2d8c8b2e8506654df58cde Bisecting: 100 revisions left to test after this (roughly 7 steps) [16851e34b621bc7e652c508bb28c47948fb86958] virtio_net: Do not pull payload in skb->head testing commit 16851e34b621bc7e652c508bb28c47948fb86958 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 42eb34f49223eb874ecc7294805fdf01017d90e3ea7fbd3e910bd3e95c2900a8 all runs: OK # git bisect bad 16851e34b621bc7e652c508bb28c47948fb86958 Bisecting: 50 revisions left to test after this (roughly 6 steps) [2e207001ef2446dc282a14f4fabc10dd135fc1d6] Revert "MIPS: add PMD table accounting into MIPS'pmd_alloc_one" testing commit 2e207001ef2446dc282a14f4fabc10dd135fc1d6 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 61e5fa80b35fb245a68a049e806b1ad54d4831a8f5e9056e150f334ec784988d all runs: crashed: WARNING in drm_prime_destroy_file_private # git bisect good 2e207001ef2446dc282a14f4fabc10dd135fc1d6 Bisecting: 25 revisions left to test after this (roughly 5 steps) [8810e8e477693860f7670046b89db79e2532efba] net: bcmgenet: ensure EXT_ENERGY_DET_MASK is clear testing commit 8810e8e477693860f7670046b89db79e2532efba compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: b6bb3dce3fed1ecae0e74036fa7a790b60d1a44e22b248af12ea2f7944e72437 all runs: OK # git bisect bad 8810e8e477693860f7670046b89db79e2532efba Bisecting: 12 revisions left to test after this (roughly 4 steps) [b508413328df4465fe5f21bbdf30bca87c1d6271] USB: serial: cp210x: fix comments for GE CS1000 testing commit b508413328df4465fe5f21bbdf30bca87c1d6271 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: c367089451ab1f10d5a9725a3c5d6f7b23b74f52a31bd958f435b23cb5855147 all runs: crashed: WARNING in drm_prime_destroy_file_private # git bisect good b508413328df4465fe5f21bbdf30bca87c1d6271 Bisecting: 6 revisions left to test after this (roughly 3 steps) [f96dfc7ce42c44533fb630e1ca6dad7cf48f803a] selftest: use mmap instead of posix_memalign to allocate memory testing commit f96dfc7ce42c44533fb630e1ca6dad7cf48f803a compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 186991668e919ffe57be69a5ae56ed77dfa19287a9700009057f1aca4952bc3a all runs: crashed: WARNING in drm_prime_destroy_file_private # git bisect good f96dfc7ce42c44533fb630e1ca6dad7cf48f803a Bisecting: 3 revisions left to test after this (roughly 2 steps) [918e0039ec570aec22338a405bfd6dab1264de30] KVM: do not assume PTE is writable after follow_pfn testing commit 918e0039ec570aec22338a405bfd6dab1264de30 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 490d160c80692063f008a8382be47791db9d52529e27bba26d293bc7a96d4ba1 all runs: OK # git bisect bad 918e0039ec570aec22338a405bfd6dab1264de30 Bisecting: 0 revisions left to test after this (roughly 1 step) [020a44cc54d65e673a13195e96fc0addbfd3a601] drm: Return -ENOTTY for non-drm ioctls testing commit 020a44cc54d65e673a13195e96fc0addbfd3a601 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: ebe2fe17d8310301bf9901915f644e81aafdef38aebb46c515b5733f4d7e8acf all runs: OK # git bisect bad 020a44cc54d65e673a13195e96fc0addbfd3a601 Bisecting: 0 revisions left to test after this (roughly 0 steps) [acb8e83073074bd885466c7da12919f80e9ccf5d] nds32: fix up stack guard gap testing commit acb8e83073074bd885466c7da12919f80e9ccf5d compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 186991668e919ffe57be69a5ae56ed77dfa19287a9700009057f1aca4952bc3a all runs: crashed: WARNING in drm_prime_destroy_file_private # git bisect good acb8e83073074bd885466c7da12919f80e9ccf5d 020a44cc54d65e673a13195e96fc0addbfd3a601 is the first bad commit commit 020a44cc54d65e673a13195e96fc0addbfd3a601 Author: Charles Baylis Date: Fri Jul 16 17:43:12 2021 +0100 drm: Return -ENOTTY for non-drm ioctls commit 3abab27c322e0f2acf981595aa8040c9164dc9fb upstream. drm: Return -ENOTTY for non-drm ioctls Return -ENOTTY from drm_ioctl() when userspace passes in a cmd number which doesn't relate to the drm subsystem. Glibc uses the TCGETS ioctl to implement isatty(), and without this change isatty() returns it incorrectly returns true for drm devices. To test run this command: $ if [ -t 0 ]; then echo is a tty; fi < /dev/dri/card0 which shows "is a tty" without this patch. This may also modify memory which the userspace application is not expecting. Signed-off-by: Charles Baylis Cc: stable@vger.kernel.org Signed-off-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/YPG3IBlzaMhfPqCr@stando.fishzet.co.uk Signed-off-by: Greg Kroah-Hartman drivers/gpu/drm/drm_ioctl.c | 3 +++ include/drm/drm_ioctl.h | 1 + 2 files changed, 4 insertions(+) culprit signature: ebe2fe17d8310301bf9901915f644e81aafdef38aebb46c515b5733f4d7e8acf parent signature: 186991668e919ffe57be69a5ae56ed77dfa19287a9700009057f1aca4952bc3a revisions tested: 13, total time: 3h16m24.044544991s (build: 2h6m52.480698249s, test: 1h8m6.538553022s) first good commit: 020a44cc54d65e673a13195e96fc0addbfd3a601 drm: Return -ENOTTY for non-drm ioctls recipients (to): ["cb-kernel@fishzet.co.uk" "daniel.vetter@ffwll.ch" "gregkh@linuxfoundation.org"] recipients (cc): []