UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000)
==================================================================
BUG: KASAN: slab-out-of-bounds in udf_write_aext+0x780/0x860 fs/udf/inode.c:2065
Write of size 4 at addr ffff8880b312dcf0 by task syz-executor.4/29324

CPU: 1 PID: 29324 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256
 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354
 kasan_report mm/kasan/report.c:412 [inline]
 __asan_report_store_n_noabort+0x8b/0xa0 mm/kasan/report.c:449
 udf_write_aext+0x780/0x860 fs/udf/inode.c:2065
 udf_add_entry+0xdab/0x2a20 fs/udf/namei.c:496
 udf_mkdir+0x145/0x650 fs/udf/namei.c:693
 vfs_mkdir+0x508/0x7a0 fs/namei.c:3819
 do_mkdirat+0x262/0x2d0 fs/namei.c:3842
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f594d9c70d9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f594bf39168 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f594dae6f80 RCX: 00007f594d9c70d9
RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000004
RBP: 00007f594da22ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe82bf63ff R14: 00007f594bf39300 R15: 0000000000022000

Allocated by task 27258:
 kmem_cache_alloc_trace+0x12f/0x380 mm/slab.c:3625
 kmalloc include/linux/slab.h:515 [inline]
 kzalloc include/linux/slab.h:709 [inline]
 nf_ct_tmpl_alloc+0x6d/0x240 net/netfilter/nf_conntrack_core.c:533
 synproxy_net_init+0x174/0x420 net/netfilter/nf_synproxy_core.c:348
 ops_init+0xb3/0x410 net/core/net_namespace.c:129
 setup_net+0x2c2/0x720 net/core/net_namespace.c:316
 copy_net_ns+0x1f7/0x340 net/core/net_namespace.c:439
 create_new_namespaces+0x3f6/0x7b0 kernel/nsproxy.c:107
 unshare_nsproxy_namespaces+0xbd/0x1f0 kernel/nsproxy.c:206
 ksys_unshare+0x36c/0x9a0 kernel/fork.c:2542
 __do_sys_unshare kernel/fork.c:2610 [inline]
 __se_sys_unshare kernel/fork.c:2608 [inline]
 __x64_sys_unshare+0x2d/0x40 kernel/fork.c:2608
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe

Freed by task 9839:
 __cache_free mm/slab.c:3503 [inline]
 kfree+0xcc/0x210 mm/slab.c:3822
 nf_ct_tmpl_free net/netfilter/nf_conntrack_core.c:555 [inline]
 destroy_conntrack+0x2ac/0x310 net/netfilter/nf_conntrack_core.c:569
 nf_conntrack_destroy+0xe7/0x230 net/netfilter/core.c:601
 nf_conntrack_put include/linux/skbuff.h:3898 [inline]
 nf_ct_put include/net/netfilter/nf_conntrack.h:162 [inline]
 synproxy_net_exit+0x22e/0x340 net/netfilter/nf_synproxy_core.c:383
 ops_exit_list+0xa5/0x150 net/core/net_namespace.c:153
 cleanup_net+0x3b4/0x8b0 net/core/net_namespace.c:554
 process_one_work+0x864/0x1570 kernel/workqueue.c:2153
 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415

The buggy address belongs to the object at ffff8880b312da80
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 112 bytes to the right of
 512-byte region [ffff8880b312da80, ffff8880b312dc80)
The buggy address belongs to the page:
page:ffffea0002cc4b40 count:1 mapcount:0 mapping:ffff88813bff0940 index:0xffff8880b312da80
flags: 0xfff00000000100(slab)
raw: 00fff00000000100 ffffea0002789ac8 ffffea0002d28a08 ffff88813bff0940
raw: ffff8880b312da80 ffff8880b312d080 0000000100000002 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff8880b312db80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8880b312dc00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff8880b312dc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
                                                             ^
 ffff8880b312dd00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8880b312dd80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================