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: 335d, last: 46d
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
  
Fix bisection: fixed by (bisect log) :
commit f504465970aebb2467da548f7c1efbbf36d0f44b
Author: Dmitry Antipov <dmantipov@yandex.ru>
Date: Fri Oct 18 05:13:38 2024 +0000

  net: sched: fix use-after-free in taprio_change()

  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [net?] WARNING: ODEBUG bug in advance_sched 1 (5) 2024/11/11 19:31
Last patch testing requests (11)
Created Duration User Patch Repo Result
2024/10/28 08:19 1h15m retest repro net OK log
2024/10/28 08:19 21m retest repro net OK log
2024/10/28 04:01 29m retest repro net-next OK log
2024/10/28 03:05 27m retest repro net-next OK log
2024/10/20 00:23 30m retest repro upstream report log
2024/09/30 03:02 22m retest repro upstream report log
2024/09/30 00:19 26m retest repro upstream report log
2024/09/18 03:21 18m retest repro net report log
2024/08/19 07:40 21m retest repro net report log
2024/08/19 07:40 15m retest repro net 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
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2024/11/11 12:42 6h47m bisect fix upstream OK (1) job log
2024/10/05 20:56 3h12m bisect fix upstream OK (0) job log log
2024/09/04 01:08 1h49m bisect fix upstream OK (0) job log log

Sample crash report:
------------[ cut here ]------------
ODEBUG: activate active (active state 1) object: ffff88801f6b8100 object type: rcu_head hint: 0x0
WARNING: CPU: 0 PID: 0 at lib/debugobjects.c:517 debug_print_object+0x17a/0x1f0 lib/debugobjects.c:514
Modules linked in:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.8.0-syzkaller-08073-g480e035fc4c7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
RIP: 0010:debug_print_object+0x17a/0x1f0 lib/debugobjects.c:514
Code: e8 fb b9 4a fd 4c 8b 0b 48 c7 c7 20 dd fe 8b 48 8b 74 24 08 48 89 ea 44 89 e1 4d 89 f8 ff 34 24 e8 eb 3e aa fc 48 83 c4 08 90 <0f> 0b 90 90 ff 05 8c d5 d9 0a 48 83 c4 10 5b 41 5c 41 5d 41 5e 41
RSP: 0018:ffffc900000079f8 EFLAGS: 00010082
RAX: f05a1f1759fc8d00 RBX: ffffffff8babd760 RCX: ffffffff8de94680
RDX: 0000000080010002 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffffff8bfedea0 R08: ffffffff8157cc12 R09: 1ffff110172851a2
R10: dffffc0000000000 R11: ffffed10172851a3 R12: 0000000000000001
R13: ffffffff8bfeddb8 R14: dffffc0000000000 R15: ffff88801f6b8100
FS:  0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f890a921708 CR3: 000000000df32000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
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+0x595/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+0x107/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:native_irq_disable arch/x86/include/asm/irqflags.h:37 [inline]
RIP: 0010:arch_local_irq_disable arch/x86/include/asm/irqflags.h:72 [inline]
RIP: 0010:acpi_safe_halt+0x21/0x30 drivers/acpi/processor_idle.c:113
Code: 90 90 90 90 90 90 90 90 90 65 48 8b 04 25 80 d0 03 00 48 f7 00 08 00 00 00 75 10 66 90 0f 00 2d 15 1d 94 00 f3 0f 1e fa fb f4 <fa> c3 cc cc cc cc 66 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90
RSP: 0018:ffffffff8de07ca8 EFLAGS: 00000246
RAX: ffffffff8de94680 RBX: ffff88801b292864 RCX: 000000000005d729
RDX: 0000000000000001 RSI: ffff88801b292800 RDI: ffff88801b292864
RBP: 000000000003a138 R08: ffff8880b9437d0b R09: 1ffff11017286fa1
R10: dffffc0000000000 R11: ffffffff8b746600 R12: ffff88801b3d9000
R13: 0000000000000000 R14: 0000000000000001 R15: ffffffff8e8a6e20
 acpi_idle_enter+0xe4/0x140 drivers/acpi/processor_idle.c:707
 cpuidle_enter_state+0x118/0x490 drivers/cpuidle/cpuidle.c:267
 cpuidle_enter+0x5d/0xa0 drivers/cpuidle/cpuidle.c:388
 call_cpuidle kernel/sched/idle.c:155 [inline]
 cpuidle_idle_call kernel/sched/idle.c:236 [inline]
 do_idle+0x375/0x5d0 kernel/sched/idle.c:332
 cpu_startup_entry+0x42/0x60 kernel/sched/idle.c:430
 rest_init+0x2e0/0x300 init/main.c:730
 arch_call_rest_init+0xe/0x10 init/main.c:831
 start_kernel+0x47a/0x500 init/main.c:1077
 x86_64_start_reservations+0x2a/0x30 arch/x86/kernel/head64.c:509
 x86_64_start_kernel+0x99/0xa0 arch/x86/kernel/head64.c:490
 common_startup_64+0x13e/0x147
 </TASK>
----------------
Code disassembly (best guess):
   0:	90                   	nop
   1:	90                   	nop
   2:	90                   	nop
   3:	90                   	nop
   4:	90                   	nop
   5:	90                   	nop
   6:	90                   	nop
   7:	90                   	nop
   8:	90                   	nop
   9:	65 48 8b 04 25 80 d0 	mov    %gs:0x3d080,%rax
  10:	03 00
  12:	48 f7 00 08 00 00 00 	testq  $0x8,(%rax)
  19:	75 10                	jne    0x2b
  1b:	66 90                	xchg   %ax,%ax
  1d:	0f 00 2d 15 1d 94 00 	verw   0x941d15(%rip)        # 0x941d39
  24:	f3 0f 1e fa          	endbr64
  28:	fb                   	sti
  29:	f4                   	hlt
* 2a:	fa                   	cli <-- trapping instruction
  2b:	c3                   	ret
  2c:	cc                   	int3
  2d:	cc                   	int3
  2e:	cc                   	int3
  2f:	cc                   	int3
  30:	66 0f 1f 84 00 00 00 	nopw   0x0(%rax,%rax,1)
  37:	00 00
  39:	90                   	nop
  3a:	90                   	nop
  3b:	90                   	nop
  3c:	90                   	nop
  3d:	90                   	nop
  3e:	90                   	nop
  3f:	90                   	nop

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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/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/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/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
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/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
* Struck through repros no longer work on HEAD.