bisecting fixing commit since bc403203d65a874df2f3156046468052e4109cb0 building syzkaller on 744a39e220cece33e207035facce6c5ae161b775 testing commit bc403203d65a874df2f3156046468052e4109cb0 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: cc447c981fa8ca61c04e1c5b801a00dadbdc9664c33642311dc3e9d1aa306c8f all runs: crashed: possible deadlock in console_unlock testing current HEAD 4b35035bcf80ddb47c0112c4fbd84a63a2836a18 testing commit 4b35035bcf80ddb47c0112c4fbd84a63a2836a18 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 423bd34840a4ae6dc3edc92073405888bfa44a7f241f08b9d1a68a1446fc38a6 all runs: OK # git bisect start 4b35035bcf80ddb47c0112c4fbd84a63a2836a18 bc403203d65a874df2f3156046468052e4109cb0 Bisecting: 7608 revisions left to test after this (roughly 13 steps) [2518f226c60d8e04d18ba4295500a5b0b8ac7659] Merge tag 'drm-next-2022-05-25' of git://anongit.freedesktop.org/drm/drm testing commit 2518f226c60d8e04d18ba4295500a5b0b8ac7659 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 984ee5a332bc7833c54865df474e1ef44355e67f438310979185c7b0e9d1bec8 all runs: OK # git bisect bad 2518f226c60d8e04d18ba4295500a5b0b8ac7659 Bisecting: 3998 revisions left to test after this (roughly 12 steps) [5d1772b1739b085721431eef0c0400f3aff01abf] Merge branch 'for-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq testing commit 5d1772b1739b085721431eef0c0400f3aff01abf compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: db97842f7ea97bfdf2a0c9cbf88e6002e69007f30994b0e3b50f7395a594f62e all runs: OK # git bisect bad 5d1772b1739b085721431eef0c0400f3aff01abf Bisecting: 1580 revisions left to test after this (roughly 11 steps) [a6b450573b912316ad36262bfc70e7c3870c56d1] Merge tag 'execve-v5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux testing commit a6b450573b912316ad36262bfc70e7c3870c56d1 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 8372c5b32ed03e3deeb24d7d63fe0998d13e7a3b739e3e5d0cd33578dea4fe12 all runs: crashed: possible deadlock in console_unlock # git bisect good a6b450573b912316ad36262bfc70e7c3870c56d1 Bisecting: 888 revisions left to test after this (roughly 10 steps) [268db333b561c77dee3feb6831806412293b4a7e] Merge tag 'devprop-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm testing commit 268db333b561c77dee3feb6831806412293b4a7e compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 533d32781bdf2939a4ef64af2dfc45488d262330d845207f2d3dd3d51b8fd460 all runs: crashed: possible deadlock in console_unlock # git bisect good 268db333b561c77dee3feb6831806412293b4a7e Bisecting: 364 revisions left to test after this (roughly 9 steps) [bd1b7c1384ec15294ee45bf3add7b7036e146dad] Merge tag 'for-5.19-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux testing commit bd1b7c1384ec15294ee45bf3add7b7036e146dad compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 8b219aae04e98019c70753c37c0ec65233699d81511acfb86a91aa830cc0924c all runs: crashed: possible deadlock in console_unlock # git bisect good bd1b7c1384ec15294ee45bf3add7b7036e146dad Bisecting: 188 revisions left to test after this (roughly 8 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: f0367d317d96dc64f0af815daeaebec3df69bfcf061360ec560bc70cd79de2e0 all runs: crashed: possible deadlock in console_unlock # git bisect good caa28984163cb63ea0be4cb8dbf05defdc7303f9 Bisecting: 77 revisions left to test after this (roughly 7 steps) [88a618920e9baabc1780479e2fbb68e5551d0563] Merge tag 'docs-5.19' of git://git.lwn.net/linux testing commit 88a618920e9baabc1780479e2fbb68e5551d0563 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 75c0298dab51939f33870a2ec443d12321ea9a09a06d239d09e213d28eca84a1 all runs: OK # git bisect bad 88a618920e9baabc1780479e2fbb68e5551d0563 Bisecting: 55 revisions left to test after this (roughly 6 steps) [039d5926c4028ec53c1e777349ac58588e69f7fb] docs/ja_JP/SubmittingPatches: Update GregKH links testing commit 039d5926c4028ec53c1e777349ac58588e69f7fb compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 102951137ca83a2abcddb09f541bee9c49f06db4a4a98552f8d94bb354420819 all runs: crashed: possible deadlock in console_unlock # git bisect good 039d5926c4028ec53c1e777349ac58588e69f7fb Bisecting: 35 revisions left to test after this (roughly 5 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: 5bee7cb4ae03a4b72f9e133c9bc37d29ff81613c151cc93f59720a0ae9eaa328 all runs: crashed: possible deadlock in console_unlock # git bisect good 2e17ce1106e04a7f3a83796ec623881487f75dd3 Bisecting: 16 revisions left to test after this (roughly 4 steps) [1c6fd59943a630f087b4b3089aefdcb0bf43cca0] Merge branch 'rework/kthreads' into for-linus testing commit 1c6fd59943a630f087b4b3089aefdcb0bf43cca0 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 9a42a596be069d5ebc8974fb9459783ba1c4d6b5af9fb5264b559bf23ca365d0 run #0: basic kernel testing failed: BUG: program execution failed: executor NUM: failed to write control pipe: write |NUM: broken pipe run #1: basic kernel testing failed: BUG: program execution failed: executor NUM: failed to write control pipe: write |NUM: broken pipe 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 1c6fd59943a630f087b4b3089aefdcb0bf43cca0 Bisecting: 9 revisions left to test after this (roughly 3 steps) [a699449bb13b70b8bd10dc03ad7327ea3993221e] printk: refactor and rework printing logic testing commit a699449bb13b70b8bd10dc03ad7327ea3993221e compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 4582bdc131e0f262303815b52de53b3bb6618cdb6779ae95b2b1365c9330340e run #0: basic kernel testing failed: BUG: program execution failed: executor NUM: failed to write control pipe: write |NUM: broken pipe 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 a699449bb13b70b8bd10dc03ad7327ea3993221e Bisecting: 4 revisions left to test after this (roughly 2 steps) [938ba4084abcf6fdd21d9078513c52f8fb9b00d0] printk: wake up all waiters testing commit 938ba4084abcf6fdd21d9078513c52f8fb9b00d0 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 8edaa5888fc0d5dd97088b5f6e4cb3e33561ee0a28f1823436ce0e1fffbf767e all runs: OK # git bisect bad 938ba4084abcf6fdd21d9078513c52f8fb9b00d0 Bisecting: 1 revision 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: 1b3f410bc1ffdd2d3e2f7279c27c52de3f060d55869cdfe932f5d148ce757d55 all runs: 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: 04fdd604b0f45a2a42b3c5ef6289f3c6ecc1826062b30f4cf20b688279909438 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: f6d3e85d3d1e7270d571ad0b04f5499133b49a9dd1940a15aafce569eff61757 culprit signature: 04fdd604b0f45a2a42b3c5ef6289f3c6ecc1826062b30f4cf20b688279909438 parent signature: f6d3e85d3d1e7270d571ad0b04f5499133b49a9dd1940a15aafce569eff61757 revisions tested: 16, total time: 3h49m47.912433278s (build: 1h46m25.323172011s, test: 2h1m27.364353066s) 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" "glider@google.com" "john.ogness@linutronix.de" "npiggin@gmail.com" "rdunlap@infradead.org" "rostedt@goodmis.org" "swboyd@chromium.org"]