./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1226852973 <...> Warning: Permanently added '10.128.0.124' (ECDSA) to the list of known hosts. execve("./syz-executor1226852973", ["./syz-executor1226852973"], 0x7ffcbae5adb0 /* 10 vars */) = 0 brk(NULL) = 0x555555bd3000 brk(0x555555bd3c40) = 0x555555bd3c40 arch_prctl(ARCH_SET_FS, 0x555555bd3300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor1226852973", 4096) = 28 brk(0x555555bf4c40) = 0x555555bf4c40 brk(0x555555bf5000) = 0x555555bf5000 mprotect(0x7f74debb7000, 16384, PROT_READ) = 0 mmap(0x1ffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffff000 mmap(0x20000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x20000000 mmap(0x21000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x21000000 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f74d66fd000 write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 1048576) = 1048576 munmap(0x7f74d66fd000, 1048576) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 mount("/dev/loop0", "./file0", "udf", 0, "umask=00000000000000000000006,noadinicb,undelete,iocharset=cp855,gid=00000000000000000000,gid=ignore"...) = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 chdir("./file0") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 openat(AT_FDCWD, ".", O_RDONLY) = 4 syzkaller login: [ 59.909923][ T5074] loop0: detected capacity change from 0 to 2048 [ 59.925914][ T5074] UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) [ 59.943150][ T5074] ================================================================== [ 59.951245][ T5074] BUG: KASAN: slab-out-of-bounds in udf_write_aext+0x62d/0x7e0 [ 59.958837][ T5074] Write of size 4 at addr ffff888029e84bf0 by task syz-executor122/5074 [ 59.967167][ T5074] [ 59.969476][ T5074] CPU: 0 PID: 5074 Comm: syz-executor122 Not tainted 6.1.0-syzkaller-14321-g0a924817d2ed #0 [ 59.979531][ T5074] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 59.989587][ T5074] Call Trace: [ 59.992851][ T5074] [ 59.995765][ T5074] dump_stack_lvl+0x1b1/0x290 [ 60.000428][ T5074] ? nf_tcp_handle_invalid+0x630/0x630 [ 60.005874][ T5074] ? __wake_up_klogd+0xcd/0x100 [ 60.010711][ T5074] ? panic+0x710/0x710 [ 60.014770][ T5074] ? _printk+0xc0/0x100 [ 60.018915][ T5074] print_address_description+0x74/0x340 [ 60.024448][ T5074] print_report+0x107/0x1f0 [ 60.028932][ T5074] ? _raw_spin_lock+0x40/0x40 [ 60.033588][ T5074] ? udf_current_aext+0x5d0/0xa80 [ 60.038595][ T5074] ? __virt_addr_valid+0x21b/0x2d0 [ 60.043688][ T5074] ? __phys_addr+0xb5/0x160 [ 60.048173][ T5074] ? udf_write_aext+0x62d/0x7e0 [ 60.053008][ T5074] kasan_report+0xcd/0x100 [ 60.057415][ T5074] ? udf_write_aext+0x62d/0x7e0 [ 60.062247][ T5074] udf_write_aext+0x62d/0x7e0 [ 60.066908][ T5074] udf_add_entry+0x1712/0x3300 [ 60.071669][ T5074] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 60.077653][ T5074] ? __mark_inode_dirty+0x593/0x600 [ 60.082859][ T5074] ? udf_add_nondir+0x580/0x580 [ 60.087711][ T5074] ? udf_new_inode+0xb04/0xf30 [ 60.092469][ T5074] ? d_alloc+0x193/0x1d0 [ 60.096746][ T5074] udf_mkdir+0x13c/0x980 [ 60.100983][ T5074] ? udf_symlink+0x1680/0x1680 [ 60.105741][ T5074] ? from_kgid+0x193/0x6b0 [ 60.110151][ T5074] ? make_kgid+0x710/0x710 [ 60.114552][ T5074] ? __lookup_hash+0x123/0x240 [ 60.119309][ T5074] ? apparmor_path_mkdir+0x461/0x520 [ 60.124581][ T5074] ? generic_permission+0x229/0x500 [ 60.129764][ T5074] ? inode_permission+0xf5/0x450 [ 60.134686][ T5074] ? bpf_lsm_inode_mkdir+0x5/0x10 [ 60.139693][ T5074] ? security_inode_mkdir+0xdd/0x120 [ 60.144966][ T5074] vfs_mkdir+0x3b3/0x590 [ 60.149220][ T5074] do_mkdirat+0x25b/0x530 [ 60.153551][ T5074] ? __check_object_size+0x15a/0x210 [ 60.158827][ T5074] ? vfs_mkdir+0x590/0x590 [ 60.163241][ T5074] ? getname_flags+0x1ea/0x4e0 [ 60.167999][ T5074] __x64_sys_mkdirat+0x85/0x90 [ 60.172762][ T5074] do_syscall_64+0x3d/0xb0 [ 60.177170][ T5074] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 60.183064][ T5074] RIP: 0033:0x7f74deb49b49 [ 60.187462][ T5074] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 00 00 90 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 [ 60.207053][ T5074] RSP: 002b:00007fff69318728 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 [ 60.215456][ T5074] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f74deb49b49 [ 60.223414][ T5074] RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000004 [ 60.231387][ T5074] RBP: 00007f74deb09150 R08: 0000000000000000 R09: 0000000000000000 [ 60.239371][ T5074] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f74deb091e0 [ 60.247340][ T5074] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 60.255316][ T5074] [ 60.258326][ T5074] [ 60.260633][ T5074] Allocated by task 5069: [ 60.264948][ T5074] kasan_set_track+0x3d/0x60 [ 60.269525][ T5074] __kasan_kmalloc+0x97/0xb0 [ 60.274134][ T5074] __kmalloc_node_track_caller+0xad/0x190 [ 60.279861][ T5074] __alloc_skb+0x12c/0x2c0 [ 60.284277][ T5074] sock_wmalloc+0xa1/0x120 [ 60.288679][ T5074] unix_stream_connect+0x1f2/0xe80 [ 60.293794][ T5074] __sys_connect+0x2ad/0x2e0 [ 60.298366][ T5074] __x64_sys_connect+0x76/0x80 [ 60.303114][ T5074] do_syscall_64+0x3d/0xb0 [ 60.307522][ T5074] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 60.313404][ T5074] [ 60.315709][ T5074] Freed by task 5069: [ 60.319663][ T5074] kasan_set_track+0x3d/0x60 [ 60.324238][ T5074] kasan_save_free_info+0x27/0x40 [ 60.329247][ T5074] ____kasan_slab_free+0xd6/0x120 [ 60.334404][ T5074] slab_free_freelist_hook+0x12e/0x1a0 [ 60.339852][ T5074] __kmem_cache_free+0x71/0x110 [ 60.344687][ T5074] skb_release_data+0x4f6/0x710 [ 60.349561][ T5074] kfree_skb_reason+0xfa/0x2c0 [ 60.354312][ T5074] unix_stream_connect+0x78a/0xe80 [ 60.359414][ T5074] __sys_connect+0x2ad/0x2e0 [ 60.363989][ T5074] __x64_sys_connect+0x76/0x80 [ 60.368837][ T5074] do_syscall_64+0x3d/0xb0 [ 60.373380][ T5074] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 60.379283][ T5074] [ 60.381602][ T5074] The buggy address belongs to the object at ffff888029e84800 [ 60.381602][ T5074] which belongs to the cache kmalloc-512 of size 512 [ 60.395755][ T5074] The buggy address is located 496 bytes to the right of [ 60.395755][ T5074] 512-byte region [ffff888029e84800, ffff888029e84a00) [ 60.409541][ T5074] [ 60.411848][ T5074] The buggy address belongs to the physical page: [ 60.418259][ T5074] page:ffffea0000a7a100 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x29e84 [ 60.428399][ T5074] head:ffffea0000a7a100 order:2 compound_mapcount:0 subpages_mapcount:0 compound_pincount:0 [ 60.438574][ T5074] anon flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) [ 60.446976][ T5074] raw: 00fff00000010200 ffff888012841c80 0000000000000000 dead000000000001 [ 60.455629][ T5074] raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 [ 60.464194][ T5074] page dumped because: kasan: bad access detected [ 60.470603][ T5074] page_owner tracks the page as allocated [ 60.476299][ T5074] page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 3365, tgid 3365 (kworker/u4:3), ts 10392045702, free_ts 0 [ 60.496772][ T5074] get_page_from_freelist+0x742/0x7c0 [ 60.502134][ T5074] __alloc_pages+0x259/0x560 [ 60.506719][ T5074] alloc_slab_page+0xbd/0x190 [ 60.511378][ T5074] allocate_slab+0x5e/0x3c0 [ 60.515884][ T5074] ___slab_alloc+0x782/0xe20 [ 60.520463][ T5074] __kmem_cache_alloc_node+0x25b/0x340 [ 60.525914][ T5074] kmalloc_trace+0x26/0x60 [ 60.530311][ T5074] alloc_bprm+0x56/0x3b0 [ 60.534882][ T5074] kernel_execve+0x97/0xa00 [ 60.539397][ T5074] call_usermodehelper_exec_async+0x262/0x3b0 [ 60.545594][ T5074] ret_from_fork+0x1f/0x30 [ 60.550009][ T5074] page_owner free stack trace missing [ 60.555365][ T5074] [ 60.557674][ T5074] Memory state around the buggy address: [ 60.563283][ T5074] ffff888029e84a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 60.571325][ T5074] ffff888029e84b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 60.579368][ T5074] >ffff888029e84b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 60.587407][ T5074] ^ [ 60.595104][ T5074] ffff888029e84c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 60.603184][ T5074] ffff888029e84c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 60.611225][ T5074] ================================================================== [ 60.619638][ T5074] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 60.626848][ T5074] CPU: 1 PID: 5074 Comm: syz-executor122 Not tainted 6.1.0-syzkaller-14321-g0a924817d2ed #0 [ 60.637026][ T5074] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 60.647081][ T5074] Call Trace: [ 60.650357][ T5074] [ 60.653280][ T5074] dump_stack_lvl+0x1b1/0x290 [ 60.657960][ T5074] ? nf_tcp_handle_invalid+0x630/0x630 [ 60.663418][ T5074] ? panic+0x710/0x710 [ 60.667491][ T5074] ? lock_release+0x81/0x820 [ 60.672079][ T5074] ? vscnprintf+0x59/0x80 [ 60.676410][ T5074] panic+0x2d6/0x710 [ 60.680301][ T5074] ? check_panic_on_warn+0x1d/0xa0 [ 60.685414][ T5074] ? memcpy_page_flushcache+0x100/0x100 [ 60.690955][ T5074] ? _raw_spin_unlock_irqrestore+0x110/0x120 [ 60.696930][ T5074] ? _raw_spin_unlock+0x40/0x40 [ 60.701778][ T5074] ? print_report+0x1b4/0x1f0 [ 60.706543][ T5074] check_panic_on_warn+0x80/0xa0 [ 60.711485][ T5074] ? udf_write_aext+0x62d/0x7e0 [ 60.716333][ T5074] end_report+0x47/0x90 [ 60.720492][ T5074] kasan_report+0xda/0x100 [ 60.724909][ T5074] ? udf_write_aext+0x62d/0x7e0 [ 60.729952][ T5074] udf_write_aext+0x62d/0x7e0 [ 60.734641][ T5074] udf_add_entry+0x1712/0x3300 [ 60.739406][ T5074] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 60.745394][ T5074] ? __mark_inode_dirty+0x593/0x600 [ 60.750590][ T5074] ? udf_add_nondir+0x580/0x580 [ 60.755442][ T5074] ? udf_new_inode+0xb04/0xf30 [ 60.760204][ T5074] ? d_alloc+0x193/0x1d0 [ 60.764451][ T5074] udf_mkdir+0x13c/0x980 [ 60.768696][ T5074] ? udf_symlink+0x1680/0x1680 [ 60.773459][ T5074] ? from_kgid+0x193/0x6b0 [ 60.777885][ T5074] ? make_kgid+0x710/0x710 [ 60.782297][ T5074] ? __lookup_hash+0x123/0x240 [ 60.787059][ T5074] ? apparmor_path_mkdir+0x461/0x520 [ 60.792348][ T5074] ? generic_permission+0x229/0x500 [ 60.797556][ T5074] ? inode_permission+0xf5/0x450 [ 60.802490][ T5074] ? bpf_lsm_inode_mkdir+0x5/0x10 [ 60.807551][ T5074] ? security_inode_mkdir+0xdd/0x120 [ 60.812856][ T5074] vfs_mkdir+0x3b3/0x590 [ 60.817109][ T5074] do_mkdirat+0x25b/0x530 [ 60.821440][ T5074] ? __check_object_size+0x15a/0x210 [ 60.826750][ T5074] ? vfs_mkdir+0x590/0x590 [ 60.831351][ T5074] ? getname_flags+0x1ea/0x4e0 [ 60.836143][ T5074] __x64_sys_mkdirat+0x85/0x90 [ 60.840925][ T5074] do_syscall_64+0x3d/0xb0 [ 60.845346][ T5074] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 60.851266][ T5074] RIP: 0033:0x7f74deb49b49 [ 60.855691][ T5074] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 00 00 90 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 [ 60.875320][ T5074] RSP: 002b:00007fff69318728 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 [ 60.883734][ T5074] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f74deb49b49 [ 60.891699][ T5074] RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000004 [ 60.899749][ T5074] RBP: 00007f74deb09150 R08: 0000000000000000 R09: 0000000000000000 [ 60.907714][ T5074] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f74deb091e0 [ 60.915685][ T5074] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 60.923658][ T5074] [ 60.926730][ T5074] Kernel Offset: disabled [ 60.931050][ T5074] Rebooting in 86400 seconds..