syzbot


WARNING: ODEBUG bug in free_task

Status: fixed on 2019/12/11 14:03
Reported-by: syzbot+af33a6610afb8054cf3f@syzkaller.appspotmail.com
Fix commit: 4eb92a114834 RDMA/restrack: Protect from reentry to resource return path
First crash: 1015d, last: 1005d

Fix bisection: fixed by (bisect log) :
commit 4eb92a1148342af1d6f82018d20cd862e1d3ab7e
Author: Leon Romanovsky <leonro@mellanox.com>
Date: Thu Oct 11 19:10:10 2018 +0000

  RDMA/restrack: Protect from reentry to resource return path

similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: ODEBUG bug in free_task C 423 1354d 1362d 22/22 closed as dup on 2018/10/10 12:59

Sample crash report:
------------[ cut here ]------------
ODEBUG: free active (active state 1) object type: rcu_head hint:           (null)
WARNING: CPU: 0 PID: 0 at lib/debugobjects.c:325 debug_print_object+0x168/0x250 lib/debugobjects.c:325
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.19.75 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x172/0x1f0 lib/dump_stack.c:113
 panic+0x263/0x507 kernel/panic.c:185
 __warn.cold+0x20/0x4a kernel/panic.c:540
 report_bug+0x263/0x2b0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x204/0x360 arch/x86/kernel/traps.c:296
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1037
RIP: 0010:debug_print_object+0x168/0x250 lib/debugobjects.c:325
Code: dd 20 56 82 87 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 b5 00 00 00 48 8b 14 dd 20 56 82 87 48 c7 c7 60 4b 82 87 e8 d6 04 19 fe <0f> 0b 83 05 cb 83 17 06 01 48 83 c4 20 5b 41 5c 41 5d 41 5e 5d c3
RSP: 0018:ffffffff88607a58 EFLAGS: 00010082
RAX: 0000000000000000 RBX: 0000000000000003 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8155dbd6 RDI: fffffbfff10c0f3d
RBP: ffffffff88607a98 R08: ffffffff88679ec0 R09: ffffed1015d03ee3
R10: ffffed1015d03ee2 R11: ffff8880ae81f717 R12: 0000000000000001
R13: ffffffff8879f200 R14: 0000000000000000 R15: ffff88807a9078a0
 __debug_check_no_obj_freed lib/debugobjects.c:785 [inline]
 debug_check_no_obj_freed+0x29f/0x464 lib/debugobjects.c:817
 kmem_cache_free+0x18f/0x260 mm/slab.c:3764
 free_task_struct kernel/fork.c:162 [inline]
 free_task+0xdd/0x120 kernel/fork.c:416
 __put_task_struct+0x20f/0x4c0 kernel/fork.c:689
 put_task_struct include/linux/sched/task.h:96 [inline]
 finish_task_switch+0x52b/0x780 kernel/sched/core.c:2710
 context_switch kernel/sched/core.c:2829 [inline]
 __schedule+0x86e/0x1dc0 kernel/sched/core.c:3474
 schedule_idle+0x58/0x80 kernel/sched/core.c:3545
 do_idle+0x192/0x560 kernel/sched/idle.c:286
 cpu_startup_entry+0xc8/0xe0 kernel/sched/idle.c:368
 rest_init+0x219/0x222 init/main.c:442
 start_kernel+0x88c/0x8c5 init/main.c:738
 x86_64_start_reservations+0x29/0x2b arch/x86/kernel/head64.c:472
 x86_64_start_kernel+0x77/0x7b arch/x86/kernel/head64.c:453
 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:243

======================================================

