syzbot


WARNING: ODEBUG bug in advance_sched

Status: upstream: reported C repro on 2023/12/21 13:47
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+ec9b5cce58002d184fb6@syzkaller.appspotmail.com
First crash: 117d, last: 5d13h
Cause bisection: introduced by (bisect log) :
commit 7b9eba7ba0c1b24df42b70b62d154b284befbccf
Author: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
Date: Mon Apr 8 17:12:17 2019 +0000

  net/sched: taprio: fix picos_per_byte miscalculation

Crash: WARNING in taprio_dequeue (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [net?] WARNING: ODEBUG bug in advance_sched 1 (4) 2023/12/22 11:37
Last patch testing requests (7)
Created Duration User Patch Repo Result
2024/03/05 06:20 16m retest repro net report log
2024/03/05 06:20 17m retest repro net report log
2024/03/05 04:31 57m retest repro net-next report log
2024/03/05 04:31 20m retest repro net-next report log
2024/03/05 03:52 22m retest repro upstream report log
2024/01/04 11:21 16m retest repro upstream report log
2023/12/22 11:07 24m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master OK log

Sample crash report:
------------[ cut here ]------------
ODEBUG: activate active (active state 1) object: ffff888018fc0d00 object type: rcu_head hint: 0x0
WARNING: CPU: 0 PID: 5304 at lib/debugobjects.c:517 debug_print_object+0x17a/0x1f0 lib/debugobjects.c:514
Modules linked in:
CPU: 0 PID: 5304 Comm: syz-executor239 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:debug_print_object+0x17a/0x1f0 lib/debugobjects.c:514
Code: e8 0b ce 4a fd 4c 8b 0b 48 c7 c7 c0 dc fe 8b 48 8b 74 24 08 48 89 ea 44 89 e1 4d 89 f8 ff 34 24 e8 fb 52 aa fc 48 83 c4 08 90 <0f> 0b 90 90 ff 05 1c f7 d9 0a 48 83 c4 10 5b 41 5c 41 5d 41 5e 41
RSP: 0018:ffffc900000079f8 EFLAGS: 00010082
RAX: c3a110ae7b2e1500 RBX: ffffffff8babd760 RCX: ffff888020410000
RDX: 0000000080010001 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffffff8bfede40 R08: ffffffff8157cc12 R09: 1ffff110172851a2
R10: dffffc0000000000 R11: ffffed10172851a3 R12: 0000000000000001
R13: ffffffff8bfedd58 R14: dffffc0000000000 R15: ffff888018fc0d00
FS:  0000555589935380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000600 CR3: 0000000026b72000 CR4: 0000000000350ef0
Call Trace:
 <IRQ>
 debug_object_activate+0x357/0x510 lib/debugobjects.c:732
 debug_rcu_head_queue kernel/rcu/rcu.h:227 [inline]
 __call_rcu_common kernel/rcu/tree.c:2719 [inline]
 call_rcu+0x97/0xa70 kernel/rcu/tree.c:2838
 switch_schedules net/sched/sch_taprio.c:212 [inline]
 advance_sched+0x940/0xca0 net/sched/sch_taprio.c:973
 __run_hrtimer kernel/time/hrtimer.c:1692 [inline]
 __hrtimer_run_queues+0x597/0xd00 kernel/time/hrtimer.c:1756
 hrtimer_interrupt+0x396/0x990 kernel/time/hrtimer.c:1818
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1032 [inline]
 __sysvec_apic_timer_interrupt+0x109/0x3a0 arch/x86/kernel/apic/apic.c:1049
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline]
 sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1043
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:__asan_memcpy+0x40/0x70 mm/kasan/shadow.c:105
Code: 5c 24 20 48 89 f7 48 89 d6 31 d2 48 89 d9 e8 17 e5 ff ff 84 c0 74 2c 4c 89 ff 4c 89 e6 ba 01 00 00 00 48 89 d9 e8 00 e5 ff ff <84> c0 74 15 4c 89 ff 4c 89 f6 4c 89 e2 5b 41 5c 41 5e 41 5f e9 57
RSP: 0018:ffffc90004b46c58 EFLAGS: 00000256
RAX: 0000000000000001 RBX: ffffffff897acebc RCX: ffffffff897acebc
RDX: 0000000000000001 RSI: 0000000000000010 RDI: ffffc90004b46dc1
RBP: ffffc90004b46e90 R08: ffffc90004b46dd0 R09: 1ffff92000968dba
R10: dffffc0000000000 R11: fffff52000968dbb R12: 0000000000000010
R13: ffff888077ad8000 R14: ffff888077ad8ba8 R15: ffffc90004b46dc1
 mqprio_qopt_reconstruct+0x6c/0x330 net/sched/sch_mqprio_lib.c:108
 taprio_dump+0x243/0xd50 net/sched/sch_taprio.c:2380
 tc_fill_qdisc+0x6ab/0x1210 net/sched/sch_api.c:952
 qdisc_notify+0x2ec/0x4b0 net/sched/sch_api.c:1053
 tc_modify_qdisc+0x1c58/0x1e40 net/sched/sch_api.c:1748
 rtnetlink_rcv_msg+0x89d/0x10d0 net/core/rtnetlink.c:6595
 netlink_rcv_skb+0x1e5/0x430 net/netlink/af_netlink.c:2559
 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline]
 netlink_unicast+0x7ec/0x980 net/netlink/af_netlink.c:1361
 netlink_sendmsg+0x8e1/0xcb0 net/netlink/af_netlink.c:1905
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg+0x223/0x270 net/socket.c:745
 ____sys_sendmsg+0x525/0x7d0 net/socket.c:2584
 ___sys_sendmsg net/socket.c:2638 [inline]
 __sys_sendmsg+0x2b0/0x3a0 net/socket.c:2667
 do_syscall_64+0xfd/0x240
 entry_SYSCALL_64_after_hwframe+0x6d/0x75
RIP: 0033:0x7f5b82e97759
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 19 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffc0fe7c88 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000011 RCX: 00007f5b82e97759
RDX: 0000000004008000 RSI: 00000000200000c0 RDI: 0000000000000004
RBP: 00000000000f4240 R08: 0000000100000000 R09: 0000000100000000
R10: 0000000100000000 R11: 0000000000000246 R12: 00007fffc0fe7ce0
R13: 0000000000018a6f R14: 00007fffc0fe7cac R15: 0000000000000003
 </TASK>
----------------
Code disassembly (best guess):
   0:	5c                   	pop    %rsp
   1:	24 20                	and    $0x20,%al
   3:	48 89 f7             	mov    %rsi,%rdi
   6:	48 89 d6             	mov    %rdx,%rsi
   9:	31 d2                	xor    %edx,%edx
   b:	48 89 d9             	mov    %rbx,%rcx
   e:	e8 17 e5 ff ff       	call   0xffffe52a
  13:	84 c0                	test   %al,%al
  15:	74 2c                	je     0x43
  17:	4c 89 ff             	mov    %r15,%rdi
  1a:	4c 89 e6             	mov    %r12,%rsi
  1d:	ba 01 00 00 00       	mov    $0x1,%edx
  22:	48 89 d9             	mov    %rbx,%rcx
  25:	e8 00 e5 ff ff       	call   0xffffe52a
* 2a:	84 c0                	test   %al,%al <-- trapping instruction
  2c:	74 15                	je     0x43
  2e:	4c 89 ff             	mov    %r15,%rdi
  31:	4c 89 f6             	mov    %r14,%rsi
  34:	4c 89 e2             	mov    %r12,%rdx
  37:	5b                   	pop    %rbx
  38:	41 5c                	pop    %r12
  3a:	41 5e                	pop    %r14
  3c:	41 5f                	pop    %r15
  3e:	e9                   	.byte 0xe9
  3f:	57                   	push   %rdi

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/01 20:11 upstream fe46a7dd189e 6baf5069 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING: ODEBUG bug in advance_sched
2024/03/20 06:20 upstream 480e035fc4c7 a485f239 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING: ODEBUG bug in advance_sched
2023/12/21 10:24 upstream 1a44b0073b92 4f9530a3 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING: ODEBUG bug in advance_sched
2024/03/24 13:00 net f99c5f563c17 0ea90952 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING: ODEBUG bug in advance_sched
2024/02/12 05:54 net-next 970cb1ceda17 77b23aa1 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: ODEBUG bug in advance_sched
2024/02/10 12:45 net-next b63cc73341e0 77b23aa1 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: ODEBUG bug in advance_sched
2024/02/20 01:15 upstream b401b621758e 3af7dd65 .config console log report syz [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING: ODEBUG bug in advance_sched
2024/02/14 13:00 net 1e41f11f08bc d902085f .config console log report syz [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING: ODEBUG bug in advance_sched
2024/02/14 05:19 net 1e41f11f08bc d902085f .config console log report syz [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING: ODEBUG bug in advance_sched
2024/04/11 07:43 net f99c5f563c17 56086b24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING: ODEBUG bug in advance_sched
* Struck through repros no longer work on HEAD.