================================================================== ------------[ cut here ]------------ BUG: KASAN: stack-out-of-bounds in pgd_val arch/x86/include/asm/paravirt.h:414 [inline] BUG: KASAN: stack-out-of-bounds in p4d_page_vaddr arch/x86/include/asm/pgtable.h:895 [inline] BUG: KASAN: stack-out-of-bounds in pud_offset arch/x86/include/asm/pgtable.h:907 [inline] BUG: KASAN: stack-out-of-bounds in vmalloc_fault+0x6d0/0x770 arch/x86/mm/fault.c:397 ODEBUG: deactivate not available (active state 0) object type: hrtimer hint: tick_sched_timer+0x0/0x130 kernel/time/tick-sched.c:66 Read of size 8 at addr ffff8881da96cff8 by task syz-executor4/2890 ------------[ cut here ]------------ Bad or missing usercopy whitelist? Kernel memory overwrite attempt detected to SLAB object '' (offset 18446744069414985867, size 2)! CPU: 1 PID: 2890 Comm: syz-executor4 Not tainted 4.20.0-rc4+ #327 WARNING: CPU: 0 PID: 2872 at mm/usercopy.c:83 usercopy_warn+0xee/0x110 mm/usercopy.c:78 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Kernel panic - not syncing: panic_on_warn set ... Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x244/0x39d lib/dump_stack.c:113 print_address_description.cold.7+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.8+0x242/0x309 mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 pgd_val arch/x86/include/asm/paravirt.h:414 [inline] p4d_page_vaddr arch/x86/include/asm/pgtable.h:895 [inline] pud_offset arch/x86/include/asm/pgtable.h:907 [inline] vmalloc_fault+0x6d0/0x770 arch/x86/mm/fault.c:397 do_kern_addr_fault arch/x86/mm/fault.c:1203 [inline] __do_page_fault+0x860/0xe60 arch/x86/mm/fault.c:1487 do_page_fault+0xf2/0x7e0 arch/x86/mm/fault.c:1520 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1139 RIP: 0010:__mod_memcg_state include/linux/memcontrol.h:583 [inline] RIP: 0010:uncharge_batch+0x220/0xb00 mm/memcontrol.c:6021 Code: 00 00 48 ba 00 00 00 00 00 fc ff df 4c 89 c1 48 c1 e9 03 41 f7 de 80 3c 11 00 4d 63 f6 0f 85 72 08 00 00 49 8b 95 90 06 00 00 <65> 48 8b 92 f8 00 00 00 49 01 d6 4c 89 f1 48 c1 f9 3f 48 89 ca 4c RSP: 0018:ffff888185276568 EFLAGS: 00010046 RAX: 0000000000000001 RBX: ffff8881852765d8 RCX: 1ffff1103b1b0e92 RDX: 0000607e24e8b140 RSI: ffffffff8393d4f8 RDI: 0000000000000007 RBP: ffff8881852765a0 R08: ffff8881d8d87490 R09: ffffed103b348d97 R10: ffffed103b348d97 R11: ffff8881d9a46cbf R12: 0000000000000002 R13: ffff8881d8d86e00 R14: fffffffffffffffe R15: ffff8881852765f0 uncharge_list mm/memcontrol.c:6103 [inline] mem_cgroup_uncharge_list+0x17b/0x210 mm/memcontrol.c:6142 release_pages+0xaad/0x26a0 mm/swap.c:790 free_pages_and_swap_cache+0x475/0x6f0 mm/swap_state.c:295 tlb_flush_mmu_free+0xcf/0x170 mm/mmu_gather.c:74 zap_pte_range mm/memory.c:1158 [inline] zap_pmd_range mm/memory.c:1193 [inline] zap_pud_range mm/memory.c:1222 [inline] zap_p4d_range mm/memory.c:1243 [inline] unmap_page_range+0x2068/0x2930 mm/memory.c:1264 unmap_single_vma+0x19b/0x310 mm/memory.c:1309 unmap_vmas+0x125/0x200 mm/memory.c:1339 exit_mmap+0x2be/0x590 mm/mmap.c:3145 __mmput kernel/fork.c:1045 [inline] mmput+0x247/0x610 kernel/fork.c:1066 exit_mm kernel/exit.c:545 [inline] do_exit+0xe74/0x26d0 kernel/exit.c:854 do_group_exit+0x177/0x440 kernel/exit.c:970 __do_sys_exit_group kernel/exit.c:981 [inline] __se_sys_exit_group kernel/exit.c:979 [inline] __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:979 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457569 Code: fd b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 cb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffe36fa2778 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 000000000000001e RCX: 0000000000457569 RDX: 0000000000411021 RSI: fffffffffffffff7 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 000000000000075c R15: 0000000000000004 CPU: 0 PID: 2872 Comm: syz-executor1 Not tainted 4.20.0-rc4+ #327 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 The buggy address belongs to the page: Call Trace: page:ffffea00076a5b00 count:1 mapcount:0 mapping:0000000000000000 index:0x0 flags: 0x2fffc0000000000() raw: 02fffc0000000000 dead000000000100 dead000000000200 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881da96ce80: 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 ffff8881da96cf00: f1 00 f2 f2 f2 f2 f2 f2 f2 f8 f2 f2 f2 00 00 00 >ffff8881da96cf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 ^ ffff8881da96d000: f1 f8 f2 f2 f2 00 00 00 00 00 00 00 00 00 00 00 ffff8881da96d080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 2890 Comm: syz-executor4 Tainted: G B 4.20.0-rc4+ #327 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:vmalloc_fault+0x426/0x770 arch/x86/mm/fault.c:405 Code: e0 e8 5e 27 47 00 48 b8 00 00 00 00 80 88 ff ff 48 ba 00 00 00 00 00 fc ff df 48 01 c3 4d 21 e5 4c 01 eb 48 89 d9 48 c1 e9 03 <80> 3c 11 00 0f 85 b2 02 00 00 48 8b 1b 31 ff 49 89 dc 49 83 e4 9f RSP: 0018:ffff888185276298 EFLAGS: 00010002 RAX: ffff888000000000 RBX: 000f887f80000ff0 RCX: 0001f10ff00001fe RDX: dffffc0000000000 RSI: ffffffff81386392 RDI: 0000000000000007 RBP: ffff8881852762c8 R08: ffff8881d895c500 R09: fffffbfff12c7250 R10: fffffbfff12c7250 R11: ffffffff89639283 R12: 000fffffc0000000 R13: 000fffff80000000 R14: ffffe8ffffd8b238 R15: 1ffffffff12a3f90 FS: 000000000137b940(0000) GS:ffff8881daf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffe8ffffd8b238 CR3: 00000001cbfd4000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_kern_addr_fault arch/x86/mm/fault.c:1203 [inline] __do_page_fault+0x860/0xe60 arch/x86/mm/fault.c:1487 do_page_fault+0xf2/0x7e0 arch/x86/mm/fault.c:1520 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1139 RIP: 0010:__mod_memcg_state include/linux/memcontrol.h:583 [inline] RIP: 0010:uncharge_batch+0x220/0xb00 mm/memcontrol.c:6021 Code: 00 00 48 ba 00 00 00 00 00 fc ff df 4c 89 c1 48 c1 e9 03 41 f7 de 80 3c 11 00 4d 63 f6 0f 85 72 08 00 00 49 8b 95 90 06 00 00 <65> 48 8b 92 f8 00 00 00 49 01 d6 4c 89 f1 48 c1 f9 3f 48 89 ca 4c RSP: 0018:ffff888185276568 EFLAGS: 00010046 RAX: 0000000000000001 RBX: ffff8881852765d8 RCX: 1ffff1103b1b0e92 RDX: 0000607e24e8b140 RSI: ffffffff8393d4f8 RDI: 0000000000000007 RBP: ffff8881852765a0 R08: ffff8881d8d87490 R09: ffffed103b348d97 R10: ffffed103b348d97 R11: ffff8881d9a46cbf R12: 0000000000000002 R13: ffff8881d8d86e00 R14: fffffffffffffffe R15: ffff8881852765f0 uncharge_list mm/memcontrol.c:6103 [inline] mem_cgroup_uncharge_list+0x17b/0x210 mm/memcontrol.c:6142 release_pages+0xaad/0x26a0 mm/swap.c:790 free_pages_and_swap_cache+0x475/0x6f0 mm/swap_state.c:295 tlb_flush_mmu_free+0xcf/0x170 mm/mmu_gather.c:74 zap_pte_range mm/memory.c:1158 [inline] zap_pmd_range mm/memory.c:1193 [inline] zap_pud_range mm/memory.c:1222 [inline] zap_p4d_range mm/memory.c:1243 [inline] unmap_page_range+0x2068/0x2930 mm/memory.c:1264 unmap_single_vma+0x19b/0x310 mm/memory.c:1309 unmap_vmas+0x125/0x200 mm/memory.c:1339 exit_mmap+0x2be/0x590 mm/mmap.c:3145 __mmput kernel/fork.c:1045 [inline] mmput+0x247/0x610 kernel/fork.c:1066 exit_mm kernel/exit.c:545 [inline] do_exit+0xe74/0x26d0 kernel/exit.c:854 do_group_exit+0x177/0x440 kernel/exit.c:970 __do_sys_exit_group kernel/exit.c:981 [inline] __se_sys_exit_group kernel/exit.c:979 [inline] __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:979 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457569 Code: fd b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 cb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffe36fa2778 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 000000000000001e RCX: 0000000000457569 RDX: 0000000000411021 RSI: fffffffffffffff7 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 000000000000075c R15: 0000000000000004 Modules linked in: ---[ end trace 5d74992481ad20e5 ]--- RIP: 0010:vmalloc_fault+0x426/0x770 arch/x86/mm/fault.c:405 Code: e0 e8 5e 27 47 00 48 b8 00 00 00 00 80 88 ff ff 48 ba 00 00 00 00 00 fc ff df 48 01 c3 4d 21 e5 4c 01 eb 48 89 d9 48 c1 e9 03 <80> 3c 11 00 0f 85 b2 02 00 00 48 8b 1b 31 ff 49 89 dc 49 83 e4 9f RSP: 0018:ffff888185276298 EFLAGS: 00010002 RAX: ffff888000000000 RBX: 000f887f80000ff0 RCX: 0001f10ff00001fe RDX: dffffc0000000000 RSI: ffffffff81386392 RDI: 0000000000000007 RBP: ffff8881852762c8 R08: ffff8881d895c500 R09: fffffbfff12c7250 R10: fffffbfff12c7250 R11: ffffffff89639283 R12: 000fffffc0000000 R13: 000fffff80000000 R14: ffffe8ffffd8b238 R15: 1ffffffff12a3f90 FS: 000000000137b940(0000) GS:ffff8881daf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffe8ffffd8b238 CR3: 00000001cbfd4000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Shutting down cpus with NMI Kernel Offset: disabled ====================================================== WARNING: possible circular locking dependency detected 4.20.0-rc4+ #327 Not tainted ------------------------------------------------------ syz-executor1/2872 is trying to acquire lock: 000000000418d0d0 ((console_sem).lock){-.-.}, at: down_trylock+0x13/0x70 kernel/locking/semaphore.c:136 but task is already holding lock: 0000000068c1cd84 (&obj_hash[i].lock){-.-.}, at: debug_object_deactivate+0xf7/0x450 lib/debugobjects.c:541 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #3 (&obj_hash[i].lock){-.-.}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x99/0xd0 kernel/locking/spinlock.c:152 __debug_object_init+0x127/0x1290 lib/debugobjects.c:384 debug_object_init+0x16/0x20 lib/debugobjects.c:432 debug_hrtimer_init kernel/time/hrtimer.c:410 [inline] debug_init kernel/time/hrtimer.c:458 [inline] hrtimer_init+0x97/0x490 kernel/time/hrtimer.c:1308 init_dl_task_timer+0x1b/0x50 kernel/sched/deadline.c:1057 __sched_fork+0x2ae/0x590 kernel/sched/core.c:2166 init_idle+0x75/0x740 kernel/sched/core.c:5374 sched_init+0xb33/0xc07 kernel/sched/core.c:6060 start_kernel+0x4be/0xa2b init/main.c:608 x86_64_start_reservations+0x2e/0x30 arch/x86/kernel/head64.c:472 x86_64_start_kernel+0x76/0x79 arch/x86/kernel/head64.c:451 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:243 -> #2 (&rq->lock){-.-.}: __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2d/0x40 kernel/locking/spinlock.c:144 rq_lock kernel/sched/sched.h:1126 [inline] task_fork_fair+0xb0/0x6d0 kernel/sched/fair.c:9802 sched_fork+0x443/0xba0 kernel/sched/core.c:2359 copy_process+0x25b8/0x87a0 kernel/fork.c:1887 _do_fork+0x1cb/0x11d0 kernel/fork.c:2216 kernel_thread+0x34/0x40 kernel/fork.c:2275 rest_init+0x28/0x372 init/main.c:409 arch_call_rest_init+0xe/0x1b start_kernel+0x9f0/0xa2b init/main.c:745 x86_64_start_reservations+0x2e/0x30 arch/x86/kernel/head64.c:472 x86_64_start_kernel+0x76/0x79 arch/x86/kernel/head64.c:451 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:243 -> #1 (&p->pi_lock){-.-.}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x99/0xd0 kernel/locking/spinlock.c:152 try_to_wake_up+0xdc/0x1490 kernel/sched/core.c:1965 wake_up_process+0x10/0x20 kernel/sched/core.c:2129 __up.isra.1+0x1c0/0x2a0 kernel/locking/semaphore.c:262 up+0x13c/0x1c0 kernel/locking/semaphore.c:187 __up_console_sem+0xbe/0x1b0 kernel/printk/printk.c:236 console_unlock+0x811/0x1190 kernel/printk/printk.c:2432 vprintk_emit+0x391/0x990 kernel/printk/printk.c:1922 vprintk_default+0x28/0x30 kernel/printk/printk.c:1964 vprintk_func+0x7e/0x181 kernel/printk/printk_safe.c:398 printk+0xa7/0xcf kernel/printk/printk.c:1997 check_stack_usage kernel/exit.c:755 [inline] do_exit.cold.18+0x57/0x16f kernel/exit.c:916 do_group_exit+0x177/0x440 kernel/exit.c:970 __do_sys_exit_group kernel/exit.c:981 [inline] __se_sys_exit_group kernel/exit.c:979 [inline] __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:979 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #0 ((console_sem).lock){-.-.}: other info that might help us debug this: Chain exists of: (console_sem).lock --> &rq->lock --> &obj_hash[i].lock Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&obj_hash[i].lock); lock(&rq->lock); lock(&obj_hash[i].lock); lock((console_sem).lock); *** DEADLOCK *** 4 locks held by syz-executor1/2872: #0: 000000000cb3ef98 (rcu_read_lock){....}, at: __skb_unlink include/linux/skbuff.h:1922 [inline] #0: 000000000cb3ef98 (rcu_read_lock){....}, at: __skb_dequeue include/linux/skbuff.h:1938 [inline] #0: 000000000cb3ef98 (rcu_read_lock){....}, at: process_backlog+0x1dd/0x7a0 net/core/dev.c:5892 #1: 000000000cb3ef98 (rcu_read_lock){....}, at: __skb_pull include/linux/skbuff.h:2155 [inline] #1: 000000000cb3ef98 (rcu_read_lock){....}, at: ip_local_deliver_finish+0x13d/0x390 net/ipv4/ip_input.c:231 #2: 00000000cde569e1 (hrtimer_bases.lock){-.-.}, at: hrtimer_interrupt+0xfc/0x780 kernel/time/hrtimer.c:1499 #3: 0000000068c1cd84 (&obj_hash[i].lock){-.-.}, at: debug_object_deactivate+0xf7/0x450 lib/debugobjects.c:541 stack backtrace: CPU: 0 PID: 2872 Comm: syz-executor1 Not tainted 4.20.0-rc4+ #327 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: Rebooting in 86400 seconds..