bisecting cause commit starting from a9c9a6f741cdaa2fa9ba24a790db8d07295761e3 building syzkaller on f62a58290e2f1200a2b21f2707a9ff0394a2a724 testing commit a9c9a6f741cdaa2fa9ba24a790db8d07295761e3 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: b30323b43f6870750ea7eb67afd91ed763b407839e900f10afbf5c53dc53091f all runs: crashed: WARNING: kmalloc bug in check_btf_line testing release v5.14 testing commit 7d2a07b769330c34b4deabeed939325c77a7ec2f compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 1bc25c310b773f41f60536ec01fad7eee81fbd08982b6b34e2bd4f1aafdef1ea all runs: OK # git bisect start a9c9a6f741cdaa2fa9ba24a790db8d07295761e3 7d2a07b769330c34b4deabeed939325c77a7ec2f Bisecting: 4220 revisions left to test after this (roughly 12 steps) [ebf435d3b51b22340ef047aad0c2936ec4833ab2] Merge tag 'staging-5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging testing commit ebf435d3b51b22340ef047aad0c2936ec4833ab2 arch/x86/kernel/setup.c:916:6: error: implicit declaration of function 'acpi_mps_check' [-Werror=implicit-function-declaration] arch/x86/kernel/setup.c:1110:2: error: implicit declaration of function 'acpi_table_upgrade' [-Werror=implicit-function-declaration] arch/x86/kernel/setup.c:1112:2: error: implicit declaration of function 'acpi_boot_table_init' [-Werror=implicit-function-declaration] arch/x86/kernel/setup.c:1120:2: error: implicit declaration of function 'early_acpi_boot_init'; did you mean 'early_cpu_init'? [-Werror=implicit-function-declaration] arch/x86/kernel/setup.c:1162:2: error: implicit declaration of function 'acpi_boot_init' [-Werror=implicit-function-declaration] # git bisect skip ebf435d3b51b22340ef047aad0c2936ec4833ab2 Bisecting: 4220 revisions left to test after this (roughly 12 steps) [afb08b7e220ef7278ffceb4f9e201c2a904e18a9] net: ipa: move IPA flags field testing commit afb08b7e220ef7278ffceb4f9e201c2a904e18a9 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 3ad773abad4875aca6165cc8d7a5d10640385c8f0913f100c23018f0927b5091 all runs: OK # git bisect good afb08b7e220ef7278ffceb4f9e201c2a904e18a9 Bisecting: 3980 revisions left to test after this (roughly 12 steps) [07281a257a6868b900da5de1eda808c9e20253f1] Merge tag 'usb-5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb testing commit 07281a257a6868b900da5de1eda808c9e20253f1 arch/x86/kernel/setup.c:916:6: error: implicit declaration of function 'acpi_mps_check' [-Werror=implicit-function-declaration] arch/x86/kernel/setup.c:1110:2: error: implicit declaration of function 'acpi_table_upgrade' [-Werror=implicit-function-declaration] arch/x86/kernel/setup.c:1112:2: error: implicit declaration of function 'acpi_boot_table_init' [-Werror=implicit-function-declaration] arch/x86/kernel/setup.c:1120:2: error: implicit declaration of function 'early_acpi_boot_init'; did you mean 'early_cpu_init'? [-Werror=implicit-function-declaration] arch/x86/kernel/setup.c:1162:2: error: implicit declaration of function 'acpi_boot_init' [-Werror=implicit-function-declaration] # git bisect skip 07281a257a6868b900da5de1eda808c9e20253f1 Bisecting: 3980 revisions left to test after this (roughly 12 steps) [8d7e5908c0bcf8a0abc437385e58e49abab11a93] mailbox: qcom-ipcc: Enable loading QCOM_IPCC as a module testing commit 8d7e5908c0bcf8a0abc437385e58e49abab11a93 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: fdf19eb98e9b5acebb60c53458a074837c5e3b81fca2d954b35c7312161fecdb all runs: OK # git bisect good 8d7e5908c0bcf8a0abc437385e58e49abab11a93 Bisecting: 3978 revisions left to test after this (roughly 12 steps) [e6e7471706dc42cbe0e01278540c0730138d43e5] bvec: add a bvec_kmap_local helper testing commit e6e7471706dc42cbe0e01278540c0730138d43e5 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 8cbcb066ce0e423dcee70dc9f00b49cc7112066ce740a7f2b0a0cd0f8bbf6bc1 all runs: OK # git bisect good e6e7471706dc42cbe0e01278540c0730138d43e5 Bisecting: 3978 revisions left to test after this (roughly 12 steps) [8c945d32e60427cbc0859cf7045bbe6196bb03d8] btrfs: compression: drop kmap/kunmap from lzo testing commit 8c945d32e60427cbc0859cf7045bbe6196bb03d8 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: ba7286470949261f584152c0a66c5ddc7482afd16ff880b5615bf85940a5ec66 all runs: OK # git bisect good 8c945d32e60427cbc0859cf7045bbe6196bb03d8 Bisecting: 3978 revisions left to test after this (roughly 12 steps) [5b16a790f18d234187f31eab0a222bd53cb12b9e] phy: cadence-torrent: Reorder few functions to remove function declarations testing commit 5b16a790f18d234187f31eab0a222bd53cb12b9e compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 5e7cbc81f27fd077634b6816e4713f79388593a68457733fe1b8ecdb01ca1eec run #0: basic kernel testing failed: BUG: sleeping function called from invalid context in stack_depot_save run #1: crashed: BUG: sleeping function called from invalid context in lock_sock_nested run #2: crashed: BUG: sleeping function called from invalid context in lock_sock_nested run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK reproducer seems to be flaky # git bisect bad 5b16a790f18d234187f31eab0a222bd53cb12b9e Bisecting: 10 revisions left to test after this (roughly 4 steps) [27974e6208c0c44f89e76fc65ad67f9bc1c279a6] phy: phy-mtk-tphy: support new hardware version testing commit 27974e6208c0c44f89e76fc65ad67f9bc1c279a6 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 5e7cbc81f27fd077634b6816e4713f79388593a68457733fe1b8ecdb01ca1eec run #0: basic kernel testing failed: BUG: sleeping function called from invalid context in stack_depot_save 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 run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK # git bisect good 27974e6208c0c44f89e76fc65ad67f9bc1c279a6 Bisecting: 4 revisions left to test after this (roughly 3 steps) [5711af410c28d2b9c99a91e8e6fe9ba6520771f0] dt-bindings: phy: renesas,usb2-phy: Document RZ/G2L phy bindings testing commit 5711af410c28d2b9c99a91e8e6fe9ba6520771f0 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 5e7cbc81f27fd077634b6816e4713f79388593a68457733fe1b8ecdb01ca1eec all runs: OK # git bisect good 5711af410c28d2b9c99a91e8e6fe9ba6520771f0 Bisecting: 1 revision left to test after this (roughly 1 step) [23fd679249df82b57390c8f4f0f290fd1f7b3505] phy: qcom-qmp: add USB3 PHY support for IPQ6018 testing commit 23fd679249df82b57390c8f4f0f290fd1f7b3505 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 5e7cbc81f27fd077634b6816e4713f79388593a68457733fe1b8ecdb01ca1eec all runs: OK # git bisect good 23fd679249df82b57390c8f4f0f290fd1f7b3505 Bisecting: 0 revisions left to test after this (roughly 0 steps) [e956d4fceba3aeb1cc088d043048b1d2157427b0] phy: cadence-torrent: Remove use of CamelCase to fix checkpatch CHECK message testing commit e956d4fceba3aeb1cc088d043048b1d2157427b0 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 5e7cbc81f27fd077634b6816e4713f79388593a68457733fe1b8ecdb01ca1eec all runs: OK # git bisect good e956d4fceba3aeb1cc088d043048b1d2157427b0 5b16a790f18d234187f31eab0a222bd53cb12b9e is the first bad commit commit 5b16a790f18d234187f31eab0a222bd53cb12b9e Author: Swapnil Jakhade Date: Wed Jul 28 16:54:47 2021 +0200 phy: cadence-torrent: Reorder few functions to remove function declarations Reorder some functions to avoid function declarations. No functional change. Signed-off-by: Swapnil Jakhade Link: https://lore.kernel.org/r/20210728145454.15945-3-sjakhade@cadence.com Signed-off-by: Vinod Koul drivers/phy/cadence/phy-cadence-torrent.c | 1937 ++++++++++++++--------------- 1 file changed, 953 insertions(+), 984 deletions(-) culprit signature: 5e7cbc81f27fd077634b6816e4713f79388593a68457733fe1b8ecdb01ca1eec parent signature: 5e7cbc81f27fd077634b6816e4713f79388593a68457733fe1b8ecdb01ca1eec Reproducer flagged being flaky revisions tested: 11, total time: 3h0m32.550738815s (build: 1h26m8.097461749s, test: 1h32m41.05630383s) first bad commit: 5b16a790f18d234187f31eab0a222bd53cb12b9e phy: cadence-torrent: Reorder few functions to remove function declarations recipients (to): ["kishon@ti.com" "linux-phy@lists.infradead.org" "p.zabel@pengutronix.de" "sjakhade@cadence.com" "vkoul@kernel.org" "vkoul@kernel.org"] recipients (cc): ["linux-kernel@vger.kernel.org" "sjakhade@cadence.com"] crash: BUG: sleeping function called from invalid context in lock_sock_nested BUG: sleeping function called from invalid context at net/core/sock.c:3100 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 8811, name: syz-executor.1 1 lock held by syz-executor.1/8811: #0: ffffffff8c40b440 (hci_sk_list.lock){++++}-{2:2}, at: hci_sock_dev_event+0x374/0x5c0 net/bluetooth/hci_sock.c:763 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 8811 Comm: syz-executor.1 Not tainted 5.14.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x57/0x7d lib/dump_stack.c:105 ___might_sleep.cold+0x1f1/0x237 kernel/sched/core.c:9154 lock_sock_nested+0x1e/0xf0 net/core/sock.c:3100 lock_sock include/net/sock.h:1610 [inline] hci_sock_dev_event+0x3ea/0x5c0 net/bluetooth/hci_sock.c:765 hci_unregister_dev+0x29b/0xfb0 net/bluetooth/hci_core.c:4033 vhci_release+0x62/0xd0 drivers/bluetooth/hci_vhci.c:340 __fput+0x209/0x870 fs/file_table.c:280 task_work_run+0xc0/0x160 kernel/task_work.c:164 exit_task_work include/linux/task_work.h:32 [inline] do_exit+0x9fe/0x24e0 kernel/exit.c:825 do_group_exit+0xe7/0x290 kernel/exit.c:922 __do_sys_exit_group kernel/exit.c:933 [inline] __se_sys_exit_group kernel/exit.c:931 [inline] __x64_sys_exit_group+0x35/0x40 kernel/exit.c:931 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665f9 Code: Unable to access opcode bytes at RIP 0x4665cf. RSP: 002b:00007fffd937eff8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00007fffd937f7b8 RCX: 00000000004665f9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000043 RBP: 0000000000000000 R08: 0000000000000025 R09: 00007fffd937f7b8 R10: 00000000ffffffff R11: 0000000000000246 R12: 00000000004bef74 R13: 0000000000000010 R14: 0000000000000000 R15: 0000000000400538 ======================================================