Crashes (165):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-19 2019/09/24 16:22 linux-4.19.y d573e8a79f70 f8368f99 .config log report syz C
ci2-linux-4-19 2019/09/28 15:29 linux-4.19.y d573e8a79f70 eb6b9855 .config log report syz
ci2-linux-4-19 2019/09/23 03:14 linux-4.19.y d573e8a79f70 d96e88f3 .config log report syz
ci2-linux-4-19 2019/10/01 05:26 linux-4.19.y d573e8a79f70 c7a4fb99 .config log report
ci2-linux-4-19 2019/10/01 04:20 linux-4.19.y d573e8a79f70 c7a4fb99 .config log report
ci2-linux-4-19 2019/10/01 02:26 linux-4.19.y d573e8a79f70 c7a4fb99 .config log report
ci2-linux-4-19 2019/10/01 00:33 linux-4.19.y d573e8a79f70 c7a4fb99 .config log report
ci2-linux-4-19 2019/10/01 00:01 linux-4.19.y d573e8a79f70 c7a4fb99 .config log report
ci2-linux-4-19 2019/09/30 20:30 linux-4.19.y d573e8a79f70 c7a4fb99 .config log report
ci2-linux-4-19 2019/09/30 17:49 linux-4.19.y d573e8a79f70 c7a4fb99 .config log report
ci2-linux-4-19 2019/09/30 16:31 linux-4.19.y d573e8a79f70 c7a4fb99 .config log report
ci2-linux-4-19 2019/09/30 14:44 linux-4.19.y d573e8a79f70 c7a4fb99 .config log report
ci2-linux-4-19 2019/09/30 12:48 linux-4.19.y d573e8a79f70 c7a4fb99 .config log report
ci2-linux-4-19 2019/09/30 10:25 linux-4.19.y d573e8a79f70 c1ad5441 .config log report
ci2-linux-4-19 2019/09/30 05:18 linux-4.19.y d573e8a79f70 c1ad5441 .config log report
ci2-linux-4-19 2019/09/30 03:33 linux-4.19.y d573e8a79f70 c1ad5441 .config log report
ci2-linux-4-19 2019/09/30 03:30 linux-4.19.y d573e8a79f70 c1ad5441 .config log report
ci2-linux-4-19 2019/09/29 20:51 linux-4.19.y d573e8a79f70 c1ad5441 .config log report
ci2-linux-4-19 2019/09/29 14:44 linux-4.19.y d573e8a79f70 c1ad5441 .config log report
ci2-linux-4-19 2019/09/29 10:21 linux-4.19.y d573e8a79f70 c1ad5441 .config log report
ci2-linux-4-19 2019/09/29 07:12 linux-4.19.y d573e8a79f70 eb6b9855 .config log report
ci2-linux-4-19 2019/09/29 06:02 linux-4.19.y d573e8a79f70 eb6b9855 .config log report
ci2-linux-4-19 2019/09/29 02:38 linux-4.19.y d573e8a79f70 eb6b9855 .config log report
ci2-linux-4-19 2019/09/29 00:34 linux-4.19.y d573e8a79f70 eb6b9855 .config log report
ci2-linux-4-19 2019/09/28 22:32 linux-4.19.y d573e8a79f70 eb6b9855 .config log report
ci2-linux-4-19 2019/09/28 21:11 linux-4.19.y d573e8a79f70 eb6b9855 .config log report
ci2-linux-4-19 2019/09/28 16:38 linux-4.19.y d573e8a79f70 eb6b9855 .config log report
ci2-linux-4-19 2019/09/28 14:54 linux-4.19.y d573e8a79f70 eb6b9855 .config log report
ci2-linux-4-19 2019/09/28 13:52 linux-4.19.y d573e8a79f70 eb6b9855 .config log report
ci2-linux-4-19 2019/09/28 12:59 linux-4.19.y d573e8a79f70 eb6b9855 .config log report
ci2-linux-4-19 2019/09/28 11:53 linux-4.19.y d573e8a79f70 eb6b9855 .config log report
ci2-linux-4-19 2019/09/28 08:46 linux-4.19.y d573e8a79f70 d8074e0b .config log report
ci2-linux-4-19 2019/09/28 07:35 linux-4.19.y d573e8a79f70 d8074e0b .config log report
ci2-linux-4-19 2019/09/28 03:08 linux-4.19.y d573e8a79f70 d8074e0b .config log report
ci2-linux-4-19 2019/09/27 18:29 linux-4.19.y d573e8a79f70 d8074e0b .config log report
ci2-linux-4-19 2019/09/27 17:01 linux-4.19.y d573e8a79f70 d8074e0b .config log report
ci2-linux-4-19 2019/09/27 14:04 linux-4.19.y d573e8a79f70 d8074e0b .config log report
ci2-linux-4-19 2019/09/27 11:33 linux-4.19.y d573e8a79f70 2f1548bc .config log report
ci2-linux-4-19 2019/09/27 09:10 linux-4.19.y d573e8a79f70 2f1548bc .config log report
ci2-linux-4-19 2019/09/27 06:25 linux-4.19.y d573e8a79f70 2f1548bc .config log report
ci2-linux-4-19 2019/09/27 02:29 linux-4.19.y d573e8a79f70 2f1548bc .config log report
ci2-linux-4-19 2019/09/26 23:07 linux-4.19.y d573e8a79f70 2f1548bc .config log report
ci2-linux-4-19 2019/09/26 21:52 linux-4.19.y d573e8a79f70 2f1548bc .config log report
ci2-linux-4-19 2019/09/26 16:41 linux-4.19.y d573e8a79f70 24d405a3 .config log report
ci2-linux-4-19 2019/09/26 15:17 linux-4.19.y d573e8a79f70 24d405a3 .config log report
ci2-linux-4-19 2019/09/26 12:53 linux-4.19.y d573e8a79f70 24d405a3 .config log report
ci2-linux-4-19 2019/09/26 11:22 linux-4.19.y d573e8a79f70 24d405a3 .config log report
ci2-linux-4-19 2019/09/21 07:22 linux-4.19.y d573e8a79f70 d96e88f3 .config log report