program:
mkdirat(0xffffffffffffff9c, &(0x7f0000000000)='./cgroup.cpu/test\x00', 0x777)
r0 = openat(0xffffffffffffff9c, &(0x7f0000000140)='./cgroup.cpu/test/memory.limit_in_bytes\x00', 0x2, 0x0)
write(r0, &(0x7f0000000180)='1', 0x1)
r1 = openat(0xffffffffffffff9c, &(0x7f0000000300)='./cgroup.cpu/test/cgroup.procs\x00', 0x2, 0x0)
mkdirat(0xffffffffffffff9c, &(0x7f0000000000)='./sys\x00', 0x1ff)
mount(0x0, &(0x7f0000000080)='./sys\x00', &(0x7f00000000c0)='sysfs\x00', 0x0, 0x0)
mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='./dev\x00', 0x1ff)
mount(0x0, &(0x7f0000000180)='./dev\x00', &(0x7f00000001c0)='devtmpfs\x00', 0x0, 0x0)
r2 = openat(0xffffffffffffff9c, &(0x7f0000000200)='./sys/module/md_mod/parameters/new_array\x00', 0x1, 0x0)
write(r2, &(0x7f0000000240)='md0', 0x3)
r3 = openat(0xffffffffffffff9c, &(0x7f0000000280)='./dev/md0\x00', 0x4002, 0x0)
ioctl(r3, 0x40480923, &(0x7f0000000300)="0000000000000000000000000000000001000000000400000200000002")
ioctl(r3, 0x40140921, &(0x7f0000000400)="0000000001000000000000000000000006")
ioctl(r3, 0x40140921, &(0x7f0000000440)="0100000001000000010000000100000006")
ioctl(r3, 0x400c0930, 0x0)
write(r1, &(0x7f0000000280)='0', 0x1)
r4 = userfaultfd(0x80001)
ioctl$UFFDIO_API(r4, 0xc018aa3f, &(0x7f0000000100)={0xaa, 0x268})
r5 = epoll_create(0x3)
epoll_ctl$EPOLL_CTL_ADD(r5, 0x1, r4, &(0x7f0000000000)={0x30000000})
bpf$MAP_CREATE(0x0, &(0x7f0000000180)=ANY=[@ANYBLOB="1e00000000000000000000000010000000000000", @ANYRES32, @ANYBLOB='\x00'/20, @ANYRES32=0x0, @ANYRES32, @ANYBLOB='\x00'/28], 0x48)
[ 102.183703][ T4647] Bluetooth: hci0: command tx timeout
[ 102.412739][ T5327] md: async del_gendisk mode will be removed in future, please upgrade to mdadm-4.5+
[ 102.594833][ T5328] syz.0.0 invoked oom-killer: gfp_mask=0xcc0(GFP_KERNEL), order=0, oom_score_adj=1000
[ 102.594882][ T5328] CPU: 0 UID: 0 PID: 5328 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full)
[ 102.594895][ T5328] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[ 102.594903][ T5328] Call Trace:
[ 102.594908][ T5328]
[ 102.594914][ T5328] dump_stack_lvl+0xe8/0x150
[ 102.595102][ T5328] dump_header+0xd3/0x4b0
[ 102.595135][ T5328] oom_kill_process+0x3ab/0x9e0
[ 102.595193][ T5328] out_of_memory+0x1064/0x1480
[ 102.595206][ T5328] ? try_charge_memcg+0xc32/0x15e0
[ 102.595255][ T5328] ? __pfx_out_of_memory+0x10/0x10
[ 102.595268][ T5328] ? do_raw_spin_unlock+0x4d/0x200
[ 102.595312][ T5328] try_charge_memcg+0xcdf/0x15e0
[ 102.595339][ T5328] ? __pfx_try_charge_memcg+0x10/0x10
[ 102.595356][ T5328] ? percpu_ref_tryget+0x15/0x180
[ 102.595376][ T5328] ? __obj_cgroup_charge+0x36/0x2c0
[ 102.595395][ T5328] __obj_cgroup_charge+0x1fd/0x2c0
[ 102.595411][ T5328] ? __obj_cgroup_charge+0x36/0x2c0
[ 102.595429][ T5328] __memcg_slab_post_alloc_hook+0x766/0xd90
[ 102.595457][ T5328] kmem_cache_alloc_lru_noprof+0x351/0x5f0
[ 102.595497][ T5328] ? kmem_cache_alloc_lru_noprof+0x153/0x5f0
[ 102.595514][ T5328] ? alloc_inode+0xb8/0x1b0
[ 102.595539][ T5328] ? alloc_inode+0xb8/0x1b0
[ 102.595556][ T5328] alloc_inode+0xb8/0x1b0
[ 102.595571][ T5328] alloc_anon_inode+0x1e/0x340
[ 102.595589][ T5328] anon_inode_make_secure_inode+0x7b/0x180
[ 102.595618][ T5328] ? __pfx_anon_inode_make_secure_inode+0x10/0x10
[ 102.595633][ T5328] ? _raw_spin_unlock+0x28/0x50
[ 102.595751][ T5328] ? alloc_fd+0x651/0x6c0
[ 102.595769][ T5328] __anon_inode_getfile+0xce/0x200
[ 102.595785][ T5328] new_userfaultfd+0x1f4/0x3d0
[ 102.595804][ T5328] __x64_sys_userfaultfd+0x81/0xa0
[ 102.595818][ T5328] do_syscall_64+0x166/0x520
[ 102.595831][ T5328] ? trace_irq_disable+0x3b/0x140
[ 102.595864][ T5328] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 102.595875][ T5328] ? clear_bhb_loop+0x70/0xc0
[ 102.595890][ T5328] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 102.595902][ T5328] RIP: 0033:0x7f972699e159
[ 102.595930][ T5328] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 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 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
[ 102.595941][ T5328] RSP: 002b:00007f972789bfe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000143
[ 102.595956][ T5328] RAX: ffffffffffffffda RBX: 00007f9726c26090 RCX: 00007f972699e159
[ 102.595964][ T5328] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000080001
[ 102.595971][ T5328] RBP: 00007f9726a3506b R08: 0000000000000000 R09: 0000000000000000
[ 102.595977][ T5328] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
[ 102.595983][ T5328] R13: 00007f9726c26128 R14: 00007f9726c26090 R15: 00007ffcdf6962e8
[ 102.596001][ T5328]
[ 102.596627][ T5328] memory: usage 0kB, limit 0kB, failcnt 19
[ 102.596638][ T5328] memory+swap: usage 0kB, limit 9007199254740988kB, failcnt 0
[ 102.596645][ T5328] kmem: usage 0kB, limit 9007199254740988kB, failcnt 0
[ 102.596652][ T5328] Memory cgroup stats for /syz0/test:
[ 102.596803][ T5328] cache 0
[ 102.596809][ T5328] rss 0
[ 102.596813][ T5328] rss_huge 0
[ 102.596817][ T5328] shmem 0
[ 102.596821][ T5328] mapped_file 0
[ 102.596825][ T5328] dirty 0
[ 102.596829][ T5328] writeback 0
[ 102.596833][ T5328] workingset_refault_anon 0
[ 102.596838][ T5328] workingset_refault_file 0
[ 102.596843][ T5328] swap 0
[ 102.596847][ T5328] swapcached 0
[ 102.596852][ T5328] pgpgin 0
[ 102.596856][ T5328] pgpgout 0
[ 102.596860][ T5328] pgfault 0
[ 102.596864][ T5328] pgmajfault 0
[ 102.596868][ T5328] inactive_anon 0
[ 102.596872][ T5328] active_anon 0
[ 102.596877][ T5328] inactive_file 0
[ 102.596881][ T5328] active_file 0
[ 102.596885][ T5328] unevictable 0
[ 102.596889][ T5328] hierarchical_memory_limit 0
[ 102.596894][ T5328] hierarchical_memsw_limit 9223372036854771712
[ 102.596899][ T5328] total_cache 0
[ 102.596904][ T5328] total_rss 0
[ 102.596907][ T5328] total_rss_huge 0
[ 102.596912][ T5328] total_shmem 0
[ 102.596916][ T5328] total_mapped_file 0
[ 102.596920][ T5328] total_dirty 0
[ 102.596923][ T5328] total_writeback 0
[ 102.596927][ T5328] total_workingset_refault_anon 0
[ 102.596931][ T5328] total_workingset_refault_file 0
[ 102.596936][ T5328] total_swap 0
[ 102.596939][ T5328] total_swapcached 0
[ 102.596943][ T5328] total_pgpgin 0
[ 102.596947][ T5328] total_pgpgout 0
[ 102.596951][ T5328] total_pgfault 0
[ 102.596954][ T5328] total_pgmajfault 0
[ 102.596958][ T5328] total_inactive_anon 0
[ 102.596962][ T5328] total_active_anon 0
[ 102.596966][ T5328] total_inactive_file 0
[ 102.596969][ T5328] total_active_file 0
[ 102.596973][ T5328] total_unevictable 0
[ 102.596977][ T5328] anon_cost 0
[ 102.596981][ T5328] file_cost 0
[ 102.596986][ T5328] oom-kill:constraint=CONSTRAINT_MEMCG,nodemask=(null),cpuset=/,mems_allowed=0-1,oom_memcg=/syz0/test,task_memcg=/syz0/test,task=syz.0.0,pid=5326,uid=0
[ 102.598703][ T5328] Memory cgroup out of memory: Killed process 5326 (syz.0.0) total-vm:92080kB, anon-rss:148kB, file-rss:33884kB, shmem-rss:0kB, UID:0 pgtables:164kB oom_score_adj:1000
[ 104.198001][ T4647] Bluetooth: hci0: command tx timeout
[ 104.927088][ T28] oom_reaper: reaped process 5326 (syz.0.0), now anon-rss:0kB, file-rss:32768kB, shmem-rss:0kB
[ 104.951308][ T5327] md/raid1:md0: not clean -- starting background reconstruction
[ 104.951324][ T5327] md/raid1:md0: active with 2 out of 29442 mirrors
[ 104.957710][ T5327] ------------[ cut here ]------------
[ 104.957721][ T5327] UBSAN: array-index-out-of-bounds in drivers/md/md.c:1726:20
[ 104.957742][ T5327] index 28 is out of range for type 'mdp_disk_t[27]' (aka 'struct mdp_device_descriptor_s[27]')
[ 104.957767][ T5327] CPU: 0 UID: 0 PID: 5327 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full)
[ 104.957780][ T5327] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[ 104.957788][ T5327] Call Trace:
[ 104.957794][ T5327]
[ 104.957800][ T5327] dump_stack_lvl+0xe8/0x150
[ 104.957825][ T5327] ubsan_epilogue+0xa/0x30
[ 104.957838][ T5327] __ubsan_handle_out_of_bounds+0xe8/0xf0
[ 104.957913][ T5327] super_90_sync+0x1398/0x21d0
[ 104.957961][ T5327] ? __pfx_super_90_sync+0x10/0x10
[ 104.957977][ T5327] md_update_sb+0xd0d/0x26a0
[ 104.958004][ T5327] ? __pfx_md_update_sb+0x10/0x10
[ 104.958014][ T5327] ? kernfs_put+0x7b9/0x820
[ 104.958043][ T5327] ? kernfs_create_link+0x187/0x200
[ 104.958063][ T5327] md_run+0x15b6/0x1cd0
[ 104.958083][ T5327] ? __pfx_md_run+0x10/0x10
[ 104.958102][ T5327] do_md_run+0x35/0x720
[ 104.958112][ T5327] ? md_ioctl+0x1e23/0x2610
[ 104.958120][ T5327] md_ioctl+0x1e2b/0x2610
[ 104.958131][ T5327] ? tomoyo_path_number_perm+0x4ba/0x5f0
[ 104.958157][ T5327] ? tomoyo_path_number_perm+0x219/0x5f0
[ 104.958169][ T5327] ? __pfx_md_ioctl+0x10/0x10
[ 104.958182][ T5327] ? do_vfs_ioctl+0x116f/0x1530
[ 104.958196][ T5327] ? __pfx_do_vfs_ioctl+0x10/0x10
[ 104.958221][ T5327] ? hook_file_ioctl+0x1f2/0x600
[ 104.958246][ T5327] ? __pfx_md_ioctl+0x10/0x10
[ 104.958260][ T5327] blkdev_ioctl+0x5e3/0x740
[ 104.958281][ T5327] ? __pfx_blkdev_ioctl+0x10/0x10
[ 104.958293][ T5327] ? __fget_files+0x2a/0x420
[ 104.958336][ T5327] ? bpf_lsm_file_ioctl+0x9/0x20
[ 104.958365][ T5327] ? __pfx_blkdev_ioctl+0x10/0x10
[ 104.958379][ T5327] __se_sys_ioctl+0xfc/0x170
[ 104.958392][ T5327] do_syscall_64+0x166/0x520
[ 104.958406][ T5327] ? trace_irq_disable+0x3b/0x140
[ 104.958418][ T5327] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 104.958430][ T5327] ? clear_bhb_loop+0x70/0xc0
[ 104.958445][ T5327] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 104.958455][ T5327] RIP: 0033:0x7f972699e159
[ 104.958473][ T5327] Code: Unable to access opcode bytes at 0x7f972699e12f.
[ 104.958478][ T5327] RSP: 002b:00007f97278bcfe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 104.958493][ T5327] RAX: ffffffffffffffda RBX: 00007f9726c25fa0 RCX: 00007f972699e159
[ 104.958501][ T5327] RDX: 0000000000000000 RSI: 00000000400c0930 RDI: 0000000000000006
[ 104.958509][ T5327] RBP: 00007f9726a3506b R08: 0000000000000000 R09: 0000000000000000
[ 104.958516][ T5327] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
[ 104.958523][ T5327] R13: 00007f9726c26038 R14: 00007f9726c25fa0 R15: 00007ffcdf6962e8
[ 104.958542][ T5327]
[ 104.958547][ T5327] ---[ end trace ]---
[ 104.958569][ T5327] Kernel panic - not syncing: UBSAN: panic_on_warn set ...
[ 105.083174][ T5327] CPU: 0 UID: 0 PID: 5327 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full)
[ 105.086683][ T5327] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[ 105.091014][ T5327] Call Trace:
[ 105.092558][ T5327]
[ 105.093881][ T5327] vpanic+0x56d/0xa60
[ 105.095603][ T5327] ? __pfx_vpanic+0x10/0x10
[ 105.097537][ T5327] panic+0xc5/0xd0
[ 105.099233][ T5327] ? __pfx_panic+0x10/0x10
[ 105.101164][ T5327] ? __pfx__printk+0x10/0x10
[ 105.103112][ T5327] ? dump_stack_lvl+0x103/0x150
[ 105.105207][ T5327] check_panic_on_warn+0x89/0xb0
[ 105.107426][ T5327] __ubsan_handle_out_of_bounds+0xe8/0xf0
[ 105.109906][ T5327] super_90_sync+0x1398/0x21d0
[ 105.112037][ T5327] ? __pfx_super_90_sync+0x10/0x10
[ 105.114011][ T5327] md_update_sb+0xd0d/0x26a0
[ 105.115844][ T5327] ? __pfx_md_update_sb+0x10/0x10
[ 105.118167][ T5327] ? kernfs_put+0x7b9/0x820
[ 105.120114][ T5327] ? kernfs_create_link+0x187/0x200
[ 105.122300][ T5327] md_run+0x15b6/0x1cd0
[ 105.124076][ T5327] ? __pfx_md_run+0x10/0x10
[ 105.126013][ T5327] do_md_run+0x35/0x720
[ 105.127765][ T5327] ? md_ioctl+0x1e23/0x2610
[ 105.129793][ T5327] md_ioctl+0x1e2b/0x2610
[ 105.131743][ T5327] ? tomoyo_path_number_perm+0x4ba/0x5f0
[ 105.134255][ T5327] ? tomoyo_path_number_perm+0x219/0x5f0
[ 105.136647][ T5327] ? __pfx_md_ioctl+0x10/0x10
[ 105.138668][ T5327] ? do_vfs_ioctl+0x116f/0x1530
[ 105.140808][ T5327] ? __pfx_do_vfs_ioctl+0x10/0x10
[ 105.143044][ T5327] ? hook_file_ioctl+0x1f2/0x600
[ 105.145086][ T5327] ? __pfx_md_ioctl+0x10/0x10
[ 105.147058][ T5327] blkdev_ioctl+0x5e3/0x740
[ 105.149019][ T5327] ? __pfx_blkdev_ioctl+0x10/0x10
[ 105.151175][ T5327] ? __fget_files+0x2a/0x420
[ 105.153296][ T5327] ? bpf_lsm_file_ioctl+0x9/0x20
[ 105.155378][ T5327] ? __pfx_blkdev_ioctl+0x10/0x10
[ 105.157408][ T5327] __se_sys_ioctl+0xfc/0x170
[ 105.159341][ T5327] do_syscall_64+0x166/0x520
[ 105.161275][ T5327] ? trace_irq_disable+0x3b/0x140
[ 105.163423][ T5327] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 105.166025][ T5327] ? clear_bhb_loop+0x70/0xc0
[ 105.168175][ T5327] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 105.170849][ T5327] RIP: 0033:0x7f972699e159
[ 105.172575][ T5327] Code: Unable to access opcode bytes at 0x7f972699e12f.
[ 105.175261][ T5327] RSP: 002b:00007f97278bcfe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 105.178683][ T5327] RAX: ffffffffffffffda RBX: 00007f9726c25fa0 RCX: 00007f972699e159
[ 105.182011][ T5327] RDX: 0000000000000000 RSI: 00000000400c0930 RDI: 0000000000000006
[ 105.185268][ T5327] RBP: 00007f9726a3506b R08: 0000000000000000 R09: 0000000000000000
[ 105.188458][ T5327] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
[ 105.192055][ T5327] R13: 00007f9726c26038 R14: 00007f9726c25fa0 R15: 00007ffcdf6962e8
[ 105.195483][ T5327]
[ 105.197336][ T5327] Kernel Offset: disabled
[ 105.199202][ T5327] Rebooting in 86400 seconds..