Out of memory: Kill process 28428 (syz-executor160) score 999 or sacrifice child Killed process 28428 (syz-executor160) total-vm:25848kB, anon-rss:2108kB, file-rss:4kB, shmem-rss:0kB oom_reaper: reaped process 28428 (syz-executor160), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB ================================ WARNING: inconsistent lock state 4.14.221-syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: (slock-AF_BLUETOOTH-BTPROTO_SCO){+.?.}, at: [] spin_lock include/linux/spinlock.h:317 [inline] (slock-AF_BLUETOOTH-BTPROTO_SCO){+.?.}, at: [] sco_sock_timeout+0x1e/0x110 net/bluetooth/sco.c:82 {SOFTIRQ-ON-W} state was registered at: mark_irqflags kernel/locking/lockdep.c:3090 [inline] __lock_acquire+0x6d9/0x42d0 kernel/locking/lockdep.c:3448 lock_acquire+0x17e/0x3e0 kernel/locking/lockdep.c:3998 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2d/0x40 kernel/locking/spinlock.c:152 spin_lock include/linux/spinlock.h:317 [inline] sco_conn_del+0xad/0x170 net/bluetooth/sco.c:175 sco_disconn_cfm net/bluetooth/sco.c:1134 [inline] sco_disconn_cfm+0x56/0x90 net/bluetooth/sco.c:1127 hci_disconn_cfm include/net/bluetooth/hci_core.h:1226 [inline] hci_conn_hash_flush+0x114/0x230 net/bluetooth/hci_conn.c:1393 hci_dev_do_close+0x4cf/0xc10 net/bluetooth/hci_core.c:1620 hci_unregister_dev+0x167/0x870 net/bluetooth/hci_core.c:3191 vhci_release+0x6b/0xe0 drivers/bluetooth/hci_vhci.c:354 __fput+0x232/0x740 fs/file_table.c:210 ____fput+0x9/0x10 fs/file_table.c:244 task_work_run+0xe5/0x170 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x98b/0x2c90 kernel/exit.c:868 do_group_exit+0xf8/0x2c0 kernel/exit.c:965 get_signal+0x2f6/0x1a90 kernel/signal.c:2423 do_signal+0x7f/0x18b0 arch/x86/kernel/signal.c:814 exit_to_usermode_loop+0x11e/0x190 arch/x86/entry/common.c:160 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline] syscall_return_slowpath arch/x86/entry/common.c:270 [inline] do_syscall_64+0x416/0x5b0 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x46/0xbb irq event stamp: 1308996 hardirqs last enabled at (1308996): [] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:168 [inline] hardirqs last enabled at (1308996): [] _raw_spin_unlock_irq+0x27/0x90 kernel/locking/spinlock.c:200 hardirqs last disabled at (1308995): [] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:126 [inline] hardirqs last disabled at (1308995): [] _raw_spin_lock_irq+0x3c/0x90 kernel/locking/spinlock.c:168 softirqs last enabled at (1308988): [] _local_bh_enable+0x1c/0x30 kernel/softirq.c:159 softirqs last disabled at (1308989): [] invoke_softirq kernel/softirq.c:368 [inline] softirqs last disabled at (1308989): [] irq_exit+0x15f/0x1a0 kernel/softirq.c:409 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(slock-AF_BLUETOOTH-BTPROTO_SCO); lock(slock-AF_BLUETOOTH-BTPROTO_SCO); *** DEADLOCK *** 1 lock held by swapper/0/0: #0: (((&sk->sk_timer))){+.-.}, at: [] lockdep_copy_map include/linux/lockdep.h:174 [inline] #0: (((&sk->sk_timer))){+.-.}, at: [] call_timer_fn+0xc0/0x570 kernel/time/timer.c:1270 stack backtrace: CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.14.221-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+0x14b/0x1e7 lib/dump_stack.c:58 print_usage_bug.cold.46+0x433/0x563 kernel/locking/lockdep.c:2589 valid_state kernel/locking/lockdep.c:2602 [inline] mark_lock_irq kernel/locking/lockdep.c:2796 [inline] mark_lock+0xc00/0x11a0 kernel/locking/lockdep.c:3194 mark_irqflags kernel/locking/lockdep.c:3072 [inline] __lock_acquire+0x1241/0x42d0 kernel/locking/lockdep.c:3448 lock_acquire+0x17e/0x3e0 kernel/locking/lockdep.c:3998 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2d/0x40 kernel/locking/spinlock.c:152 spin_lock include/linux/spinlock.h:317 [inline] sco_sock_timeout+0x1e/0x110 net/bluetooth/sco.c:82 call_timer_fn+0x142/0x570 kernel/time/timer.c:1280 expire_timers+0x299/0x440 kernel/time/timer.c:1319 __run_timers kernel/time/timer.c:1637 [inline] run_timer_softirq+0x1cd/0x540 kernel/time/timer.c:1650 __do_softirq+0x247/0x9a2 kernel/softirq.c:288 invoke_softirq kernel/softirq.c:368 [inline] irq_exit+0x15f/0x1a0 kernel/softirq.c:409 exiting_irq arch/x86/include/asm/apic.h:638 [inline] smp_apic_timer_interrupt+0x149/0x5d0 arch/x86/kernel/apic/apic.c:1106 apic_timer_interrupt+0x9a/0xa0 arch/x86/entry/entry_64.S:793 RIP: 0010:native_safe_halt+0x12/0x20 arch/x86/include/asm/irqflags.h:61 RSP: 0018:ffffffff88e07db8 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff10 RAX: dffffc0000000000 RBX: ffffffff88e73880 RCX: 0000000000000000 RDX: 1ffffffff11e109c RSI: 0000000000000001 RDI: ffffffff88f084e0 RBP: ffffffff88e07db8 R08: 1ffffffff1410d01 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff88f084d0 syz-executor160 invoked oom-killer: gfp_mask=0x14040c0(GFP_KERNEL|__GFP_COMP), nodemask= R13: ffffffff8a088098 R14: 0000000000000000 R15: ffffffff88f084c0 arch_safe_halt arch/x86/include/asm/paravirt.h:94 [inline] default_idle+0x4f/0x370 arch/x86/kernel/process.c:558 arch_cpu_idle+0xa/0x10 arch/x86/kernel/process.c:549 default_idle_call+0x6d/0x90 kernel/sched/idle.c:98 cpuidle_idle_call kernel/sched/idle.c:156 [inline] do_idle+0x317/0x3e0 kernel/sched/idle.c:246 cpu_startup_entry+0x18/0x20 kernel/sched/idle.c:351 rest_init+0x237/0x23d init/main.c:434 start_kernel+0x567/0x58f init/main.c:708 (null) x86_64_start_reservations+0x29/0x2b arch/x86/kernel/head64.c:399 x86_64_start_kernel+0x76/0x79 arch/x86/kernel/head64.c:380 secondary_startup_64+0xa5/0xb0 arch/x86/kernel/head_64.S:240 , order=1, oom_score_adj=1000 syz-executor160 cpuset=/ mems_allowed=0 CPU: 1 PID: 8005 Comm: syz-executor160 Not tainted 4.14.221-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+0x14b/0x1e7 lib/dump_stack.c:58 dump_header+0x160/0x6e5 mm/oom_kill.c:424 oom_kill_process.cold.5+0xb/0xba6 mm/oom_kill.c:863 out_of_memory mm/oom_kill.c:1086 [inline] out_of_memory+0x2ba/0xfe0 mm/oom_kill.c:1025 __alloc_pages_may_oom mm/page_alloc.c:3351 [inline] __alloc_pages_slowpath mm/page_alloc.c:4040 [inline] __alloc_pages_nodemask+0x2397/0x2740 mm/page_alloc.c:4205 __alloc_pages include/linux/gfp.h:484 [inline] __alloc_pages_node include/linux/gfp.h:497 [inline] kmem_getpages mm/slab.c:1419 [inline] cache_grow_begin+0x80/0x680 mm/slab.c:2676 fallback_alloc+0x203/0x2d0 mm/slab.c:3217 ____cache_alloc_node+0x1c7/0x1e0 mm/slab.c:3285 slab_alloc_node mm/slab.c:3325 [inline] kmem_cache_alloc_node+0xe6/0x410 mm/slab.c:3640 alloc_task_struct_node kernel/fork.c:156 [inline] dup_task_struct kernel/fork.c:515 [inline] copy_process.part.5+0x10a4/0x6e40 kernel/fork.c:1630 copy_process kernel/fork.c:1614 [inline] _do_fork+0x162/0xc70 kernel/fork.c:2091 SYSC_clone kernel/fork.c:2201 [inline] SyS_clone+0x14/0x20 kernel/fork.c:2195 do_syscall_64+0x1c7/0x5b0 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x4466b9 RSP: 002b:00007f0a36b222e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00000000004cb400 RCX: 00000000004466b9 RDX: 9999999999999999 RSI: 0000000000000000 RDI: 0000000180000105 RBP: 000000000049b164 R08: ffffffffffffffff R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff2f5fd30e R13: 00007fff2f5fd30f R14: 00007f0a36b22400 R15: 00000000004cb408 Mem-Info: active_anon:1446718 inactive_anon:4567 isolated_anon:0 active_file:91 inactive_file:120 isolated_file:31 unevictable:0 dirty:0 writeback:0 unstable:0 slab_reclaimable:26291 slab_unreclaimable:126849 mapped:1147 shmem:4684 pagetables:25337 bounce:0 free:24652 free_pcp:78 free_cma:0 Node 0 active_anon:5786872kB inactive_anon:18268kB active_file:344kB inactive_file:256kB unevictable:0kB isolated(anon):0kB isolated(file):124kB mapped:4688kB dirty:0kB writeback:0kB shmem:18736kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 5613568kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no Node 0 DMA free:15908kB min:152kB low:188kB high:224kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15908kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB lowmem_reserve[]: 0 2821 6766 6766 6766 Node 0 DMA32 free:43864kB min:28112kB low:35140kB high:42168kB active_anon:2683964kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:3129332kB managed:2894092kB mlocked:0kB kernel_stack:32960kB pagetables:27900kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB lowmem_reserve[]: 0 0 3945 3945 3945 Node 0 Normal free:38836kB min:39312kB low:49140kB high:58968kB active_anon:3102908kB inactive_anon:18268kB active_file:364kB inactive_file:0kB unevictable:0kB writepending:0kB present:5242880kB managed:4040196kB mlocked:0kB kernel_stack:86880kB pagetables:73448kB bounce:0kB free_pcp:924kB local_pcp:272kB free_cma:0kB lowmem_reserve[]: 0 0 0 0 0 Node 0 DMA: 1*4kB (U) 0*8kB 0*16kB 1*32kB (U) 2*64kB (U) 1*128kB (U) 1*256kB (U) 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15908kB Node 0 DMA32: 4*4kB (UM) 5*8kB (UME) 2*16kB (UM) 4*32kB (UM) 4*64kB (UE) 3*128kB (UME) 2*256kB (UE) 1*512kB (E) 3*1024kB (UME) 1*2048kB (U) 9*4096kB (M) = 43864kB Node 0 Normal: 71*4kB (UME) 74*8kB (UME) 330*16kB (UM) 51*32kB (UM) 77*64kB (UME) 26*128kB (ME) 14*256kB (UM) 2*512kB (UE) 0*1024kB 9*2048kB (M) 0*4096kB = 39084kB Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB 4800 total pagecache pages 0 pages in swap cache Swap cache stats: add 0, delete 0, find 0/0 Free swap = 0kB Total swap = 0kB 2097051 pages RAM 0 pages HighMem/MovableOnly 359502 pages reserved 0 pages cma reserved Out of memory: Kill process 7931 (syz-executor160) score 999 or sacrifice child Killed process 7931 (syz-executor160) total-vm:25848kB, anon-rss:2112kB, file-rss:4kB, shmem-rss:0kB syz-executor160 invoked oom-killer: gfp_mask=0x14040c0(GFP_KERNEL|__GFP_COMP), nodemask=(null), order=1, oom_score_adj=1000 syz-executor160 cpuset=/ mems_allowed=0 CPU: 1 PID: 8028 Comm: syz-executor160 Not tainted 4.14.221-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+0x14b/0x1e7 lib/dump_stack.c:58 dump_header+0x160/0x6e5 mm/oom_kill.c:424 oom_kill_process.cold.5+0xb/0xba6 mm/oom_kill.c:863 out_of_memory mm/oom_kill.c:1086 [inline] out_of_memory+0x2ba/0xfe0 mm/oom_kill.c:1025 __alloc_pages_may_oom mm/page_alloc.c:3351 [inline] __alloc_pages_slowpath mm/page_alloc.c:4040 [inline] __alloc_pages_nodemask+0x2397/0x2740 mm/page_alloc.c:4205 __alloc_pages include/linux/gfp.h:484 [inline] __alloc_pages_node include/linux/gfp.h:497 [inline] kmem_getpages mm/slab.c:1419 [inline] cache_grow_begin+0x80/0x680 mm/slab.c:2676 fallback_alloc+0x203/0x2d0 mm/slab.c:3217 ____cache_alloc_node+0x1c7/0x1e0 mm/slab.c:3285 slab_alloc_node mm/slab.c:3325 [inline] kmem_cache_alloc_node+0xe6/0x410 mm/slab.c:3640 alloc_task_struct_node kernel/fork.c:156 [inline] dup_task_struct kernel/fork.c:515 [inline] copy_process.part.5+0x10a4/0x6e40 kernel/fork.c:1630 copy_process kernel/fork.c:1614 [inline] _do_fork+0x162/0xc70 kernel/fork.c:2091 SYSC_clone kernel/fork.c:2201 [inline] SyS_clone+0x14/0x20 kernel/fork.c:2195 do_syscall_64+0x1c7/0x5b0 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x4466b9 RSP: 002b:00007f0a36b222e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00000000004cb400 RCX: 00000000004466b9 RDX: 9999999999999999 RSI: 0000000000000000 RDI: 0000000180000105 RBP: 000000000049b164 R08: ffffffffffffffff R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff2f5fd30e R13: 00007fff2f5fd30f R14: 00007f0a36b22400 R15: 00000000004cb408 Mem-Info: active_anon:1446319 inactive_anon:4567 isolated_anon:0 active_file:12 inactive_file:54 isolated_file:9 unevictable:0 dirty:0 writeback:0 unstable:0 slab_reclaimable:26320 slab_unreclaimable:127006 mapped:1048 shmem:4684 pagetables:25393 bounce:0 free:24754 free_pcp:0 free_cma:0 Node 0 active_anon:5785276kB inactive_anon:18268kB active_file:48kB inactive_file:104kB unevictable:0kB isolated(anon):0kB isolated(file):36kB mapped:4192kB dirty:0kB writeback:0kB shmem:18736kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 5611520kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no Node 0 DMA free:15908kB min:152kB low:188kB high:224kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15908kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB lowmem_reserve[]: 0 2821 6766 6766 6766 Node 0 DMA32 free:43864kB min:28112kB low:35140kB high:42168kB active_anon:2683964kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:3129332kB managed:2894092kB mlocked:0kB kernel_stack:32960kB pagetables:27900kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB lowmem_reserve[]: 0 0 3945 3945 3945 Node 0 Normal free:39748kB min:39312kB low:49140kB high:58968kB active_anon:3101312kB inactive_anon:18268kB active_file:344kB inactive_file:228kB unevictable:0kB writepending:0kB present:5242880kB managed:4040196kB mlocked:0kB kernel_stack:87168kB pagetables:73672kB bounce:0kB free_pcp:116kB local_pcp:116kB free_cma:0kB lowmem_reserve[]: 0 0 0 0 0 Node 0 DMA: 1*4kB (U) 0*8kB 0*16kB 1*32kB (U) 2*64kB (U) 1*128kB (U) 1*256kB (U) 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15908kB Node 0 DMA32: 4*4kB (UM) 5*8kB (UME) 2*16kB (UM) 4*32kB (UM) 4*64kB (UE) 3*128kB (UME) 2*256kB (UE) 1*512kB (E) 3*1024kB (UME) 1*2048kB (U) 9*4096kB (M) = 43864kB Node 0 Normal: 14*4kB (UE) 14*8kB (UM) 307*16kB (UME) 50*32kB (UME) 75*64kB (M) 26*128kB (ME) 13*256kB (M) 2*512kB (UE) 0*1024kB 10*2048kB (M) 0*4096kB = 39640kB Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB 4721 total pagecache pages 0 pages in swap cache Swap cache stats: add 0, delete 0, find 0/0 Free swap = 0kB Total swap = 0kB 2097051 pages RAM 0 pages HighMem/MovableOnly 359502 pages reserved 0 pages cma reserved Out of memory: Kill process 28437 (syz-executor160) score 999 or sacrifice child Killed process 28437 (syz-executor160) total-vm:25848kB, anon-rss:2108kB, file-rss:4kB, shmem-rss:0kB