bisecting cause commit starting from 3cb12d27ff655e57e8efe3486dca2a22f4e30578 building syzkaller on 94942294277bf7550b12322d282159551521258b testing commit 3cb12d27ff655e57e8efe3486dca2a22f4e30578 with gcc (GCC) 8.1.0 kernel signature: 0b8cfac3db6768cfd5a5eb94bb42babadfdfd759830b2d5a8321409daea13ff4 all runs: crashed: WARNING in ovs_dp_cmd_new testing release v5.9 testing commit bbf5c979011a099af5dc76498918ed7df445635b with gcc (GCC) 8.1.0 kernel signature: d8f832e5f1dab3b2d3ba1dacdcf8fa308e4a56a5007962c06654bf75e6d0e177 all runs: crashed: WARNING in ovs_dp_cmd_new testing release v5.8 testing commit bcf876870b95592b52519ed4aafcf9d95999bc9c with gcc (GCC) 8.1.0 kernel signature: 3b9f01e8a3444e9674e2bf3f0ced517634ba6bcff3b5bb42835aab8909087e18 all runs: OK # git bisect start bbf5c979011a099af5dc76498918ed7df445635b bcf876870b95592b52519ed4aafcf9d95999bc9c Bisecting: 7841 revisions left to test after this (roughly 13 steps) [47ec5303d73ea344e84f46660fff693c57641386] Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next testing commit 47ec5303d73ea344e84f46660fff693c57641386 with gcc (GCC) 8.1.0 kernel signature: bffee625713939fcacf7ce1c1d582613fbfaa43702478af48b6e0f38499ffec8 all runs: OK # git bisect good 47ec5303d73ea344e84f46660fff693c57641386 Bisecting: 3921 revisions left to test after this (roughly 12 steps) [97d052ea3fa853b9aabcc4baca1a605cb1188611] Merge tag 'locking-urgent-2020-08-10' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit 97d052ea3fa853b9aabcc4baca1a605cb1188611 with gcc (GCC) 8.1.0 kernel signature: ca6551d539012f9edef61d6986e9d60bd586bf010b091f3def8b1d8a360b61af all runs: crashed: WARNING in ovs_dp_cmd_new # git bisect bad 97d052ea3fa853b9aabcc4baca1a605cb1188611 Bisecting: 1959 revisions left to test after this (roughly 11 steps) [9bceb80b3cc483e6763c39a4928402fa82815d3e] arm64: kaslr: Use standard early random function testing commit 9bceb80b3cc483e6763c39a4928402fa82815d3e with gcc (GCC) 8.1.0 kernel signature: 14584a31b25b8e0670f73beec919d00b78d93f03934f89977392fbf420db50b7 all runs: crashed: WARNING in ovs_dp_cmd_new # git bisect bad 9bceb80b3cc483e6763c39a4928402fa82815d3e Bisecting: 1095 revisions left to test after this (roughly 10 steps) [3f9df56480fc8ce492fc9e988d67bdea884ed15c] Merge tag 'sound-5.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound testing commit 3f9df56480fc8ce492fc9e988d67bdea884ed15c with gcc (GCC) 8.1.0 kernel signature: 01c5b4d024fced47dd6a434387efeba52070ebf6be72b75eecfb974ae51a142f all runs: OK # git bisect good 3f9df56480fc8ce492fc9e988d67bdea884ed15c Bisecting: 565 revisions left to test after this (roughly 9 steps) [d6efb3ac3e6c19ab722b28bdb9252bae0b9676b6] Merge tag 'tty-5.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty testing commit d6efb3ac3e6c19ab722b28bdb9252bae0b9676b6 with gcc (GCC) 8.1.0 kernel signature: 7683d6194479fb9fda25524279109365f2c873bae89545661e049c2447bc299c all runs: OK # git bisect good d6efb3ac3e6c19ab722b28bdb9252bae0b9676b6 Bisecting: 282 revisions left to test after this (roughly 8 steps) [010f7c2ab4ad8e17d0a4f3b12b74076c8bddd0c2] scsi: qedi: Staticify non-external function 'qedi_get_iscsi_error' testing commit 010f7c2ab4ad8e17d0a4f3b12b74076c8bddd0c2 with gcc (GCC) 8.1.0 kernel signature: 640b3e0b2d1e7af2b7b8ec467ccce4a4736916f69321452f12327aa3350d2ac2 all runs: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks # git bisect skip 010f7c2ab4ad8e17d0a4f3b12b74076c8bddd0c2 Bisecting: 282 revisions left to test after this (roughly 8 steps) [6671eebd672c50814fa09d23ba9cc117506aa67c] scsi: ppa: Remove superfluous breaks testing commit 6671eebd672c50814fa09d23ba9cc117506aa67c with gcc (GCC) 8.1.0 kernel signature: 9a7608a553af1cf2dd0a1c5d2ca0e967e7f7ef8be0588ce59b1dc26f3f6afc14 all runs: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks # git bisect skip 6671eebd672c50814fa09d23ba9cc117506aa67c Bisecting: 282 revisions left to test after this (roughly 8 steps) [62cb0af4cea871e80015dd45b200033002f23a95] dnotify: report both events on parent and child with single callback testing commit 62cb0af4cea871e80015dd45b200033002f23a95 with gcc (GCC) 8.1.0 kernel signature: a1abe90648f40eb14779977b4924aa74ba13e81ab39c47b37fd58dc7be1d7fb5 run #0: boot failed: can't ssh into the instance 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 62cb0af4cea871e80015dd45b200033002f23a95 Bisecting: 271 revisions left to test after this (roughly 8 steps) [eaefa33014bfdf77299ef34263d68cb844bbef37] scsi: bfa: Demote non-compliant kerneldoc headers to standard comments testing commit eaefa33014bfdf77299ef34263d68cb844bbef37 with gcc (GCC) 8.1.0 kernel signature: 640b3e0b2d1e7af2b7b8ec467ccce4a4736916f69321452f12327aa3350d2ac2 all runs: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks # git bisect skip eaefa33014bfdf77299ef34263d68cb844bbef37 Bisecting: 271 revisions left to test after this (roughly 8 steps) [e95fcb77921c9b2800b10886bbe339e5d08efbf0] scsi: bfa: Remove unused variable 'adisc' testing commit e95fcb77921c9b2800b10886bbe339e5d08efbf0 with gcc (GCC) 8.1.0 kernel signature: 640b3e0b2d1e7af2b7b8ec467ccce4a4736916f69321452f12327aa3350d2ac2 all runs: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks # git bisect skip e95fcb77921c9b2800b10886bbe339e5d08efbf0 Bisecting: 271 revisions left to test after this (roughly 8 steps) [3d570a28ee8d7e724fc740019746a6e79c8db06c] scsi: hisi_sas: Remove one kerneldoc comment testing commit 3d570a28ee8d7e724fc740019746a6e79c8db06c with gcc (GCC) 8.1.0 kernel signature: ed931ed2c38ab293bd738a75179383314092386f0668aca863fb8759229c01dd all runs: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks # git bisect skip 3d570a28ee8d7e724fc740019746a6e79c8db06c Bisecting: 271 revisions left to test after this (roughly 8 steps) [1595d887afe46b0ad721f27df895a61d4879ede2] thermal: Store thermal mode in a dedicated enum testing commit 1595d887afe46b0ad721f27df895a61d4879ede2 with gcc (GCC) 8.1.0 kernel signature: 8e981db38bfa332e16981cd51b9fffdbe6c71ab9e3a85fa2f0815758542edf3e all runs: OK # git bisect good 1595d887afe46b0ad721f27df895a61d4879ede2 Bisecting: 270 revisions left to test after this (roughly 8 steps) [f5816509a2f227df4eab83c8c991e77e11da3c0c] scsi: csiostor: Add missing description for csio_rnode_fwevt_handler()'s 'fwevt' param testing commit f5816509a2f227df4eab83c8c991e77e11da3c0c with gcc (GCC) 8.1.0 kernel signature: 640b3e0b2d1e7af2b7b8ec467ccce4a4736916f69321452f12327aa3350d2ac2 all runs: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks # git bisect skip f5816509a2f227df4eab83c8c991e77e11da3c0c Bisecting: 270 revisions left to test after this (roughly 8 steps) [e802fc43ba36be03327a5923e4decf39cd7cab47] scsi: pm8001: Demote obvious misuse of kerneldoc and update others testing commit e802fc43ba36be03327a5923e4decf39cd7cab47 with gcc (GCC) 8.1.0 kernel signature: ed931ed2c38ab293bd738a75179383314092386f0668aca863fb8759229c01dd all runs: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks # git bisect skip e802fc43ba36be03327a5923e4decf39cd7cab47 Bisecting: 270 revisions left to test after this (roughly 8 steps) [fb43337cd4cff6639b174e3b6766e6eade523836] scsi: ufs-mediatek: Fix imprecise waiting time for ref-clk control testing commit fb43337cd4cff6639b174e3b6766e6eade523836 with gcc (GCC) 8.1.0 kernel signature: 8f2949768b2e55511c9e17c3b54ab502e9b0f31656a6cce53909d55fbdf48618 all runs: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks # git bisect skip fb43337cd4cff6639b174e3b6766e6eade523836 Bisecting: 270 revisions left to test after this (roughly 8 steps) [f1134f0eb184f6f6f468e15c2b006384a8238524] scsi: aacraid: Fix a bunch of function header issues testing commit f1134f0eb184f6f6f468e15c2b006384a8238524 with gcc (GCC) 8.1.0 kernel signature: ed931ed2c38ab293bd738a75179383314092386f0668aca863fb8759229c01dd all runs: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks # git bisect skip f1134f0eb184f6f6f468e15c2b006384a8238524 Bisecting: 270 revisions left to test after this (roughly 8 steps) [561e3a8726b2dd94ce75cad6c9cab211551f368a] scsi: ufs-mediatek: Fix unbalanced clock on/off testing commit 561e3a8726b2dd94ce75cad6c9cab211551f368a with gcc (GCC) 8.1.0 kernel signature: 8f2949768b2e55511c9e17c3b54ab502e9b0f31656a6cce53909d55fbdf48618 all runs: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks # git bisect skip 561e3a8726b2dd94ce75cad6c9cab211551f368a Bisecting: 270 revisions left to test after this (roughly 8 steps) [42b840bcfc16520f44b1ff51132ea720f86cb7ab] scsi: aic7xxx: Fix 'amount_xferred' set but not used issue testing commit 42b840bcfc16520f44b1ff51132ea720f86cb7ab with gcc (GCC) 8.1.0 kernel signature: ed931ed2c38ab293bd738a75179383314092386f0668aca863fb8759229c01dd run #0: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks run #1: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks run #2: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks run #3: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks run #4: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks run #5: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks run #6: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks run #7: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks run #8: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks run #9: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in corrupted # git bisect skip 42b840bcfc16520f44b1ff51132ea720f86cb7ab Bisecting: 270 revisions left to test after this (roughly 8 steps) [cbe193f6f093b79fd1ab998dd95f73f874fb4733] scsi: ufs: Fix potential NULL pointer access during memcpy testing commit cbe193f6f093b79fd1ab998dd95f73f874fb4733 with gcc (GCC) 8.1.0 kernel signature: 8f2949768b2e55511c9e17c3b54ab502e9b0f31656a6cce53909d55fbdf48618 all runs: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks # git bisect skip cbe193f6f093b79fd1ab998dd95f73f874fb4733 Bisecting: 270 revisions left to test after this (roughly 8 steps) [df4ec2fa7a4dc20bed62a407f77b5c57f1afbbc8] scsi: ufs-qcom: Add Inline Crypto Engine support testing commit df4ec2fa7a4dc20bed62a407f77b5c57f1afbbc8 with gcc (GCC) 8.1.0 kernel signature: 16dbb806ceec0d63b19d181c22c2b85ca17edbe4497564f8b6192c9e1040b938 all runs: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks # git bisect skip df4ec2fa7a4dc20bed62a407f77b5c57f1afbbc8 Bisecting: 270 revisions left to test after this (roughly 8 steps) [af0e5f1f47d8b7139ee446bc2367f74e4f034202] thermal/drivers/clock_cooling: Remove clock_cooling code testing commit af0e5f1f47d8b7139ee446bc2367f74e4f034202 with gcc (GCC) 8.1.0 kernel signature: 8121dbe215077f16ce3e801d64b6d99ee60757a9a3d92da775a92b804d57052e all runs: crashed: WARNING in ovs_dp_cmd_new # git bisect bad af0e5f1f47d8b7139ee446bc2367f74e4f034202 Bisecting: 8 revisions left to test after this (roughly 3 steps) [7a7d66f26b0ff47e7edbc9df884ad711ed918992] acpi: thermal: Don't call thermal_zone_device_is_enabled() testing commit 7a7d66f26b0ff47e7edbc9df884ad711ed918992 with gcc (GCC) 8.1.0 kernel signature: 92d7613bd0097d7e3bb0dcb1bc14b174b8d109530274c350067878cb949cf908 all runs: OK # git bisect good 7a7d66f26b0ff47e7edbc9df884ad711ed918992 Bisecting: 3 revisions left to test after this (roughly 2 steps) [1ce50e7d408ef2bdc8ca021363fd46d1b8bfad00] thermal: core: genetlink support for events/cmd/sampling testing commit 1ce50e7d408ef2bdc8ca021363fd46d1b8bfad00 with gcc (GCC) 8.1.0 kernel signature: 8a412f8cb417c72c3b40aa65862b48fa088e8fb67918802d3cd14c588a4eae6a all runs: crashed: WARNING in ovs_dp_cmd_new # git bisect bad 1ce50e7d408ef2bdc8ca021363fd46d1b8bfad00 Bisecting: 1 revision left to test after this (roughly 1 step) [3d44a509c1dafb75adfe218f022ad216885c135e] thermal: core: Add helpers to browse the cdev, tz and governor list testing commit 3d44a509c1dafb75adfe218f022ad216885c135e with gcc (GCC) 8.1.0 kernel signature: 6ee790b246b4d3aefe1cb14529d9da9831c6fed214dac28ec6491278cead0b62 all runs: OK # git bisect good 3d44a509c1dafb75adfe218f022ad216885c135e Bisecting: 0 revisions left to test after this (roughly 0 steps) [329b064fbd13d6526fdc35d4a220adedeadf0816] thermal: core: Get thermal zone by id testing commit 329b064fbd13d6526fdc35d4a220adedeadf0816 with gcc (GCC) 8.1.0 kernel signature: 3fd01931b5b2e07490b0a159bdb0b33ae939874e72ed77cbc24da7cb266c648a all runs: OK # git bisect good 329b064fbd13d6526fdc35d4a220adedeadf0816 1ce50e7d408ef2bdc8ca021363fd46d1b8bfad00 is the first bad commit commit 1ce50e7d408ef2bdc8ca021363fd46d1b8bfad00 Author: Daniel Lezcano Date: Mon Jul 6 12:55:37 2020 +0200 thermal: core: genetlink support for events/cmd/sampling Initially the thermal framework had a very simple notification mechanism to send generic netlink messages to the userspace. The notification function was never called from anywhere and the corresponding dead code was removed. It was probably a first attempt to introduce the netlink notification. At LPC2018, the presentation "Linux thermal: User kernel interface", proposed to create the notifications to the userspace via a kfifo. The advantage of the kfifo is the performance. It is usually used from a 1:1 communication channel where a driver captures data and sends it as fast as possible to a userspace process. The drawback is that only one process uses the notification channel exclusively, thus no other process is allowed to use the channel to get temperature or notifications. This patch defines a generic netlink API to discover the current thermal setup and adds event notifications as well as temperature sampling. As any genetlink protocol, it can evolve and the versioning allows to keep the backward compatibility. In order to prevent the user from getting flooded with data on a single channel, there are two multicast channels, one for the temperature sampling when the thermal zone is updated and another one for the events, so the user can get the events only without the thermal zone temperature sampling. Also, a list of commands to discover the thermal setup is added and can be extended when needed. Reviewed-by: Amit Kucheria Signed-off-by: Daniel Lezcano Acked-by: Zhang Rui Link: https://lore.kernel.org/r/20200706105538.2159-3-daniel.lezcano@linaro.org drivers/thermal/Makefile | 2 +- drivers/thermal/thermal_core.h | 18 ++ drivers/thermal/thermal_netlink.c | 648 ++++++++++++++++++++++++++++++++++++++ include/linux/thermal.h | 17 - include/uapi/linux/thermal.h | 89 +++++- 5 files changed, 739 insertions(+), 35 deletions(-) create mode 100644 drivers/thermal/thermal_netlink.c culprit signature: 8a412f8cb417c72c3b40aa65862b48fa088e8fb67918802d3cd14c588a4eae6a parent signature: 3fd01931b5b2e07490b0a159bdb0b33ae939874e72ed77cbc24da7cb266c648a revisions tested: 28, total time: 5h26m2.557228146s (build: 2h48m10.141514443s, test: 2h34m39.959636538s) first bad commit: 1ce50e7d408ef2bdc8ca021363fd46d1b8bfad00 thermal: core: genetlink support for events/cmd/sampling recipients (to): ["amit.kucheria@linaro.org" "daniel.lezcano@linaro.org" "rui.zhang@intel.com"] recipients (cc): [] crash: WARNING in ovs_dp_cmd_new ------------[ cut here ]------------ Dropping previously announced user features WARNING: CPU: 0 PID: 10164 at net/openvswitch/datapath.c:1573 ovs_dp_reset_user_features net/openvswitch/datapath.c:1573 [inline] WARNING: CPU: 0 PID: 10164 at net/openvswitch/datapath.c:1573 ovs_dp_cmd_new+0x49e/0x4b0 net/openvswitch/datapath.c:1701 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 10164 Comm: syz-executor.2 Not tainted 5.8.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x78/0xa0 lib/dump_stack.c:118 panic+0x13c/0x30f kernel/panic.c:231 __warn.cold.13+0x20/0x20 kernel/panic.c:600 report_bug+0xc0/0xf0 lib/bug.c:198 handle_bug+0x3f/0x70 arch/x86/kernel/traps.c:235 exc_invalid_op+0x13/0x60 arch/x86/kernel/traps.c:255 asm_exc_invalid_op+0x12/0x20 arch/x86/include/asm/idtentry.h:563 RIP: 0010:ovs_dp_reset_user_features net/openvswitch/datapath.c:1573 [inline] RIP: 0010:ovs_dp_cmd_new+0x49e/0x4b0 net/openvswitch/datapath.c:1701 Code: 2d 00 00 00 48 c7 c7 2a 71 44 84 c6 05 17 7b b3 01 01 e8 1b d6 d7 fd e9 5f fe ff ff 0f 0b 48 c7 c7 b8 62 76 84 e8 0d 5b d0 fd <0f> 0b e9 7c ff ff ff 90 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 RSP: 0018:ffffc9000254fa80 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff88811db59400 RCX: 0000000000000001 RDX: 0000000080000001 RSI: ffffffff846ae556 RDI: 00000000ffffffff RBP: ffffc9000254fb00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff888130567a00 R13: 00000000ffffffef R14: ffffc9000254fb20 R15: ffff88811db59000 genl_family_rcv_msg_doit net/netlink/genetlink.c:691 [inline] genl_family_rcv_msg net/netlink/genetlink.c:736 [inline] genl_rcv_msg+0x1cb/0x300 net/netlink/genetlink.c:753 netlink_rcv_skb+0x41/0x110 net/netlink/af_netlink.c:2469 genl_rcv+0x1f/0x30 net/netlink/genetlink.c:764 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline] netlink_unicast+0x19a/0x270 net/netlink/af_netlink.c:1329 netlink_sendmsg+0x248/0x480 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0x2b/0x40 net/socket.c:672 ____sys_sendmsg+0x1ed/0x230 net/socket.c:2352 ___sys_sendmsg+0x77/0xb0 net/socket.c:2406 __sys_sendmsg+0x52/0xa0 net/socket.c:2439 do_syscall_64+0x50/0xd0 arch/x86/entry/common.c:359 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45de49 Code: Bad RIP value. RSP: 002b:00007f627ba5ac78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000002c040 RCX: 000000000045de49 RDX: 0000000000000000 RSI: 0000000020000500 RDI: 0000000000000003 RBP: 000000000118bf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bf2c R13: 00007ffd7686f58f R14: 00007f627ba5b9c0 R15: 000000000118bf2c Kernel Offset: disabled Rebooting in 86400 seconds..