bisecting fixing commit since aa051d36ce4ae23b488489f6b15abad68b59ca23 building syzkaller on 647c0e2737b12e092ce23948537ddf7dd3992c53 testing commit aa051d36ce4ae23b488489f6b15abad68b59ca23 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 18b83d1bc27bd325b31d2c0b404e80572cf662122a84666cc9c46c6ae98aacf2 all runs: crashed: possible deadlock in console_unlock testing current HEAD 0840a7914caa14315a3191178a9f72c742477860 testing commit 0840a7914caa14315a3191178a9f72c742477860 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 98490dd788c5f4e9e396a1c4e6c4a429f867ba97619d2c50fb063e14dcf9023d all runs: OK # git bisect start 0840a7914caa14315a3191178a9f72c742477860 aa051d36ce4ae23b488489f6b15abad68b59ca23 Bisecting: 6205 revisions left to test after this (roughly 13 steps) [ae862183285cbb2ef9032770d98ffa9becffe9d5] Merge tag 'arm-dt-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc testing commit ae862183285cbb2ef9032770d98ffa9becffe9d5 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 59c3415cfcc56794fefb7557e2976b7aab92d37598771547903b6f1a4fb8c892 all runs: OK # git bisect bad ae862183285cbb2ef9032770d98ffa9becffe9d5 Bisecting: 3573 revisions left to test after this (roughly 12 steps) [86c87bea6b42100c67418af690919c44de6ede6e] Merge tag 'devicetree-for-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux testing commit 86c87bea6b42100c67418af690919c44de6ede6e compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: daec8529e02a27286ea7d235dafb9e6502a16233cab258aeb950598c1b7d0adf run #0: basic kernel testing failed: BUG: program execution failed: executor NUM: EOF 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 bad 86c87bea6b42100c67418af690919c44de6ede6e Bisecting: 1655 revisions left to test after this (roughly 11 steps) [d353e1a3bafd468941d42f6aa59bbd8ac42959b6] Merge tag 'wireless-next-2022-05-19' of git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next testing commit d353e1a3bafd468941d42f6aa59bbd8ac42959b6 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 51ecb328031206ac1e528da8119e0e85c5a3b5b509109bae72c97d561797f04a all runs: crashed: possible deadlock in console_unlock # git bisect good d353e1a3bafd468941d42f6aa59bbd8ac42959b6 Bisecting: 861 revisions left to test after this (roughly 10 steps) [8642174b52214dde4d8113f28fb4c9be5a432126] Merge tag 'iomap-5.19-merge-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux testing commit 8642174b52214dde4d8113f28fb4c9be5a432126 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 0026bbf53185d9c567c80a6fdc9d86f8ad64db326dcaf98da9f48de92bd92ab8 all runs: crashed: possible deadlock in console_unlock # git bisect good 8642174b52214dde4d8113f28fb4c9be5a432126 Bisecting: 525 revisions left to test after this (roughly 9 steps) [57d7becda9c9e612e6b00676f2eecfac3e719e88] Merge branch 'ptp-ocp-various-updates' testing commit 57d7becda9c9e612e6b00676f2eecfac3e719e88 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: fff9562788bf9ee791aa0fb30e4efc972422625366b24c99cb465807ecf041c2 all runs: crashed: possible deadlock in console_unlock # git bisect good 57d7becda9c9e612e6b00676f2eecfac3e719e88 Bisecting: 242 revisions left to test after this (roughly 8 steps) [64e34b50d7aeee7082287ec39f9d34d4e60f3a04] Merge tag 'linux-kselftest-kunit-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest testing commit 64e34b50d7aeee7082287ec39f9d34d4e60f3a04 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 3293618f473514f316b4313c3b7b9ed73266ad1b8764b99228ecebb91d1a8940 all runs: OK # git bisect bad 64e34b50d7aeee7082287ec39f9d34d4e60f3a04 Bisecting: 132 revisions left to test after this (roughly 7 steps) [537e62c865dcb9b91d07ed83f8615b71fa0b51bb] Merge tag 'printk-for-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux testing commit 537e62c865dcb9b91d07ed83f8615b71fa0b51bb compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 340b361bdfaf2c4120ba11bf8ee7e204898e21b2d601ad08e67e1c39cf16f72d run #0: basic kernel testing failed: BUG: program execution failed: executor NUM: EOF 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 bad 537e62c865dcb9b91d07ed83f8615b71fa0b51bb Bisecting: 74 revisions left to test after this (roughly 6 steps) [fa29000b6b2603ec2bfdc4c73249fcb00cd54f85] fs: Add aops->release_folio testing commit fa29000b6b2603ec2bfdc4c73249fcb00cd54f85 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: cc5b00b6799ba6b1b9801507555d86fd84a4f58ca32b34de67d1a24bf00565c4 all runs: crashed: possible deadlock in console_unlock # git bisect good fa29000b6b2603ec2bfdc4c73249fcb00cd54f85 Bisecting: 39 revisions left to test after this (roughly 5 steps) [caa28984163cb63ea0be4cb8dbf05defdc7303f9] linux/types.h: reinstate "__bitwise__" macro for user space use testing commit caa28984163cb63ea0be4cb8dbf05defdc7303f9 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 53127821075298d48e80b116eda8ce86f3beeef495e5dacb9043e362f09472c8 run #0: basic kernel testing failed: BUG: program execution failed: executor NUM: EOF run #1: crashed: possible deadlock in console_unlock run #2: crashed: possible deadlock in console_unlock run #3: crashed: possible deadlock in console_unlock run #4: crashed: possible deadlock in console_unlock run #5: crashed: possible deadlock in console_unlock run #6: crashed: possible deadlock in console_unlock run #7: crashed: possible deadlock in console_unlock run #8: crashed: possible deadlock in console_unlock run #9: crashed: possible deadlock in console_unlock # git bisect good caa28984163cb63ea0be4cb8dbf05defdc7303f9 Bisecting: 19 revisions left to test after this (roughly 4 steps) [2e17ce1106e04a7f3a83796ec623881487f75dd3] Merge tag 'slab-for-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab testing commit 2e17ce1106e04a7f3a83796ec623881487f75dd3 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: f5adc4c177d062fed1ca521e35927d4926e166ec0ff1e6647948e1ae6f213128 all runs: crashed: possible deadlock in console_unlock # git bisect good 2e17ce1106e04a7f3a83796ec623881487f75dd3 Bisecting: 9 revisions left to test after this (roughly 3 steps) [03a749e628fdbc665d7f9712637f880a79da8b78] printk: move buffer definitions into console_emit_next_record() caller testing commit 03a749e628fdbc665d7f9712637f880a79da8b78 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 837c38198e30e6094dd44ecfbe6257d5343da56b2e225227849773901990ae78 all runs: OK # git bisect bad 03a749e628fdbc665d7f9712637f880a79da8b78 Bisecting: 4 revisions left to test after this (roughly 2 steps) [5341b93dea8c39d7612f7a227015d4b1d5cf30db] printk: wake waiters for safe and NMI contexts testing commit 5341b93dea8c39d7612f7a227015d4b1d5cf30db compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 83333af06a04fbe0d3d78424f761909a1c555ad44653c3bf40cd526f9a07ad19 all runs: OK # git bisect bad 5341b93dea8c39d7612f7a227015d4b1d5cf30db Bisecting: 2 revisions left to test after this (roughly 1 step) [f5343321b71ac0a1112adeab0ff90b239bad3a83] printk: cpu sync always disable interrupts testing commit f5343321b71ac0a1112adeab0ff90b239bad3a83 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 11a22d6e1a91b14e51d8c66550b40d96ce3318f5f5f49c850dd6a4692f498cae run #0: basic kernel testing failed: BUG: program execution failed: executor NUM: EOF 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 bad f5343321b71ac0a1112adeab0ff90b239bad3a83 Bisecting: 0 revisions left to test after this (roughly 0 steps) [faebd693c59387b7b765fab64b543855e15a91b4] printk: rename cpulock functions testing commit faebd693c59387b7b765fab64b543855e15a91b4 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: bfc603de7aab73024e178c1d20722517c201393adee32c5c60bfd0595c8851f2 all runs: OK # git bisect bad faebd693c59387b7b765fab64b543855e15a91b4 faebd693c59387b7b765fab64b543855e15a91b4 is the first bad commit commit faebd693c59387b7b765fab64b543855e15a91b4 Author: John Ogness Date: Thu Apr 21 23:28:36 2022 +0206 printk: rename cpulock functions Since the printk cpulock is CPU-reentrant and since it is used in all contexts, its usage must be carefully considered and most likely will require programming locklessly. To avoid mistaking the printk cpulock as a typical lock, rename it to cpu_sync. The main functions then become: printk_cpu_sync_get_irqsave(flags); printk_cpu_sync_put_irqrestore(flags); Add extra notes of caution in the function description to help developers understand the requirements for correct usage. Signed-off-by: John Ogness Reviewed-by: Petr Mladek Signed-off-by: Petr Mladek Link: https://lore.kernel.org/r/20220421212250.565456-2-john.ogness@linutronix.de include/linux/printk.h | 54 +++++++++++++++++++++++--------------- kernel/printk/printk.c | 71 +++++++++++++++++++++++++------------------------- lib/dump_stack.c | 4 +-- lib/nmi_backtrace.c | 4 +-- 4 files changed, 73 insertions(+), 60 deletions(-) parent commit 3ef4ea3d84ca568dcd57816b9521e82e3bd94f08 wasn't tested testing commit 3ef4ea3d84ca568dcd57816b9521e82e3bd94f08 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 49116339e53238c2698476f8e493d6deb389fbe32af6f72ba2769bf86d149005 culprit signature: bfc603de7aab73024e178c1d20722517c201393adee32c5c60bfd0595c8851f2 parent signature: 49116339e53238c2698476f8e493d6deb389fbe32af6f72ba2769bf86d149005 revisions tested: 16, total time: 3h55m4.731240711s (build: 1h52m56.240657541s, test: 2h0m9.879161016s) first good commit: faebd693c59387b7b765fab64b543855e15a91b4 printk: rename cpulock functions recipients (to): ["john.ogness@linutronix.de" "linux-kernel@vger.kernel.org" "pmladek@suse.com" "pmladek@suse.com" "senozhatsky@chromium.org"] recipients (cc): ["akpm@linux-foundation.org" "elver@google.com" "glider@google.com" "john.ogness@linutronix.de" "npiggin@gmail.com" "rdunlap@infradead.org" "rostedt@goodmis.org" "swboyd@chromium.org"]