[v6.1] INFO: rcu detected stall in kcov_ioctl

0 views
Skip to first unread message

syzbot

unread,
Jul 5, 2024, 2:38:23 PM (2 days ago) Jul 5
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 7753af06eebf Linux 6.1.97
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14943781980000
kernel config: https://syzkaller.appspot.com/x/.config?x=8598d0ff7c47577b
dashboard link: https://syzkaller.appspot.com/bug?extid=364b8e40302ca0cbb9b2
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/2ba92bc446d9/disk-7753af06.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/96a956b7234b/vmlinux-7753af06.xz
kernel image: https://storage.googleapis.com/syzbot-assets/eb054c41985f/bzImage-7753af06.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+364b8e...@syzkaller.appspotmail.com

rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 1-...!: (3 ticks this GP) idle=dcc4/1/0x4000000000000000 softirq=15366/15366 fqs=0
(detected by 0, t=10505 jiffies, g=16865, q=672 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 5100 Comm: syz-executor Not tainted 6.1.97-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:check_kcov_mode kernel/kcov.c:173 [inline]
RIP: 0010:write_comp_data kernel/kcov.c:236 [inline]
RIP: 0010:__sanitizer_cov_trace_const_cmp4+0x1a/0x80 kernel/kcov.c:304
Code: 0a 10 48 89 74 0a 18 4c 89 44 0a 20 c3 0f 1f 00 4c 8b 04 24 65 48 8b 15 c4 d7 77 7e 65 8b 05 c5 d7 77 7e a9 00 01 ff 00 74 10 <a9> 00 01 00 00 74 5b 83 ba 1c 16 00 00 00 74 52 8b 82 f8 15 00 00
RSP: 0018:ffffc900001e0d20 EFLAGS: 00000006
RAX: 0000000000010002 RBX: 0000000000000010 RCX: ffff8880202c1dc0
RDX: ffff8880202c1dc0 RSI: 0000000000000001 RDI: 0000000000000020
RBP: 0000000000000001 R08: ffffffff8179ee6b R09: fffffbfff1ce7016
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8880b992a5c0 R14: ffff888074106340 R15: 1ffff110173254b8
FS: 00005555568d2500(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1e92d04000 CR3: 000000007eff4000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<NMI>
</NMI>
<IRQ>
enqueue_hrtimer+0x14b/0x410 kernel/time/hrtimer.c:1087
__run_hrtimer kernel/time/hrtimer.c:1703 [inline]
__hrtimer_run_queues+0x728/0xe50 kernel/time/hrtimer.c:1750
hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1812
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
__sysvec_apic_timer_interrupt+0x156/0x580 arch/x86/kernel/apic/apic.c:1112
sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1106
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:valid_section include/linux/mmzone.h:1759 [inline]
RIP: 0010:pfn_valid+0x15c/0x440 include/linux/mmzone.h:1857
Code: 74 7d e8 d7 a1 b5 ff 4d 85 ff 75 11 e8 cd a1 b5 ff eb 3d e8 c6 a1 b5 ff 4d 85 ff 74 ef 4c 89 fd 48 c1 ed 03 42 80 7c 25 00 00 <74> 08 4c 89 ff e8 9a 24 0d 00 49 8b 1f 48 89 de 48 83 e6 02 31 ff
RSP: 0018:ffffc90005317b28 EFLAGS: 00000246
RAX: ffffffff81d4f239 RBX: 00000000000000a0 RCX: ffff8880202c1dc0
RDX: 0000000000000000 RSI: ffffffff8b3d4740 RDI: ffffffff8b3d4700
RBP: 1ffff11027fff214 R08: ffffffff81d4f227 R09: fffffbfff2093845
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 0000000000028bbb R14: ffffffff81d4f1f6 R15: ffff88813fff90a0
vmap_pages_pte_range mm/vmalloc.c:487 [inline]
vmap_pages_pmd_range mm/vmalloc.c:509 [inline]
vmap_pages_pud_range mm/vmalloc.c:527 [inline]
vmap_pages_p4d_range mm/vmalloc.c:545 [inline]
vmap_small_pages_range_noflush mm/vmalloc.c:567 [inline]
__vmap_pages_range_noflush+0x517/0xa90 mm/vmalloc.c:596
vmap_pages_range_noflush mm/vmalloc.c:621 [inline]
vmap_pages_range mm/vmalloc.c:641 [inline]
__vmalloc_area_node mm/vmalloc.c:3102 [inline]
__vmalloc_node_range+0xff2/0x1490 mm/vmalloc.c:3240
vmalloc_user+0x70/0x80 mm/vmalloc.c:3394
kcov_ioctl+0x55/0x630 kernel/kcov.c:704
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:870 [inline]
__se_sys_ioctl+0xf1/0x160 fs/ioctl.c:856
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f1e92b757db
Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
RSP: 002b:00007ffc744a7c90 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f1e92b757db
RDX: 0000000000040000 RSI: ffffffff80086301 RDI: 00000000000000da
RBP: 00007f1e92d041a8 R08: 00000000000000d9 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000000c
R13: 0000000000000003 R14: 0000000000000009 R15: 0000000000000009
</TASK>
rcu: rcu_preempt kthread timer wakeup didn't happen for 10504 jiffies! g16865 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: Possible timer handling issue on cpu=1 timer-softirq=9512
rcu: rcu_preempt kthread starved for 10505 jiffies! g16865 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->cpu=1
rcu: Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
rcu: RCU grace-period kthread stack dump:
task:rcu_preempt state:I stack:27160 pid:16 ppid:2 flags:0x00004000
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5245 [inline]
__schedule+0x142d/0x4550 kernel/sched/core.c:6558
schedule+0xbf/0x180 kernel/sched/core.c:6634
schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1965
rcu_gp_fqs_loop+0x2d2/0x1150 kernel/rcu/tree.c:1706
rcu_gp_kthread+0xa3/0x3b0 kernel/rcu/tree.c:1905
kthread+0x28d/0x320 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
</TASK>
rcu: Stack dump where RCU GP kthread last ran:
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 5100 Comm: syz-executor Not tainted 6.1.97-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x4/0x60 kernel/kcov.c:206
Code: 00 0f 0b 0f 1f 00 53 48 89 fb e8 17 00 00 00 48 8b 3d d8 ee e8 0c 48 89 de 5b e9 07 ac 56 00 cc cc cc cc cc cc cc 48 8b 04 24 <65> 48 8b 0d 24 db 77 7e 65 8b 15 25 db 77 7e f7 c2 00 01 ff 00 74
RSP: 0018:ffffc900001e0d30 EFLAGS: 00000002
RAX: ffffffff8179f1eb RBX: 0000000000000001 RCX: ffffffff8179f1b2
RDX: ffff8880202c1dc0 RSI: ffffffff8b3d4740 RDI: ffffffff8b3d4700
RBP: 0000000000000001 R08: ffffffff8179f1d8 R09: fffffbfff1ce7016
R10: 0000000000000000 R11: dffffc0000000001 R12: 17df64f11daeb2ac
R13: ffff8880b992a5c0 R14: ffff8880b992a4c0 R15: dffffc0000000000
FS: 00005555568d2500(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1e92d04000 CR3: 000000007eff4000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<NMI>
</NMI>
<IRQ>
trace_hrtimer_cancel include/trace/events/timer.h:297 [inline]
debug_deactivate+0xbb/0x280 kernel/time/hrtimer.c:482
__run_hrtimer kernel/time/hrtimer.c:1654 [inline]
__hrtimer_run_queues+0x334/0xe50 kernel/time/hrtimer.c:1750
hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1812
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
__sysvec_apic_timer_interrupt+0x156/0x580 arch/x86/kernel/apic/apic.c:1112
sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1106
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:valid_section include/linux/mmzone.h:1759 [inline]
RIP: 0010:pfn_valid+0x15c/0x440 include/linux/mmzone.h:1857
Code: 74 7d e8 d7 a1 b5 ff 4d 85 ff 75 11 e8 cd a1 b5 ff eb 3d e8 c6 a1 b5 ff 4d 85 ff 74 ef 4c 89 fd 48 c1 ed 03 42 80 7c 25 00 00 <74> 08 4c 89 ff e8 9a 24 0d 00 49 8b 1f 48 89 de 48 83 e6 02 31 ff
RSP: 0018:ffffc90005317b28 EFLAGS: 00000246
RAX: ffffffff81d4f239 RBX: 00000000000000a0 RCX: ffff8880202c1dc0
RDX: 0000000000000000 RSI: ffffffff8b3d4740 RDI: ffffffff8b3d4700
RBP: 1ffff11027fff214 R08: ffffffff81d4f227 R09: fffffbfff2093845
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 0000000000028bbb R14: ffffffff81d4f1f6 R15: ffff88813fff90a0
vmap_pages_pte_range mm/vmalloc.c:487 [inline]
vmap_pages_pmd_range mm/vmalloc.c:509 [inline]
vmap_pages_pud_range mm/vmalloc.c:527 [inline]
vmap_pages_p4d_range mm/vmalloc.c:545 [inline]
vmap_small_pages_range_noflush mm/vmalloc.c:567 [inline]
__vmap_pages_range_noflush+0x517/0xa90 mm/vmalloc.c:596
vmap_pages_range_noflush mm/vmalloc.c:621 [inline]
vmap_pages_range mm/vmalloc.c:641 [inline]
__vmalloc_area_node mm/vmalloc.c:3102 [inline]
__vmalloc_node_range+0xff2/0x1490 mm/vmalloc.c:3240
vmalloc_user+0x70/0x80 mm/vmalloc.c:3394
kcov_ioctl+0x55/0x630 kernel/kcov.c:704
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:870 [inline]
__se_sys_ioctl+0xf1/0x160 fs/ioctl.c:856
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f1e92b757db
Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
RSP: 002b:00007ffc744a7c90 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f1e92b757db
RDX: 0000000000040000 RSI: ffffffff80086301 RDI: 00000000000000da
RBP: 00007f1e92d041a8 R08: 00000000000000d9 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000000c
R13: 0000000000000003 R14: 0000000000000009 R15: 0000000000000009
</TASK>


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages