Warning: Permanently added '10.128.0.6' (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 [ 53.992926] audit: type=1400 audit(1581711210.956:36): avc: denied { map } for pid=8068 comm="syz-executor899" path="/root/syz-executor899875087" 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 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 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 [ 54.511572] ================================================================== [ 54.511609] BUG: KASAN: use-after-free in n_tty_receive_buf_common+0x26a4/0x2ab0 [ 54.511621] Read of size 1 at addr ffff8880a5a54301 by task syz-executor899/8162 [ 54.511624] [ 54.511639] CPU: 0 PID: 8162 Comm: syz-executor899 Not tainted 4.19.103-syzkaller #0 [ 54.511647] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 54.511652] Call Trace: [ 54.511668] dump_stack+0x197/0x210 [ 54.511699] ? n_tty_receive_buf_common+0x26a4/0x2ab0 [ 54.564952] print_address_description.cold+0x7c/0x20d [ 54.564974] ? n_tty_receive_buf_common+0x26a4/0x2ab0 [ 54.564990] kasan_report.cold+0x8c/0x2ba [ 54.565007] __asan_report_load1_noabort+0x14/0x20 [ 54.565021] n_tty_receive_buf_common+0x26a4/0x2ab0 [ 54.565037] ? find_held_lock+0x35/0x130 [ 54.565070] n_tty_receive_buf2+0x34/0x40 [ 54.565088] tty_ldisc_receive_buf+0xad/0x1c0 [ 54.565102] ? add_wait_queue+0x112/0x170 [ 54.565117] ? n_tty_receive_buf_common+0x2ab0/0x2ab0 [ 54.565137] paste_selection+0x1ff/0x443 [ 54.565159] ? set_selection+0x1370/0x1370 [ 54.565178] ? lock_downgrade+0x880/0x880 [ 54.565191] ? wake_up_q+0x100/0x100 [ 54.565215] tioclinux+0x133/0x470 [ 54.565230] vt_ioctl+0x19ab/0x2530 [ 54.565250] ? complete_change_console+0x3a0/0x3a0 [ 54.565266] ? avc_has_extended_perms+0xa78/0x10f0 [ 54.565289] ? avc_ss_reset+0x190/0x190 [ 54.565301] ? save_stack+0xa9/0xd0 [ 54.565318] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 54.658831] ? tty_jobctrl_ioctl+0x50/0xcd0 [ 54.658849] ? complete_change_console+0x3a0/0x3a0 [ 54.658866] tty_ioctl+0x7f3/0x1510 [ 54.658880] ? tty_vhangup+0x30/0x30 [ 54.658896] ? find_held_lock+0x35/0x130 [ 54.658911] ? debug_check_no_obj_freed+0x200/0x464 [ 54.658940] ? __might_sleep+0x95/0x190 [ 54.658954] ? trace_hardirqs_off+0x62/0x220 [ 54.658967] ? tty_vhangup+0x30/0x30 [ 54.658985] do_vfs_ioctl+0xd5f/0x1380 [ 54.659002] ? selinux_file_ioctl+0x46c/0x5d0 [ 54.659017] ? selinux_file_ioctl+0x125/0x5d0 [ 54.659032] ? ioctl_preallocate+0x210/0x210 [ 54.659047] ? selinux_file_mprotect+0x620/0x620 [ 54.659058] ? putname+0xef/0x130 [ 54.659074] ? kmem_cache_free+0x222/0x260 [ 54.659088] ? putname+0xf4/0x130 [ 54.659104] ? do_sys_open+0x31d/0x550 [ 54.659124] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 54.659138] ? security_file_ioctl+0x8d/0xc0 [ 54.744173] ksys_ioctl+0xab/0xd0 [ 54.744192] __x64_sys_ioctl+0x73/0xb0 [ 54.751595] do_syscall_64+0xfd/0x620 [ 54.751615] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.751625] RIP: 0033:0x441329 [ 54.751638] 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.751646] RSP: 002b:00007ffdb6721268 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 54.751659] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441329 [ 54.751667] RDX: 0000000020000040 RSI: 000000000000541c RDI: 0000000000000004 [ 54.751675] RBP: 000000000000d496 R08: 000000000000000d R09: 00000000004002c8 [ 54.751683] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004020a0 [ 54.751691] R13: 0000000000402130 R14: 0000000000000000 R15: 0000000000000000 [ 54.751710] [ 54.751716] Allocated by task 8162: [ 54.751730] save_stack+0x45/0xd0 [ 54.751742] kasan_kmalloc+0xce/0xf0 [ 54.751752] __kmalloc+0x15d/0x750 [ 54.751767] set_selection+0x7e4/0x1370 [ 54.751779] tioclinux+0x11c/0x470 [ 54.751791] vt_ioctl+0x19ab/0x2530 [ 54.751803] tty_ioctl+0x7f3/0x1510 [ 54.751815] do_vfs_ioctl+0xd5f/0x1380 [ 54.751826] ksys_ioctl+0xab/0xd0 [ 54.751838] __x64_sys_ioctl+0x73/0xb0 [ 54.751848] do_syscall_64+0xfd/0x620 [ 54.751865] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.877804] [ 54.877812] Freed by task 8163: [ 54.877830] save_stack+0x45/0xd0 [ 54.877842] __kasan_slab_free+0x102/0x150 [ 54.877853] kasan_slab_free+0xe/0x10 [ 54.877863] kfree+0xcf/0x220 [ 54.877878] set_selection+0x801/0x1370 [ 54.877891] tioclinux+0x11c/0x470 [ 54.877903] vt_ioctl+0x19ab/0x2530 [ 54.877915] tty_ioctl+0x7f3/0x1510 [ 54.877926] do_vfs_ioctl+0xd5f/0x1380 [ 54.877937] ksys_ioctl+0xab/0xd0 [ 54.877947] __x64_sys_ioctl+0x73/0xb0 [ 54.877965] do_syscall_64+0xfd/0x620 [ 54.927272] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.927277] [ 54.927287] The buggy address belongs to the object at ffff8880a5a54300 [ 54.927287] which belongs to the cache kmalloc-512 of size 512 [ 54.927296] The buggy address is located 1 bytes inside of [ 54.927296] 512-byte region [ffff8880a5a54300, ffff8880a5a54500) [ 54.927300] The buggy address belongs to the page: [ 54.927312] page:ffffea0002969500 count:1 mapcount:0 mapping:ffff88812c31c940 index:0x0 [ 54.927322] flags: 0xfffe0000000100(slab) [ 54.927340] raw: 00fffe0000000100 ffffea000241c6c8 ffffea0002961d08 ffff88812c31c940 [ 54.927355] raw: 0000000000000000 ffff8880a5a54080 0000000100000006 0000000000000000 [ 54.927360] page dumped because: kasan: bad access detected [ 54.927364] [ 54.927368] Memory state around the buggy address: [ 54.927378] ffff8880a5a54200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 54.927388] ffff8880a5a54280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 54.927403] >ffff8880a5a54300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 55.025799] ^ [ 55.025812] ffff8880a5a54380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 55.025822] ffff8880a5a54400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 55.025826] ================================================================== [ 55.025831] Disabling lock debugging due to kernel taint [ 55.026906] Kernel panic - not syncing: panic_on_warn set ... [ 55.026906] [ 55.026923] CPU: 0 PID: 8162 Comm: syz-executor899 Tainted: G B 4.19.103-syzkaller #0 [ 55.026930] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 55.026934] Call Trace: [ 55.026952] dump_stack+0x197/0x210 [ 55.026976] ? n_tty_receive_buf_common+0x26a4/0x2ab0 [ 55.026989] panic+0x26a/0x50e [ 55.027003] ? __warn_printk+0xf3/0xf3 [ 55.027024] ? n_tty_receive_buf_common+0x26a4/0x2ab0 [ 55.027038] ? preempt_schedule+0x4b/0x60 [ 55.027055] ? ___preempt_schedule+0x16/0x18 [ 55.027070] ? trace_hardirqs_on+0x5e/0x220 [ 55.027087] ? n_tty_receive_buf_common+0x26a4/0x2ab0 [ 55.027103] kasan_end_report+0x47/0x4f [ 55.027117] kasan_report.cold+0xa9/0x2ba [ 55.027133] __asan_report_load1_noabort+0x14/0x20 [ 55.027149] n_tty_receive_buf_common+0x26a4/0x2ab0 [ 55.027171] ? find_held_lock+0x35/0x130 [ 55.027195] n_tty_receive_buf2+0x34/0x40 [ 55.027211] tty_ldisc_receive_buf+0xad/0x1c0 [ 55.027226] ? add_wait_queue+0x112/0x170 [ 55.027241] ? n_tty_receive_buf_common+0x2ab0/0x2ab0 [ 55.027257] paste_selection+0x1ff/0x443 [ 55.027273] ? set_selection+0x1370/0x1370 [ 55.027288] ? lock_downgrade+0x880/0x880 [ 55.027302] ? wake_up_q+0x100/0x100 [ 55.027318] tioclinux+0x133/0x470 [ 55.027333] vt_ioctl+0x19ab/0x2530 [ 55.027348] ? complete_change_console+0x3a0/0x3a0 [ 55.027364] ? avc_has_extended_perms+0xa78/0x10f0 [ 55.027379] ? avc_ss_reset+0x190/0x190 [ 55.027392] ? save_stack+0xa9/0xd0 [ 55.027407] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 55.027421] ? tty_jobctrl_ioctl+0x50/0xcd0 [ 55.027436] ? complete_change_console+0x3a0/0x3a0 [ 55.027450] tty_ioctl+0x7f3/0x1510 [ 55.027464] ? tty_vhangup+0x30/0x30 [ 55.027478] ? find_held_lock+0x35/0x130 [ 55.027493] ? debug_check_no_obj_freed+0x200/0x464 [ 55.027516] ? __might_sleep+0x95/0x190 [ 55.027530] ? trace_hardirqs_off+0x62/0x220 [ 55.027544] ? tty_vhangup+0x30/0x30 [ 55.027558] do_vfs_ioctl+0xd5f/0x1380 [ 55.027574] ? selinux_file_ioctl+0x46c/0x5d0 [ 55.027589] ? selinux_file_ioctl+0x125/0x5d0 [ 55.027603] ? ioctl_preallocate+0x210/0x210 [ 55.027619] ? selinux_file_mprotect+0x620/0x620 [ 55.027631] ? putname+0xef/0x130 [ 55.027645] ? kmem_cache_free+0x222/0x260 [ 55.027658] ? putname+0xf4/0x130 [ 55.027678] ? do_sys_open+0x31d/0x550 [ 55.027698] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 55.027713] ? security_file_ioctl+0x8d/0xc0 [ 55.027728] ksys_ioctl+0xab/0xd0 [ 55.027743] __x64_sys_ioctl+0x73/0xb0 [ 55.027758] do_syscall_64+0xfd/0x620 [ 55.027775] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 55.027786] RIP: 0033:0x441329 [ 55.027801] 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 [ 55.027811] RSP: 002b:00007ffdb6721268 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 55.027831] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441329 [ 55.027842] RDX: 0000000020000040 RSI: 000000000000541c RDI: 0000000000000004 [ 55.027853] RBP: 000000000000d496 R08: 000000000000000d R09: 00000000004002c8 [ 55.027863] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004020a0 [ 55.027874] R13: 0000000000402130 R14: 0000000000000000 R15: 0000000000000000 [ 55.029305] Kernel Offset: disabled [ 55.384377] Rebooting in 86400 seconds..