Warning: Permanently added '10.128.0.107' (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 [ 89.159665][ T27] audit: type=1400 audit(1576257079.244:42): avc: denied { map } for pid=9660 comm="syz-executor414" path="/root/syz-executor414338598" dev="sda1" ino=16484 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 89.855248][ T9761] ================================================================== [ 89.864057][ T9761] BUG: KASAN: use-after-free in n_tty_receive_buf_common+0x270f/0x2b70 [ 89.864077][ T9761] Read of size 1 at addr ffff888094e3a401 by task syz-executor414/9761 [ 89.864080][ T9761] [ 89.864096][ T9761] CPU: 1 PID: 9761 Comm: syz-executor414 Not tainted 5.5.0-rc1-syzkaller #0 [ 89.864103][ T9761] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 89.864108][ T9761] Call Trace: [ 89.864125][ T9761] dump_stack+0x197/0x210 [ 89.864139][ T9761] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 89.864158][ T9761] print_address_description.constprop.0.cold+0xd4/0x30b [ 89.864170][ T9761] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 89.864184][ T9761] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 89.864198][ T9761] __kasan_report.cold+0x1b/0x41 [ 89.864216][ T9761] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 89.864232][ T9761] kasan_report+0x12/0x20 [ 89.864247][ T9761] __asan_report_load1_noabort+0x14/0x20 [ 89.864260][ T9761] n_tty_receive_buf_common+0x270f/0x2b70 [ 89.864273][ T9761] ? __kasan_check_read+0x11/0x20 [ 89.864342][ T9761] n_tty_receive_buf2+0x34/0x40 [ 89.864360][ T9761] tty_ldisc_receive_buf+0xad/0x1c0 [ 89.864371][ T9761] ? add_wait_queue+0x112/0x170 [ 89.864384][ T9761] ? n_tty_receive_buf_common+0x2b70/0x2b70 [ 89.864399][ T9761] paste_selection+0x1ff/0x460 [ 89.864416][ T9761] ? vcs_remove_sysfs+0x60/0x60 [ 89.864430][ T9761] ? lock_downgrade+0x920/0x920 [ 89.864446][ T9761] ? wake_up_q+0x140/0x140 [ 89.864470][ T9761] tioclinux+0x133/0x480 [ 89.864486][ T9761] vt_ioctl+0x1a41/0x26d0 [ 89.864507][ T9761] ? complete_change_console+0x3a0/0x3a0 [ 90.025490][ T9761] ? lock_downgrade+0x920/0x920 [ 90.025507][ T9761] ? rwlock_bug.part.0+0x90/0x90 [ 90.025525][ T9761] ? tomoyo_path_number_perm+0x214/0x520 [ 90.025539][ T9761] ? find_held_lock+0x35/0x130 [ 90.025553][ T9761] ? tomoyo_path_number_perm+0x214/0x520 [ 90.025569][ T9761] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 90.025587][ T9761] ? tty_jobctrl_ioctl+0x50/0xd40 [ 90.025604][ T9761] ? complete_change_console+0x3a0/0x3a0 [ 90.025619][ T9761] tty_ioctl+0xa37/0x14f0 [ 90.025635][ T9761] ? tty_vhangup+0x30/0x30 [ 90.025645][ T9761] ? tomoyo_path_number_perm+0x454/0x520 [ 90.025659][ T9761] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 90.025671][ T9761] ? tomoyo_path_number_perm+0x25e/0x520 [ 90.025687][ T9761] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 90.025710][ T9761] ? ___might_sleep+0x163/0x2c0 [ 90.025729][ T9761] ? tty_vhangup+0x30/0x30 [ 90.025745][ T9761] do_vfs_ioctl+0x977/0x14e0 [ 90.025764][ T9761] ? compat_ioctl_preallocate+0x220/0x220 [ 90.025779][ T9761] ? selinux_file_mprotect+0x620/0x620 [ 90.025797][ T9761] ? debug_smp_processor_id+0x33/0x18a [ 90.025813][ T9761] ? rcu_lockdep_current_cpu_online+0xe3/0x130 [ 90.025846][ T9761] ? rcu_read_lock_sched_held+0x9c/0xd0 [ 90.025863][ T9761] ? tomoyo_file_ioctl+0x23/0x30 [ 90.148522][ T9761] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 90.148535][ T9761] ? security_file_ioctl+0x8d/0xc0 [ 90.148550][ T9761] ksys_ioctl+0xab/0xd0 [ 90.148567][ T9761] __x64_sys_ioctl+0x73/0xb0 [ 90.148585][ T9761] do_syscall_64+0xfa/0x790 [ 90.148603][ T9761] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 90.148615][ T9761] RIP: 0033:0x441319 [ 90.148629][ T9761] 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 [ 90.148636][ T9761] RSP: 002b:00007ffed278a8f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 90.148648][ T9761] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441319 [ 90.148655][ T9761] RDX: 0000000020000000 RSI: 000000000000541c RDI: 0000000000000003 [ 90.148663][ T9761] RBP: 0000000000015e86 R08: 000000000000000d R09: 00000000004002c8 [ 90.148670][ T9761] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402090 [ 90.148678][ T9761] R13: 0000000000402120 R14: 0000000000000000 R15: 0000000000000000 [ 90.148696][ T9761] [ 90.148704][ T9761] Allocated by task 9757: [ 90.148716][ T9761] save_stack+0x23/0x90 [ 90.148727][ T9761] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 90.148737][ T9761] kasan_kmalloc+0x9/0x10 [ 90.148746][ T9761] __kmalloc+0x163/0x770 [ 90.148756][ T9761] set_selection_kernel+0x872/0x13b0 [ 90.148776][ T9761] set_selection_user+0x95/0xd9 [ 90.288147][ T9761] tioclinux+0x11c/0x480 [ 90.288159][ T9761] vt_ioctl+0x1a41/0x26d0 [ 90.288171][ T9761] tty_ioctl+0xa37/0x14f0 [ 90.288182][ T9761] do_vfs_ioctl+0x977/0x14e0 [ 90.288192][ T9761] ksys_ioctl+0xab/0xd0 [ 90.288203][ T9761] __x64_sys_ioctl+0x73/0xb0 [ 90.288216][ T9761] do_syscall_64+0xfa/0x790 [ 90.288230][ T9761] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 90.288235][ T9761] [ 90.288242][ T9761] Freed by task 9758: [ 90.288254][ T9761] save_stack+0x23/0x90 [ 90.288264][ T9761] __kasan_slab_free+0x102/0x150 [ 90.288280][ T9761] kasan_slab_free+0xe/0x10 [ 90.344782][ T9761] kfree+0x10a/0x2c0 [ 90.344794][ T9761] set_selection_kernel+0x88f/0x13b0 [ 90.344803][ T9761] set_selection_user+0x95/0xd9 [ 90.344814][ T9761] tioclinux+0x11c/0x480 [ 90.344826][ T9761] vt_ioctl+0x1a41/0x26d0 [ 90.344839][ T9761] tty_ioctl+0xa37/0x14f0 [ 90.344850][ T9761] do_vfs_ioctl+0x977/0x14e0 [ 90.344860][ T9761] ksys_ioctl+0xab/0xd0 [ 90.344871][ T9761] __x64_sys_ioctl+0x73/0xb0 [ 90.344886][ T9761] do_syscall_64+0xfa/0x790 [ 90.344900][ T9761] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 90.344904][ T9761] [ 90.344919][ T9761] The buggy address belongs to the object at ffff888094e3a400 [ 90.344919][ T9761] which belongs to the cache kmalloc-512 of size 512 [ 90.412718][ T9761] The buggy address is located 1 bytes inside of [ 90.412718][ T9761] 512-byte region [ffff888094e3a400, ffff888094e3a600) [ 90.412724][ T9761] The buggy address belongs to the page: [ 90.412740][ T9761] page:ffffea0002538e80 refcount:1 mapcount:0 mapping:ffff8880aa400a80 index:0x0 [ 90.412759][ T9761] raw: 00fffe0000000200 ffffea0001f3df48 ffffea0002771388 ffff8880aa400a80 [ 90.412774][ T9761] raw: 0000000000000000 ffff888094e3a000 0000000100000004 0000000000000000 [ 90.412780][ T9761] page dumped because: kasan: bad access detected [ 90.412784][ T9761] [ 90.412788][ T9761] Memory state around the buggy address: [ 90.412800][ T9761] ffff888094e3a300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 90.412810][ T9761] ffff888094e3a380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 90.412821][ T9761] >ffff888094e3a400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 90.412827][ T9761] ^ [ 90.412836][ T9761] ffff888094e3a480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 90.412844][ T9761] ffff888094e3a500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 90.412848][ T9761] ================================================================== [ 90.412853][ T9761] Disabling lock debugging due to kernel taint [ 90.414771][ T9761] Kernel panic - not syncing: panic_on_warn set ... [ 90.538610][ T9761] CPU: 1 PID: 9761 Comm: syz-executor414 Tainted: G B 5.5.0-rc1-syzkaller #0 [ 90.538618][ T9761] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 90.538622][ T9761] Call Trace: [ 90.538645][ T9761] dump_stack+0x197/0x210 [ 90.538661][ T9761] panic+0x2e3/0x75c [ 90.538674][ T9761] ? add_taint.cold+0x16/0x16 [ 90.538689][ T9761] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 90.538703][ T9761] ? preempt_schedule+0x4b/0x60 [ 90.538717][ T9761] ? ___preempt_schedule+0x16/0x18 [ 90.538731][ T9761] ? trace_hardirqs_on+0x5e/0x240 [ 90.538750][ T9761] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 90.602341][ T9761] end_report+0x47/0x4f [ 90.602355][ T9761] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 90.602365][ T9761] __kasan_report.cold+0xe/0x41 [ 90.602378][ T9761] ? n_tty_receive_buf_common+0x270f/0x2b70 [ 90.602390][ T9761] kasan_report+0x12/0x20 [ 90.602402][ T9761] __asan_report_load1_noabort+0x14/0x20 [ 90.602415][ T9761] n_tty_receive_buf_common+0x270f/0x2b70 [ 90.602426][ T9761] ? __kasan_check_read+0x11/0x20 [ 90.602446][ T9761] n_tty_receive_buf2+0x34/0x40 [ 90.602460][ T9761] tty_ldisc_receive_buf+0xad/0x1c0 [ 90.602477][ T9761] ? add_wait_queue+0x112/0x170 [ 90.660490][ T9761] ? n_tty_receive_buf_common+0x2b70/0x2b70 [ 90.660504][ T9761] paste_selection+0x1ff/0x460 [ 90.660517][ T9761] ? vcs_remove_sysfs+0x60/0x60 [ 90.660529][ T9761] ? lock_downgrade+0x920/0x920 [ 90.660543][ T9761] ? wake_up_q+0x140/0x140 [ 90.660561][ T9761] tioclinux+0x133/0x480 [ 90.660575][ T9761] vt_ioctl+0x1a41/0x26d0 [ 90.660589][ T9761] ? complete_change_console+0x3a0/0x3a0 [ 90.660600][ T9761] ? lock_downgrade+0x920/0x920 [ 90.660613][ T9761] ? rwlock_bug.part.0+0x90/0x90 [ 90.660625][ T9761] ? tomoyo_path_number_perm+0x214/0x520 [ 90.660636][ T9761] ? find_held_lock+0x35/0x130 [ 90.660648][ T9761] ? tomoyo_path_number_perm+0x214/0x520 [ 90.660660][ T9761] ? __sanitizer_cov_trace_switch+0x49/0x80 [ 90.660672][ T9761] ? tty_jobctrl_ioctl+0x50/0xd40 [ 90.660685][ T9761] ? complete_change_console+0x3a0/0x3a0 [ 90.660697][ T9761] tty_ioctl+0xa37/0x14f0 [ 90.660710][ T9761] ? tty_vhangup+0x30/0x30 [ 90.660721][ T9761] ? tomoyo_path_number_perm+0x454/0x520 [ 90.660740][ T9761] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 90.767318][ T9761] ? tomoyo_path_number_perm+0x25e/0x520 [ 90.767331][ T9761] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 90.767346][ T9761] ? ___might_sleep+0x163/0x2c0 [ 90.767362][ T9761] ? tty_vhangup+0x30/0x30 [ 90.767376][ T9761] do_vfs_ioctl+0x977/0x14e0 [ 90.767391][ T9761] ? compat_ioctl_preallocate+0x220/0x220 [ 90.767403][ T9761] ? selinux_file_mprotect+0x620/0x620 [ 90.767417][ T9761] ? debug_smp_processor_id+0x33/0x18a [ 90.767431][ T9761] ? rcu_lockdep_current_cpu_online+0xe3/0x130 [ 90.767451][ T9761] ? rcu_read_lock_sched_held+0x9c/0xd0 [ 90.821923][ T9761] ? tomoyo_file_ioctl+0x23/0x30 [ 90.821938][ T9761] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 90.821948][ T9761] ? security_file_ioctl+0x8d/0xc0 [ 90.821960][ T9761] ksys_ioctl+0xab/0xd0 [ 90.821973][ T9761] __x64_sys_ioctl+0x73/0xb0 [ 90.821989][ T9761] do_syscall_64+0xfa/0x790 [ 90.822005][ T9761] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 90.822015][ T9761] RIP: 0033:0x441319 [ 90.822027][ T9761] 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 [ 90.822034][ T9761] RSP: 002b:00007ffed278a8f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 90.822045][ T9761] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441319 [ 90.822059][ T9761] RDX: 0000000020000000 RSI: 000000000000541c RDI: 0000000000000003 [ 90.906709][ T9761] RBP: 0000000000015e86 R08: 000000000000000d R09: 00000000004002c8 [ 90.906717][ T9761] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402090 [ 90.906723][ T9761] R13: 0000000000402120 R14: 0000000000000000 R15: 0000000000000000 [ 90.907499][ T9761] Kernel Offset: disabled [ 90.935722][ T9761] Rebooting in 86400 seconds..