syzbot


BUG: soft lockup in worker_thread

Status: auto-obsoleted due to no activity on 2024/12/04 04:19
Bug presence: origin:lts
[Documentation on labels]
Reported-by: syzbot+88d218fcc7a5267b8dec@syzkaller.appspotmail.com
First crash: 100d, last: 100d
Fix bisection: fixed by (bisect log) :
commit 11e8ecc5b86037fec43d07b1c162e233e131b1d9
Author: Jakub Sitnicki <jakub@cloudflare.com>
Date: Mon May 27 11:20:07 2024 +0000

  bpf: Allow delete from sockmap/sockhash only if update is allowed

  
Bug presence (2)
Date Name Commit Repro Result
2024/08/26 lts (merge base) c52b9710c83d C [report] BUG: soft lockup in corrupted
2024/08/26 upstream (ToT) 5be63fc19fca C Didn't crash
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in worker_thread (9) netfilter C done 2768 7m 423d 0/28 upstream: reported C repro on 2023/10/07 18:33
upstream INFO: task hung in crda_timeout_work (8) wireless C done 383 2d08h 67d 0/28 upstream: reported C repro on 2024/09/27 16:53
linux-5.15 INFO: rcu detected stall in worker_thread 1 432d 432d 0/3 auto-obsoleted due to no activity on 2024/01/09 18:17
upstream INFO: rcu detected stall in worker_thread (8) kernel 1 575d 575d 0/28 auto-obsoleted due to no activity on 2023/08/07 05:14
upstream INFO: rcu detected stall in worker_thread (5) kernel 2 916d 953d 0/28 auto-closed as invalid on 2022/08/31 00:50
linux-6.1 INFO: rcu detected stall in worker_thread 6 167d 198d 0/3 auto-obsoleted due to no activity on 2024/09/27 16:46
upstream INFO: rcu detected stall in worker_thread (6) kernel 1 792d 792d 0/28 auto-obsoleted due to no activity on 2023/01/12 15:50
linux-5.15 INFO: rcu detected stall in worker_thread (2) 4 171d 176d 0/3 auto-obsoleted due to no activity on 2024/09/24 04:34
upstream INFO: rcu detected stall in worker_thread (7) kernel 1 684d 684d 0/28 auto-obsoleted due to no activity on 2023/04/27 16:37
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/09/09 04:19 13m retest repro android13-5.15-lts report log

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 144s! [kworker/0:0:6]
Modules linked in:
CPU: 0 PID: 6 Comm: kworker/0:0 Not tainted 5.15.156-syzkaller-00821-g29d153aabd54 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
Workqueue:  0x0 (events)
RIP: 0010:native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
RIP: 0010:arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
RIP: 0010:kvm_wait+0x147/0x180 arch/x86/kernel/kvm.c:918
Code: 4c 89 e8 48 c1 e8 03 42 0f b6 04 20 84 c0 44 8b 74 24 1c 75 34 41 0f b6 45 00 44 38 f0 75 10 66 90 0f 00 2d 6b ef 12 04 fb f4 <e9> 24 ff ff ff fb e9 1e ff ff ff 44 89 e9 80 e1 07 38 c1 7c a3 4c
RSP: 0018:ffffc90000066f00 EFLAGS: 00000246
RAX: 0000000000000001 RBX: 1ffff9200000cde4 RCX: 1ffffffff0d5ab14
RDX: 0000000000000001 RSI: 0000000000000001 RDI: ffff8881f7038ad4
RBP: ffffc90000066fb0 R08: dffffc0000000000 R09: ffffed103ee0715b
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8881f7038ad4 R14: 0000000000000001 R15: 1ffff9200000cde8
FS:  0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc188c8288 CR3: 00000001245ed000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 pv_wait arch/x86/include/asm/paravirt.h:597 [inline]
 pv_wait_node kernel/locking/qspinlock_paravirt.h:325 [inline]
 __pv_queued_spin_lock_slowpath+0x41b/0xc40 kernel/locking/qspinlock.c:473
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
 do_raw_spin_lock include/linux/spinlock.h:187 [inline]
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:136 [inline]
 _raw_spin_lock_bh+0x139/0x1b0 kernel/locking/spinlock.c:178
 __sock_map_delete net/core/sock_map.c:419 [inline]
 sock_map_delete_elem+0x161/0x230 net/core/sock_map.c:451
 bpf_prog_8a405b5ced52e191+0x42/0x4d4
 bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline]
 __bpf_prog_run include/linux/filter.h:628 [inline]
 bpf_prog_run include/linux/filter.h:635 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:1880 [inline]
 bpf_trace_run4+0x13f/0x270 kernel/trace/bpf_trace.c:1919
 __bpf_trace_mm_page_alloc+0xbf/0xf0 include/trace/events/kmem.h:201
 trace_mm_page_alloc include/trace/events/kmem.h:201 [inline]
 __alloc_pages+0x3cb/0x8f0 mm/page_alloc.c:5801
 __alloc_pages_node include/linux/gfp.h:591 [inline]
 alloc_pages_node include/linux/gfp.h:605 [inline]
 alloc_pages include/linux/gfp.h:618 [inline]
 __stack_depot_save+0x38d/0x470 lib/stackdepot.c:326
 stack_depot_save+0xe/0x10 lib/stackdepot.c:383
 save_stack+0x104/0x1e0 mm/page_owner.c:140
 __set_page_owner+0x28/0x2e0 mm/page_owner.c:200
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1a3/0x1b0 mm/page_alloc.c:2605
 prep_new_page+0x1b/0x110 mm/page_alloc.c:2611
 get_page_from_freelist+0x3550/0x35d0 mm/page_alloc.c:4485
 __alloc_pages+0x27e/0x8f0 mm/page_alloc.c:5779
 allocate_slab mm/slub.c:1932 [inline]
 new_slab+0x9a/0x4e0 mm/slub.c:1995
 ___slab_alloc+0x39e/0x830 mm/slub.c:3028
 __slab_alloc+0x4a/0x90 mm/slub.c:3115
 slab_alloc_node mm/slub.c:3206 [inline]
 slab_alloc mm/slub.c:3248 [inline]
 kmem_cache_alloc_trace+0x142/0x210 mm/slub.c:3265
 kmem_cache_alloc_node_trace include/linux/slab.h:491 [inline]
 kmalloc_node include/linux/slab.h:621 [inline]
 kzalloc_node include/linux/slab.h:744 [inline]
 alloc_worker kernel/workqueue.c:1868 [inline]
 create_worker+0xef/0x670 kernel/workqueue.c:1968
 maybe_create_worker kernel/workqueue.c:2143 [inline]
 manage_workers kernel/workqueue.c:2195 [inline]
 worker_thread+0x4c6/0x12a0 kernel/workqueue.c:2444
 kthread+0x421/0x510 kernel/kthread.c:337
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/26 04:19 android13-5.15-lts 29d153aabd54 d7d32352 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in worker_thread
* Struck through repros no longer work on HEAD.