syzbot


INFO: rcu detected stall in sys_madvise

Status: auto-obsoleted due to no activity on 2023/11/05 19:10
Subsystems: scsi
[Documentation on labels]
First crash: 267d, last: 267d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 BUG: soft lockup in sys_madvise 1 36d 36d 0/2 premoderation: reported on 2024/03/25 02:48
linux-4.19 BUG: soft lockup in sys_madvise 1 725d 725d 0/1 auto-obsoleted due to no activity on 2022/09/03 05:10
linux-4.19 BUG: soft lockup in sys_madvise (2) 1 591d 591d 0/1 auto-obsoleted due to no activity on 2023/01/14 20:18

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	1-....: (1 GPs behind) idle=79a4/1/0x4000000000000000 softirq=32283/32285 fqs=5240
rcu: 	         hardirqs   softirqs   csw/system
rcu: 	 number:        1          0            0
rcu: 	cputime:    18936      33542           16   ==> 52500(ms)
rcu: 	(t=10502 jiffies g=34641 q=1436 ncpus=2)
CPU: 1 PID: 11424 Comm: syz-executor.0 Not tainted 6.5.0-rc5-syzkaller-00021-ga027b2eca0b7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
RIP: 0010:check_kcov_mode kernel/kcov.c:173 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x11/0x70 kernel/kcov.c:207
Code: b0 01 00 00 e8 b0 ff ff ff 31 c0 c3 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 f3 0f 1e fa 65 8b 05 5d b1 7d 7e 89 c1 48 8b 34 24 <81> e1 00 01 00 00 65 48 8b 14 25 80 b9 03 00 a9 00 01 ff 00 74 0e
RSP: 0018:ffffc900001e0d58 EFLAGS: 00000206
RAX: 0000000000000102 RBX: ffff88807de8d394 RCX: 0000000000000102
RDX: ffff8880536f8000 RSI: ffffffff88594855 RDI: 0000000000000004
RBP: 000000000000000a R08: 0000000000000004 R09: 000000000000000a
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000010
R13: ffff88807dcd6b60 R14: 0000000000000000 R15: 0000000000000001
FS:  00007efe3a26a6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002009c000 CR3: 000000002baf3000 CR4: 0000000000350ee0
Call Trace:
 <IRQ>
 taprio_dequeue_tc_priority+0x255/0x4b0 net/sched/sch_taprio.c:798
 taprio_dequeue+0x12e/0x5f0 net/sched/sch_taprio.c:868
 dequeue_skb net/sched/sch_generic.c:292 [inline]
 qdisc_restart net/sched/sch_generic.c:397 [inline]
 __qdisc_run+0x1c4/0x19d0 net/sched/sch_generic.c:415
 qdisc_run include/net/pkt_sched.h:125 [inline]
 qdisc_run include/net/pkt_sched.h:122 [inline]
 net_tx_action+0x71e/0xc80 net/core/dev.c:5049
 __do_softirq+0x218/0x965 kernel/softirq.c:553
 invoke_softirq kernel/softirq.c:427 [inline]
 __irq_exit_rcu kernel/softirq.c:632 [inline]
 irq_exit_rcu+0xb7/0x120 kernel/softirq.c:644
 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1109
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x31/0x70 kernel/locking/spinlock.c:194
Code: f5 53 48 8b 74 24 10 48 89 fb 48 83 c7 18 e8 d6 7b 31 f7 48 89 df e8 ae fa 31 f7 f7 c5 00 02 00 00 75 1f 9c 58 f6 c4 02 75 2f <bf> 01 00 00 00 e8 55 9d 23 f7 65 8b 05 a6 2b ce 75 85 c0 74 12 5b
RSP: 0018:ffffc90004fef7b8 EFLAGS: 00000246
RAX: 0000000000000002 RBX: ffffffff923116c0 RCX: 1ffffffff230c108
RDX: 0000000000000000 RSI: ffffffff8a6c7480 RDI: ffffffff8ac80560
RBP: 0000000000000216 R08: 0000000000000001 R09: fffffbfff23095d6
R10: ffffffff9184aeb7 R11: 1ffff11004edf727 R12: ffff88801fce4000
R13: 0000000000000007 R14: 0000000000000000 R15: ffff888147e94000
 scsi_initialize_rq+0xa1/0x150 drivers/scsi/scsi_lib.c:1129
 scsi_init_command+0x217/0x290 drivers/scsi/scsi_lib.c:1165
 scsi_prepare_cmd drivers/scsi/scsi_lib.c:1554 [inline]
 scsi_queue_rq+0x1996/0x3640 drivers/scsi/scsi_lib.c:1744
 blk_mq_dispatch_rq_list+0x694/0x22d0 block/blk-mq.c:2035
 __blk_mq_do_dispatch_sched block/blk-mq-sched.c:170 [inline]
 blk_mq_do_dispatch_sched block/blk-mq-sched.c:184 [inline]
 __blk_mq_sched_dispatch_requests+0xd30/0x1740 block/blk-mq-sched.c:309
 blk_mq_sched_dispatch_requests+0x104/0x180 block/blk-mq-sched.c:333
 blk_mq_run_hw_queue+0x677/0x9b0 block/blk-mq.c:2249
 blk_mq_dispatch_plug_list block/blk-mq.c:2746 [inline]
 blk_mq_flush_plug_list.part.0+0x648/0x1ee0 block/blk-mq.c:2799
 blk_mq_flush_plug_list+0x62/0x80 block/blk-mq.c:2764
 __blk_flush_plug+0x2c0/0x430 block/blk-core.c:1147
 blk_finish_plug block/blk-core.c:1171 [inline]
 blk_finish_plug+0x54/0xa0 block/blk-core.c:1168
 do_madvise+0x340/0x660 mm/madvise.c:1446
 __do_sys_madvise mm/madvise.c:1457 [inline]
 __se_sys_madvise mm/madvise.c:1455 [inline]
 __x64_sys_madvise+0xaa/0x110 mm/madvise.c:1455
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7efe3947cae9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007efe3a26a0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000001c
RAX: ffffffffffffffda RBX: 00007efe3959c050 RCX: 00007efe3947cae9
RDX: 0000000000000015 RSI: 0000000000600000 RDI: 0000000020000000
RBP: 00007efe394c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007efe3959c050 R15: 00007ffd36f7f418
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/07 19:07 upstream a027b2eca0b7 0ef3dfda .config console log report info ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_madvise
* Struck through repros no longer work on HEAD.