[ 33.502945] audit: type=1800 audit(1565906237.582:33): pid=7007 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op="collect_data" cause="failed(directio)" comm="startpar" name="rc.local" dev="sda1" ino=2465 res=0 [ 33.526014] audit: type=1800 audit(1565906237.582:34): pid=7007 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op="collect_data" cause="failed(directio)" comm="startpar" name="rmnologin" dev="sda1" ino=2456 res=0 Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 36.418840] random: sshd: uninitialized urandom read (32 bytes read) [ 36.819069] audit: type=1400 audit(1565906240.892:35): avc: denied { map } for pid=7182 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 [ 36.872261] random: sshd: uninitialized urandom read (32 bytes read) [ 37.509032] random: sshd: uninitialized urandom read (32 bytes read) [ 37.707848] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.93' (ECDSA) to the list of known hosts. [ 43.313472] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 43.434979] audit: type=1400 audit(1565906247.512:36): avc: denied { map } for pid=7194 comm="syz-executor786" path="/root/syz-executor786725529" 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 executing program executing program [ 48.444270] ODEBUG: free active (active state 0) object type: timer_list hint: rfcomm_dlc_timeout+0x0/0x60 [ 48.455261] ------------[ cut here ]------------ [ 48.460103] WARNING: CPU: 1 PID: 7197 at lib/debugobjects.c:287 debug_print_object.cold+0xa7/0xdb [ 48.469365] Kernel panic - not syncing: panic_on_warn set ... [ 48.469365] [ 48.477022] CPU: 1 PID: 7197 Comm: syz-executor786 Not tainted 4.14.138 #34 [ 48.484108] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 48.494016] Call Trace: [ 48.496685] dump_stack+0x138/0x19c [ 48.500337] panic+0x1f2/0x426 [ 48.503519] ? add_taint.cold+0x16/0x16 [ 48.507520] ? debug_print_object.cold+0xa7/0xdb [ 48.512433] ? debug_print_object.cold+0xa7/0xdb [ 48.517226] __warn.cold+0x2f/0x36 [ 48.520756] ? ist_end_non_atomic+0x10/0x10 [ 48.525081] ? debug_print_object.cold+0xa7/0xdb [ 48.529995] report_bug+0x216/0x254 [ 48.533711] do_error_trap+0x1bb/0x310 [ 48.537590] ? math_error+0x360/0x360 [ 48.541655] ? vprintk_emit+0x171/0x600 [ 48.545751] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 48.550584] do_invalid_op+0x1b/0x20 [ 48.554286] invalid_op+0x1b/0x40 [ 48.557852] RIP: 0010:debug_print_object.cold+0xa7/0xdb [ 48.563193] RSP: 0018:ffff8880a89a7aa8 EFLAGS: 00010086 [ 48.568538] RAX: 000000000000005e RBX: 0000000000000003 RCX: 0000000000000000 [ 48.575791] RDX: 0000000000000000 RSI: ffffffff866d0ee0 RDI: ffffed1015134f4b [ 48.583055] RBP: ffff8880a89a7ad0 R08: 000000000000005e R09: 0000000000000000 [ 48.590671] R10: 0000000000000000 R11: ffff88808c284600 R12: ffffffff866cc0e0 [ 48.597928] R13: ffffffff85828a20 R14: 0000000000000000 R15: ffff88809074ece8 [ 48.605273] ? rfcomm_session_add+0x340/0x340 [ 48.609768] ? debug_print_object.cold+0xa7/0xdb [ 48.614532] debug_check_no_obj_freed+0x3f5/0x7b7 [ 48.619404] ? free_obj_work+0x6d0/0x6d0 [ 48.623577] ? rcu_lockdep_current_cpu_online+0xf2/0x140 [ 48.629216] kfree+0xbd/0x270 [ 48.632314] rfcomm_dlc_free+0x20/0x30 [ 48.636280] rfcomm_dev_ioctl+0x1590/0x18b0 [ 48.640656] ? mark_held_locks+0xb1/0x100 [ 48.644800] ? __local_bh_enable_ip+0x99/0x1a0 [ 48.649371] ? rfcomm_dev_state_change+0x130/0x130 [ 48.654314] ? __local_bh_enable_ip+0x99/0x1a0 [ 48.658900] rfcomm_sock_ioctl+0x82/0xa0 [ 48.662990] sock_do_ioctl+0x64/0xb0 [ 48.667018] sock_ioctl+0x2a6/0x470 [ 48.670637] ? dlci_ioctl_set+0x40/0x40 [ 48.674606] do_vfs_ioctl+0x7ae/0x1060 [ 48.678746] ? selinux_file_mprotect+0x5d0/0x5d0 [ 48.683533] ? ioctl_preallocate+0x1c0/0x1c0 [ 48.687925] ? fd_install+0x4d/0x60 [ 48.691541] ? security_file_ioctl+0x7d/0xb0 [ 48.696227] ? security_file_ioctl+0x89/0xb0 [ 48.700631] SyS_ioctl+0x8f/0xc0 [ 48.703985] ? do_vfs_ioctl+0x1060/0x1060 [ 48.708193] do_syscall_64+0x1e8/0x640 [ 48.712146] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 48.717316] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 48.722637] RIP: 0033:0x441229 [ 48.725830] RSP: 002b:00007fff8cff78e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 48.733803] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441229 [ 48.741450] RDX: 0000000020000100 RSI: 00000000400452c8 RDI: 0000000000000004 [ 48.749030] RBP: 000000000000bd37 R08: 00000000004002c8 R09: 00000000004002c8 [ 48.756726] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000402050 [ 48.764094] R13: 00000000004020e0 R14: 0000000000000000 R15: 0000000000000000 [ 48.771548] [ 48.771551] ====================================================== [ 48.771552] WARNING: possible circular locking dependency detected [ 48.771554] 4.14.138 #34 Not tainted [ 48.771555] ------------------------------------------------------ [ 48.771557] syz-executor786/7197 is trying to acquire lock: [ 48.771558] ((console_sem).lock){-...}, at: [] down_trylock+0x13/0x70 [ 48.771564] [ 48.771566] but task is already holding lock: [ 48.771567] (&obj_hash[i].lock){-.-.}, at: [] debug_check_no_obj_freed+0x12d/0x7b7 [ 48.771571] [ 48.771573] which lock already depends on the new lock. [ 48.771574] [ 48.771574] [ 48.771576] the existing dependency chain (in reverse order) is: [ 48.771577] [ 48.771578] -> #3 (&obj_hash[i].lock){-.-.}: [ 48.771582] lock_acquire+0x16f/0x430 [ 48.771583] _raw_spin_lock_irqsave+0x95/0xcd [ 48.771585] __debug_object_init+0xa9/0x8e0 [ 48.771586] debug_object_init+0x16/0x20 [ 48.771587] hrtimer_init+0x2a/0x2e0 [ 48.771589] init_dl_task_timer+0x1b/0x50 [ 48.771590] __sched_fork+0x222/0xab0 [ 48.771591] init_idle+0x75/0x800 [ 48.771592] sched_init+0xaa1/0xbb3 [ 48.771593] start_kernel+0x339/0x6fd [ 48.771595] x86_64_start_reservations+0x29/0x2b [ 48.771596] x86_64_start_kernel+0x77/0x7b [ 48.771597] secondary_startup_64+0xa5/0xb0 [ 48.771598] [ 48.771599] -> #2 (&rq->lock){-.-.}: [ 48.771603] lock_acquire+0x16f/0x430 [ 48.771604] _raw_spin_lock+0x2f/0x40 [ 48.771605] task_fork_fair+0x63/0x5b0 [ 48.771606] sched_fork+0x3a6/0xc10 [ 48.771607] copy_process.part.0+0x15b7/0x6a00 [ 48.771609] _do_fork+0x19e/0xce0 [ 48.771610] kernel_thread+0x34/0x40 [ 48.771611] rest_init+0x24/0x1e2 [ 48.771612] start_kernel+0x6df/0x6fd [ 48.771613] x86_64_start_reservations+0x29/0x2b [ 48.771615] x86_64_start_kernel+0x77/0x7b [ 48.771616] secondary_startup_64+0xa5/0xb0 [ 48.771617] [ 48.771617] -> #1 (&p->pi_lock){-.-.}: [ 48.771621] lock_acquire+0x16f/0x430 [ 48.771623] _raw_spin_lock_irqsave+0x95/0xcd [ 48.771624] try_to_wake_up+0x79/0xf90 [ 48.771625] wake_up_process+0x10/0x20 [ 48.771626] __up.isra.0+0x136/0x1a0 [ 48.771627] up+0x9c/0xe0 [ 48.771629] __up_console_sem+0xad/0x1b0 [ 48.771630] console_unlock+0x59d/0xed0 [ 48.771631] vprintk_emit+0x1f9/0x600 [ 48.771633] vprintk_default+0x28/0x30 [ 48.771634] vprintk_func+0x5d/0x159 [ 48.771635] printk+0x9e/0xbc [ 48.771637] kauditd_hold_skb.cold+0x3e/0x4d [ 48.771639] kauditd_send_queue+0xfc/0x140 [ 48.771641] kauditd_thread+0x644/0x860 [ 48.771643] kthread+0x319/0x430 [ 48.771645] ret_from_fork+0x24/0x30 [ 48.771645] [ 48.771646] -> #0 ((console_sem).lock){-...}: [ 48.771651] __lock_acquire+0x2cb3/0x4620 [ 48.771652] lock_acquire+0x16f/0x430 [ 48.771653] _raw_spin_lock_irqsave+0x95/0xcd [ 48.771654] down_trylock+0x13/0x70 [ 48.771656] __down_trylock_console_sem+0x9c/0x200 [ 48.771657] console_trylock+0x17/0x80 [ 48.771658] vprintk_emit+0x1eb/0x600 [ 48.771660] vprintk_default+0x28/0x30 [ 48.771661] vprintk_func+0x5d/0x159 [ 48.771662] printk+0x9e/0xbc [ 48.771664] debug_print_object.cold+0xa7/0xdb [ 48.771666] debug_check_no_obj_freed+0x3f5/0x7b7 [ 48.771667] kfree+0xbd/0x270 [ 48.771668] rfcomm_dlc_free+0x20/0x30 [ 48.771670] rfcomm_dev_ioctl+0x1590/0x18b0 [ 48.771671] rfcomm_sock_ioctl+0x82/0xa0 [ 48.771672] sock_do_ioctl+0x64/0xb0 [ 48.771673] sock_ioctl+0x2a6/0x470 [ 48.771675] do_vfs_ioctl+0x7ae/0x1060 [ 48.771676] SyS_ioctl+0x8f/0xc0 [ 48.771677] do_syscall_64+0x1e8/0x640 [ 48.771679] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 48.771679] [ 48.771681] other info that might help us debug this: [ 48.771681] [ 48.771683] Chain exists of: [ 48.771683] (console_sem).lock --> &rq->lock --> &obj_hash[i].lock [ 48.771689] [ 48.771690] Possible unsafe locking scenario: [ 48.771691] [ 48.771692] CPU0 CPU1 [ 48.771693] ---- ---- [ 48.771694] lock(&obj_hash[i].lock); [ 48.771697] lock(&rq->lock); [ 48.771700] lock(&obj_hash[i].lock); [ 48.771702] lock((console_sem).lock); [ 48.771704] [ 48.771705] *** DEADLOCK *** [ 48.771706] [ 48.771707] 3 locks held by syz-executor786/7197: [ 48.771708] #0: (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}, at: [] rfcomm_sock_ioctl+0x74/0xa0 [ 48.771713] #1: (rfcomm_ioctl_mutex){+.+.}, at: [] rfcomm_dev_ioctl+0x442/0x18b0 [ 48.771718] #2: (&obj_hash[i].lock){-.-.}, at: [] debug_check_no_obj_freed+0x12d/0x7b7 [ 48.771722] [ 48.771723] stack backtrace: [ 48.771725] CPU: 1 PID: 7197 Comm: syz-executor786 Not tainted 4.14.138 #34 [ 48.771727] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 48.771728] Call Trace: [ 48.771729] dump_stack+0x138/0x19c [ 48.771730] print_circular_bug.isra.0.cold+0x1cc/0x28f [ 48.771732] __lock_acquire+0x2cb3/0x4620 [ 48.771733] ? add_lock_to_list.isra.0+0x17c/0x330 [ 48.771734] ? trace_hardirqs_on+0x10/0x10 [ 48.771735] ? netdev_bits+0xb0/0xb0 [ 48.771736] ? save_trace+0x290/0x290 [ 48.771737] ? kvm_clock_read+0x23/0x40 [ 48.771739] ? kvm_sched_clock_read+0x9/0x20 [ 48.771740] lock_acquire+0x16f/0x430 [ 48.771741] ? down_trylock+0x13/0x70 [ 48.771742] ? vprintk_emit+0x109/0x600 [ 48.771743] _raw_spin_lock_irqsave+0x95/0xcd [ 48.771745] ? down_trylock+0x13/0x70 [ 48.771746] ? vprintk_emit+0x1eb/0x600 [ 48.771747] down_trylock+0x13/0x70 [ 48.771748] ? vprintk_emit+0x1eb/0x600 [ 48.771749] __down_trylock_console_sem+0x9c/0x200 [ 48.771750] console_trylock+0x17/0x80 [ 48.771751] vprintk_emit+0x1eb/0x600 [ 48.771753] vprintk_default+0x28/0x30 [ 48.771754] vprintk_func+0x5d/0x159 [ 48.771755] ? rfcomm_session_add+0x340/0x340 [ 48.771756] printk+0x9e/0xbc [ 48.771757] ? show_regs_print_info+0x63/0x63 [ 48.771759] ? lock_acquire+0x16f/0x430 [ 48.771760] ? debug_check_no_obj_freed+0x12d/0x7b7 [ 48.771762] ? rfcomm_session_add+0x340/0x340 [ 48.771763] debug_print_object.cold+0xa7/0xdb [ 48.771765] debug_check_no_obj_freed+0x3f5/0x7b7 [ 48.771766] ? free_obj_work+0x6d0/0x6d0 [ 48.771767] ? rcu_lockdep_current_cpu_online+0xf2/0x140 [ 48.771768] kfree+0xbd/0x270 [ 48.771770] rfcomm_dlc_free+0x20/0x30 [ 48.771771] rfcomm_dev_ioctl+0x1590/0x18b0 [ 48.771772] ? mark_held_locks+0xb1/0x100 [ 48.771774] ? __local_bh_enable_ip+0x99/0x1a0 [ 48.771775] ? rfcomm_dev_state_change+0x130/0x130 [ 48.771776] ? __local_bh_enable_ip+0x99/0x1a0 [ 48.771777] rfcomm_sock_ioctl+0x82/0xa0 [ 48.771778] sock_do_ioctl+0x64/0xb0 [ 48.771780] sock_ioctl+0x2a6/0x470 [ 48.771781] ? dlci_ioctl_set+0x40/0x40 [ 48.771782] do_vfs_ioctl+0x7ae/0x1060 [ 48.771783] ? selinux_file_mprotect+0x5d0/0x5d0 [ 48.771784] ? ioctl_preallocate+0x1c0/0x1c0 [ 48.771786] ? fd_install+0x4d/0x60 [ 48.771787] ? security_file_ioctl+0x7d/0xb0 [ 48.771788] ? security_file_ioctl+0x89/0xb0 [ 48.771789] SyS_ioctl+0x8f/0xc0 [ 48.771790] ? do_vfs_ioctl+0x1060/0x1060 [ 48.771791] do_syscall_64+0x1e8/0x640 [ 48.771793] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 48.771794] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 48.771795] RIP: 0033:0x441229 [ 48.771796] RSP: 002b:00007fff8cff78e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 48.771799] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441229 [ 48.771801] RDX: 0000000020000100 RSI: 00000000400452c8 RDI: 0000000000000004 [ 48.771803] RBP: 000000000000bd37 R08: 00000000004002c8 R09: 00000000004002c8 [ 48.771805] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000402050 [ 48.771806] R13: 00000000004020e0 R14: 0000000000000000 R15: 0000000000000000 [ 48.773069] Kernel Offset: disabled [ 49.552913] Rebooting in 86400 seconds..