bisecting fixing commit since 6a9dc5fd6170d0a41c8a14eb19e63d94bea5705a building syzkaller on 344da168cb738076d82a75e1a7a1f5177df8dbc7 testing commit 6a9dc5fd6170d0a41c8a14eb19e63d94bea5705a with gcc (GCC) 8.1.0 kernel signature: 13403b097d86273091e1a10f4b3d7b1cbadc22e87e664ac97a19e7d9f5414567 all runs: crashed: BUG: using smp_processor_id() in preemptible code in tipc_crypto_xmit testing current HEAD 583090b1b8232e6eae243a9009699666153a13a9 testing commit 583090b1b8232e6eae243a9009699666153a13a9 with gcc (GCC) 8.1.0 kernel signature: af0ff1e501844c9ce7b84601411dda80f3738d177e09527e6e6d4efc94d54e6f all runs: OK # git bisect start 583090b1b8232e6eae243a9009699666153a13a9 6a9dc5fd6170d0a41c8a14eb19e63d94bea5705a Bisecting: 941 revisions left to test after this (roughly 10 steps) [e4c26faa426c17274884f759f708bc9ee22fd59a] Merge tag 'usb-5.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb testing commit e4c26faa426c17274884f759f708bc9ee22fd59a with gcc (GCC) 8.1.0 kernel signature: 4101119d362ca96b37c11719e4065b44916a8965f08da149c93c2e2524c14d69 all runs: OK # git bisect bad e4c26faa426c17274884f759f708bc9ee22fd59a Bisecting: 446 revisions left to test after this (roughly 9 steps) [3e8d3bdc2a757cc6be5470297947799a7df445cc] Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net testing commit 3e8d3bdc2a757cc6be5470297947799a7df445cc with gcc (GCC) 8.1.0 kernel signature: 590e01fbbc5069dbb490dd7ec5bf045257d5d80d6592da74a743f0124f879d9c all runs: OK # git bisect bad 3e8d3bdc2a757cc6be5470297947799a7df445cc Bisecting: 244 revisions left to test after this (roughly 8 steps) [0063a82de937433ccfffe123e12b4503b9155c96] Merge tag 'sched-urgent-2020-08-30' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit 0063a82de937433ccfffe123e12b4503b9155c96 with gcc (GCC) 8.1.0 kernel signature: 577b6c8426165c3be3feb7666b3a55ed0ac0c6c241e29aed54c9386020b249e2 all runs: crashed: BUG: using smp_processor_id() in preemptible code in tipc_crypto_xmit # git bisect good 0063a82de937433ccfffe123e12b4503b9155c96 Bisecting: 123 revisions left to test after this (roughly 7 steps) [e28f0104343d0c132fa37f479870c9e43355fee4] Merge tag 'fixes-2020-09-03' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock testing commit e28f0104343d0c132fa37f479870c9e43355fee4 with gcc (GCC) 8.1.0 kernel signature: a79c30f293043dc7cd16d09e9ecf648afbda4fd757b4a2607914ba5b58c273bf all runs: crashed: BUG: using smp_processor_id() in preemptible code in tipc_crypto_xmit # git bisect good e28f0104343d0c132fa37f479870c9e43355fee4 Bisecting: 62 revisions left to test after this (roughly 6 steps) [af8ea111134624855710a0ef5543b871d49b0162] net: ethernet: ti: cpsw_new: fix error handling in cpsw_ndo_vlan_rx_kill_vid() testing commit af8ea111134624855710a0ef5543b871d49b0162 with gcc (GCC) 8.1.0 kernel signature: 3dfc77a7f3c584a749a383eb69b0592c857e22e88dcdb3cddb4727234775f1d6 run #0: crashed: BUG: using smp_processor_id() in preemptible code in tipc_crypto_xmit run #1: crashed: BUG: using smp_processor_id() in preemptible code in tipc_crypto_xmit run #2: crashed: BUG: using smp_processor_id() in preemptible code in tipc_crypto_xmit run #3: crashed: BUG: using smp_processor_id() in preemptible code in tipc_crypto_xmit run #4: crashed: BUG: using smp_processor_id() in preemptible code in tipc_crypto_xmit run #5: crashed: BUG: using smp_processor_id() in preemptible code in tipc_crypto_xmit run #6: crashed: BUG: using smp_processor_id() in preemptible code in tipc_crypto_xmit run #7: crashed: BUG: using smp_processor_id() in preemptible code in tipc_crypto_xmit run #8: crashed: BUG: using smp_processor_id() in preemptible code in tipc_crypto_xmit run #9: OK # git bisect good af8ea111134624855710a0ef5543b871d49b0162 Bisecting: 33 revisions left to test after this (roughly 5 steps) [c46172147ebbeb70094db48d76ab7945d96c638b] netfilter: conntrack: do not auto-delete clash entries on reply testing commit c46172147ebbeb70094db48d76ab7945d96c638b with gcc (GCC) 8.1.0 kernel signature: 74558f85b965dd3aaa574aa41877a332cbbed1a88d5134ec00fcab1b2e5d97e5 all runs: crashed: BUG: using smp_processor_id() in preemptible code in tipc_crypto_xmit # git bisect good c46172147ebbeb70094db48d76ab7945d96c638b Bisecting: 16 revisions left to test after this (roughly 4 steps) [1996cf46e4673a25ef2478eb266714f409a98221] net: bcmgenet: fix mask check in bcmgenet_validate_flow() testing commit 1996cf46e4673a25ef2478eb266714f409a98221 with gcc (GCC) 8.1.0 kernel signature: 0108fbdba3d22605896ad6494e9b17dc537926c37391c81db018feb860f5c78a all runs: OK # git bisect bad 1996cf46e4673a25ef2478eb266714f409a98221 Bisecting: 8 revisions left to test after this (roughly 3 steps) [9dda51101a77abb05ae49612164523bb91bf92f0] ionic: fix txrx work accounting testing commit 9dda51101a77abb05ae49612164523bb91bf92f0 with gcc (GCC) 8.1.0 kernel signature: f572afc90df4fbaa99b10637e9880469cce19a485dc3e748c9da3c49740e6f80 all runs: OK # git bisect bad 9dda51101a77abb05ae49612164523bb91bf92f0 Bisecting: 3 revisions left to test after this (roughly 2 steps) [fa4505675e093e895b7ec49a76d44f6b5ad9602e] selftests/bpf: Fix massive output from test_maps testing commit fa4505675e093e895b7ec49a76d44f6b5ad9602e with gcc (GCC) 8.1.0 kernel signature: 55aac2ffcfe838c31a321ec18ea99395ad0eb4d4072a9edfbd64c3a6c424e0e3 all runs: crashed: BUG: using smp_processor_id() in preemptible code in tipc_crypto_xmit # git bisect good fa4505675e093e895b7ec49a76d44f6b5ad9602e Bisecting: 1 revision left to test after this (roughly 1 step) [bb8872a1e6bc911869a729240781076ed950764b] tipc: fix using smp_processor_id() in preemptible testing commit bb8872a1e6bc911869a729240781076ed950764b with gcc (GCC) 8.1.0 kernel signature: d91fb305398b13bf5769e69ec648c059c4d19cdd4afed172ed6854817d15de7c all runs: OK # git bisect bad bb8872a1e6bc911869a729240781076ed950764b Bisecting: 0 revisions left to test after this (roughly 0 steps) [c8146fe292a726d71e302719df90b53e2f84f7a5] Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf testing commit c8146fe292a726d71e302719df90b53e2f84f7a5 with gcc (GCC) 8.1.0 kernel signature: eebac79aed2a4f1f37367d03ad1cae6f404cf886da87f6ec811a79367f3b2788 all runs: crashed: BUG: using smp_processor_id() in preemptible code in tipc_crypto_xmit # git bisect good c8146fe292a726d71e302719df90b53e2f84f7a5 bb8872a1e6bc911869a729240781076ed950764b is the first bad commit commit bb8872a1e6bc911869a729240781076ed950764b Author: Tuong Lien Date: Sun Aug 30 02:37:55 2020 +0700 tipc: fix using smp_processor_id() in preemptible The 'this_cpu_ptr()' is used to obtain the AEAD key' TFM on the current CPU for encryption, however the execution can be preemptible since it's actually user-space context, so the 'using smp_processor_id() in preemptible' has been observed. We fix the issue by using the 'get/put_cpu_ptr()' API which consists of a 'preempt_disable()' instead. Fixes: fc1b6d6de220 ("tipc: introduce TIPC encryption & authentication") Acked-by: Jon Maloy Signed-off-by: Tuong Lien Signed-off-by: David S. Miller net/tipc/crypto.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) culprit signature: d91fb305398b13bf5769e69ec648c059c4d19cdd4afed172ed6854817d15de7c parent signature: eebac79aed2a4f1f37367d03ad1cae6f404cf886da87f6ec811a79367f3b2788 revisions tested: 13, total time: 3h19m32.91612136s (build: 1h3m34.583330063s, test: 2h14m47.026938471s) first good commit: bb8872a1e6bc911869a729240781076ed950764b tipc: fix using smp_processor_id() in preemptible recipients (to): ["davem@davemloft.net" "jmaloy@redhat.com" "tuong.t.lien@dektech.com.au"] recipients (cc): []