INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.0.53' (ECDSA) to the list of known hosts. 2018/04/04 08:47:24 parsed 1 programs 2018/04/04 08:47:24 executed programs: 0 syzkaller login: [ 25.705306] IPVS: Creating netns size=2536 id=1 [ 26.386352] ================================================================== [ 26.393746] BUG: KASAN: use-after-free in selinux_sb_copy_data+0x25f/0x390 [ 26.400741] Write of size 10 at addr ffff8801b9a3b000 by task syz-executor0/3792 [ 26.408243] [ 26.409847] CPU: 1 PID: 3792 Comm: syz-executor0 Not tainted 4.9.92-g13b40d3 #72 [ 26.417352] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.426681] ffff8801d89574e0 ffffffff81d95109 ffffea0006e68ec0 ffff8801b9a3b000 [ 26.434655] 0000000000000001 ffff8801b9a3b000 dffffc0000000000 ffff8801d8957518 [ 26.442630] ffffffff8153d5d3 ffff8801b9a3b000 000000000000000a 0000000000000001 [ 26.450604] Call Trace: [ 26.453165] [] dump_stack+0xc1/0x128 [ 26.458500] [] print_address_description+0x73/0x280 [ 26.465135] [] kasan_report+0x255/0x380 [ 26.470850] [] ? selinux_sb_copy_data+0x25f/0x390 [ 26.477313] [] check_memory_region+0x137/0x190 [ 26.483514] [] memcpy+0x37/0x50 [ 26.488413] [] selinux_sb_copy_data+0x25f/0x390 [ 26.494700] [] security_sb_copy_data+0x75/0xb0 [ 26.500904] [] parse_security_options+0x36/0x90 [ 26.507291] [] btrfs_mount+0xa02/0x2c00 [ 26.512889] [] ? btrfs_remount+0x1430/0x1430 [ 26.518916] [] ? _find_next_bit.part.0+0xe0/0x120 [ 26.525378] [] ? pcpu_alloc+0x47f/0xb10 [ 26.530972] [] ? ida_get_new_above+0x3e1/0x4a0 [ 26.537175] [] ? pcpu_create_chunk+0x420/0x420 [ 26.543377] [] ? check_preemption_disabled+0x3b/0x200 [ 26.550186] [] ? __raw_spin_lock_init+0x1c/0x100 [ 26.556559] [] ? trace_hardirqs_on_caller+0x38b/0x590 [ 26.563371] [] ? lockdep_init_map+0xe4/0x5c0 [ 26.569398] [] ? lockdep_init_map+0xe4/0x5c0 [ 26.575514] [] mount_fs+0x27f/0x350 [ 26.580763] [] vfs_kern_mount.part.21+0xd0/0x3e0 [ 26.587140] [] vfs_kern_mount+0x40/0x60 [ 26.592733] [] btrfs_mount+0x2ee/0x2c00 [ 26.598325] [] ? btrfs_remount+0x1430/0x1430 [ 26.604353] [] ? pcpu_alloc+0x47f/0xb10 [ 26.609944] [] ? ida_get_new_above+0x3e1/0x4a0 [ 26.616144] [] ? pcpu_create_chunk+0x420/0x420 [ 26.622345] [] ? check_preemption_disabled+0x3b/0x200 [ 26.629153] [] ? __raw_spin_lock_init+0x1c/0x100 [ 26.635528] [] ? trace_hardirqs_on_caller+0x38b/0x590 [ 26.642337] [] ? lockdep_init_map+0xe4/0x5c0 [ 26.648365] [] ? lockdep_init_map+0xe4/0x5c0 [ 26.654391] [] mount_fs+0x27f/0x350 [ 26.659636] [] vfs_kern_mount.part.21+0xd0/0x3e0 [ 26.666009] [] do_mount+0x3e1/0x28b0 [ 26.671341] [] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.677889] [] ? copy_mount_string+0x40/0x40 [ 26.683917] [] ? copy_mount_options+0x18b/0x310 [ 26.690205] [] ? copy_mount_options+0x193/0x310 [ 26.696492] [] ? copy_mount_options+0x1f7/0x310 [ 26.702780] [] SyS_mount+0xab/0x120 [ 26.708027] [] ? copy_mnt_ns+0x8b0/0x8b0 [ 26.713708] [] do_syscall_64+0x1a4/0x490 [ 26.719392] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 26.726285] [ 26.727882] Allocated by task 2104: [ 26.731476] save_stack_trace+0x16/0x20 [ 26.735418] save_stack+0x43/0xd0 [ 26.738841] kasan_kmalloc+0xad/0xe0 [ 26.742524] kasan_slab_alloc+0x12/0x20 [ 26.746466] kmem_cache_alloc+0xba/0x290 [ 26.750498] ptlock_alloc+0x24/0x70 [ 26.754094] pte_alloc_one+0x62/0x100 [ 26.757861] handle_mm_fault+0x2160/0x2460 [ 26.762068] __do_page_fault+0x5c2/0xd40 [ 26.766097] do_page_fault+0x27/0x30 [ 26.769781] page_fault+0x28/0x30 [ 26.773201] [ 26.774799] Freed by task 2104: [ 26.778047] save_stack_trace+0x16/0x20 [ 26.781990] save_stack+0x43/0xd0 [ 26.785412] kasan_slab_free+0x72/0xc0 [ 26.789265] kmem_cache_free+0xc7/0x300 [ 26.793207] ptlock_free+0x38/0x50 [ 26.796716] ___pte_free_tlb+0x43/0x1a0 [ 26.800660] free_pgd_range+0x562/0xa30 [ 26.804603] free_pgtables+0x270/0x330 [ 26.808462] exit_mmap+0x21a/0x400 [ 26.811972] mmput+0xf3/0x2d0 [ 26.815047] do_exit+0x70a/0x2a40 [ 26.818469] do_group_exit+0x108/0x320 [ 26.822323] SyS_exit_group+0x1d/0x20 [ 26.826092] do_syscall_64+0x1a4/0x490 [ 26.829948] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 26.835018] [ 26.836616] The buggy address belongs to the object at ffff8801b9a3b000 [ 26.836616] which belongs to the cache page->ptl of size 56 [ 26.848978] The buggy address is located 0 bytes inside of [ 26.848978] 56-byte region [ffff8801b9a3b000, ffff8801b9a3b038) [ 26.860558] The buggy address belongs to the page: [ 26.865459] page:ffffea0006e68ec0 count:1 mapcount:0 mapping: (null) index:0x0 [ 26.873687] flags: 0x8000000000000080(slab) [ 26.877973] page dumped because: kasan: bad access detected [ 26.883820] [ 26.885421] Memory state around the buggy address: [ 26.890321] ffff8801b9a3af00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.897648] ffff8801b9a3af80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.904975] >ffff8801b9a3b000: fb fb fb fb fb fb fb fc fc fc fc fb fb fb fb fb [ 26.912302] ^ [ 26.915635] ffff8801b9a3b080: fb fb fc fc fc fc fb fb fb fb fb fb fb fc fc fc [ 26.922962] ffff8801b9a3b100: fc fb fb fb fb fb fb fb fc fc fc fc fb fb fb fb [ 26.930288] ================================================================== [ 26.937611] Disabling lock debugging due to kernel taint [ 26.943910] Kernel panic - not syncing: panic_on_warn set ... [ 26.943910] [ 26.951267] CPU: 1 PID: 3792 Comm: syz-executor0 Tainted: G B 4.9.92-g13b40d3 #72 [ 26.959983] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.969305] ffff8801d8957438 ffffffff81d95109 ffffffff84197d5f ffff8801d8957510 [ 26.977271] 0000000000000000 ffff8801b9a3b000 dffffc0000000000 ffff8801d8957500 [ 26.985233] ffffffff8142e791 0000000041b58ab3 ffffffff8418b7b8 ffffffff8142e5d5 [ 26.993194] Call Trace: [ 26.995751] [] dump_stack+0xc1/0x128 [ 27.001082] [] panic+0x1bc/0x3a8 [ 27.006065] [] ? percpu_up_read_preempt_enable.constprop.53+0xd7/0xd7 [ 27.014262] [] ? preempt_schedule+0x25/0x30 [ 27.020199] [] ? ___preempt_schedule+0x16/0x18 [ 27.026401] [] kasan_end_report+0x50/0x50 [ 27.032163] [] kasan_report+0x16b/0x380 [ 27.037755] [] ? selinux_sb_copy_data+0x25f/0x390 [ 27.044222] [] check_memory_region+0x137/0x190 [ 27.050422] [] memcpy+0x37/0x50 [ 27.055317] [] selinux_sb_copy_data+0x25f/0x390 [ 27.061603] [] security_sb_copy_data+0x75/0xb0 [ 27.067804] [] parse_security_options+0x36/0x90 [ 27.074091] [] btrfs_mount+0xa02/0x2c00 [ 27.079683] [] ? btrfs_remount+0x1430/0x1430 [ 27.085715] [] ? _find_next_bit.part.0+0xe0/0x120 [ 27.092179] [] ? pcpu_alloc+0x47f/0xb10 [ 27.097768] [] ? ida_get_new_above+0x3e1/0x4a0 [ 27.103964] [] ? pcpu_create_chunk+0x420/0x420 [ 27.110165] [] ? check_preemption_disabled+0x3b/0x200 [ 27.116972] [] ? __raw_spin_lock_init+0x1c/0x100 [ 27.123348] [] ? trace_hardirqs_on_caller+0x38b/0x590 [ 27.130154] [] ? lockdep_init_map+0xe4/0x5c0 [ 27.136180] [] ? lockdep_init_map+0xe4/0x5c0 [ 27.142205] [] mount_fs+0x27f/0x350 [ 27.147449] [] vfs_kern_mount.part.21+0xd0/0x3e0 [ 27.153823] [] vfs_kern_mount+0x40/0x60 [ 27.159411] [] btrfs_mount+0x2ee/0x2c00 [ 27.165004] [] ? btrfs_remount+0x1430/0x1430 [ 27.171029] [] ? pcpu_alloc+0x47f/0xb10 [ 27.176621] [] ? ida_get_new_above+0x3e1/0x4a0 [ 27.183173] [] ? pcpu_create_chunk+0x420/0x420 [ 27.189372] [] ? check_preemption_disabled+0x3b/0x200 [ 27.196178] [] ? __raw_spin_lock_init+0x1c/0x100 [ 27.202551] [] ? trace_hardirqs_on_caller+0x38b/0x590 [ 27.209358] [] ? lockdep_init_map+0xe4/0x5c0 [ 27.215383] [] ? lockdep_init_map+0xe4/0x5c0 [ 27.221407] [] mount_fs+0x27f/0x350 [ 27.226650] [] vfs_kern_mount.part.21+0xd0/0x3e0 [ 27.233023] [] do_mount+0x3e1/0x28b0 [ 27.238362] [] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.244908] [] ? copy_mount_string+0x40/0x40 [ 27.250932] [] ? copy_mount_options+0x18b/0x310 [ 27.257217] [] ? copy_mount_options+0x193/0x310 [ 27.263502] [] ? copy_mount_options+0x1f7/0x310 [ 27.269787] [] SyS_mount+0xab/0x120 [ 27.275035] [] ? copy_mnt_ns+0x8b0/0x8b0 [ 27.280711] [] do_syscall_64+0x1a4/0x490 [ 27.286388] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 27.293740] Dumping ftrace buffer: [ 27.297252] (ftrace buffer empty) [ 27.300938] Kernel Offset: disabled [ 27.304532] Rebooting in 86400 seconds..