Warning: Permanently added '10.128.0.158' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 53.122401] audit: type=1400 audit(1576213018.407:36): avc: denied { map } for pid=7853 comm="syz-executor291" path="/root/syz-executor291639785" 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 53.344561] ================================================================== [ 53.344599] BUG: KASAN: use-after-free in n_tty_receive_buf_common+0x24b0/0x28e0 [ 53.344611] Read of size 1 at addr ffff88809ae63a41 by task syz-executor291/7901 [ 53.344614] [ 53.344630] CPU: 1 PID: 7901 Comm: syz-executor291 Not tainted 4.19.88-syzkaller #0 [ 53.344638] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 53.344643] Call Trace: [ 53.344662] dump_stack+0x197/0x210 [ 53.344680] ? n_tty_receive_buf_common+0x24b0/0x28e0 [ 53.344699] print_address_description.cold+0x7c/0x20d [ 53.344714] ? n_tty_receive_buf_common+0x24b0/0x28e0 [ 53.344726] kasan_report.cold+0x8c/0x2ba [ 53.344744] __asan_report_load1_noabort+0x14/0x20 [ 53.344757] n_tty_receive_buf_common+0x24b0/0x28e0 [ 53.344787] n_tty_receive_buf2+0x34/0x40 [ 53.438010] tty_ldisc_receive_buf+0xad/0x1c0 [ 53.438026] ? add_wait_queue+0x112/0x170 [ 53.438039] ? n_tty_receive_buf_common+0x28e0/0x28e0 [ 53.438057] paste_selection+0x1ff/0x443 [ 53.438078] ? set_selection+0x1370/0x1370 [ 53.438095] ? lock_downgrade+0x880/0x880 [ 53.438109] ? wake_up_q+0x100/0x100 [ 53.438130] tioclinux+0x133/0x470 [ 53.438142] vt_ioctl+0x19ab/0x2530 [ 53.438156] ? complete_change_console+0x3a0/0x3a0 [ 53.438173] ? avc_has_extended_perms+0xa78/0x10f0 [ 53.438188] ? lock_downgrade+0x880/0x880 [ 53.438206] ? avc_ss_reset+0x190/0x190 [ 53.438219] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 53.438235] ? tty_jobctrl_ioctl+0x50/0xcd0 [ 53.438246] ? complete_change_console+0x3a0/0x3a0 [ 53.438262] tty_ioctl+0x7f3/0x1510 [ 53.517150] ? tty_vhangup+0x30/0x30 [ 53.517165] ? thp_get_unmapped_area+0x1f0/0x1f0 [ 53.517240] ? __handle_mm_fault+0x7d1/0x3f80 [ 53.517264] ? __might_sleep+0x95/0x190 [ 53.517279] ? tty_vhangup+0x30/0x30 [ 53.517296] do_vfs_ioctl+0xd5f/0x1380 [ 53.517312] ? selinux_file_ioctl+0x46f/0x5e0 [ 53.517326] ? selinux_file_ioctl+0x125/0x5e0 [ 53.517341] ? ioctl_preallocate+0x210/0x210 [ 53.517355] ? selinux_file_mprotect+0x620/0x620 [ 53.517370] ? gup_pgd_range+0x21ec/0x3910 [ 53.517384] ? __sanitizer_cov_trace_cmp1+0xb/0x20 [ 53.517400] ? up_read+0x1a/0x110 [ 53.574107] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 53.574128] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 53.574141] ? security_file_ioctl+0x8d/0xc0 [ 53.574155] ksys_ioctl+0xab/0xd0 [ 53.574173] __x64_sys_ioctl+0x73/0xb0 [ 53.574191] do_syscall_64+0xfd/0x620 [ 53.574209] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 53.574220] RIP: 0033:0x441339 [ 53.574239] Code: e8 ac e8 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 eb 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 53.574246] RSP: 002b:00007ffc04601348 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 53.574258] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441339 [ 53.574266] RDX: 00000000200000c0 RSI: 000000000000541c RDI: 0000000000000003 [ 53.574273] RBP: 000000000000d009 R08: 000000000000000d R09: 00000000004002c8 [ 53.574281] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004020b0 [ 53.574288] R13: 0000000000402140 R14: 0000000000000000 R15: 0000000000000000 [ 53.574306] [ 53.574313] Allocated by task 7900: [ 53.574326] save_stack+0x45/0xd0 [ 53.574343] kasan_kmalloc+0xce/0xf0 [ 53.574352] __kmalloc+0x15d/0x750 [ 53.574364] set_selection+0x7e4/0x1370 [ 53.574378] tioclinux+0x11c/0x470 [ 53.702657] vt_ioctl+0x19ab/0x2530 [ 53.702668] tty_ioctl+0x7f3/0x1510 [ 53.702680] do_vfs_ioctl+0xd5f/0x1380 [ 53.702689] ksys_ioctl+0xab/0xd0 [ 53.702697] __x64_sys_ioctl+0x73/0xb0 [ 53.702710] do_syscall_64+0xfd/0x620 [ 53.702723] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 53.702726] [ 53.702732] Freed by task 7902: [ 53.702745] save_stack+0x45/0xd0 [ 53.702756] __kasan_slab_free+0x102/0x150 [ 53.702767] kasan_slab_free+0xe/0x10 [ 53.702776] kfree+0xcf/0x220 [ 53.702787] set_selection+0x801/0x1370 [ 53.702797] tioclinux+0x11c/0x470 [ 53.702807] vt_ioctl+0x19ab/0x2530 [ 53.702820] tty_ioctl+0x7f3/0x1510 [ 53.766537] do_vfs_ioctl+0xd5f/0x1380 [ 53.766548] ksys_ioctl+0xab/0xd0 [ 53.766558] __x64_sys_ioctl+0x73/0xb0 [ 53.766571] do_syscall_64+0xfd/0x620 [ 53.766583] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 53.766587] [ 53.766596] The buggy address belongs to the object at ffff88809ae63a40 [ 53.766596] which belongs to the cache kmalloc-512 of size 512 [ 53.766605] The buggy address is located 1 bytes inside of [ 53.766605] 512-byte region [ffff88809ae63a40, ffff88809ae63c40) [ 53.766609] The buggy address belongs to the page: [ 53.766621] page:ffffea00026b98c0 count:1 mapcount:0 mapping:ffff88812c31c940 index:0x0 [ 53.766632] flags: 0xfffe0000000100(slab) [ 53.766648] raw: 00fffe0000000100 ffffea00026b9988 ffffea00026b9708 ffff88812c31c940 [ 53.766662] raw: 0000000000000000 ffff88809ae63040 0000000100000006 0000000000000000 [ 53.766667] page dumped because: kasan: bad access detected [ 53.766671] [ 53.766675] Memory state around the buggy address: [ 53.766686] ffff88809ae63900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.766695] ffff88809ae63980: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 53.766704] >ffff88809ae63a00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 53.766709] ^ [ 53.766718] ffff88809ae63a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.766727] ffff88809ae63b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.766732] ================================================================== [ 53.766736] Disabling lock debugging due to kernel taint [ 53.770904] Kernel panic - not syncing: panic_on_warn set ... [ 53.770904] [ 53.770923] CPU: 1 PID: 7901 Comm: syz-executor291 Tainted: G B 4.19.88-syzkaller #0 [ 53.770929] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 53.770933] Call Trace: [ 53.770955] dump_stack+0x197/0x210 [ 53.770972] ? n_tty_receive_buf_common+0x24b0/0x28e0 [ 53.770987] panic+0x26a/0x50e [ 53.960081] ? __warn_printk+0xf3/0xf3 [ 53.960097] ? n_tty_receive_buf_common+0x24b0/0x28e0 [ 53.960111] ? preempt_schedule+0x4b/0x60 [ 53.960126] ? ___preempt_schedule+0x16/0x18 [ 53.960139] ? trace_hardirqs_on+0x5e/0x220 [ 53.960154] ? n_tty_receive_buf_common+0x24b0/0x28e0 [ 53.960169] kasan_end_report+0x47/0x4f [ 53.960181] kasan_report.cold+0xa9/0x2ba [ 53.960196] __asan_report_load1_noabort+0x14/0x20 [ 53.960208] n_tty_receive_buf_common+0x24b0/0x28e0 [ 53.960230] n_tty_receive_buf2+0x34/0x40 [ 53.960243] tty_ldisc_receive_buf+0xad/0x1c0 [ 53.960257] ? add_wait_queue+0x112/0x170 [ 53.960269] ? n_tty_receive_buf_common+0x28e0/0x28e0 [ 53.960283] paste_selection+0x1ff/0x443 [ 53.960298] ? set_selection+0x1370/0x1370 [ 53.960316] ? lock_downgrade+0x880/0x880 [ 54.035780] ? wake_up_q+0x100/0x100 [ 54.035797] tioclinux+0x133/0x470 [ 54.035812] vt_ioctl+0x19ab/0x2530 [ 54.035826] ? complete_change_console+0x3a0/0x3a0 [ 54.035841] ? avc_has_extended_perms+0xa78/0x10f0 [ 54.035856] ? lock_downgrade+0x880/0x880 [ 54.035871] ? avc_ss_reset+0x190/0x190 [ 54.035883] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 54.035896] ? tty_jobctrl_ioctl+0x50/0xcd0 [ 54.035912] ? complete_change_console+0x3a0/0x3a0 [ 54.079033] tty_ioctl+0x7f3/0x1510 [ 54.079046] ? tty_vhangup+0x30/0x30 [ 54.079058] ? thp_get_unmapped_area+0x1f0/0x1f0 [ 54.079075] ? __handle_mm_fault+0x7d1/0x3f80 [ 54.079093] ? __might_sleep+0x95/0x190 [ 54.079104] ? tty_vhangup+0x30/0x30 [ 54.079117] do_vfs_ioctl+0xd5f/0x1380 [ 54.079131] ? selinux_file_ioctl+0x46f/0x5e0 [ 54.079142] ? selinux_file_ioctl+0x125/0x5e0 [ 54.079153] ? ioctl_preallocate+0x210/0x210 [ 54.079192] ? selinux_file_mprotect+0x620/0x620 [ 54.125396] ? gup_pgd_range+0x21ec/0x3910 [ 54.125410] ? __sanitizer_cov_trace_cmp1+0xb/0x20 [ 54.125425] ? up_read+0x1a/0x110 [ 54.125436] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 54.125449] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 54.125462] ? security_file_ioctl+0x8d/0xc0 [ 54.125476] ksys_ioctl+0xab/0xd0 [ 54.125490] __x64_sys_ioctl+0x73/0xb0 [ 54.125506] do_syscall_64+0xfd/0x620 [ 54.125522] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.125531] RIP: 0033:0x441339 [ 54.125544] Code: e8 ac e8 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 eb 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 54.125550] RSP: 002b:00007ffc04601348 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 54.125562] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441339 [ 54.125569] RDX: 00000000200000c0 RSI: 000000000000541c RDI: 0000000000000003 [ 54.125575] RBP: 000000000000d009 R08: 000000000000000d R09: 00000000004002c8 [ 54.125582] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004020b0 [ 54.125588] R13: 0000000000402140 R14: 0000000000000000 R15: 0000000000000000 [ 54.127069] Kernel Offset: disabled [ 54.241564] Rebooting in 86400 seconds..