Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kernel crash #2

Open
weisuofayubc opened this issue Mar 20, 2024 · 1 comment
Open

kernel crash #2

weisuofayubc opened this issue Mar 20, 2024 · 1 comment

Comments

@weisuofayubc
Copy link

<4>[ 3119.647930]  (3)[31797:kworker/u16:3]------------[ cut here ]------------
<2>[ 3119.647932]  (3)[31797:kworker/u16:3]kernel BUG at drivers/soc/qcom/rpmh.c:209!
<0>[ 3119.647940]  (3)[31797:kworker/u16:3]Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
<4>[ 3119.647945]  (3)[31797:kworker/u16:3]Modules linked in:
<0>[ 3119.647956]  (3)[31797:kworker/u16:3]Process kworker/u16:3 (pid: 31797, stack limit = 0x000000000c43f789)
<4>[ 3119.647965]  (3)[31797:kworker/u16:3]CPU: 3 PID: 31797 Comm: kworker/u16:3 Tainted: G S      W       4.14.190-perf+ #1
<4>[ 3119.647971]  (3)[31797:kworker/u16:3]Hardware name: Qualcomm Technologies, Inc. SM8150 V2 PM8150 MTP (DT)
<4>[ 3119.647985]  (3)[31797:kworker/u16:3]Workqueue: devfreq_wq devfreq_monitor
<4>[ 3119.647993]  (3)[31797:kworker/u16:3]task: 00000000886f3806 task.stack: 000000000c43f789
<4>[ 3119.648002]  (3)[31797:kworker/u16:3]pc : rpmh_write_batch+0x43c/0x448
<4>[ 3119.648008]  (3)[31797:kworker/u16:3]lr : rpmh_write_batch+0x43c/0x448
<4>[ 3119.648013]  (3)[31797:kworker/u16:3]sp : ffffff800fbe39f0 pstate : 60c00145
<4>[ 3119.648018]  (3)[31797:kworker/u16:3]x29: ffffff800fbe3a80 x28: 0000000000000002 
<4>[ 3119.648025]  (3)[31797:kworker/u16:3]x27: 0000000000050000 x26: 0000000000000002 
<4>[ 3119.648031]  (3)[31797:kworker/u16:3]x25: ffffff800fbe3a00 x24: ffffffd6afe62000 
<4>[ 3119.648038]  (3)[31797:kworker/u16:3]x23: 0000000000000001 x22: ffffff800fbe3a08 
<4>[ 3119.648045]  (3)[31797:kworker/u16:3]x21: ffffff800fbe3a28 x20: 0000000065e4f6fe 
<4>[ 3119.648051]  (3)[31797:kworker/u16:3]x19: ffffffd6b01cef00 x18: 000000000000070a 
<4>[ 3119.648058]  (3)[31797:kworker/u16:3]x17: 000000000000008c x16: 0000000000000000 
<4>[ 3119.648065]  (3)[31797:kworker/u16:3]x15: 0000000000000086 x14: 0000000000000050 
<4>[ 3119.648071]  (3)[31797:kworker/u16:3]x13: 0000000000000000 x12: 0000000000000000 
<4>[ 3119.648078]  (3)[31797:kworker/u16:3]x11: 0000000000000000 x10: ffffffffffffffff 
<4>[ 3119.648084]  (3)[31797:kworker/u16:3]x9 : b3734f7c5699e300 x8 : b3734f7c5699e300 
<4>[ 3119.648091]  (3)[31797:kworker/u16:3]x7 : 0000000000000000 x6 : ffffffd6bfab9c00 
<4>[ 3119.648098]  (3)[31797:kworker/u16:3]x5 : ffffffd5a67125f8 x4 : 000000000000000e 
<4>[ 3119.648104]  (3)[31797:kworker/u16:3]x3 : 0000000000000065 x2 : 0000000000000000 
<4>[ 3119.648110]  (3)[31797:kworker/u16:3]x1 : 00000000000001c0 x0 : 0000000000000040 
<4>[ 3119.648119]  (3)[31797:kworker/u16:3]
<4>[ 3119.648119] PC: 0xffffff9d44bfc14c:
<4>[ 3119.648123]  (3)[31797:kworker/u16:3]c14c  52807d01 943acbb5 34000100 f9400260 9000ccc1 91342421 2a1b03e2 2a1403e3
<4>[ 3119.648138]  (3)[31797:kworker/u16:3]c16c  94028100 17ffff1a f9400260 b000d661 91175c21 9402807b f9402260 942a0f19
<4>[ 3119.648151]  (3)[31797:kworker/u16:3]c18c  d4210000 14000000 97eafc49 a9bd7bfd a90157f6 a9024ff4 910003fd f9402416
<4>[ 3119.648165]  (3)[31797:kworker/u16:3]c1ac  2a0203f5 aa0103f4 910062d3 aa1303e0 943adb64 aa0003e1 12800008 11000508
<4>[ 3119.648180]  (3)[31797:kworker/u16:3]
<4>[ 3119.648180] LR: 0xffffff9d44bfc14c:
<4>[ 3119.648184]  (3)[31797:kworker/u16:3]c14c  52807d01 943acbb5 34000100 f9400260 9000ccc1 91342421 2a1b03e2 2a1403e3
<4>[ 3119.648197]  (3)[31797:kworker/u16:3]c16c  94028100 17ffff1a f9400260 b000d661 91175c21 9402807b f9402260 942a0f19
<4>[ 3119.648210]  (3)[31797:kworker/u16:3]c18c  d4210000 14000000 97eafc49 a9bd7bfd a90157f6 a9024ff4 910003fd f9402416
<4>[ 3119.648223]  (3)[31797:kworker/u16:3]c1ac  2a0203f5 aa0103f4 910062d3 aa1303e0 943adb64 aa0003e1 12800008 11000508
<4>[ 3119.648238]  (3)[31797:kworker/u16:3]
<4>[ 3119.648238] SP: 0xffffff800fbe39b0:
<4>[ 3119.648243]  (3)[31797:kworker/u16:3]39b0  44bfc18c ffffff9d 60c00145 00000000 0fbe3a08 ffffff80 0fbe3a28 ffffff80
<4>[ 3119.648256]  (3)[31797:kworker/u16:3]39d0  ffffffff ffffffff b01cef00 ffffffd6 0fbe3a80 ffffff80 44bfc18c ffffff9d
<4>[ 3119.648269]  (3)[31797:kworker/u16:3]39f0  00000000 00000000 00050000 65e4f6fe 00000001 00000000 00000000 00000000
<4>[ 3119.648282]  (3)[31797:kworker/u16:3]3a10  000a000a 00000000 0fbe3a18 ffffff80 0fbe3a18 ffffff80 afe62000 ffffffd6
<4>[ 3119.648296]  (3)[31797:kworker/u16:3]
<4>[ 3119.648301]  (3)[31797:kworker/u16:3]Call trace:
<4>[ 3119.648307]  (3)[31797:kworker/u16:3] rpmh_write_batch+0x43c/0x448
<4>[ 3119.648316]  (3)[31797:kworker/u16:3] msm_bus_commit_data+0x69c/0x8bc
<4>[ 3119.648322]  (3)[31797:kworker/u16:3] update_client_paths+0x14c/0x1cc
<4>[ 3119.648328]  (3)[31797:kworker/u16:3] update_request_adhoc+0x1a0/0x3d8
<4>[ 3119.648335]  (3)[31797:kworker/u16:3] msm_bus_scale_client_update_request+0x18/0x44
<4>[ 3119.648342]  (3)[31797:kworker/u16:3] devbw_target+0xbc/0xfc
<4>[ 3119.648347]  (3)[31797:kworker/u16:3] update_devfreq+0xf4/0x274
<4>[ 3119.648352]  (3)[31797:kworker/u16:3] devfreq_monitor+0x2c/0x84
<4>[ 3119.648360]  (3)[31797:kworker/u16:3] process_one_work+0x17c/0x3f0
<4>[ 3119.648366]  (3)[31797:kworker/u16:3] worker_thread+0x258/0x488
<4>[ 3119.648373]  (3)[31797:kworker/u16:3] kthread+0x118/0x128
<4>[ 3119.648380]  (3)[31797:kworker/u16:3] ret_from_fork+0x10/0x18
<0>[ 3119.648388]  (3)[31797:kworker/u16:3]Code: 91175c21 9402807b f9402260 942a0f19 (d4210000) 
<4>[ 3119.648394]  (3)[31797:kworker/u16:3]---[ end trace 55a4af48d71e120b ]---
<0>[ 3119.698719]  (3)[31797:kworker/u16:3]Kernel panic - not syncing: Fatal exception
<2>[ 3119.698730]  (3)[31797:kworker/u16:3]SMP: stopping secondary CPUs
<2>[ 3119.698744]  (0)[0:swapper/0]CPU0: stopping
<4>[ 3119.698756]  (0)[0:swapper/0]CPU: 0 PID: 0 Comm: swapper/0 Tainted: G S    D W       4.14.190-perf+ #1
<4>[ 3119.698761]  (0)[0:swapper/0]Hardware name: Qualcomm Technologies, Inc. SM8150 V2 PM8150 MTP (DT)
<4>[ 3119.698767]  (0)[0:swapper/0]task: 000000002125bc46 task.stack: 00000000cc472eb1
<4>[ 3119.698777]  (0)[0:swapper/0]pc : lpm_cpuidle_enter+0x300/0x4f0
<4>[ 3119.698782]  (0)[0:swapper/0]lr : lpm_cpuidle_enter+0x27c/0x4f0
<4>[ 3119.698787]  (0)[0:swapper/0]sp : ffffff9d46e03e10 pstate : a0c00145
<4>[ 3119.698791]  (0)[0:swapper/0]x29: ffffff9d46e03e20 x28: ffffff9d468de670 
<4>[ 3119.698798]  (0)[0:swapper/0]x27: ffffff9d46e0e6e0 x26: ffffffd6bfb6f678 
<4>[ 3119.698804]  (0)[0:swapper/0]x25: ffffff9d47058000 x24: 0000000000000000 
<4>[ 3119.698811]  (0)[0:swapper/0]x23: 0000000000000000 x22: ffffffd6a6e2b080 
<4>[ 3119.698817]  (0)[0:swapper/0]x21: ffffffd6a6e2b780 x20: ffffffd6a6e51480 
<4>[ 3119.698824]  (0)[0:swapper/0]x19: 0000000000000000 x18: 0000000000000000 
<4>[ 3119.698830]  (0)[0:swapper/0]x17: 0000000000000000 x16: 0000014ca1e46108 
<4>[ 3119.698837]  (0)[0:swapper/0]x15: 0000000000223057 x14: 00000000003d0900 
<4>[ 3119.698843]  (0)[0:swapper/0]x13: 0000000000098e52 x12: 0000000034155555 
<4>[ 3119.698850]  (0)[0:swapper/0]x11: 0021abf2b43d1a7c x10: 0000000000000018 
<4>[ 3119.698856]  (0)[0:swapper/0]x9 : 0000000000000001 x8 : 0000000000000000 
<4>[ 3119.698863]  (0)[0:swapper/0]x7 : 0000000000000000 x6 : 0000000000000000 
<4>[ 3119.698869]  (0)[0:swapper/0]x5 : 0000000000000001 x4 : 000002d6689650ff 
<4>[ 3119.698876]  (0)[0:swapper/0]x3 : 0000000000000001 x2 : 0000000000000000 
<4>[ 3119.698882]  (0)[0:swapper/0]x1 : 00000000000001c0 x0 : fffffd299769acf8 
<4>[ 3119.698891]  (0)[0:swapper/0]
<4>[ 3119.698891] PC: 0xffffff9d452ad52c:
<4>[ 3119.698895]  (0)[0:swapper/0]d52c  9000b149 9100a129 2a1f03e1 b8696908 b000b189 911be129 f8687b68 8b090115
<4>[ 3119.698910]  (0)[0:swapper/0]d54c  aa1503e0 97d2b3b6 f10fa01f 5400006b aa1503e0 97d2b310 f900be9f d50342ff
<4>[ 3119.698923]  (0)[0:swapper/0]d56c  2a1303e0 a9464ff4 a94557f6 a9445ff8 a94367fa a9426ffc a9417bfd 9101c3ff
<4>[ 3119.698936]  (0)[0:swapper/0]d58c  d65f03c0 d538d088 9000b149 9100a129 9000db0a 913d014a b8696908 1100fd09
<4>[ 3119.698951]  (0)[0:swapper/0]
<4>[ 3119.698951] LR: 0xffffff9d452ad4a8:
<4>[ 3119.698956]  (0)[0:swapper/0]d4a8  8b090115 aa1503e0 97d2b3de f10fa01f 5400006b aa1503e0 97d2b338 d538d088
<4>[ 3119.698969]  (0)[0:swapper/0]d4c8  2a1f03e1 b8b66908 f8687b68 f87c6908 f940c516 911c02d5 aa1503e0 97d2b3d1
<4>[ 3119.698982]  (0)[0:swapper/0]d4e8  f10fa01f 5400006b aa1503e0 97d2b32b f9433ac8 b4000128 911c0100 2a1f03e1
<4>[ 3119.698995]  (0)[0:swapper/0]d508  97d2b3c8 f10fa01f 5400008b f9433ac8 911c0100 97d2b321 f940be88 b4000228
<4>[ 3119.699010]  (0)[0:swapper/0]
<4>[ 3119.699010] SP: 0xffffff9d46e03dd0:
<4>[ 3119.699014]  (0)[0:swapper/0]3dd0  452ad56c ffffff9d a0c00145 00000000 46e03e20 ffffff9d 452ad4e8 ffffff9d
<4>[ 3119.699028]  (0)[0:swapper/0]3df0  ffffffff ffffffff a6e2b780 ffffffd6 46e03e20 ffffff9d 452ad56c ffffff9d
<4>[ 3119.699041]  (0)[0:swapper/0]3e10  a6e514b0 ffffffd6 46e1cb80 ffffff9d 46e03e80 ffffff9d 452a71a8 ffffff9d
<4>[ 3119.699054]  (0)[0:swapper/0]3e30  468de4d0 ffffff9d 00000001 00000000 46e0e000 ffffff9d 46e0d000 ffffff9d
<4>[ 3119.699068]  (0)[0:swapper/0]
<4>[ 3119.699074]  (0)[0:swapper/0]CPU: 0 PID: 0 Comm: swapper/0 Tainted: G S    D W       4.14.190-perf+ #1
<4>[ 3119.699079]  (0)[0:swapper/0]Hardware name: Qualcomm Technologies, Inc. SM8150 V2 PM8150 MTP (DT)
<4>[ 3119.699084]  (0)[0:swapper/0]Call trace:
<4>[ 3119.699092]  (0)[0:swapper/0] dump_backtrace+0x0/0x1c4
<4>[ 3119.699098]  (0)[0:swapper/0] show_stack+0x14/0x1c
<4>[ 3119.699106]  (0)[0:swapper/0] dump_stack+0xd8/0x110
<4>[ 3119.699112]  (0)[0:swapper/0] handle_IPI+0x12c/0x30c
<4>[ 3119.699118]  (0)[0:swapper/0] gic_handle_irq+0xfc/0x178
<4>[ 3119.699123]  (0)[0:swapper/0] el1_irq+0xe8/0x18c
<4>[ 3119.699128]  (0)[0:swapper/0] lpm_cpuidle_enter+0x300/0x4f0
<4>[ 3119.699136]  (0)[0:swapper/0] cpuidle_enter_state+0x118/0x328
<4>[ 3119.699141]  (0)[0:swapper/0] cpuidle_enter+0x18/0x20
<4>[ 3119.699148]  (0)[0:swapper/0] do_idle+0x1c8/0x260
<4>[ 3119.699153]  (0)[0:swapper/0] cpu_startup_entry+0x20/0x24
<4>[ 3119.699161]  (0)[0:swapper/0] rest_init+0xd0/0xdc
<4>[ 3119.699170]  (0)[0:swapper/0] start_kernel+0x4d4/0x55c
<2>[ 3119.699176]  (2)[0:swapper/2]CPU2: stopping
<4>[ 3119.699185]  (2)[0:swapper/2]CPU: 2 PID: 0 Comm: swapper/2 Tainted: G S    D W       4.14.190-perf+ #1
<4>[ 3119.699190]  (2)[0:swapper/2]Hardware name: Qualcomm Technologies, Inc. SM8150 V2 PM8150 MTP (DT)
<4>[ 3119.699195]  (2)[0:swapper/2]task: 0000000061907ed3 task.stack: 000000006b646ec8
<4>[ 3119.699202]  (2)[0:swapper/2]pc : lpm_cpuidle_enter+0x300/0x4f0
<4>[ 3119.699207]  (2)[0:swapper/2]lr : lpm_cpuidle_enter+0x27c/0x4f0
<4>[ 3119.699212]  (2)[0:swapper/2]sp : ffffff80080dbe80 pstate : a0c00145
<4>[ 3119.699216]  (2)[0:swapper/2]x29: ffffff80080dbe90 x28: ffffff9d468de670 
<4>[ 3119.699222]  (2)[0:swapper/2]x27: ffffff9d46e0e6e0 x26: ffffffd6bfb9b678 
<4>[ 3119.699229]  (2)[0:swapper/2]x25: ffffff9d47058000 x24: 0000000000000000 
<4>[ 3119.699236]  (2)[0:swapper/2]x23: 0000000000000001 x22: ffffffd6a6e2b080 
<4>[ 3119.699242]  (2)[0:swapper/2]x21: ffffffd6a6e2b780 x20: ffffffd6a6e51480 
<4>[ 3119.699249]  (2)[0:swapper/2]x19: 0000000000000000 x18: 0000000000000000 
<4>[ 3119.699255]  (2)[0:swapper/2]x17: 0000000000000000 x16: 00000132f0fe9620 
<4>[ 3119.699261]  (2)[0:swapper/2]x15: 00000000001c2d46 x14: 000000000003d090 
<4>[ 3119.699267]  (2)[0:swapper/2]x13: 0000000000098e52 x12: 0000000034155555 
<4>[ 3119.699274]  (2)[0:swapper/2]x11: 0021abf2b43d1a7c x10: 0000000000000018 
<4>[ 3119.699281]  (2)[0:swapper/2]x9 : 0000000000000001 x8 : 0000000000000000 
<4>[ 3119.699287]  (2)[0:swapper/2]x7 : 0000000000000001 x6 : 0000000000000000 
<4>[ 3119.699293]  (2)[0:swapper/2]x5 : 0000000000000001 x4 : 000002d668965579 
<4>[ 3119.699300]  (2)[0:swapper/2]x3 : 0000000000000001 x2 : 0000000000000000 
<4>[ 3119.699306]  (2)[0:swapper/2]x1 : 00000000000001c0 x0 : fffffd299769a816 
<4>[ 3119.699313]  (2)[0:swapper/2]
<4>[ 3119.699313] PC: 0xffffff9d452ad52c:
<4>[ 3119.699318]  (2)[0:swapper/2]d52c  9000b149 9100a129 2a1f03e1 b8696908 b000b189 911be129 f8687b68 8b090115
<4>[ 3119.699333]  (2)[0:swapper/2]d54c  aa1503e0 97d2b3b6 f10fa01f 5400006b aa1503e0 97d2b310 f900be9f d50342ff
<4>[ 3119.699346]  (2)[0:swapper/2]d56c  2a1303e0 a9464ff4 a94557f6 a9445ff8 a94367fa a9426ffc a9417bfd 9101c3ff
<4>[ 3119.699359]  (2)[0:swapper/2]d58c  d65f03c0 d538d088 9000b149 9100a129 9000db0a 913d014a b8696908 1100fd09
<4>[ 3119.699373]  (2)[0:swapper/2]
<4>[ 3119.699373] LR: 0xffffff9d452ad4a8:
<4>[ 3119.699377]  (2)[0:swapper/2]d4a8  8b090115 aa1503e0 97d2b3de f10fa01f 5400006b aa1503e0 97d2b338 d538d088
<4>[ 3119.699390]  (2)[0:swapper/2]d4c8  2a1f03e1 b8b66908 f8687b68 f87c6908 f940c516 911c02d5 aa1503e0 97d2b3d1
<4>[ 3119.699403]  (2)[0:swapper/2]d4e8  f10fa01f 5400006b aa1503e0 97d2b32b f9433ac8 b4000128 911c0100 2a1f03e1
<4>[ 3119.699416]  (2)[0:swapper/2]d508  97d2b3c8 f10fa01f 5400008b f9433ac8 911c0100 97d2b321 f940be88 b4000228
<4>[ 3119.699430]  (2)[0:swapper/2]
<4>[ 3119.699430] SP: 0xffffff80080dbe40:
<4>[ 3119.699434]  (2)[0:swapper/2]be40  452ad56c ffffff9d a0c00145 00000000 080dbe90 ffffff80 452ad4e8 ffffff9d
<4>[ 3119.699446]  (2)[0:swapper/2]be60  ffffffff ffffffff a6e2b780 ffffffd6 080dbe90 ffffff80 452ad56c ffffff9d
<4>[ 3119.699460]  (2)[0:swapper/2]be80  a6e514b0 ffffffd6 b1f40f00 ffffffd6 080dbef0 ffffff80 452a71a8 ffffff9d
<4>[ 3119.699473]  (2)[0:swapper/2]bea0  468de4d0 ffffff9d 00000001 00000000 46e0e000 ffffff9d 46e0d000 ffffff9d
<4>[ 3119.699486]  (2)[0:swapper/2]
<4>[ 3119.699493]  (2)[0:swapper/2]CPU: 2 PID: 0 Comm: swapper/2 Tainted: G S    D W       4.14.190-perf+ #1
<4>[ 3119.699497]  (2)[0:swapper/2]Hardware name: Qualcomm Technologies, Inc. SM8150 V2 PM8150 MTP (DT)
<4>[ 3119.699502]  (2)[0:swapper/2]Call trace:
<4>[ 3119.699510]  (2)[0:swapper/2] dump_backtrace+0x0/0x1c4
<4>[ 3119.699516]  (2)[0:swapper/2] show_stack+0x14/0x1c
<4>[ 3119.699523]  (2)[0:swapper/2] dump_stack+0xd8/0x110
<4>[ 3119.699529]  (2)[0:swapper/2] handle_IPI+0x12c/0x30c
<4>[ 3119.699534]  (2)[0:swapper/2] gic_handle_irq+0xfc/0x178
<4>[ 3119.699539]  (2)[0:swapper/2] el1_irq+0xe8/0x18c
<4>[ 3119.699545]  (2)[0:swapper/2] lpm_cpuidle_enter+0x300/0x4f0
<4>[ 3119.699551]  (2)[0:swapper/2] cpuidle_enter_state+0x118/0x328
<4>[ 3119.699557]  (2)[0:swapper/2] cpuidle_enter+0x18/0x20
<4>[ 3119.699563]  (2)[0:swapper/2] do_idle+0x1c8/0x260
<4>[ 3119.699569]  (2)[0:swapper/2] cpu_startup_entry+0x20/0x24
<4>[ 3119.699575]  (2)[0:swapper/2] secondary_start_kernel+0x128/0x134
<2>[ 3119.699583]  (1)[0:swapper/1]CPU1: stopping
<4>[ 3119.699593]  (1)[0:swapper/1]CPU: 1 PID: 0 Comm: swapper/1 Tainted: G S    D W       4.14.190-perf+ #1
<4>[ 3119.699598]  (1)[0:swapper/1]Hardware name: Qualcomm Technologies, Inc. SM8150 V2 PM8150 MTP (DT)
<4>[ 3119.699604]  (1)[0:swapper/1]task: 0000000099510757 task.stack: 00000000a7fc5ea0
<4>[ 3119.699610]  (1)[0:swapper/1]pc : lpm_cpuidle_enter+0x300/0x4f0
<4>[ 3119.699615]  (1)[0:swapper/1]lr : lpm_cpuidle_enter+0x27c/0x4f0
<4>[ 3119.699620]  (1)[0:swapper/1]sp : ffffff80080d3e80 pstate : a0c00145
<4>[ 3119.699624]  (1)[0:swapper/1]x29: ffffff80080d3e90 x28: ffffff9d468de670 
<4>[ 3119.699631]  (1)[0:swapper/1]x27: ffffff9d46e0e6e0 x26: ffffffd6bfb85678 
<4>[ 3119.699637]  (1)[0:swapper/1]x25: ffffff9d47058000 x24: 0000000000000001 
<4>[ 3119.699644]  (1)[0:swapper/1]x23: 0000000000000001 x22: ffffffd6a6e2b080 
<4>[ 3119.699650]  (1)[0:swapper/1]x21: ffffffd6a6e2b780 x20: ffffffd6a6e51480 
<4>[ 3119.699656]  (1)[0:swapper/1]x19: 0000000000000001 x18: 0000000000000000 
<4>[ 3119.699663]  (1)[0:swapper/1]x17: 0000000000000000 x16: 000000636334e143 
<4>[ 3119.699669]  (1)[0:swapper/1]x15: 000000000001a0a9 x14: 00000000003d0968 
<4>[ 3119.699677]  (1)[0:swapper/1]x13: 0000000000098e52 x12: 0000000034155555 
<4>[ 3119.699684]  (1)[0:swapper/1]x11: 0021abf2b43d1a7c x10: 0000000000000018 
<4>[ 3119.699690]  (1)[0:swapper/1]x9 : 0000000000000001 x8 : 0000000000000000 
<4>[ 3119.699697]  (1)[0:swapper/1]x7 : 000000b2b5593519 x6 : 0000000000300000 
<4>[ 3119.699703]  (1)[0:swapper/1]x5 : 0000000000000001 x4 : 0000000000000000 
<4>[ 3119.699710]  (1)[0:swapper/1]x3 : 00000000ffffffff x2 : 0000000000000000 
<4>[ 3119.699716]  (1)[0:swapper/1]x1 : 00000000000001c0 x0 : fffffd29976847b6 
<4>[ 3119.699725]  (1)[0:swapper/1]
<4>[ 3119.699725] PC: 0xffffff9d452ad52c:
<4>[ 3119.699729]  (1)[0:swapper/1]d52c  9000b149 9100a129 2a1f03e1 b8696908 b000b189 911be129 f8687b68 8b090115
<4>[ 3119.699744]  (1)[0:swapper/1]d54c  aa1503e0 97d2b3b6 f10fa01f 5400006b aa1503e0 97d2b310 f900be9f d50342ff
<4>[ 3119.699757]  (1)[0:swapper/1]d56c  2a1303e0 a9464ff4 a94557f6 a9445ff8 a94367fa a9426ffc a9417bfd 9101c3ff
<4>[ 3119.699771]  (1)[0:swapper/1]d58c  d65f03c0 d538d088 9000b149 9100a129 9000db0a 913d014a b8696908 1100fd09
<4>[ 3119.699785]  (1)[0:swapper/1]
<4>[ 3119.699785] LR: 0xffffff9d452ad4a8:
<4>[ 3119.699790]  (1)[0:swapper/1]d4a8  8b090115 aa1503e0 97d2b3de f10fa01f 5400006b aa1503e0 97d2b338 d538d088
<4>[ 3119.699803]  (1)[0:swapper/1]d4c8  2a1f03e1 b8b66908 f8687b68 f87c6908 f940c516 911c02d5 aa1503e0 97d2b3d1
<4>[ 3119.699816]  (1)[0:swapper/1]d4e8  f10fa01f 5400006b aa1503e0 97d2b32b f9433ac8 b4000128 911c0100 2a1f03e1
<4>[ 3119.699829]  (1)[0:swapper/1]d508  97d2b3c8 f10fa01f 5400008b f9433ac8 911c0100 97d2b321 f940be88 b4000228
<4>[ 3119.699843]  (1)[0:swapper/1]
<4>[ 3119.699843] SP: 0xffffff80080d3e40:
<4>[ 3119.699847]  (1)[0:swapper/1]3e40  452ad56c ffffff9d a0c00145 00000000 080d3e90 ffffff80 452ad4e8 ffffff9d
<4>[ 3119.699861]  (1)[0:swapper/1]3e60  ffffffff ffffffff a6e2b780 ffffffd6 080d3e90 ffffff80 452ad56c ffffff9d
<4>[ 3119.699874]  (1)[0:swapper/1]3e80  a6e514b0 ffffffd6 b1f0da00 ffffffd6 080d3ef0 ffffff80 452a71a8 ffffff9d
<4>[ 3119.699886]  (1)[0:swapper/1]3ea0  468de4d0 ffffff9d 00000001 00000000 46e0e000 ffffff9d 46e0d000 ffffff9d
<4>[ 3119.699900]  (1)[0:swapper/1]
<4>[ 3119.699906]  (1)[0:swapper/1]CPU: 1 PID: 0 Comm: swapper/1 Tainted: G S    D W       4.14.190-perf+ #1
<4>[ 3119.699911]  (1)[0:swapper/1]Hardware name: Qualcomm Technologies, Inc. SM8150 V2 PM8150 MTP (DT)
<4>[ 3119.699916]  (1)[0:swapper/1]Call trace:
<4>[ 3119.699923]  (1)[0:swapper/1] dump_backtrace+0x0/0x1c4
<4>[ 3119.699929]  (1)[0:swapper/1] show_stack+0x14/0x1c
<4>[ 3119.699936]  (1)[0:swapper/1] dump_stack+0xd8/0x110
<4>[ 3119.699941]  (1)[0:swapper/1] handle_IPI+0x12c/0x30c
<4>[ 3119.699947]  (1)[0:swapper/1] gic_handle_irq+0xfc/0x178
<4>[ 3119.699952]  (1)[0:swapper/1] el1_irq+0xe8/0x18c
<4>[ 3119.699958]  (1)[0:swapper/1] lpm_cpuidle_enter+0x300/0x4f0
<4>[ 3119.699964]  (1)[0:swapper/1] cpuidle_enter_state+0x118/0x328
<4>[ 3119.699969]  (1)[0:swapper/1] cpuidle_enter+0x18/0x20
<4>[ 3119.699975]  (1)[0:swapper/1] do_idle+0x1c8/0x260
<4>[ 3119.699981]  (1)[0:swapper/1] cpu_startup_entry+0x20/0x24
<4>[ 3119.699986]  (1)[0:swapper/1] secondary_start_kernel+0x128/0x134
<2>[ 3119.699995]  (7)[0:swapper/7]CPU7: stopping
<4>[ 3119.700007]  (7)[0:swapper/7]CPU: 7 PID: 0 Comm: swapper/7 Tainted: G S    D W       4.14.190-perf+ #1
<4>[ 3119.700013]  (7)[0:swapper/7]Hardware name: Qualcomm Technologies, Inc. SM8150 V2 PM8150 MTP (DT)
<4>[ 3119.700019]  (7)[0:swapper/7]task: 00000000ca9cf437 task.stack: 00000000d9e59016
<4>[ 3119.700027]  (7)[0:swapper/7]pc : lpm_cpuidle_enter+0x300/0x4f0
<4>[ 3119.700032]  (7)[0:swapper/7]lr : lpm_cpuidle_enter+0x27c/0x4f0
<4>[ 3119.700037]  (7)[0:swapper/7]sp : ffffff800820be80 pstate : a0c00145
<4>[ 3119.700041]  (7)[0:swapper/7]x29: ffffff800820be90 x28: ffffff9d468de670 
<4>[ 3119.700049]  (7)[0:swapper/7]x27: ffffff9d46e0e6e0 x26: ffffffd6bfc09678 
<4>[ 3119.700056]  (7)[0:swapper/7]x25: ffffff9d47058000 x24: 0000000000000001 
<4>[ 3119.700062]  (7)[0:swapper/7]x23: 0000000000000004 x22: ffffffd6a6e2b080 
<4>[ 3119.700069]  (7)[0:swapper/7]x21: ffffffd6a6e2b780 x20: ffffffd6a6e55880 
<4>[ 3119.700075]  (7)[0:swapper/7]x19: 0000000000000001 x18: 0000000000000001 
<4>[ 3119.700082]  (7)[0:swapper/7]x17: 0000000000000002 x16: 000002a57a91ec94 
<4>[ 3119.700088]  (7)[0:swapper/7]x15: 0000000000002b79 x14: 00000000f453d74f 
<4>[ 3119.700095]  (7)[0:swapper/7]x13: 0000000000098e52 x12: 0000000034155555 
<4>[ 3119.700101]  (7)[0:swapper/7]x11: 0021abf2b43d1a7c x10: 0000000000000018 
<4>[ 3119.700108]  (7)[0:swapper/7]x9 : 0000000000000001 x8 : 0000000000000000 
<4>[ 3119.700115]  (7)[0:swapper/7]x7 : 000000b2b5593519 x6 : 0000000000300000 
<4>[ 3119.700121]  (7)[0:swapper/7]x5 : 0000000000000001 x4 : 0000000000000000 
<4>[ 3119.700127]  (7)[0:swapper/7]x3 : 00000000ffffffff x2 : 0000000000000000 
<4>[ 3119.700134]  (7)[0:swapper/7]x1 : 00000000000001c0 x0 : fffffd29975f1359 
<4>[ 3119.700141]  (7)[0:swapper/7]
<4>[ 3119.700141] PC: 0xffffff9d452ad52c:
<4>[ 3119.700146]  (7)[0:swapper/7]d52c  9000b149 9100a129 2a1f03e1 b8696908 b000b189 911be129 f8687b68 8b090115
<4>[ 3119.700162]  (7)[0:swapper/7]d54c  aa1503e0 97d2b3b6 f10fa01f 5400006b aa1503e0 97d2b310 f900be9f d50342ff
<4>[ 3119.700176]  (7)[0:swapper/7]d56c  2a1303e0 a9464ff4 a94557f6 a9445ff8 a94367fa a9426ffc a9417bfd 9101c3ff
<4>[ 3119.700190]  (7)[0:swapper/7]d58c  d65f03c0 d538d088 9000b149 9100a129 9000db0a 913d014a b8696908 1100fd09
<4>[ 3119.700205]  (7)[0:swapper/7]
<4>[ 3119.700205] LR: 0xffffff9d452ad4a8:
<4>[ 3119.700210]  (7)[0:swapper/7]d4a8  8b090115 aa1503e0 97d2b3de f10fa01f 5400006b aa1503e0 97d2b338 d538d088
<4>[ 3119.700224]  (7)[0:swapper/7]d4c8  2a1f03e1 b8b66908 f8687b68 f87c6908 f940c516 911c02d5 aa1503e0 97d2b3d1
<4>[ 3119.700238]  (7)[0:swapper/7]d4e8  f10fa01f 5400006b aa1503e0 97d2b32b f9433ac8 b4000128 911c0100 2a1f03e1
<4>[ 3119.700252]  (7)[0:swapper/7]d508  97d2b3c8 f10fa01f 5400008b f9433ac8 911c0100 97d2b321 f940be88 b4000228
<4>[ 3119.700267]  (7)[0:swapper/7]
<4>[ 3119.700267] SP: 0xffffff800820be40:
<4>[ 3119.700271]  (7)[0:swapper/7]be40  452ad56c ffffff9d a0c00145 00000000 0820be90 ffffff80 452ad4e8 ffffff9d
<4>[ 3119.700285]  (7)[0:swapper/7]be60  ffffffff ffffffff a6e2b780 ffffffd6 0820be90 ffffff80 452ad56c ffffff9d
<4>[ 3119.700299]  (7)[0:swapper/7]be80  0820be90 ffffff80 b1f42d00 ffffffd6 0820bef0 ffffff80 452a71a8 ffffff9d
<4>[ 3119.700313]  (7)[0:swapper/7]bea0  468de4d0 ffffff9d 00000001 00000000 46e0e000 ffffff9d 46e0d000 ffffff9d
<4>[ 3119.700328]  (7)[0:swapper/7]
<4>[ 3119.700334]  (7)[0:swapper/7]CPU: 7 PID: 0 Comm: swapper/7 Tainted: G S    D W       4.14.190-perf+ #1
<4>[ 3119.700339]  (7)[0:swapper/7]Hardware name: Qualcomm Technologies, Inc. SM8150 V2 PM8150 MTP (DT)
<4>[ 3119.700344]  (7)[0:swapper/7]Call trace:
<4>[ 3119.700353]  (7)[0:swapper/7] dump_backtrace+0x0/0x1c4
<4>[ 3119.700360]  (7)[0:swapper/7] show_stack+0x14/0x1c
<4>[ 3119.700368]  (7)[0:swapper/7] dump_stack+0xd8/0x110
<4>[ 3119.700375]  (7)[0:swapper/7] handle_IPI+0x12c/0x30c
<4>[ 3119.700380]  (7)[0:swapper/7] gic_handle_irq+0xfc/0x178
<4>[ 3119.700386]  (7)[0:swapper/7] el1_irq+0xe8/0x18c
<4>[ 3119.700391]  (7)[0:swapper/7] lpm_cpuidle_enter+0x300/0x4f0
<4>[ 3119.700398]  (7)[0:swapper/7] cpuidle_enter_state+0x118/0x328
<4>[ 3119.700404]  (7)[0:swapper/7] cpuidle_enter+0x18/0x20
<4>[ 3119.700411]  (7)[0:swapper/7] do_idle+0x1c8/0x260
<4>[ 3119.700417]  (7)[0:swapper/7] cpu_startup_entry+0x20/0x24
<4>[ 3119.700423]  (7)[0:swapper/7] secondary_start_kernel+0x128/0x134
<2>[ 3119.700429]  (6)[0:swapper/6]CPU6: stopping
<4>[ 3119.700434]  (6)[0:swapper/6]CPU: 6 PID: 0 Comm: swapper/6 Tainted: G S    D W       4.14.190-perf+ #1
<4>[ 3119.700437]  (6)[0:swapper/6]Hardware name: Qualcomm Technologies, Inc. SM8150 V2 PM8150 MTP (DT)
<4>[ 3119.700440]  (6)[0:swapper/6]task: 000000000f84880b task.stack: 0000000005a67135
<4>[ 3119.700445]  (6)[0:swapper/6]pc : lpm_cpuidle_enter+0x300/0x4f0
<4>[ 3119.700448]  (6)[0:swapper/6]lr : lpm_cpuidle_enter+0x27c/0x4f0
<4>[ 3119.700450]  (6)[0:swapper/6]sp : ffffff80080fbe80 pstate : a0c00145
<4>[ 3119.700452]  (6)[0:swapper/6]x29: ffffff80080fbe90 x28: ffffff9d468de670 
<4>[ 3119.700455]  (6)[0:swapper/6]x27: ffffff9d46e0e6e0 x26: ffffffd6bfbf3678 
<4>[ 3119.700458]  (6)[0:swapper/6]x25: ffffff9d47058000 x24: 0000000000000001 
<4>[ 3119.700461]  (6)[0:swapper/6]x23: 0000000000000002 x22: ffffffd6a6e2b080 
<4>[ 3119.700463]  (6)[0:swapper/6]x21: ffffffd6a6e2b780 x20: ffffffd6a6e55880 
<4>[ 3119.700466]  (6)[0:swapper/6]x19: 0000000000000001 x18: 0000000000000000 
<4>[ 3119.700468]  (6)[0:swapper/6]x17: 0000000000000000 x16: 0000026fa67878c1 
<4>[ 3119.700471]  (6)[0:swapper/6]x15: 0000000000014c3a x14: 0000000003d09e09 
<4>[ 3119.700473]  (6)[0:swapper/6]x13: 0000000000098e52 x12: 0000000034155555 
<4>[ 3119.700476]  (6)[0:swapper/6]x11: 0021abf2b43d1a7c x10: 0000000000000018 
<4>[ 3119.700479]  (6)[0:swapper/6]x9 : 0000000000000001 x8 : 0000000000000000 
<4>[ 3119.700482]  (6)[0:swapper/6]x7 : 000000b2b5593519 x6 : 0000000000300000 
<4>[ 3119.700484]  (6)[0:swapper/6]x5 : 0000000000000001 x4 : 0000000000000000 
<4>[ 3119.700486]  (6)[0:swapper/6]x3 : 00000000ffffffff x2 : 0000000000000000 
<4>[ 3119.700489]  (6)[0:swapper/6]x1 : 00000000000001c0 x0 : fffffd29975ef026 
<4>[ 3119.700492]  (6)[0:swapper/6]
<4>[ 3119.700492] PC: 0xffffff9d452ad52c:
<4>[ 3119.700494]  (6)[0:swapper/6]d52c  9000b149 9100a129 2a1f03e1 b8696908 b000b189 911be129 f8687b68 8b090115
<4>[ 3119.700501]  (6)[0:swapper/6]d54c  aa1503e0 97d2b3b6 f10fa01f 5400006b aa1503e0 97d2b310 f900be9f d50342ff
<4>[ 3119.700506]  (6)[0:swapper/6]d56c  2a1303e0 a9464ff4 a94557f6 a9445ff8 a94367fa a9426ffc a9417bfd 9101c3ff
<4>[ 3119.700511]  (6)[0:swapper/6]d58c  d65f03c0 d538d088 9000b149 9100a129 9000db0a 913d014a b8696908 1100fd09
<4>[ 3119.700516]  (6)[0:swapper/6]
<4>[ 3119.700516] LR: 0xffffff9d452ad4a8:
<4>[ 3119.700518]  (6)[0:swapper/6]d4a8  8b090115 aa1503e0 97d2b3de f10fa01f 5400006b aa1503e0 97d2b338 d538d088
<4>[ 3119.700523]  (6)[0:swapper/6]d4c8  2a1f03e1 b8b66908 f8687b68 f87c6908 f940c516 911c02d5 aa1503e0 97d2b3d1
<4>[ 3119.700528]  (6)[0:swapper/6]d4e8  f10fa01f 5400006b aa1503e0 97d2b32b f9433ac8 b4000128 911c0100 2a1f03e1
<4>[ 3119.700533]  (6)[0:swapper/6]d508  97d2b3c8 f10fa01f 5400008b f9433ac8 911c0100 97d2b321 f940be88 b4000228
<4>[ 3119.700539]  (6)[0:swapper/6]
<4>[ 3119.700539] SP: 0xffffff80080fbe40:
<4>[ 3119.700541]  (6)[0:swapper/6]be40  452ad56c ffffff9d a0c00145 00000000 080fbe90 ffffff80 452ad4e8 ffffff9d
<4>[ 3119.700546]  (6)[0:swapper/6]be60  ffffffff ffffffff a6e2b780 ffffffd6 080fbe90 ffffff80 452ad56c ffffff9d
<4>[ 3119.700551]  (6)[0:swapper/6]be80  080fbe90 ffffff80 b1f40000 ffffffd6 080fbef0 ffffff80 452a71a8 ffffff9d
<4>[ 3119.700556]  (6)[0:swapper/6]bea0  468de4d0 ffffff9d 00000001 00000000 46e0e000 ffffff9d 46e0d000 ffffff9d
<4>[ 3119.700562]  (6)[0:swapper/6]
<4>[ 3119.700564]  (6)[0:swapper/6]CPU: 6 PID: 0 Comm: swapper/6 Tainted: G S    D W       4.14.190-perf+ #1
<4>[ 3119.700566]  (6)[0:swapper/6]Hardware name: Qualcomm Technologies, Inc. SM8150 V2 PM8150 MTP (DT)
<4>[ 3119.700568]  (6)[0:swapper/6]Call trace:
<4>[ 3119.700575]  (6)[0:swapper/6] dump_backtrace+0x0/0x1c4
<4>[ 3119.700578]  (6)[0:swapper/6] show_stack+0x14/0x1c
<4>[ 3119.700584]  (6)[0:swapper/6] dump_stack+0xd8/0x110
<4>[ 3119.700587]  (6)[0:swapper/6] handle_IPI+0x12c/0x30c
<4>[ 3119.700590]  (6)[0:swapper/6] gic_handle_irq+0xfc/0x178
<4>[ 3119.700592]  (6)[0:swapper/6] el1_irq+0xe8/0x18c
<4>[ 3119.700594]  (6)[0:swapper/6] lpm_cpuidle_enter+0x300/0x4f0
<4>[ 3119.700597]  (6)[0:swapper/6] cpuidle_enter_state+0x118/0x328
<4>[ 3119.700599]  (6)[0:swapper/6] cpuidle_enter+0x18/0x20
<4>[ 3119.700603]  (6)[0:swapper/6] do_idle+0x1c8/0x260
<4>[ 3119.700605]  (6)[0:swapper/6] cpu_startup_entry+0x20/0x24
<4>[ 3119.700607]  (6)[0:swapper/6] secondary_start_kernel+0x128/0x134
<2>[ 3119.700611]  (4)[0:swapper/4]CPU4: stopping
<4>[ 3119.700618]  (4)[0:swapper/4]CPU: 4 PID: 0 Comm: swapper/4 Tainted: G S    D W       4.14.190-perf+ #1
<4>[ 3119.700621]  (4)[0:swapper/4]Hardware name: Qualcomm Technologies, Inc. SM8150 V2 PM8150 MTP (DT)
<4>[ 3119.700625]  (4)[0:swapper/4]task: 000000007a40826e task.stack: 000000009027fe22
<4>[ 3119.700631]  (4)[0:swapper/4]pc : lpm_cpuidle_enter+0x300/0x4f0
<4>[ 3119.700633]  (4)[0:swapper/4]lr : lpm_cpuidle_enter+0x27c/0x4f0
<4>[ 3119.700636]  (4)[0:swapper/4]sp : ffffff80080ebe80 pstate : a0c00145
<4>[ 3119.700637]  (4)[0:swapper/4]x29: ffffff80080ebe90 x28: ffffff9d468de670 
<4>[ 3119.700641]  (4)[0:swapper/4]x27: ffffff9d46e0e6e0 x26: ffffffd6bfbc7678 
<4>[ 3119.700643]  (4)[0:swapper/4]x25: ffffff9d47058000 x24: 0000000000000001 
<4>[ 3119.700646]  (4)[0:swapper/4]x23: 0000000000000003 x22: ffffffd6a6e2b080 
<4>[ 3119.700649]  (4)[0:swapper/4]x21: ffffffd6a6e2b780 x20: ffffffd6a6e55880 
<4>[ 3119.700651]  (4)[0:swapper/4]x19: 0000000000000001 x18: 0000000000000000 
<4>[ 3119.700654]  (4)[0:swapper/4]x17: 0000000000000003 x16: 0000026f987b4b23 
<4>[ 3119.700656]  (4)[0:swapper/4]x15: 0000000000016e1c x14: 00000000f4ce7619 
<4>[ 3119.700659]  (4)[0:swapper/4]x13: 0000000000098e52 x12: 0000000034155555 
<4>[ 3119.700662]  (4)[0:swapper/4]x11: 0021abf2b43d1a7c x10: 0000000000000018 
<4>[ 3119.700665]  (4)[0:swapper/4]x9 : 0000000000000001 x8 : 0000000000000000 
<4>[ 3119.700667]  (4)[0:swapper/4]x7 : 000000b2b5593519 x6 : 0000000000300000 
<4>[ 3119.700670]  (4)[0:swapper/4]x5 : 0000000000000001 x4 : 0000000000000000 
<4>[ 3119.700673]  (4)[0:swapper/4]x3 : 00000000ffffffff x2 : 0000000000000000 
<4>[ 3119.700675]  (4)[0:swapper/4]x1 : 00000000000001c0 x0 : fffffd29975e8d46 
<4>[ 3119.700679]  (4)[0:swapper/4]
<4>[ 3119.700679] PC: 0xffffff9d452ad52c:
<4>[ 3119.700681]  (4)[0:swapper/4]d52c  9000b149 9100a129 2a1f03e1 b8696908 b000b189 911be129 f8687b68 8b090115
<4>[ 3119.700688]  (4)[0:swapper/4]d54c  aa1503e0 97d2b3b6 f10fa01f 5400006b aa1503e0 97d2b310 f900be9f d50342ff
<4>[ 3119.700694]  (4)[0:swapper/4]d56c  2a1303e0 a9464ff4 a94557f6 a9445ff8 a94367fa a9426ffc a9417bfd 9101c3ff
<4>[ 3119.700699]  (4)[0:swapper/4]d58c  d65f03c0 d538d088 9000b149 9100a129 9000db0a 913d014a b8696908 1100fd09
<4>[ 3119.700705]  (4)[0:swapper/4]
<4>[ 3119.700705] LR: 0xffffff9d452ad4a8:
<4>[ 3119.700707]  (4)[0:swapper/4]d4a8  8b090115 aa1503e0 97d2b3de f10fa01f 5400006b aa1503e0 97d2b338 d538d088
<4>[ 3119.700712]  (4)[0:swapper/4]d4c8  2a1f03e1 b8b66908 f8687b68 f87c6908 f940c516 911c02d5 aa1503e0 97d2b3d1
<4>[ 3119.700718]  (4)[0:swapper/4]d4e8  f10fa01f 5400006b aa1503e0 97d2b32b f9433ac8 b4000128 911c0100 2a1f03e1
<4>[ 3119.700723]  (4)[0:swapper/4]d508  97d2b3c8 f10fa01f 5400008b f9433ac8 911c0100 97d2b321 f940be88 b4000228
<4>[ 3119.700729]  (4)[0:swapper/4]
<4>[ 3119.700729] SP: 0xffffff80080ebe40:
<4>[ 3119.700731]  (4)[0:swapper/4]be40  452ad56c ffffff9d a0c00145 00000000 080ebe90 ffffff80 452ad4e8 ffffff9d
<4>[ 3119.700736]  (4)[0:swapper/4]be60  ffffffff ffffffff a6e2b780 ffffffd6 080ebe90 ffffff80 452ad56c ffffff9d
<4>[ 3119.700742]  (4)[0:swapper/4]be80  080ebe90 ffffff80 b1f43c00 ffffffd6 080ebef0 ffffff80 452a71a8 ffffff9d
<4>[ 3119.700747]  (4)[0:swapper/4]bea0  468de4d0 ffffff9d 00000001 00000000 46e0e000 ffffff9d 46e0d000 ffffff9d
<4>[ 3119.700752]  (4)[0:swapper/4]
<4>[ 3119.700755]  (4)[0:swapper/4]CPU: 4 PID: 0 Comm: swapper/4 Tainted: G S    D W       4.14.190-perf+ #1
<4>[ 3119.700757]  (4)[0:swapper/4]Hardware name: Qualcomm Technologies, Inc. SM8150 V2 PM8150 MTP (DT)
<4>[ 3119.700759]  (4)[0:swapper/4]Call trace:
<4>[ 3119.700766]  (4)[0:swapper/4] dump_backtrace+0x0/0x1c4
<4>[ 3119.700769]  (4)[0:swapper/4] show_stack+0x14/0x1c
<4>[ 3119.700775]  (4)[0:swapper/4] dump_stack+0xd8/0x110
<4>[ 3119.700777]  (4)[0:swapper/4] handle_IPI+0x12c/0x30c
<4>[ 3119.700780]  (4)[0:swapper/4] gic_handle_irq+0xfc/0x178
<4>[ 3119.700782]  (4)[0:swapper/4] el1_irq+0xe8/0x18c
<4>[ 3119.700785]  (4)[0:swapper/4] lpm_cpuidle_enter+0x300/0x4f0
<4>[ 3119.700788]  (4)[0:swapper/4] cpuidle_enter_state+0x118/0x328
<4>[ 3119.700790]  (4)[0:swapper/4] cpuidle_enter+0x18/0x20
<4>[ 3119.700794]  (4)[0:swapper/4] do_idle+0x1c8/0x260
<4>[ 3119.700796]  (4)[0:swapper/4] cpu_startup_entry+0x20/0x24
<4>[ 3119.700798]  (4)[0:swapper/4] secondary_start_kernel+0x128/0x134
<2>[ 3119.700802]  (5)[0:swapper/5]CPU5: stopping
<4>[ 3119.700809]  (5)[0:swapper/5]CPU: 5 PID: 0 Comm: swapper/5 Tainted: G S    D W       4.14.190-perf+ #1
<4>[ 3119.700812]  (5)[0:swapper/5]Hardware name: Qualcomm Technologies, Inc. SM8150 V2 PM8150 MTP (DT)
<4>[ 3119.700815]  (5)[0:swapper/5]task: 00000000b41a067b task.stack: 00000000f4cd4fbd
<4>[ 3119.700822]  (5)[0:swapper/5]pc : lpm_cpuidle_enter+0x300/0x4f0
<4>[ 3119.700824]  (5)[0:swapper/5]lr : lpm_cpuidle_enter+0x27c/0x4f0
<4>[ 3119.700827]  (5)[0:swapper/5]sp : ffffff80080f3e80 pstate : a0c00145
<4>[ 3119.700829]  (5)[0:swapper/5]x29: ffffff80080f3e90 x28: ffffff9d468de670 
<4>[ 3119.700832]  (5)[0:swapper/5]x27: ffffff9d46e0e6e0 x26: ffffffd6bfbdd678 
<4>[ 3119.700834]  (5)[0:swapper/5]x25: ffffff9d47058000 x24: 0000000000000001 
<4>[ 3119.700837]  (5)[0:swapper/5]x23: 0000000000000004 x22: ffffffd6a6e2b080 
<4>[ 3119.700840]  (5)[0:swapper/5]x21: ffffffd6a6e2b780 x20: ffffffd6a6e55880 
<4>[ 3119.700842]  (5)[0:swapper/5]x19: 0000000000000001 x18: 0000000000000000 
<4>[ 3119.700844]  (5)[0:swapper/5]x17: 0000000000000000 x16: 0000027005097df4 
<4>[ 3119.700847]  (5)[0:swapper/5]x15: 0000000000014baa x14: 0000000003d21df3 
<4>[ 3119.700850]  (5)[0:swapper/5]x13: 0000000000098e52 x12: 0000000034155555 
<4>[ 3119.700852]  (5)[0:swapper/5]x11: 0021abf2b43d1a7c x10: 0000000000000018 
<4>[ 3119.700855]  (5)[0:swapper/5]x9 : 0000000000000001 x8 : 0000000000000000 
<4>[ 3119.700858]  (5)[0:swapper/5]x7 : 000000b2b5593519 x6 : 0000000000300000 
<4>[ 3119.700860]  (5)[0:swapper/5]x5 : 0000000000000001 x4 : 0000000000000000 
<4>[ 3119.700863]  (5)[0:swapper/5]x3 : 00000000ffffffff x2 : 0000000000000000 
<4>[ 3119.700866]  (5)[0:swapper/5]x1 : 00000000000001c0 x0 : fffffd29975e2242 
<4>[ 3119.700869]  (5)[0:swapper/5]
<4>[ 3119.700869] PC: 0xffffff9d452ad52c:
<4>[ 3119.700871]  (5)[0:swapper/5]d52c  9000b149 9100a129 2a1f03e1 b8696908 b000b189 911be129 f8687b68 8b090115
<4>[ 3119.700878]  (5)[0:swapper/5]d54c  aa1503e0 97d2b3b6 f10fa01f 5400006b aa1503e0 97d2b310 f900be9f d50342ff
<4>[ 3119.700883]  (5)[0:swapper/5]d56c  2a1303e0 a9464ff4 a94557f6 a9445ff8 a94367fa a9426ffc a9417bfd 9101c3ff
<4>[ 3119.700889]  (5)[0:swapper/5]d58c  d65f03c0 d538d088 9000b149 9100a129 9000db0a 913d014a b8696908 1100fd09
<4>[ 3119.700895]  (5)[0:swapper/5]
<4>[ 3119.700895] LR: 0xffffff9d452ad4a8:
<4>[ 3119.700896]  (5)[0:swapper/5]d4a8  8b090115 aa1503e0 97d2b3de f10fa01f 5400006b aa1503e0 97d2b338 d538d088
<4>[ 3119.700902]  (5)[0:swapper/5]d4c8  2a1f03e1 b8b66908 f8687b68 f87c6908 f940c516 911c02d5 aa1503e0 97d2b3d1
<4>[ 3119.700908]  (5)[0:swapper/5]d4e8  f10fa01f 5400006b aa1503e0 97d2b32b f9433ac8 b4000128 911c0100 2a1f03e1
<4>[ 3119.700913]  (5)[0:swapper/5]d508  97d2b3c8 f10fa01f 5400008b f9433ac8 911c0100 97d2b321 f940be88 b4000228
<4>[ 3119.700919]  (5)[0:swapper/5]
<4>[ 3119.700919] SP: 0xffffff80080f3e40:
<4>[ 3119.700921]  (5)[0:swapper/5]3e40  452ad56c ffffff9d a0c00145 00000000 080f3e90 ffffff80 452ad4e8 ffffff9d
<4>[ 3119.700926]  (5)[0:swapper/5]3e60  ffffffff ffffffff a6e2b780 ffffffd6 080f3e90 ffffff80 452ad56c ffffff9d
<4>[ 3119.700931]  (5)[0:swapper/5]3e80  080f3e90 ffffff80 b1f45a00 ffffffd6 080f3ef0 ffffff80 452a71a8 ffffff9d
<4>[ 3119.700936]  (5)[0:swapper/5]3ea0  468de4d0 ffffff9d 00000001 00000000 46e0e000 ffffff9d 46e0d000 ffffff9d
<4>[ 3119.700942]  (5)[0:swapper/5]
<4>[ 3119.700944]  (5)[0:swapper/5]CPU: 5 PID: 0 Comm: swapper/5 Tainted: G S    D W       4.14.190-perf+ #1
<4>[ 3119.700946]  (5)[0:swapper/5]Hardware name: Qualcomm Technologies, Inc. SM8150 V2 PM8150 MTP (DT)
<4>[ 3119.700948]  (5)[0:swapper/5]Call trace:
<4>[ 3119.700955]  (5)[0:swapper/5] dump_backtrace+0x0/0x1c4
<4>[ 3119.700958]  (5)[0:swapper/5] show_stack+0x14/0x1c
<4>[ 3119.700964]  (5)[0:swapper/5] dump_stack+0xd8/0x110
<4>[ 3119.700967]  (5)[0:swapper/5] handle_IPI+0x12c/0x30c
<4>[ 3119.700969]  (5)[0:swapper/5] gic_handle_irq+0xfc/0x178
<4>[ 3119.700971]  (5)[0:swapper/5] el1_irq+0xe8/0x18c
<4>[ 3119.700974]  (5)[0:swapper/5] lpm_cpuidle_enter+0x300/0x4f0
<4>[ 3119.700978]  (5)[0:swapper/5] cpuidle_enter_state+0x118/0x328
<4>[ 3119.700980]  (5)[0:swapper/5] cpuidle_enter+0x18/0x20
<4>[ 3119.700984]  (5)[0:swapper/5] do_idle+0x1c8/0x260
<4>[ 3119.700986]  (5)[0:swapper/5] cpu_startup_entry+0x20/0x24
<4>[ 3119.700989]  (5)[0:swapper/5] secondary_start_kernel+0x128/0x134
<3>[ 3120.301073]  (3)[31797:kworker/u16:3]ipa ipa3_active_clients_panic_notifier:293 
<3>[ 3120.301073] ---- Active Clients Table ----
<3>[ 3120.301073] 
<3>[ 3120.301073] Total active clients count: 0
<3>[ 3120.301073] 
<0>[ 3120.301091]  (3)[31797:kworker/u16:3]Kernel Offset: 0x1d3c600000 from 0xffffff8008000000
<0>[ 3120.301098]  (3)[31797:kworker/u16:3]CPU features: 0x13002218
<0>[ 3120.301103]  (3)[31797:kworker/u16:3]Memory Limit: none
@weisuofayubc
Copy link
Author

