syzbot


WARNING: ODEBUG bug in rfcomm_dlc_free

Status: fixed on 2020/04/14 11:07
Reported-by: syzbot+2b7e5402aa6271cb1b9d@syzkaller.appspotmail.com
Fix commit: 78a4ad28608a Bluetooth: RFCOMM: fix ODEBUG bug in rfcomm_dev_ioctl
First crash: 1943d, last: 1712d
Fix bisection: fixed by (bisect log) :
commit 78a4ad28608a530b5bd85da60307d61133e68040
Author: Qiujun Huang <hqjagain@gmail.com>
Date: Sun Mar 8 09:45:27 2020 +0000

  Bluetooth: RFCOMM: fix ODEBUG bug in rfcomm_dev_ioctl

  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING: ODEBUG bug in rfcomm_dlc_free C done 16 1711d 1943d 1/1 fixed on 2020/04/16 05:11
upstream WARNING: ODEBUG bug in rfcomm_dlc_free C done error 146 1728d 2305d 0/28 auto-obsoleted due to no activity on 2023/04/13 01:17
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2020/04/14 08:11 2h50m bisect fix linux-4.19.y OK (1) job log
2020/03/15 07:43 28m bisect fix linux-4.19.y OK (0) job log log
2020/02/08 02:43 24m bisect fix linux-4.19.y OK (0) job log log
2019/12/14 01:37 23m bisect fix linux-4.19.y OK (0) job log log

Sample crash report:
audit: type=1400 audit(1581666012.207:36): avc:  denied  { map } for  pid=8149 comm="syz-executor582" path="/root/syz-executor582176415" dev="sda1" ino=16484 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
------------[ cut here ]------------
ODEBUG: free active (active state 0) object type: timer_list hint: rfcomm_dlc_timeout+0x0/0x80 include/linux/compiler.h:220
WARNING: CPU: 1 PID: 8152 at lib/debugobjects.c:325 debug_print_object+0x168/0x250 lib/debugobjects.c:325
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 8152 Comm: syz-executor582 Not tainted 4.19.103-syzkaller #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+0x197/0x210 lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x53 kernel/panic.c:541
 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 e0 09 eb 87 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 b5 00 00 00 48 8b 14 dd e0 09 eb 87 48 c7 c7 20 ff ea 87 e8 56 9b d4 fd <0f> 0b 83 05 4b 69 63 06 01 48 83 c4 20 5b 41 5c 41 5d 41 5e 5d c3
RSP: 0018:ffff8880880478b8 EFLAGS: 00010082
RAX: 0000000000000000 RBX: 0000000000000003 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8155a136 RDI: ffffed1011008f09
RBP: ffff8880880478f8 R08: ffff8880a79fa540 R09: ffffed1015d23ee3
R10: ffffed1015d23ee2 R11: ffff8880ae91f717 R12: 0000000000000001
R13: ffffffff88fa05a0 R14: ffffffff815b1920 R15: ffff88808f0d07e8
 __debug_check_no_obj_freed lib/debugobjects.c:785 [inline]
 debug_check_no_obj_freed+0x29f/0x464 lib/debugobjects.c:817
 kfree+0xbd/0x220 mm/slab.c:3821
 rfcomm_dlc_free+0x20/0x30 net/bluetooth/rfcomm/core.c:328
 rfcomm_dlc_put include/net/bluetooth/rfcomm.h:258 [inline]
 __rfcomm_create_dev net/bluetooth/rfcomm/tty.c:417 [inline]
 rfcomm_create_dev net/bluetooth/rfcomm/tty.c:486 [inline]
 rfcomm_dev_ioctl+0x1988/0x1c90 net/bluetooth/rfcomm/tty.c:588
 rfcomm_sock_ioctl+0x90/0xb0 net/bluetooth/rfcomm/sock.c:902
 sock_do_ioctl+0xd8/0x2f0 net/socket.c:950
 sock_ioctl+0x325/0x610 net/socket.c:1074
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xd5f/0x1380 fs/ioctl.c:688
 ksys_ioctl+0xab/0xd0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:710
 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4412c9
Code: e8 fc ab 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 0f 83 9b 09 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffd3257ff88 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004412c9
RDX: 0000000020000100 RSI: 00000000400452c8 RDI: 0000000000000005
RBP: 000000000000e810 R08: 00000000004002c8 R09: 00000000004002c8
R10: 00000000004002c8 R11: 0000000000000246 R12: 00000000004020f0
R13: 0000000000402180 R14: 0000000000000000 R15: 0000000000000000

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

Crashes (21):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/14 07:43 linux-4.19.y 357668399cf7 5d7b90f1 .config console log report syz C ci2-linux-4-19
2020/01/09 02:43 linux-4.19.y 3d40d7117e35 ddc3e859 .config console log report syz C ci2-linux-4-19
2020/01/05 21:59 linux-4.19.y 3d40d7117e35 d646e21f .config console log report syz C ci2-linux-4-19
2019/12/28 04:15 linux-4.19.y 672481c2deff be5c2c81 .config console log report syz C ci2-linux-4-19
2019/12/27 05:19 linux-4.19.y 672481c2deff be5c2c81 .config console log report syz C ci2-linux-4-19
2019/12/26 18:01 linux-4.19.y 672481c2deff be5c2c81 .config console log report syz C ci2-linux-4-19
2019/10/30 05:44 linux-4.19.y ef244c308885 5ea87a66 .config console log report syz C ci2-linux-4-19
2019/10/28 09:24 linux-4.19.y c3038e718a19 25bb509e .config console log report syz C ci2-linux-4-19
2019/10/25 13:55 linux-4.19.y c3038e718a19 04ca72cd .config console log report syz C ci2-linux-4-19
2019/10/20 14:08 linux-4.19.y c3038e718a19 8c88c9c1 .config console log report syz C ci2-linux-4-19
2019/10/15 09:48 linux-4.19.y dafd634415a7 05ad7292 .config console log report syz C ci2-linux-4-19
2019/09/10 08:15 linux-4.19.y e7d2672c66e4 a60cb4cd .config console log report syz C ci2-linux-4-19
2019/08/27 04:32 linux-4.19.y def4c11b3131 d21c5d9d .config console log report syz C ci2-linux-4-19
2019/08/16 01:36 linux-4.19.y 893af1c79e42 faeffb00 .config console log report syz C ci2-linux-4-19
2019/08/14 18:24 linux-4.19.y 893af1c79e42 5576551b .config console log report syz C ci2-linux-4-19
2019/08/14 14:56 linux-4.19.y 893af1c79e42 5576551b .config console log report syz C ci2-linux-4-19
2019/07/28 17:02 linux-4.19.y 64f4694072aa c85e1c5b .config console log report syz C ci2-linux-4-19
2019/07/27 22:04 linux-4.19.y 7250956f6eaf c85e1c5b .config console log report syz C ci2-linux-4-19
2019/12/27 11:18 linux-4.19.y 672481c2deff be5c2c81 .config console log report ci2-linux-4-19
2019/12/25 17:25 linux-4.19.y 672481c2deff be5c2c81 .config console log report ci2-linux-4-19
2019/09/22 15:00 linux-4.19.y d573e8a79f70 d96e88f3 .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.