syzbot


WARNING: ODEBUG bug in rfcomm_dev_ioctl

Status: fixed on 2020/04/23 14:56
Reported-by: syzbot+ed209d00d1a00ff450e8@syzkaller.appspotmail.com
Fix commit: 0da9c032adbb Bluetooth: RFCOMM: fix ODEBUG bug in rfcomm_dev_ioctl
First crash: 1719d, last: 1719d
Fix bisection: fixed by (bisect log) :
commit 0da9c032adbb6f83cc7f548c5155d26c64f44d63
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
upstream WARNING: ODEBUG bug in rfcomm_dev_ioctl bluetooth 1 1736d 1736d 15/28 fixed on 2020/05/10 10:42
linux-4.19 WARNING: ODEBUG bug in rfcomm_dev_ioctl C done 1 1714d 1714d 1/1 fixed on 2020/04/28 10:48

Sample crash report:
audit: type=1400 audit(1584990865.292:36): avc:  denied  { map } for  pid=7401 comm="syz-executor812" path="/root/syz-executor812287922" dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
ODEBUG: free active (active state 0) object type: timer_list hint: __write_once_size include/linux/compiler.h:210 [inline]
ODEBUG: free active (active state 0) object type: timer_list hint: __list_add include/linux/list.h:66 [inline]
ODEBUG: free active (active state 0) object type: timer_list hint: list_add include/linux/list.h:79 [inline]
ODEBUG: free active (active state 0) object type: timer_list hint: rfcomm_dlc_timeout+0x0/0x60 net/bluetooth/rfcomm/core.c:337
------------[ cut here ]------------
WARNING: CPU: 0 PID: 7404 at lib/debugobjects.c:287 debug_print_object.cold+0xa7/0xdb lib/debugobjects.c:287
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 7404 Comm: syz-executor812 Not tainted 4.14.174-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x13e/0x194 lib/dump_stack.c:58
 panic+0x1f9/0x42d kernel/panic.c:183
 __warn.cold+0x2f/0x30 kernel/panic.c:547
 report_bug+0x20a/0x248 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:963
RIP: 0010:debug_print_object.cold+0xa7/0xdb lib/debugobjects.c:287
RSP: 0018:ffff88809157fb10 EFLAGS: 00010086
RAX: 000000000000005e RBX: 0000000000000003 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff86ac07e0 RDI: ffffed10122aff58
RBP: ffffffff86abba60 R08: 000000000000005e R09: 0000000000000000
R10: fffffbfff14a8cd9 R11: ffff8880827e4600 R12: ffffffff85a89100
R13: 0000000000000000 R14: ffffffff8a72d088 R15: ffff88808fad9c40
 __debug_check_no_obj_freed lib/debugobjects.c:747 [inline]
 debug_check_no_obj_freed+0x3cd/0x6e4 lib/debugobjects.c:776
 kfree+0xbb/0x260 mm/slab.c:3814
 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+0x151f/0x1810 net/bluetooth/rfcomm/tty.c:588
 rfcomm_sock_ioctl+0x7d/0xa0 net/bluetooth/rfcomm/sock.c:902
 sock_do_ioctl+0x5f/0xa0 net/socket.c:974
 sock_ioctl+0x28d/0x450 net/socket.c:1071
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:500 [inline]
 do_vfs_ioctl+0x75a/0xfe0 fs/ioctl.c:684
 SYSC_ioctl fs/ioctl.c:701 [inline]
 SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x441309
RSP: 002b:00007ffff0f7aa08 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441309
RDX: 0000000020000100 RSI: 00000000400452c8 RDI: 0000000000000005
RBP: 000000000000bab9 R08: 00000000004002c8 R09: 00000000004002c8
R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000402130
R13: 00000000004021c0 R14: 0000000000000000 R15: 0000000000000000

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

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/03/23 19:16 linux-4.14.y 01364dad1d45 84f999d6 .config console log report syz C ci2-linux-4-14
2020/03/23 18:04 linux-4.14.y 01364dad1d45 84f999d6 .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.