kernel.log

zahid5656 referenced this issue in zahid5656/android_kernel_realme_sm8150 Jun 18, 2024
LLVM's integrated assembler appears to assume an argument with default
value is passed whenever it sees a comma right after the macro name.
It will be fine if the number of following arguments is one less than
the number of parameters specified in the macro definition. Otherwise,
it fails. For example, the following code works:

$ cat foo.s
.macro  foo arg1=2, arg2=4
        ldr r0, [r1, #\arg1]
        ldr r0, [r1, #\arg2]
.endm

foo, arg2=8

$ llvm-mc -triple=armv7a -filetype=obj foo.s -o ias.o
arm-linux-gnueabihf-objdump -dr ias.o

ias.o:     file format elf32-littlearm

Disassembly of section .text:

00000000 <.text>:
   0: e5910001 ldr r0, [r1, #2]
   4: e5910003 ldr r0, [r1, #8]

While the the following code would fail:

$ cat foo.s
.macro  foo arg1=2, arg2=4
        ldr r0, [r1, #\arg1]
        ldr r0, [r1, #\arg2]
.endm

foo, arg1=2, arg2=8

$ llvm-mc -triple=armv7a -filetype=obj foo.s -o ias.o
foo.s:6:14: error: too many positional arguments
foo, arg1=2, arg2=8

This causes build failures as follows:

arch/arm64/kernel/vdso/gettimeofday.S:230:24: error: too many positional
arguments
 clock_gettime_return, shift=1
                       ^
arch/arm64/kernel/vdso/gettimeofday.S:253:24: error: too many positional
arguments
 clock_gettime_return, shift=1
                       ^
arch/arm64/kernel/vdso/gettimeofday.S:274:24: error: too many positional
arguments
 clock_gettime_return, shift=1

This error is not in mainline because commit 28b1a824a4f4 ("arm64: vdso:
Substitute gettimeofday() with C implementation") rewrote this assembler
file in C as part of a 25 patch series that is unsuitable for stable.
Just remove the comma in the clock_gettime_return invocations in 4.19 so
that GNU as and LLVM's integrated assembler work the same.

Link:
ClangBuiltLinux/linux#1349

Suggested-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Jian Cai <jiancai@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I486569c6af5d4bb3f5651dccdca1436be0a16bae
karthick111 pushed a commit that referenced this issue Jun 20, 2024
[ Upstream commit a154f5f643c6ecddd44847217a7a3845b4350003 ]

The following call trace shows a deadlock issue due to recursive locking of
mutex "device_mutex". First lock acquire is in target_for_each_device() and
second in target_free_device().

 PID: 148266   TASK: ffff8be21ffb5d00  CPU: 10   COMMAND: "iscsi_ttx"
  #0 [ffffa2bfc9ec3b18] __schedule at ffffffffa8060e7f
  #1 [ffffa2bfc9ec3ba0] schedule at ffffffffa8061224
  #2 [ffffa2bfc9ec3bb8] schedule_preempt_disabled at ffffffffa80615ee
  #3 [ffffa2bfc9ec3bc8] __mutex_lock at ffffffffa8062fd7
  #4 [ffffa2bfc9ec3c40] __mutex_lock_slowpath at ffffffffa80631d3
  #5 [ffffa2bfc9ec3c50] mutex_lock at ffffffffa806320c
  #6 [ffffa2bfc9ec3c68] target_free_device at ffffffffc0935998 [target_core_mod]
  #7 [ffffa2bfc9ec3c90] target_core_dev_release at ffffffffc092f975 [target_core_mod]
  #8 [ffffa2bfc9ec3ca0] config_item_put at ffffffffa79d250f
  #9 [ffffa2bfc9ec3cd0] config_item_put at ffffffffa79d2583
 #10 [ffffa2bfc9ec3ce0] target_devices_idr_iter at ffffffffc0933f3a [target_core_mod]
 #11 [ffffa2bfc9ec3d00] idr_for_each at ffffffffa803f6fc
 #12 [ffffa2bfc9ec3d60] target_for_each_device at ffffffffc0935670 [target_core_mod]
 #13 [ffffa2bfc9ec3d98] transport_deregister_session at ffffffffc0946408 [target_core_mod]
 #14 [ffffa2bfc9ec3dc8] iscsit_close_session at ffffffffc09a44a6 [iscsi_target_mod]
 #15 [ffffa2bfc9ec3df0] iscsit_close_connection at ffffffffc09a4a88 [iscsi_target_mod]
 #16 [ffffa2bfc9ec3df8] finish_task_switch at ffffffffa76e5d07
 #17 [ffffa2bfc9ec3e78] iscsit_take_action_for_connection_exit at ffffffffc0991c23 [iscsi_target_mod]
 #18 [ffffa2bfc9ec3ea0] iscsi_target_tx_thread at ffffffffc09a403b [iscsi_target_mod]
 #19 [ffffa2bfc9ec3f08] kthread at ffffffffa76d8080
 #20 [ffffa2bfc9ec3f50] ret_from_fork at ffffffffa8200364

Fixes: 36d4cb460bcb ("scsi: target: Avoid that EXTENDED COPY commands trigger lock inversion")
Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com>
Link: https://lore.kernel.org/r/20230918225848.66463-1-junxiao.bi@oracle.com
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
karthick111 pushed a commit that referenced this issue Jun 20, 2024
commit 5a22fbcc10f3f7d94c5d88afbbffa240a3677057 upstream.

When LAN9303 is MDIO-connected two callchains exist into
mdio->bus->write():

1. switch ports 1&2 ("physical" PHYs):

virtual (switch-internal) MDIO bus (lan9303_switch_ops->phy_{read|write})->
  lan9303_mdio_phy_{read|write} -> mdiobus_{read|write}_nested

2. LAN9303 virtual PHY:

virtual MDIO bus (lan9303_phy_{read|write}) ->
  lan9303_virt_phy_reg_{read|write} -> regmap -> lan9303_mdio_{read|write}

If the latter functions just take
mutex_lock(&sw_dev->device->bus->mdio_lock) it triggers a LOCKDEP
false-positive splat. It's false-positive because the first
mdio_lock in the second callchain above belongs to virtual MDIO bus, the
second mdio_lock belongs to physical MDIO bus.

Consequent annotation in lan9303_mdio_{read|write} as nested lock
(similar to lan9303_mdio_phy_{read|write}, it's the same physical MDIO bus)
prevents the following splat:

WARNING: possible circular locking dependency detected
5.15.71 #1 Not tainted
------------------------------------------------------
kworker/u4:3/609 is trying to acquire lock:
ffff000011531c68 (lan9303_mdio:131:(&lan9303_mdio_regmap_config)->lock){+.+.}-{3:3}, at: regmap_lock_mutex
but task is already holding lock:
ffff0000114c44d8 (&bus->mdio_lock){+.+.}-{3:3}, at: mdiobus_read
which lock already depends on the new lock.
the existing dependency chain (in reverse order) is:
-> #1 (&bus->mdio_lock){+.+.}-{3:3}:
       lock_acquire
       __mutex_lock
       mutex_lock_nested
       lan9303_mdio_read
       _regmap_read
       regmap_read
       lan9303_probe
       lan9303_mdio_probe
       mdio_probe
       really_probe
       __driver_probe_device
       driver_probe_device
       __device_attach_driver
       bus_for_each_drv
       __device_attach
       device_initial_probe
       bus_probe_device
       deferred_probe_work_func
       process_one_work
       worker_thread
       kthread
       ret_from_fork
-> #0 (lan9303_mdio:131:(&lan9303_mdio_regmap_config)->lock){+.+.}-{3:3}:
       __lock_acquire
       lock_acquire.part.0
       lock_acquire
       __mutex_lock
       mutex_lock_nested
       regmap_lock_mutex
       regmap_read
       lan9303_phy_read
       dsa_slave_phy_read
       __mdiobus_read
       mdiobus_read
       get_phy_device
       mdiobus_scan
       __mdiobus_register
       dsa_register_switch
       lan9303_probe
       lan9303_mdio_probe
       mdio_probe
       really_probe
       __driver_probe_device
       driver_probe_device
       __device_attach_driver
       bus_for_each_drv
       __device_attach
       device_initial_probe
       bus_probe_device
       deferred_probe_work_func
       process_one_work
       worker_thread
       kthread
       ret_from_fork
other info that might help us debug this:
 Possible unsafe locking scenario:
       CPU0                    CPU1
       ----                    ----
  lock(&bus->mdio_lock);
                               lock(lan9303_mdio:131:(&lan9303_mdio_regmap_config)->lock);
                               lock(&bus->mdio_lock);
  lock(lan9303_mdio:131:(&lan9303_mdio_regmap_config)->lock);
*** DEADLOCK ***
5 locks held by kworker/u4:3/609:
 #0: ffff000002842938 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work
 #1: ffff80000bacbd60 (deferred_probe_work){+.+.}-{0:0}, at: process_one_work
 #2: ffff000007645178 (&dev->mutex){....}-{3:3}, at: __device_attach
 #3: ffff8000096e6e78 (dsa2_mutex){+.+.}-{3:3}, at: dsa_register_switch
 #4: ffff0000114c44d8 (&bus->mdio_lock){+.+.}-{3:3}, at: mdiobus_read
stack backtrace:
CPU: 1 PID: 609 Comm: kworker/u4:3 Not tainted 5.15.71 #1
Workqueue: events_unbound deferred_probe_work_func
Call trace:
 dump_backtrace
 show_stack
 dump_stack_lvl
 dump_stack
 print_circular_bug
 check_noncircular
 __lock_acquire
 lock_acquire.part.0
 lock_acquire
 __mutex_lock
 mutex_lock_nested
 regmap_lock_mutex
 regmap_read
 lan9303_phy_read
 dsa_slave_phy_read
 __mdiobus_read
 mdiobus_read
 get_phy_device
 mdiobus_scan
 __mdiobus_register
 dsa_register_switch
 lan9303_probe
 lan9303_mdio_probe
...

Cc: stable@vger.kernel.org
Fixes: dc70058 ("net: dsa: LAN9303: add MDIO managed mode support")
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20231027065741.534971-1-alexander.sverdlin@siemens.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
karthick111 pushed a commit that referenced this issue Jun 20, 2024
[ Upstream commit 15319a4e8ee4b098118591c6ccbd17237f841613 ]

As &card->tx_queue_lock is acquired under softirq context along the
following call chain from solos_bh(), other acquisition of the same
lock inside process context should disable at least bh to avoid double
lock.

<deadlock #2>
pclose()
--> spin_lock(&card->tx_queue_lock)
<interrupt>
   --> solos_bh()
   --> fpga_tx()
   --> spin_lock(&card->tx_queue_lock)

This flaw was found by an experimental static analysis tool I am
developing for irq-related deadlock.

To prevent the potential deadlock, the patch uses spin_lock_bh()
on &card->tx_queue_lock under process context code consistently to
prevent the possible deadlock scenario.

Fixes: 213e85d ("solos-pci: clean up pclose() function")
Signed-off-by: Chengfeng Ye <dg573847474@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
karthick111 pushed a commit that referenced this issue Jun 20, 2024
The root cause is the race as follows:
Thread #1                              Thread #2(irq ctx)

z_erofs_runqueue()
  struct z_erofs_decompressqueue io_A[];
  submit bio A
  z_erofs_decompress_kickoff(,,1)
                                       z_erofs_decompressqueue_endio(bio A)
                                       z_erofs_decompress_kickoff(,,-1)
                                       spin_lock_irqsave()
                                       atomic_add_return()
  io_wait_event()	-> pending_bios is already 0
  [end of function]
                                       wake_up_locked(io_A[]) // crash

Referenced backtrace in kernel 5.4:

[   10.129422] Unable to handle kernel paging request at virtual address eb0454a4
[   10.364157] CPU: 0 PID: 709 Comm: getprop Tainted: G        WC O      5.4.147-ab09225 #1
[   11.556325] [<c01b33b8>] (__wake_up_common) from [<c01b3300>] (__wake_up_locked+0x40/0x48)
[   11.565487] [<c01b3300>] (__wake_up_locked) from [<c044c8d0>] (z_erofs_vle_unzip_kickoff+0x6c/0xc0)
[   11.575438] [<c044c8d0>] (z_erofs_vle_unzip_kickoff) from [<c044c854>] (z_erofs_vle_read_endio+0x16c/0x17c)
[   11.586082] [<c044c854>] (z_erofs_vle_read_endio) from [<c06a80e8>] (clone_endio+0xb4/0x1d0)
[   11.595428] [<c06a80e8>] (clone_endio) from [<c04a1280>] (blk_update_request+0x150/0x4dc)
[   11.604516] [<c04a1280>] (blk_update_request) from [<c06dea28>] (mmc_blk_cqe_complete_rq+0x144/0x15c)
[   11.614640] [<c06dea28>] (mmc_blk_cqe_complete_rq) from [<c04a5d90>] (blk_done_softirq+0xb0/0xcc)
[   11.624419] [<c04a5d90>] (blk_done_softirq) from [<c010242c>] (__do_softirq+0x184/0x56c)
[   11.633419] [<c010242c>] (__do_softirq) from [<c01051e8>] (irq_exit+0xd4/0x138)
[   11.641640] [<c01051e8>] (irq_exit) from [<c010c314>] (__handle_domain_irq+0x94/0xd0)
[   11.650381] [<c010c314>] (__handle_domain_irq) from [<c04fde70>] (gic_handle_irq+0x50/0xd4)
[   11.659641] [<c04fde70>] (gic_handle_irq) from [<c0101b70>] (__irq_svc+0x70/0xb0)

Bug: 246657836
Change-Id: Ieebf1c5abb48723538d05a5e65b5179a382dab3f
(cherry picked from commit 60b30050116c0351b90154044345c1b53ae1f323)
[Hongyu: Resolved minor conflict in fs/erofs/zdata.c ]
Signed-off-by: Hongyu Jin <hongyu.jin@unisoc.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Link: https://lore.kernel.org/r/20220401115527.4935-1-hongyu.jin.cn@gmail.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
karthick111 pushed a commit that referenced this issue Jun 21, 2024
[ Upstream commit 14694179e561b5f2f7e56a0f590e2cb49a9cc7ab ]

Trying to suspend to RAM on SAMA5D27 EVK leads to the following lockdep
warning:

 ============================================
 WARNING: possible recursive locking detected
 6.7.0-rc5-wt+ #532 Not tainted
 --------------------------------------------
 sh/92 is trying to acquire lock:
 c3cf306c (&irq_desc_lock_class){-.-.}-{2:2}, at: __irq_get_desc_lock+0xe8/0x100

 but task is already holding lock:
 c3d7c46c (&irq_desc_lock_class){-.-.}-{2:2}, at: __irq_get_desc_lock+0xe8/0x100

 other info that might help us debug this:
  Possible unsafe locking scenario:

        CPU0
        ----
   lock(&irq_desc_lock_class);
   lock(&irq_desc_lock_class);

  *** DEADLOCK ***

  May be due to missing lock nesting notation

 6 locks held by sh/92:
  #0: c3aa0258 (sb_writers#6){.+.+}-{0:0}, at: ksys_write+0xd8/0x178
  #1: c4c2df44 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x138/0x284
  #2: c32684a0 (kn->active){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x148/0x284
  #3: c232b6d4 (system_transition_mutex){+.+.}-{3:3}, at: pm_suspend+0x13c/0x4e8
  #4: c387b088 (&dev->mutex){....}-{3:3}, at: __device_suspend+0x1e8/0x91c
  #5: c3d7c46c (&irq_desc_lock_class){-.-.}-{2:2}, at: __irq_get_desc_lock+0xe8/0x100

 stack backtrace:
 CPU: 0 PID: 92 Comm: sh Not tainted 6.7.0-rc5-wt+ #532
 Hardware name: Atmel SAMA5
  unwind_backtrace from show_stack+0x18/0x1c
  show_stack from dump_stack_lvl+0x34/0x48
  dump_stack_lvl from __lock_acquire+0x19ec/0x3a0c
  __lock_acquire from lock_acquire.part.0+0x124/0x2d0
  lock_acquire.part.0 from _raw_spin_lock_irqsave+0x5c/0x78
  _raw_spin_lock_irqsave from __irq_get_desc_lock+0xe8/0x100
  __irq_get_desc_lock from irq_set_irq_wake+0xa8/0x204
  irq_set_irq_wake from atmel_gpio_irq_set_wake+0x58/0xb4
  atmel_gpio_irq_set_wake from irq_set_irq_wake+0x100/0x204
  irq_set_irq_wake from gpio_keys_suspend+0xec/0x2b8
  gpio_keys_suspend from dpm_run_callback+0xe4/0x248
  dpm_run_callback from __device_suspend+0x234/0x91c
  __device_suspend from dpm_suspend+0x224/0x43c
  dpm_suspend from dpm_suspend_start+0x9c/0xa8
  dpm_suspend_start from suspend_devices_and_enter+0x1e0/0xa84
  suspend_devices_and_enter from pm_suspend+0x460/0x4e8
  pm_suspend from state_store+0x78/0xe4
  state_store from kernfs_fop_write_iter+0x1a0/0x284
  kernfs_fop_write_iter from vfs_write+0x38c/0x6f4
  vfs_write from ksys_write+0xd8/0x178
  ksys_write from ret_fast_syscall+0x0/0x1c
 Exception stack(0xc52b3fa8 to 0xc52b3ff0)
 3fa0:                   00000004 005a0ae8 00000001 005a0ae8 00000004 00000001
 3fc0: 00000004 005a0ae8 00000001 00000004 00000004 b6c616c0 00000020 0059d190
 3fe0: 00000004 b6c61678 aec5a041 aebf1a26

This warning is raised because pinctrl-at91-pio4 uses chained IRQ. Whenever
a wake up source configures an IRQ through irq_set_irq_wake, it will
lock the corresponding IRQ desc, and then call irq_set_irq_wake on "parent"
IRQ which will do the same on its own IRQ desc, but since those two locks
share the same class, lockdep reports this as an issue.

Fix lockdep false positive by setting a different class for parent and
children IRQ

Fixes: 7761808 ("pinctrl: introduce driver for Atmel PIO4 controller")
Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Link: https://lore.kernel.org/r/20231215-lockdep_warning-v1-1-8137b2510ed5@bootlin.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
karthick111 pushed a commit that referenced this issue Jun 21, 2024
[ Upstream commit 50ed48c80fecbe17218afed4f8bed005c802976c ]

Tests with hot-plugging crytpo cards on KVM guests with debug
kernel build revealed an use after free for the load field of
the struct zcrypt_card. The reason was an incorrect reference
handling of the zcrypt card object which could lead to a free
of the zcrypt card object while it was still in use.

This is an example of the slab message:

    kernel: 0x00000000885a7512-0x00000000885a7513 @offset=1298. First byte 0x68 instead of 0x6b
    kernel: Allocated in zcrypt_card_alloc+0x36/0x70 [zcrypt] age=18046 cpu=3 pid=43
    kernel:  kmalloc_trace+0x3f2/0x470
    kernel:  zcrypt_card_alloc+0x36/0x70 [zcrypt]
    kernel:  zcrypt_cex4_card_probe+0x26/0x380 [zcrypt_cex4]
    kernel:  ap_device_probe+0x15c/0x290
    kernel:  really_probe+0xd2/0x468
    kernel:  driver_probe_device+0x40/0xf0
    kernel:  __device_attach_driver+0xc0/0x140
    kernel:  bus_for_each_drv+0x8c/0xd0
    kernel:  __device_attach+0x114/0x198
    kernel:  bus_probe_device+0xb4/0xc8
    kernel:  device_add+0x4d2/0x6e0
    kernel:  ap_scan_adapter+0x3d0/0x7c0
    kernel:  ap_scan_bus+0x5a/0x3b0
    kernel:  ap_scan_bus_wq_callback+0x40/0x60
    kernel:  process_one_work+0x26e/0x620
    kernel:  worker_thread+0x21c/0x440
    kernel: Freed in zcrypt_card_put+0x54/0x80 [zcrypt] age=9024 cpu=3 pid=43
    kernel:  kfree+0x37e/0x418
    kernel:  zcrypt_card_put+0x54/0x80 [zcrypt]
    kernel:  ap_device_remove+0x4c/0xe0
    kernel:  device_release_driver_internal+0x1c4/0x270
    kernel:  bus_remove_device+0x100/0x188
    kernel:  device_del+0x164/0x3c0
    kernel:  device_unregister+0x30/0x90
    kernel:  ap_scan_adapter+0xc8/0x7c0
    kernel:  ap_scan_bus+0x5a/0x3b0
    kernel:  ap_scan_bus_wq_callback+0x40/0x60
    kernel:  process_one_work+0x26e/0x620
    kernel:  worker_thread+0x21c/0x440
    kernel:  kthread+0x150/0x168
    kernel:  __ret_from_fork+0x3c/0x58
    kernel:  ret_from_fork+0xa/0x30
    kernel: Slab 0x00000372022169c0 objects=20 used=18 fp=0x00000000885a7c88 flags=0x3ffff00000000a00(workingset|slab|node=0|zone=1|lastcpupid=0x1ffff)
    kernel: Object 0x00000000885a74b8 @offset=1208 fp=0x00000000885a7c88
    kernel: Redzone  00000000885a74b0: bb bb bb bb bb bb bb bb                          ........
    kernel: Object   00000000885a74b8: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b  kkkkkkkkkkkkkkkk
    kernel: Object   00000000885a74c8: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b  kkkkkkkkkkkkkkkk
    kernel: Object   00000000885a74d8: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b  kkkkkkkkkkkkkkkk
    kernel: Object   00000000885a74e8: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b  kkkkkkkkkkkkkkkk
    kernel: Object   00000000885a74f8: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b  kkkkkkkkkkkkkkkk
    kernel: Object   00000000885a7508: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 68 4b 6b 6b 6b a5  kkkkkkkkkkhKkkk.
    kernel: Redzone  00000000885a7518: bb bb bb bb bb bb bb bb                          ........
    kernel: Padding  00000000885a756c: 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a              ZZZZZZZZZZZZ
    kernel: CPU: 0 PID: 387 Comm: systemd-udevd Not tainted 6.8.0-HF #2
    kernel: Hardware name: IBM 3931 A01 704 (KVM/Linux)
    kernel: Call Trace:
    kernel:  [<00000000ca5ab5b8>] dump_stack_lvl+0x90/0x120
    kernel:  [<00000000c99d78bc>] check_bytes_and_report+0x114/0x140
    kernel:  [<00000000c99d53cc>] check_object+0x334/0x3f8
    kernel:  [<00000000c99d820c>] alloc_debug_processing+0xc4/0x1f8
    kernel:  [<00000000c99d852e>] get_partial_node.part.0+0x1ee/0x3e0
    kernel:  [<00000000c99d94ec>] ___slab_alloc+0xaf4/0x13c8
    kernel:  [<00000000c99d9e38>] __slab_alloc.constprop.0+0x78/0xb8
    kernel:  [<00000000c99dc8dc>] __kmalloc+0x434/0x590
    kernel:  [<00000000c9b4c0ce>] ext4_htree_store_dirent+0x4e/0x1c0
    kernel:  [<00000000c9b908a2>] htree_dirblock_to_tree+0x17a/0x3f0
    kernel:  [<00000000c9b919dc>] ext4_htree_fill_tree+0x134/0x400
    kernel:  [<00000000c9b4b3d0>] ext4_dx_readdir+0x160/0x2f0
    kernel:  [<00000000c9b4bedc>] ext4_readdir+0x5f4/0x760
    kernel:  [<00000000c9a7efc4>] iterate_dir+0xb4/0x280
    kernel:  [<00000000c9a7f1ea>] __do_sys_getdents64+0x5a/0x120
    kernel:  [<00000000ca5d6946>] __do_syscall+0x256/0x310
    kernel:  [<00000000ca5eea10>] system_call+0x70/0x98
    kernel: INFO: lockdep is turned off.
    kernel: FIX kmalloc-96: Restoring Poison 0x00000000885a7512-0x00000000885a7513=0x6b
    kernel: FIX kmalloc-96: Marking all objects used

The fix is simple: Before use of the queue not only the queue object
but also the card object needs to increase it's reference count
with a call to zcrypt_card_get(). Similar after use of the queue
not only the queue but also the card object's reference count is
decreased with zcrypt_card_put().

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Holger Dengler <dengler@linux.ibm.com>
Cc: stable@vger.kernel.org
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 7e500849fa558879a1cde43f80c7c048c2437058)
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
karthick111 pushed a commit that referenced this issue Jun 21, 2024
[ Upstream commit f8bbc07ac535593139c875ffa19af924b1084540 ]

vhost_worker will call tun call backs to receive packets. If too many
illegal packets arrives, tun_do_read will keep dumping packet contents.
When console is enabled, it will costs much more cpu time to dump
packet and soft lockup will be detected.

net_ratelimit mechanism can be used to limit the dumping rate.

PID: 33036    TASK: ffff949da6f20000  CPU: 23   COMMAND: "vhost-32980"
 #0 [fffffe00003fce50] crash_nmi_callback at ffffffff89249253
 #1 [fffffe00003fce58] nmi_handle at ffffffff89225fa3
 #2 [fffffe00003fceb0] default_do_nmi at ffffffff8922642e
 #3 [fffffe00003fced0] do_nmi at ffffffff8922660d
 #4 [fffffe00003fcef0] end_repeat_nmi at ffffffff89c01663
    [exception RIP: io_serial_in+20]
    RIP: ffffffff89792594  RSP: ffffa655314979e8  RFLAGS: 00000002
    RAX: ffffffff89792500  RBX: ffffffff8af428a0  RCX: 0000000000000000
    RDX: 00000000000003fd  RSI: 0000000000000005  RDI: ffffffff8af428a0
    RBP: 0000000000002710   R8: 0000000000000004   R9: 000000000000000f
    R10: 0000000000000000  R11: ffffffff8acbf64f  R12: 0000000000000020
    R13: ffffffff8acbf698  R14: 0000000000000058  R15: 0000000000000000
    ORIG_RAX: ffffffffffffffff  CS: 0010  SS: 0018
 #5 [ffffa655314979e8] io_serial_in at ffffffff89792594
 #6 [ffffa655314979e8] wait_for_xmitr at ffffffff89793470
 #7 [ffffa65531497a08] serial8250_console_putchar at ffffffff897934f6
 #8 [ffffa65531497a20] uart_console_write at ffffffff8978b605
 #9 [ffffa65531497a48] serial8250_console_write at ffffffff89796558
 #10 [ffffa65531497ac8] console_unlock at ffffffff89316124
 #11 [ffffa65531497b10] vprintk_emit at ffffffff89317c07
 #12 [ffffa65531497b68] printk at ffffffff89318306
 #13 [ffffa65531497bc8] print_hex_dump at ffffffff89650765
 #14 [ffffa65531497ca8] tun_do_read at ffffffffc0b06c27 [tun]
 #15 [ffffa65531497d38] tun_recvmsg at ffffffffc0b06e34 [tun]
 #16 [ffffa65531497d68] handle_rx at ffffffffc0c5d682 [vhost_net]
 #17 [ffffa65531497ed0] vhost_worker at ffffffffc0c644dc [vhost]
 #18 [ffffa65531497f10] kthread at ffffffff892d2e72
 #19 [ffffa65531497f50] ret_from_fork at ffffffff89c0022f

Fixes: ef3db4a ("tun: avoid BUG, dump packet on GSO errors")
Signed-off-by: Lei Chen <lei.chen@smartx.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Link: https://lore.kernel.org/r/20240415020247.2207781-1-lei.chen@smartx.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 68459b8e3ee554ce71878af9eb69659b9462c588)
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
karthick111 pushed a commit that referenced this issue Jun 21, 2024
[ Upstream commit e5f4e68eed85fa8495d78cd966eecc2b27bb9e53 ]

When using --Summary mode, added MSRs in raw mode always
print zeros. Print the actual register contents.

Example, with patch:

note the added column:
--add msr0x64f,u32,package,raw,REASON

Where:

0x64F is MSR_CORE_PERF_LIMIT_REASONS

Busy%   Bzy_MHz PkgTmp  PkgWatt CorWatt     REASON
0.00    4800    35      1.42    0.76    0x00000000
0.00    4801    34      1.42    0.76    0x00000000
80.08   4531    66      108.17  107.52  0x08000000
98.69   4530    66      133.21  132.54  0x08000000
99.28   4505    66      128.26  127.60  0x0c000400
99.65   4486    68      124.91  124.25  0x0c000400
99.63   4483    68      124.90  124.25  0x0c000400
79.34   4481    41      99.80   99.13   0x0c000000
0.00    4801    41      1.40    0.73    0x0c000000

Where, for the test processor (i5-10600K):

PKG Limit #1: 125.000 Watts, 8.000000 sec
MSR bit 26 = log; bit 10 = status

PKG Limit #2: 136.000 Watts, 0.002441 sec
MSR bit 27 = log; bit 11 = status

Example, without patch:

Busy%   Bzy_MHz PkgTmp  PkgWatt CorWatt     REASON
0.01    4800    35      1.43    0.77    0x00000000
0.00    4801    35      1.39    0.73    0x00000000
83.49   4531    66      112.71  112.06  0x00000000
98.69   4530    68      133.35  132.69  0x00000000
99.31   4500    67      127.96  127.30  0x00000000
99.63   4483    69      124.91  124.25  0x00000000
99.61   4481    69      124.90  124.25  0x00000000
99.61   4481    71      124.92  124.25  0x00000000
59.35   4479    42      75.03   74.37   0x00000000
0.00    4800    42      1.39    0.73    0x00000000
0.00    4801    42      1.42    0.76    0x00000000

c000000

[lenb: simplified patch to apply only to package scope]

Signed-off-by: Doug Smythies <dsmythies@telus.net>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit e13c8b6b8675c7848e54145b77e7c0d2c52a3422)
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
karthick111 pushed a commit that referenced this issue Jun 21, 2024
…nix_gc().

commit 1971d13ffa84a551d29a81fdf5b5ec5be166ac83 upstream.

syzbot reported a lockdep splat regarding unix_gc_lock and
unix_state_lock().

One is called from recvmsg() for a connected socket, and another
is called from GC for TCP_LISTEN socket.

So, the splat is false-positive.

Let's add a dedicated lock class for the latter to suppress the splat.

Note that this change is not necessary for net-next.git as the issue
is only applied to the old GC impl.

[0]:
WARNING: possible circular locking dependency detected
6.9.0-rc5-syzkaller-00007-g4d2008430ce8 #0 Not tainted
 -----------------------------------------------------
kworker/u8:1/11 is trying to acquire lock:
ffff88807cea4e70 (&u->lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline]
ffff88807cea4e70 (&u->lock){+.+.}-{2:2}, at: __unix_gc+0x40e/0xf70 net/unix/garbage.c:302

but task is already holding lock:
ffffffff8f6ab638 (unix_gc_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline]
ffffffff8f6ab638 (unix_gc_lock){+.+.}-{2:2}, at: __unix_gc+0x117/0xf70 net/unix/garbage.c:261

which lock already depends on the new lock.

the existing dependency chain (in reverse order) is:

 -> #1 (unix_gc_lock){+.+.}-{2:2}:
       lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5754
       __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
       _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154
       spin_lock include/linux/spinlock.h:351 [inline]
       unix_notinflight+0x13d/0x390 net/unix/garbage.c:140
       unix_detach_fds net/unix/af_unix.c:1819 [inline]
       unix_destruct_scm+0x221/0x350 net/unix/af_unix.c:1876
       skb_release_head_state+0x100/0x250 net/core/skbuff.c:1188
       skb_release_all net/core/skbuff.c:1200 [inline]
       __kfree_skb net/core/skbuff.c:1216 [inline]
       kfree_skb_reason+0x16d/0x3b0 net/core/skbuff.c:1252
       kfree_skb include/linux/skbuff.h:1262 [inline]
       manage_oob net/unix/af_unix.c:2672 [inline]
       unix_stream_read_generic+0x1125/0x2700 net/unix/af_unix.c:2749
       unix_stream_splice_read+0x239/0x320 net/unix/af_unix.c:2981
       do_splice_read fs/splice.c:985 [inline]
       splice_file_to_pipe+0x299/0x500 fs/splice.c:1295
       do_splice+0xf2d/0x1880 fs/splice.c:1379
       __do_splice fs/splice.c:1436 [inline]
       __do_sys_splice fs/splice.c:1652 [inline]
       __se_sys_splice+0x331/0x4a0 fs/splice.c:1634
       do_syscall_x64 arch/x86/entry/common.c:52 [inline]
       do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83
       entry_SYSCALL_64_after_hwframe+0x77/0x7f

 -> #0 (&u->lock){+.+.}-{2:2}:
       check_prev_add kernel/locking/lockdep.c:3134 [inline]
       check_prevs_add kernel/locking/lockdep.c:3253 [inline]
       validate_chain+0x18cb/0x58e0 kernel/locking/lockdep.c:3869
       __lock_acquire+0x1346/0x1fd0 kernel/locking/lockdep.c:5137
       lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5754
       __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
       _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154
       spin_lock include/linux/spinlock.h:351 [inline]
       __unix_gc+0x40e/0xf70 net/unix/garbage.c:302
       process_one_work kernel/workqueue.c:3254 [inline]
       process_scheduled_works+0xa10/0x17c0 kernel/workqueue.c:3335
       worker_thread+0x86d/0xd70 kernel/workqueue.c:3416
       kthread+0x2f0/0x390 kernel/kthread.c:388
       ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
       ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

other info that might help us debug this:

 Possible unsafe locking scenario:

       CPU0                    CPU1
       ----                    ----
  lock(unix_gc_lock);
                               lock(&u->lock);
                               lock(unix_gc_lock);
  lock(&u->lock);

 *** DEADLOCK ***

3 locks held by kworker/u8:1/11:
 #0: ffff888015089148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3229 [inline]
 #0: ffff888015089148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x8e0/0x17c0 kernel/workqueue.c:3335
 #1: ffffc90000107d00 (unix_gc_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3230 [inline]
 #1: ffffc90000107d00 (unix_gc_work){+.+.}-{0:0}, at: process_scheduled_works+0x91b/0x17c0 kernel/workqueue.c:3335
 #2: ffffffff8f6ab638 (unix_gc_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline]
 #2: ffffffff8f6ab638 (unix_gc_lock){+.+.}-{2:2}, at: __unix_gc+0x117/0xf70 net/unix/garbage.c:261

stack backtrace:
CPU: 0 PID: 11 Comm: kworker/u8:1 Not tainted 6.9.0-rc5-syzkaller-00007-g4d2008430ce8 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Workqueue: events_unbound __unix_gc
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114
 check_noncircular+0x36a/0x4a0 kernel/locking/lockdep.c:2187
 check_prev_add kernel/locking/lockdep.c:3134 [inline]
 check_prevs_add kernel/locking/lockdep.c:3253 [inline]
 validate_chain+0x18cb/0x58e0 kernel/locking/lockdep.c:3869
 __lock_acquire+0x1346/0x1fd0 kernel/locking/lockdep.c:5137
 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5754
 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
 _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:351 [inline]
 __unix_gc+0x40e/0xf70 net/unix/garbage.c:302
 process_one_work kernel/workqueue.c:3254 [inline]
 process_scheduled_works+0xa10/0x17c0 kernel/workqueue.c:3335
 worker_thread+0x86d/0xd70 kernel/workqueue.c:3416
 kthread+0x2f0/0x390 kernel/kthread.c:388
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Fixes: 47d8ac011fe1 ("af_unix: Fix garbage collector racing against connect()")
Reported-and-tested-by: syzbot+fa379358c28cc87cc307@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=fa379358c28cc87cc307
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://lore.kernel.org/r/20240424170443.9832-1-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit b29dcdd0582c00cd6ee0bd7c958d3639aa9db27f)
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant