ci2-android-5-15/strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ci2-android-5-15/syz-executor2400351182 <...> syzkaller syzkaller login: [ 15.385584][ T30] kauditd_printk_skb: 31 callbacks suppressed [ 15.385600][ T30] audit: type=1400 audit(1788319238.585:59): avc: denied { transition } for pid=223 comm="sshd-session" path="/bin/sh" dev="sda1" ino=90 scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 15.397282][ T30] audit: type=1400 audit(1788319238.585:60): avc: denied { noatsecure } for pid=223 comm="sshd-session" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 15.405057][ T30] audit: type=1400 audit(1788319238.585:61): avc: denied { write } for pid=223 comm="sh" path="pipe:[14535]" dev="pipefs" ino=14535 scontext=root:sysadm_r:sysadm_t tcontext=system_u:system_r:sshd_t tclass=fifo_file permissive=1 [ 15.428848][ T30] audit: type=1400 audit(1788319238.585:62): avc: denied { rlimitinh } for pid=223 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 15.449894][ T30] audit: type=1400 audit(1788319238.585:63): avc: denied { siginh } for pid=223 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 17.474599][ T230] sshd-session (230) used greatest stack depth: 21344 bytes left Warning: Permanently added '10.128.1.159' (ED25519) to the list of known hosts. execve("ci2-android-5-15/syz-executor2400351182", ["ci2-android-5-15/syz-executor2400351182"], 0x7ffdc4110270 /* 10 vars */) = 0 brk(NULL) = 0x55556c1cb000 brk(0x55556c1cbe00) = 0x55556c1cbe00 arch_prctl(ARCH_SET_FS, 0x55556c1cb480) = 0 set_tid_address(0x55556c1cb750) = 303 set_robust_list(0x55556c1cb760, 24) = 0 rseq({cpu_id_start=0, cpu_id=RSEQ_CPU_ID_UNINITIALIZED, rseq_cs=NULL, flags=0, node_id=0, mm_cid=0, slice_ctrl={request=0, granted=0, __reserved=0}, __reserved=0}, 32, 0, 0x53053053) = -1 ENOSYS (Function not implemented) prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlinkat(AT_FDCWD, "/proc/self/exe", "/root/ci2-android-5-15/syz-executor2400351182", 4096) = 45 getrandom("\xc0\xb9\x18\x79\xd2\xc3\x96\x70", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55556c1cbe00 brk(0x55556c1ece00) = 0x55556c1ece00 brk(0x55556c1ed000) = 0x55556c1ed000 mprotect(0x7f59f2403000, 20480, PROT_READ) = 0 mmap(0x1ffffffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffffffff000 mmap(0x200000000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x200000000000 mmap(0x200001000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x200001000000 rt_sigaction(SIGRTMIN, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=0}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=0}, NULL, 8) = 0 rt_sigaction(SIGSEGV, {sa_handler=0x7f59f235de70, sa_mask=[], sa_flags=SA_RESTORER|SA_NODEFER|SA_SIGINFO, sa_restorer=0x7f59f2361010}, NULL, 8) = 0 rt_sigaction(SIGBUS, {sa_handler=0x7f59f235de70, sa_mask=[], sa_flags=SA_RESTORER|SA_NODEFER|SA_SIGINFO, sa_restorer=0x7f59f2361010}, NULL, 8) = 0 unshare(CLONE_NEWPID) = 0 rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x55556c1cb750) = 304 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 ci2-android-5-15/strace-static-x86_64: Process 304 attached [pid 304] set_robust_list(0x55556c1cb760, 24) = 0 [pid 304] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 304] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 304] getppid() = 0 [pid 304] prlimit64(0, RLIMIT_AS, {rlim_cur=204800*1024, rlim_max=204800*1024}, NULL) = 0 [pid 304] prlimit64(0, RLIMIT_MEMLOCK, {rlim_cur=32768*1024, rlim_max=32768*1024}, NULL) = 0 [pid 304] prlimit64(0, RLIMIT_FSIZE, {rlim_cur=139264*1024, rlim_max=139264*1024}, NULL) = 0 [pid 304] prlimit64(0, RLIMIT_STACK, {rlim_cur=1024*1024, rlim_max=1024*1024}, NULL) = 0 [pid 304] prlimit64(0, RLIMIT_CORE, {rlim_cur=131072*1024, rlim_max=131072*1024}, NULL) = 0 [pid 304] prlimit64(0, RLIMIT_NOFILE, {rlim_cur=256, rlim_max=256}, NULL) = 0 [pid 304] unshare(CLONE_NEWNS) = 0 [pid 304] mount(NULL, "/", NULL, MS_REC|MS_PRIVATE, NULL) = 0 [pid 304] unshare(CLONE_NEWIPC) = -1 EINVAL (Invalid argument) [pid 304] unshare(CLONE_NEWCGROUP) = 0 [pid 304] unshare(CLONE_NEWUTS) = 0 [pid 304] unshare(CLONE_SYSVSEM) = 0 [pid 304] openat(AT_FDCWD, "/proc/sys/kernel/shmmax", O_WRONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) [pid 304] openat(AT_FDCWD, "/proc/sys/kernel/shmall", O_WRONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) [pid 304] openat(AT_FDCWD, "/proc/sys/kernel/shmmni", O_WRONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) [pid 304] openat(AT_FDCWD, "/proc/sys/kernel/msgmax", O_WRONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) [pid 304] openat(AT_FDCWD, "/proc/sys/kernel/msgmni", O_WRONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) [pid 304] openat(AT_FDCWD, "/proc/sys/kernel/msgmnb", O_WRONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) [pid 304] openat(AT_FDCWD, "/proc/sys/kernel/sem", O_WRONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) [pid 304] getpid() = 1 [pid 304] capget({version=_LINUX_CAPABILITY_VERSION_3, pid=1}, {effective=1< [ 25.523227][ T30] audit: type=1400 audit(1788319248.565:73): avc: denied { mounton } for pid=304 comm="syz-executor240" path="/dev/gadgetfs" dev="devtmpfs" ino=556 scontext=root:sysadm_r:sysadm_t tcontext=root:object_r:device_t tclass=dir permissive=1 [ 25.530254][ T304] __dump_stack+0x21/0x30 [ 25.530280][ T304] dump_stack_lvl+0x110/0x170 [ 25.530297][ T304] ? show_regs_print_info+0x20/0x20 [ 25.603356][ T304] ? load_image+0x3f0/0x3f0 [ 25.607866][ T304] print_address_description+0x7f/0x2c0 [ 25.613496][ T304] ? mutex_lock+0x8e/0x1c0 [ 25.617907][ T304] kasan_report+0x10f/0x150 [ 25.622493][ T304] ? mutex_lock+0x8e/0x1c0 [ 25.626916][ T304] kasan_check_range+0x249/0x2a0 [ 25.631867][ T304] __kasan_check_write+0x14/0x20 [ 25.636799][ T304] mutex_lock+0x8e/0x1c0 [ 25.641036][ T304] ? wait_for_completion_killable_timeout+0x10/0x10 [ 25.647643][ T304] ? l2tp_session_put+0xaf/0x1a0 [ 25.652607][ T304] ? l2tp_session_delete+0x3a9/0x4a0 [ 25.657900][ T304] pppol2tp_release+0x178/0x2b0 [ 25.662765][ T304] sock_close+0xb8/0x200 [ 25.667022][ T304] ? sock_mmap+0xa0/0xa0 [ 25.671277][ T304] __fput+0x22b/0x900 [ 25.675275][ T304] ____fput+0x15/0x20 [ 25.679266][ T304] task_work_run+0x127/0x190 [ 25.683862][ T304] ptrace_notify+0x230/0x270 [ 25.688460][ T304] ? kick_process+0xdc/0x150 [ 25.693061][ T304] ? do_notify_parent+0x830/0x830 [ 25.698103][ T304] ? task_work_add+0x1b2/0x1e0 [ 25.702885][ T304] ? fput_many+0x161/0x1a0 [ 25.707317][ T304] ? fput+0x1a/0x20 [ 25.711164][ T304] ? filp_close+0x105/0x150 [ 25.715679][ T304] syscall_exit_work+0x87/0x160 [ 25.720580][ T304] syscall_exit_to_user_mode_prepare+0x1c/0x20 [ 25.726745][ T304] syscall_exit_to_user_mode+0xd/0x30 [ 25.732130][ T304] do_syscall_64+0x58/0xa0 [ 25.736551][ T304] ? clear_bhb_loop+0x50/0xa0 [ 25.741246][ T304] ? clear_bhb_loop+0x50/0xa0 [ 25.745942][ T304] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 25.751843][ T304] RIP: 0033:0x7f59f2382917 [ 25.756287][ T304] Code: 48 89 fa 4c 89 df e8 68 16 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff [ 25.775912][ T304] RSP: 002b:00007ffe99877f60 EFLAGS: 00000202 ORIG_RAX: 0000000000000003 [ 25.784358][ T304] RAX: 0000000000000000 RBX: 000055556c1cb480 RCX: 00007f59f2382917 [ 25.792342][ T304] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 [ 25.800321][ T304] RBP: 00007f59f23d8139 R08: 0000000000000000 R09: 0000000000000000 [ 25.808305][ T304] R10: 0000000000000000 R11: 0000000000000202 R12: 00007f59f23d9df0 [ 25.816298][ T304] R13: 00007f59f23d80a1 R14: 00007f59f2403bc0 R15: 0000000000000002 [ 25.824277][ T304] [ 25.827339][ T304] [ 25.829678][ T304] Allocated by task 304: [ 25.833921][ T304] __kasan_kmalloc+0xd4/0x100 [ 25.838603][ T304] __kmalloc+0x13d/0x2c0 [ 25.842853][ T304] l2tp_session_create+0x39/0xb60 [ 25.847967][ T304] pppol2tp_connect+0xbf5/0x1640 [ 25.852913][ T304] __sys_connect+0x3cb/0x450 [ 25.857519][ T304] __x64_sys_connect+0x7a/0x90 [ 25.862290][ T304] x64_sys_call+0x7c/0x9a0 [ 25.866741][ T304] do_syscall_64+0x4c/0xa0 [ 25.871342][ T304] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 25.877256][ T304] [ 25.879583][ T304] Freed by task 304: [ 25.883475][ T304] kasan_set_track+0x4a/0x70 [ 25.888071][ T304] kasan_set_free_info+0x23/0x40 [ 25.893012][ T304] ____kasan_slab_free+0x125/0x160 [ 25.898241][ T304] __kasan_slab_free+0x11/0x20 [ 25.903011][ T304] slab_free_freelist_hook+0xc2/0x190 [ 25.908396][ T304] kfree+0xc4/0x270 [ 25.912228][ T304] l2tp_session_put+0xaf/0x1a0 [ 25.916999][ T304] l2tp_session_delete+0x3a9/0x4a0 [ 25.922116][ T304] pppol2tp_release+0x169/0x2b0 [ 25.926965][ T304] sock_close+0xb8/0x200 [ 25.931211][ T304] __fput+0x22b/0x900 [ 25.935201][ T304] ____fput+0x15/0x20 [ 25.939184][ T304] task_work_run+0x127/0x190 [ 25.943771][ T304] ptrace_notify+0x230/0x270 [ 25.948369][ T304] syscall_exit_work+0x87/0x160 [ 25.953225][ T304] syscall_exit_to_user_mode_prepare+0x1c/0x20 [ 25.959378][ T304] syscall_exit_to_user_mode+0xd/0x30 [ 25.964763][ T304] do_syscall_64+0x58/0xa0 [ 25.969186][ T304] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 25.975100][ T304] [ 25.977430][ T304] Last potentially related work creation: [ 25.983145][ T304] kasan_save_stack+0x3a/0x60 [ 25.987827][ T304] __kasan_record_aux_stack+0xd2/0x100 [ 25.993295][ T304] kasan_record_aux_stack_noalloc+0xb/0x10 [ 25.999105][ T304] call_rcu+0x10b/0xf60 [ 26.003264][ T304] blkg_release+0x23/0x30 [ 26.007622][ T304] percpu_ref_switch_to_atomic_rcu+0x611/0x620 [ 26.013790][ T304] rcu_do_batch+0x4c1/0xbf0 [ 26.018300][ T304] rcu_core+0x4a3/0xef0 [ 26.022462][ T304] rcu_core_si+0x9/0x10 [ 26.026623][ T304] handle_softirqs+0x250/0x560 [ 26.031392][ T304] run_ksoftirqd+0x28/0x40 [ 26.035814][ T304] smpboot_thread_fn+0x446/0x880 [ 26.040750][ T304] kthread+0x3f5/0x4f0 [ 26.044818][ T304] ret_from_fork+0x1f/0x30 [ 26.049244][ T304] [ 26.051570][ T304] The buggy address belongs to the object at ffff88810976e800 [ 26.051570][ T304] which belongs to the cache kmalloc-512 of size 512 [ 26.065627][ T304] The buggy address is located 336 bytes inside of [ 26.065627][ T304] 512-byte region [ffff88810976e800, ffff88810976ea00) [ 26.079091][ T304] The buggy address belongs to the page: [ 26.084724][ T304] page:ffffea000425db00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10976c [ 26.094974][ T304] head:ffffea000425db00 order:2 compound_mapcount:0 compound_pincount:0 [ 26.103318][ T304] flags: 0x4000000000010200(slab|head|zone=1) [ 26.109410][ T304] raw: 4000000000010200 dead000000000100 dead000000000122 ffff888100042f00 [ 26.118138][ T304] raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 [ 26.126732][ T304] page dumped because: kasan: bad access detected [ 26.133322][ T304] page_owner tracks the page as allocated [ 26.139057][ T304] page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, ts 2445827048, free_ts 0 [ 26.156963][ T304] post_alloc_hook+0x192/0x1b0 [ 26.161740][ T304] prep_new_page+0x1c/0x110 [ 26.166260][ T304] get_page_from_freelist+0x2c3a/0x2cd0 [ 26.171808][ T304] __alloc_pages+0x1a2/0x460 [ 26.176412][ T304] new_slab+0xa0/0x4d0 [ 26.180498][ T304] ___slab_alloc+0x3ac/0x840 [ 26.185290][ T304] __slab_alloc+0x49/0x90 [ 26.189630][ T304] kmem_cache_alloc_trace+0x146/0x270 [ 26.195010][ T304] blkg_alloc+0x82/0x5d0 [ 26.199264][ T304] blkcg_init_queue+0x29/0x210 [ 26.204029][ T304] blk_alloc_queue+0x3be/0x550 [ 26.208811][ T304] blk_mq_init_queue+0x37/0xd0 [ 26.213618][ T304] scsi_alloc_sdev+0x66c/0x9c0 [ 26.218392][ T304] scsi_probe_and_add_lun+0x180/0x35d0 [ 26.223861][ T304] __scsi_scan_target+0x1d2/0xb70 [ 26.228889][ T304] scsi_scan_host_selected+0x34e/0x600 [ 26.234440][ T304] page_owner free stack trace missing [ 26.239800][ T304] [ 26.242121][ T304] Memory state around the buggy address: [ 26.247749][ T304] ffff88810976e800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.255814][ T304] ffff88810976e880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.263882][ T304] >ffff88810976e900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.271960][ T304] ^ [ 26.278656][ T304] ffff88810976e980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.286730][ T304] ffff88810976ea00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [pid 304] close(3) = 0 [pid 304] close(4) = 0 [pid 304] close(5) = -1 EBADF (Bad file descriptor) [pid 304] close(6) = -1 EBADF (Bad file descriptor) [pid 304] close(7) = -1 EBADF (Bad file descriptor) [pid 304] close(8) = -1 EBADF (Bad file descriptor) [pid 304] close(9) = -1 EBADF (Bad file descriptor) [pid 304] close(10) = -1 EBADF (Bad file descriptor) [pid 304] close(11) = -1 EBADF (Bad file descriptor) [pid 304] close(12) = -1 EBADF (Bad file descriptor) [pid 304] close(13) = -1 EBADF (Bad file descriptor) [pid 304] close(14) = -1 EBADF (Bad file descriptor) [pid 304] close(15) = -1 EBADF (Bad file descriptor) [pid 304] close(16) = -1 EBADF (Bad file descriptor) [pid 304] close(17) = -1 EBADF (Bad file descriptor) [pid 304] close(18) = -1 EBADF (Bad file descriptor) [pid 304] close(19) = -1 EBADF (Bad file descriptor) [pid 304] close(20) = -1 EBADF (Bad file descriptor) [pid 304] close(21) = -1 EBADF (Bad file descriptor) [pid 304] close(22) = -1 EBADF (Bad file descriptor) [pid 304] close(23) = -1 EBADF (Bad file descriptor) [pid 304] close(24) = -1 EBADF (Bad file descriptor) [pid 304] close(25) = -1 EBADF (Bad file descriptor) [pid 304] close(26) = -1 EBADF (Bad file descriptor) [pid 304] close(27) = -1 EBADF (Bad file descriptor) [pid 304] close(28) = -1 EBADF (Bad file descriptor) [pid 304] close(29) = -1 EBADF (Bad file descriptor) [pid 304] exit_group(1) = ? [pid 304] +++ exited with 1 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=304, si_uid=0, si_status=1, si_utime=0, si_stime=8 /* 0.08 s */} --- exit_group(0) = ? +++ exited with 0 +++ [ 26.294801][ T304] ================================================