bisecting fixing commit since 46cf053efec6a3a5f343fead837777efe8252a46 building syzkaller on be5c2c81971442d623dd1b265dabf4644ceeb35b testing commit 46cf053efec6a3a5f343fead837777efe8252a46 with gcc (GCC) 8.1.0 kernel signature: 964d065d91855a2f475b9627346efcce877714fc985ab05b2bcc852b40b93599 run #0: crashed: WARNING in ext4_set_page_dirty run #1: crashed: WARNING in ext4_set_page_dirty run #2: crashed: WARNING in ext4_set_page_dirty run #3: crashed: WARNING in ext4_set_page_dirty run #4: crashed: WARNING in ext4_set_page_dirty run #5: crashed: WARNING in ext4_set_page_dirty run #6: crashed: WARNING in ext4_set_page_dirty run #7: crashed: WARNING in ext4_set_page_dirty run #8: OK run #9: OK testing current HEAD c4d6fe7311762f2e03b3c27ad38df7c40c80cc93 testing commit c4d6fe7311762f2e03b3c27ad38df7c40c80cc93 with gcc (GCC) 8.1.0 kernel signature: ca72852744125748b95b4666e145350bffd28d9582f2fbe0a9239730ee95caa4 all runs: OK # git bisect start c4d6fe7311762f2e03b3c27ad38df7c40c80cc93 46cf053efec6a3a5f343fead837777efe8252a46 Bisecting: 37910 revisions left to test after this (roughly 15 steps) [a0a4d17e02a80a74a63c7cbb7bc8cea2f0b7d8b1] Merge branch 'pcmcia-next' of git://git.kernel.org/pub/scm/linux/kernel/git/brodo/linux testing commit a0a4d17e02a80a74a63c7cbb7bc8cea2f0b7d8b1 with gcc (GCC) 8.1.0 kernel signature: 49e09a4fa0f5dd3976aa13ac7336aeeda6f39bf1e481d3848f3232afc4e03a78 all runs: crashed: WARNING in ext4_set_page_dirty # git bisect good a0a4d17e02a80a74a63c7cbb7bc8cea2f0b7d8b1 Bisecting: 18821 revisions left to test after this (roughly 14 steps) [c0c419c04557117258d184876d94091d29bbd9a6] Merge tag 'staging-5.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging testing commit c0c419c04557117258d184876d94091d29bbd9a6 with gcc (GCC) 8.1.0 kernel signature: fee31d2df335dcfda6b21020a257d88843e44c3c0bbcf455b745ed25e9d4ecdb all runs: OK # git bisect bad c0c419c04557117258d184876d94091d29bbd9a6 Bisecting: 9544 revisions left to test after this (roughly 13 steps) [ea64ce6d3b579f377d2be788ed5ab71ab00570ee] Merge branch 'mlxsw-Add-support-for-buffer-drops-mirroring' testing commit ea64ce6d3b579f377d2be788ed5ab71ab00570ee with gcc (GCC) 8.1.0 kernel signature: cc48c94e98d71a09673de311cb85afc55454cc4ca1eae513331183b56becf005 all runs: OK # git bisect bad ea64ce6d3b579f377d2be788ed5ab71ab00570ee Bisecting: 4777 revisions left to test after this (roughly 12 steps) [bc139119a1708ae3db1ebb379630f286e28d06e8] net: ethernet: ti: ale: fix allmulti for nu type ale testing commit bc139119a1708ae3db1ebb379630f286e28d06e8 with gcc (GCC) 8.1.0 kernel signature: a399b50cae4a063b779d102e333cc5527337bc5f881eaaf9e5604a8dfbc56b5b all runs: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks # git bisect skip bc139119a1708ae3db1ebb379630f286e28d06e8 Bisecting: 4777 revisions left to test after this (roughly 12 steps) [112b7147592e8f46bd1da4f961773e6d974f38a8] exec: Convert security_bprm_set_creds into security_bprm_repopulate_creds testing commit 112b7147592e8f46bd1da4f961773e6d974f38a8 with gcc (GCC) 8.1.0 kernel signature: 5d1750a151ea066218aef6cf66e4c4b9e1cbf92cf1f120d37ad07371d3969ecc run #0: crashed: WARNING in ext4_set_page_dirty run #1: crashed: WARNING in ext4_set_page_dirty run #2: crashed: WARNING in ext4_set_page_dirty run #3: crashed: WARNING in ext4_set_page_dirty run #4: crashed: WARNING in ext4_set_page_dirty run #5: crashed: WARNING in ext4_set_page_dirty run #6: crashed: WARNING in ext4_set_page_dirty run #7: crashed: WARNING in ext4_set_page_dirty run #8: crashed: WARNING in corrupted run #9: OK # git bisect good 112b7147592e8f46bd1da4f961773e6d974f38a8 Bisecting: 4747 revisions left to test after this (roughly 12 steps) [9413b9a690ec8aeaedea74bb875079d36f295304] Merge tag 'drm-next-msm-5.8-2020-06-08' of git://anongit.freedesktop.org/drm/drm testing commit 9413b9a690ec8aeaedea74bb875079d36f295304 with gcc (GCC) 8.1.0 kernel signature: 54ed0f29a302a6bbf0bf695495f8df9e41abe16e6b1bd4ee8c7995ce7ff12462 all runs: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks # git bisect skip 9413b9a690ec8aeaedea74bb875079d36f295304 Bisecting: 4747 revisions left to test after this (roughly 12 steps) [97f52c1536f041fd9f0b62667864930c92ac93cf] arm,sparc,unicore32: remove flush_icache_user_range testing commit 97f52c1536f041fd9f0b62667864930c92ac93cf with gcc (GCC) 8.1.0 kernel signature: c9565c3c39348c044c1b6e8b2e3dc174597ab8e9bde770953b8d1c1c3fc58599 all runs: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks # git bisect skip 97f52c1536f041fd9f0b62667864930c92ac93cf Bisecting: 4747 revisions left to test after this (roughly 12 steps) [08e9cbe75facfe08b9017eca37c9f1c5a6490b4a] scsi: st: Convert convert get_user_pages() --> pin_user_pages() testing commit 08e9cbe75facfe08b9017eca37c9f1c5a6490b4a with gcc (GCC) 8.1.0 kernel signature: 5e6804af4c25db47bb2045921f81d6ec10e7edfd4534ef97ca0c942cf94c9ab4 run #0: crashed: WARNING in ext4_set_page_dirty run #1: crashed: WARNING in ext4_set_page_dirty run #2: crashed: WARNING in ext4_set_page_dirty run #3: crashed: WARNING in ext4_set_page_dirty run #4: crashed: WARNING in ext4_set_page_dirty run #5: crashed: WARNING in ext4_set_page_dirty run #6: OK run #7: OK run #8: OK run #9: OK # git bisect good 08e9cbe75facfe08b9017eca37c9f1c5a6490b4a Bisecting: 4619 revisions left to test after this (roughly 12 steps) [4e3a16ee9148e966678bbc713579235422271a63] Merge tag 'iommu-updates-v5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu testing commit 4e3a16ee9148e966678bbc713579235422271a63 with gcc (GCC) 8.1.0 kernel signature: a686ff53cecaef5c6739aab1069f5c17961b829afb05187bf380660a17c9ccbb all runs: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks # git bisect skip 4e3a16ee9148e966678bbc713579235422271a63 Bisecting: 4619 revisions left to test after this (roughly 12 steps) [c46241a370a61f0f264791abb9fc869016e749ce] powerpc/pkeys: Check vma before returning key fault error to the user testing commit c46241a370a61f0f264791abb9fc869016e749ce with gcc (GCC) 8.1.0 kernel signature: 05fa71603a2f7099eb793237f677ca9dd952cccc1eb41c2c58695193894e73a1 all runs: crashed: WARNING in ext4_set_page_dirty # git bisect good c46241a370a61f0f264791abb9fc869016e749ce Bisecting: 4619 revisions left to test after this (roughly 12 steps) [53bc19f17f21738735706fabcae3070f16c833db] SUNRPC: receive buffer size estimation values almost never change testing commit 53bc19f17f21738735706fabcae3070f16c833db with gcc (GCC) 8.1.0 kernel signature: 79d7ccfd9a740e540852557465abebca760c78bff3bf4313f1af0e2924eb3c5a run #0: crashed: WARNING in ext4_set_page_dirty run #1: crashed: WARNING in ext4_set_page_dirty run #2: crashed: WARNING in ext4_set_page_dirty run #3: crashed: WARNING in ext4_set_page_dirty run #4: crashed: WARNING in ext4_set_page_dirty run #5: crashed: WARNING in ext4_set_page_dirty run #6: crashed: WARNING in ext4_set_page_dirty run #7: crashed: WARNING in ext4_set_page_dirty run #8: OK run #9: OK # git bisect good 53bc19f17f21738735706fabcae3070f16c833db Bisecting: 4611 revisions left to test after this (roughly 12 steps) [50dd154ed7b17a8b3a1983fc32a8e41d4cc4211a] Merge branches 'pm-cpufreq' and 'pm-acpi' testing commit 50dd154ed7b17a8b3a1983fc32a8e41d4cc4211a with gcc (GCC) 8.1.0 kernel signature: 3134178f77e73c1e63e1a0c2e3ea4b4cc36b6919d1bd816f92d6da88995d4099 run #0: crashed: WARNING in ext4_set_page_dirty run #1: crashed: WARNING in ext4_set_page_dirty run #2: crashed: WARNING in ext4_set_page_dirty run #3: crashed: WARNING in ext4_set_page_dirty run #4: crashed: WARNING in ext4_set_page_dirty run #5: crashed: WARNING in ext4_set_page_dirty run #6: crashed: WARNING in ext4_set_page_dirty run #7: OK run #8: OK run #9: OK # git bisect good 50dd154ed7b17a8b3a1983fc32a8e41d4cc4211a Bisecting: 4590 revisions left to test after this (roughly 12 steps) [b4c2354537b41a13805d28f6f5e8a811d8097e8a] net: dsa: felix: delete .phylink_mac_an_restart code testing commit b4c2354537b41a13805d28f6f5e8a811d8097e8a with gcc (GCC) 8.1.0 kernel signature: 4c30b8b58bc156a3dc6ec47f8aac78e40e4cae96a2bc4d082abdb72c61c32d3a run #0: crashed: WARNING in ext4_set_page_dirty run #1: crashed: WARNING in ext4_set_page_dirty run #2: crashed: WARNING in ext4_set_page_dirty run #3: crashed: WARNING in ext4_set_page_dirty run #4: crashed: WARNING in ext4_set_page_dirty run #5: crashed: WARNING in ext4_set_page_dirty run #6: crashed: WARNING in ext4_set_page_dirty run #7: OK run #8: OK run #9: OK # git bisect good b4c2354537b41a13805d28f6f5e8a811d8097e8a Bisecting: 578 revisions left to test after this (roughly 9 steps) [46a20c9aaab37d6a4afd7ae6fa49259d7a6c8665] Merge tag 'mediatek-drm-fixes-5.8' of https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux into drm-fixes testing commit 46a20c9aaab37d6a4afd7ae6fa49259d7a6c8665 with gcc (GCC) 8.1.0 kernel signature: 1353fb0e4d1353d842b175788c32dadeec4f239e47328e582aacdfe1f4b0aa08 run #0: crashed: WARNING in ext4_set_page_dirty 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 46a20c9aaab37d6a4afd7ae6fa49259d7a6c8665 Bisecting: 216 revisions left to test after this (roughly 8 steps) [5a764898afec0bc097003e8c3e727792289f76d6] Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net testing commit 5a764898afec0bc097003e8c3e727792289f76d6 with gcc (GCC) 8.1.0 kernel signature: 0ba38e5bd71339480ccede92588a911d9c69ea891de15a905d598ef72132736b all runs: OK # git bisect bad 5a764898afec0bc097003e8c3e727792289f76d6 Bisecting: 182 revisions left to test after this (roughly 8 steps) [d33db702745b84fd553d9a5f5db85e122aa45020] Merge tag 'block-5.8-2020-07-10' of git://git.kernel.dk/linux-block testing commit d33db702745b84fd553d9a5f5db85e122aa45020 with gcc (GCC) 8.1.0 kernel signature: 621d942fc800c7dd0921e9e105e103589890fd003a1ddbf744a1f2ac444e9ff6 all runs: OK # git bisect bad d33db702745b84fd553d9a5f5db85e122aa45020 Bisecting: 89 revisions left to test after this (roughly 7 steps) [ce69fb3b392fbfd6c255aeb0ee371652478c716f] Merge tag 'kallsyms_show_value-v5.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux testing commit ce69fb3b392fbfd6c255aeb0ee371652478c716f with gcc (GCC) 8.1.0 kernel signature: 2278c0f3abed0635786f827676cca68fa7963f6ddf26633734e456096052a319 run #0: crashed: WARNING in ext4_set_page_dirty 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 ce69fb3b392fbfd6c255aeb0ee371652478c716f Bisecting: 48 revisions left to test after this (roughly 6 steps) [e8749d068855c2b075b3de1985e6af836a02b257] Merge tag 's390-5.8-5' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux testing commit e8749d068855c2b075b3de1985e6af836a02b257 with gcc (GCC) 8.1.0 kernel signature: 3daae6ad933a68bdc69475bf007660ee8e050928581cd131d0a3ce954d0bbbfa all runs: OK # git bisect bad e8749d068855c2b075b3de1985e6af836a02b257 Bisecting: 20 revisions left to test after this (roughly 4 steps) [38794a5465b752118098e36cf95c59083f9f1f88] Merge tag 'amd-drm-fixes-5.8-2020-07-09' of git://people.freedesktop.org/~agd5f/linux into drm-fixes testing commit 38794a5465b752118098e36cf95c59083f9f1f88 with gcc (GCC) 8.1.0 kernel signature: a21d45385814f61780ad00d1ca434d7c0e94a2ba5d1b0db4a1057e5ac1459c29 run #0: OK run #1: boot failed: can't ssh into the instance 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 38794a5465b752118098e36cf95c59083f9f1f88 Bisecting: 11 revisions left to test after this (roughly 3 steps) [76cfab9c8cad1cbd1ac9590afcd9235a2d3851d2] Merge branch 'linux-5.8' of git://github.com/skeggsb/linux into drm-fixes testing commit 76cfab9c8cad1cbd1ac9590afcd9235a2d3851d2 with gcc (GCC) 8.1.0 kernel signature: 1353fb0e4d1353d842b175788c32dadeec4f239e47328e582aacdfe1f4b0aa08 run #0: crashed: WARNING in ext4_evict_inode 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 76cfab9c8cad1cbd1ac9590afcd9235a2d3851d2 Bisecting: 5 revisions left to test after this (roughly 3 steps) [1328af842d703d6d7ae6bfc7b2218abb1781eafc] Merge tag 'drm-intel-fixes-2020-07-08' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes testing commit 1328af842d703d6d7ae6bfc7b2218abb1781eafc with gcc (GCC) 8.1.0 kernel signature: a21d45385814f61780ad00d1ca434d7c0e94a2ba5d1b0db4a1057e5ac1459c29 run #0: OK run #1: OK run #2: OK run #3: boot failed: can't ssh into the instance run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK # git bisect bad 1328af842d703d6d7ae6bfc7b2218abb1781eafc Bisecting: 2 revisions left to test after this (roughly 2 steps) [42723673a193d5f8e30dba6ea9826d42262a502b] drm/i915: Drop vm.ref for duplicate vma on construction testing commit 42723673a193d5f8e30dba6ea9826d42262a502b with gcc (GCC) 8.1.0 kernel signature: 8735a652d0b754f1bfd70173f0b3852df915f545e22aa608a0a184a155f30590 all runs: OK # git bisect bad 42723673a193d5f8e30dba6ea9826d42262a502b Bisecting: 1 revision left to test after this (roughly 1 step) [7dfbf8a07cf8c936b0d6cc810df6ae7923954d5b] drm/i915: Skip stale object handle for debugfs per-file-stats testing commit 7dfbf8a07cf8c936b0d6cc810df6ae7923954d5b with gcc (GCC) 8.1.0 kernel signature: 8427d71438f0c33b2f5b5396d42e9fe321f97e29f0cbcbe0696eafb4dd384c6a all runs: OK # git bisect bad 7dfbf8a07cf8c936b0d6cc810df6ae7923954d5b 7dfbf8a07cf8c936b0d6cc810df6ae7923954d5b is the first bad commit commit 7dfbf8a07cf8c936b0d6cc810df6ae7923954d5b Author: Chris Wilson Date: Tue Jun 30 16:27:24 2020 +0100 drm/i915: Skip stale object handle for debugfs per-file-stats As we close a handle GEM object, we update the drm_file's idr with an error^W NULL pointer to indicate the in-progress closure, and finally removing it. If we read the idr directly, we may then see an invalid object pointer, and in our debugfs per_file_stats() we therefore need to protect against the entry being invalid. [ 1016.651637] RIP: 0010:per_file_stats+0xe/0x16e [ 1016.651646] Code: d2 41 0f b6 8e 69 8c 00 00 48 89 df 48 c7 c6 7b 74 8c be 31 c0 e8 0c 89 cf ff eb d2 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 53 <8b> 06 85 c0 0f 84 4d 01 00 00 49 89 d6 48 89 f3 3d ff ff ff 7f 73 [ 1016.651651] RSP: 0018:ffffad3a01337ba0 EFLAGS: 00010293 [ 1016.651656] RAX: 0000000000000018 RBX: ffff96fe040d65e0 RCX: 0000000000000002 [ 1016.651660] RDX: ffffad3a01337c50 RSI: 0000000000000000 RDI: 00000000000001e8 [ 1016.651663] RBP: ffffad3a01337bb8 R08: 0000000000000000 R09: 00000000000001c0 [ 1016.651667] R10: 0000000000000000 R11: ffffffffbdbe5fce R12: 0000000000000000 [ 1016.651671] R13: ffffffffbdbe5fce R14: ffffad3a01337c50 R15: 0000000000000001 [ 1016.651676] FS: 00007a597e2d7480(0000) GS:ffff96ff3bb00000(0000) knlGS:0000000000000000 [ 1016.651680] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1016.651683] CR2: 0000000000000000 CR3: 0000000171fc2001 CR4: 00000000003606e0 [ 1016.651687] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 1016.651690] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 1016.651693] Call Trace: [ 1016.651693] Call Trace: [ 1016.651703] idr_for_each+0x8a/0xe8 [ 1016.651711] i915_gem_object_info+0x2a3/0x3eb [ 1016.651720] seq_read+0x162/0x3ca [ 1016.651727] full_proxy_read+0x5b/0x8d [ 1016.651733] __vfs_read+0x45/0x1bb [ 1016.651741] vfs_read+0xc9/0x15e [ 1016.651746] ksys_read+0x7e/0xde [ 1016.651752] do_syscall_64+0x54/0x68 [ 1016.651758] entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported-by: Guenter Roeck Fixes: a8c15954d64a ("drm/i915: Protect debugfs per_file_stats with RCU lock") Signed-off-by: Chris Wilson Cc: Mika Kuoppala Cc: Guenter Roeck Cc: stable@vger.kernel.org Reviewed-by: Mika Kuoppala Link: https://patchwork.freedesktop.org/patch/msgid/20200630152724.3734-1-chris@chris-wilson.co.uk (cherry picked from commit c1b9fd3d310177b31621d5e661f06885869cae12) Signed-off-by: Rodrigo Vivi drivers/gpu/drm/i915/i915_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) parent commit dcb7fd82c75ee2d6e6f9d8cc71c52519ed52e258 wasn't tested testing commit dcb7fd82c75ee2d6e6f9d8cc71c52519ed52e258 with gcc (GCC) 8.1.0 kernel signature: 1353fb0e4d1353d842b175788c32dadeec4f239e47328e582aacdfe1f4b0aa08 culprit signature: 8427d71438f0c33b2f5b5396d42e9fe321f97e29f0cbcbe0696eafb4dd384c6a parent signature: 1353fb0e4d1353d842b175788c32dadeec4f239e47328e582aacdfe1f4b0aa08 revisions tested: 25, total time: 6h42m58.285042029s (build: 2h46m5.664224408s, test: 3h52m29.839838398s) first good commit: 7dfbf8a07cf8c936b0d6cc810df6ae7923954d5b drm/i915: Skip stale object handle for debugfs per-file-stats recipients (to): ["chris@chris-wilson.co.uk" "mika.kuoppala@linux.intel.com" "rodrigo.vivi@intel.com"] recipients (cc): []