UDF-fs: error (device loop3): udf_read_tagged: tag checksum failed, block 99: 0x27 != 0x4d UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) ================================================================== BUG: KASAN: slab-out-of-bounds in udf_write_aext+0x5e9/0x7a0 fs/udf/inode.c:2105 Write of size 4 at addr ffff888057b71ff0 by task syz.3.2885/16614 CPU: 1 PID: 16614 Comm: syz.3.2885 Not tainted 6.1.107-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x15f/0x4f0 mm/kasan/report.c:395 kasan_report+0x136/0x160 mm/kasan/report.c:495 udf_write_aext+0x5e9/0x7a0 fs/udf/inode.c:2105 udf_add_entry+0x17b7/0x3350 fs/udf/namei.c:482 udf_mkdir+0x1a8/0xaa0 fs/udf/namei.c:681 vfs_mkdir+0x3b6/0x590 fs/namei.c:4108 do_mkdirat+0x225/0x360 fs/namei.c:4133 __do_sys_mkdir fs/namei.c:4153 [inline] __se_sys_mkdir fs/namei.c:4151 [inline] __x64_sys_mkdir+0x6a/0x80 fs/namei.c:4151 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f6319379eb9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f631a0b5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 00007f6319515f80 RCX: 00007f6319379eb9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000300 RBP: 00007f63193e793e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6319515f80 R15: 00007ffc23060a98 Allocated by task 16599: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0x97/0xb0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc_node_track_caller+0xb1/0x220 mm/slab_common.c:956 kmalloc_reserve net/core/skbuff.c:446 [inline] __alloc_skb+0x135/0x670 net/core/skbuff.c:515 __netdev_alloc_skb+0xfb/0x500 net/core/skbuff.c:579 netdev_alloc_skb include/linux/skbuff.h:3206 [inline] dev_alloc_skb include/linux/skbuff.h:3219 [inline] __ieee80211_beacon_get+0xc7d/0x2110 net/mac80211/tx.c:5258 ieee80211_beacon_get_tim+0xb1/0x5d0 net/mac80211/tx.c:5340 ieee80211_beacon_get include/net/mac80211.h:5248 [inline] mac80211_hwsim_beacon_tx+0x1d2/0xaa0 drivers/net/wireless/mac80211_hwsim.c:2086 __iterate_interfaces+0x21e/0x4b0 net/mac80211/util.c:788 ieee80211_iterate_active_interfaces_atomic+0xd4/0x170 net/mac80211/util.c:824 mac80211_hwsim_beacon+0xd0/0x1e0 drivers/net/wireless/mac80211_hwsim.c:2142 __run_hrtimer kernel/time/hrtimer.c:1689 [inline] __hrtimer_run_queues+0x5e5/0xe50 kernel/time/hrtimer.c:1753 hrtimer_run_softirq+0x196/0x2c0 kernel/time/hrtimer.c:1770 handle_softirqs+0x2ee/0xa40 kernel/softirq.c:571 __do_softirq kernel/softirq.c:605 [inline] invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x157/0x240 kernel/softirq.c:654 irq_exit_rcu+0x5/0x20 kernel/softirq.c:666 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653 Freed by task 16599: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x27/0x40 mm/kasan/generic.c:516 ____kasan_slab_free+0xd6/0x120 mm/kasan/common.c:236 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1724 [inline] slab_free_freelist_hook mm/slub.c:1750 [inline] slab_free mm/slub.c:3661 [inline] __kmem_cache_free+0x25c/0x3c0 mm/slub.c:3674 skb_free_head net/core/skbuff.c:762 [inline] skb_release_data+0x5de/0x7a0 net/core/skbuff.c:791 skb_release_all net/core/skbuff.c:856 [inline] __kfree_skb net/core/skbuff.c:870 [inline] consume_skb+0xa3/0x140 net/core/skbuff.c:1035 mac80211_hwsim_beacon_tx+0x5f8/0xaa0 drivers/net/wireless/mac80211_hwsim.c:2116 __iterate_interfaces+0x21e/0x4b0 net/mac80211/util.c:788 ieee80211_iterate_active_interfaces_atomic+0xd4/0x170 net/mac80211/util.c:824 mac80211_hwsim_beacon+0xd0/0x1e0 drivers/net/wireless/mac80211_hwsim.c:2142 __run_hrtimer kernel/time/hrtimer.c:1689 [inline] __hrtimer_run_queues+0x5e5/0xe50 kernel/time/hrtimer.c:1753 hrtimer_run_softirq+0x196/0x2c0 kernel/time/hrtimer.c:1770 handle_softirqs+0x2ee/0xa40 kernel/softirq.c:571 __do_softirq kernel/softirq.c:605 [inline] invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x157/0x240 kernel/softirq.c:654 irq_exit_rcu+0x5/0x20 kernel/softirq.c:666 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653 Last potentially related work creation: kasan_save_stack+0x3b/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb0/0xc0 mm/kasan/generic.c:486 kvfree_call_rcu+0x116/0x8c0 kernel/rcu/tree.c:3401 drop_sysctl_table+0x317/0x460 fs/proc/proc_sysctl.c:1727 drop_sysctl_table+0x329/0x460 fs/proc/proc_sysctl.c:1730 unregister_sysctl_table+0x86/0x130 fs/proc/proc_sysctl.c:1765 neigh_sysctl_unregister+0x74/0x90 net/core/neighbour.c:3866 addrconf_sysctl_unregister net/ipv6/addrconf.c:7180 [inline] addrconf_ifdown+0x18a4/0x1b90 net/ipv6/addrconf.c:3935 addrconf_notify+0x3ec/0xf60 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xd0/0x170 kernel/notifier.c:455 call_netdevice_notifiers_info net/core/dev.c:1970 [inline] call_netdevice_notifiers_extack net/core/dev.c:2008 [inline] call_netdevice_notifiers net/core/dev.c:2022 [inline] unregister_netdevice_many+0xebf/0x17a0 net/core/dev.c:10882 unregister_netdevice_queue+0x2e6/0x350 net/core/dev.c:10813 unregister_netdevice include/linux/netdevice.h:3045 [inline] nsim_destroy+0x44/0x140 drivers/net/netdevsim/netdev.c:382 __nsim_dev_port_del+0x153/0x1b0 drivers/net/netdevsim/dev.c:1430 nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1442 [inline] nsim_dev_reload_destroy+0x286/0x490 drivers/net/netdevsim/dev.c:1659 nsim_dev_reload_down+0x94/0xc0 drivers/net/netdevsim/dev.c:965 devlink_reload+0x1eb/0x6a0 net/devlink/leftover.c:4492 devlink_pernet_pre_exit+0x14e/0x2c0 net/devlink/leftover.c:12521 ops_pre_exit_list net/core/net_namespace.c:162 [inline] cleanup_net+0x59c/0xb60 net/core/net_namespace.c:592 process_one_work+0x8a9/0x11d0 kernel/workqueue.c:2292 worker_thread+0xa47/0x1200 kernel/workqueue.c:2439 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Second to last potentially related work creation: kasan_save_stack+0x3b/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb0/0xc0 mm/kasan/generic.c:486 insert_work+0x54/0x3d0 kernel/workqueue.c:1361 __queue_work+0xb4b/0xf90 kernel/workqueue.c:1520 call_timer_fn+0x1ad/0x6b0 kernel/time/timer.c:1504 expire_timers kernel/time/timer.c:1544 [inline] __run_timers+0x6a8/0x890 kernel/time/timer.c:1820 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1833 handle_softirqs+0x2ee/0xa40 kernel/softirq.c:571 run_ksoftirqd+0xc6/0x120 kernel/softirq.c:938 smpboot_thread_fn+0x52c/0xa30 kernel/smpboot.c:164 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 The buggy address belongs to the object at ffff888057b71c00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 496 bytes to the right of 512-byte region [ffff888057b71c00, ffff888057b71e00) The buggy address belongs to the physical page: page:ffffea00015edc00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x57b70 head:ffffea00015edc00 order:2 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000001 ffff888017c41c80 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0x152a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 10092, tgid 10092 (syz-executor), ts 681071657469, free_ts 637480993010 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x18d/0x1b0 mm/page_alloc.c:2517 prep_new_page mm/page_alloc.c:2524 [inline] get_page_from_freelist+0x322e/0x33b0 mm/page_alloc.c:4290 __alloc_pages+0x28d/0x770 mm/page_alloc.c:5558 alloc_slab_page+0x6a/0x150 mm/slub.c:1794 allocate_slab mm/slub.c:1939 [inline] new_slab+0x84/0x2d0 mm/slub.c:1992 ___slab_alloc+0xc20/0x1270 mm/slub.c:3180 __slab_alloc mm/slub.c:3279 [inline] slab_alloc_node mm/slub.c:3364 [inline] __kmem_cache_alloc_node+0x19f/0x260 mm/slub.c:3437 __do_kmalloc_node mm/slab_common.c:935 [inline] __kmalloc+0xa1/0x230 mm/slab_common.c:949 kmalloc include/linux/slab.h:562 [inline] kzalloc include/linux/slab.h:693 [inline] fib6_info_alloc+0x2c/0xd0 net/ipv6/ip6_fib.c:156 ip6_route_info_create+0x446/0x12c0 net/ipv6/route.c:3754 addrconf_f6i_alloc+0x3a0/0x7d0 net/ipv6/route.c:4579 fixup_permanent_addr net/ipv6/addrconf.c:3512 [inline] addrconf_permanent_addr+0x2d1/0xc70 net/ipv6/addrconf.c:3551 addrconf_notify+0x88f/0xf60 net/ipv6/addrconf.c:3623 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xd0/0x170 kernel/notifier.c:455 __dev_notify_flags+0x304/0x610 dev_change_flags+0xe7/0x190 net/core/dev.c:8661 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1444 [inline] free_pcp_prepare mm/page_alloc.c:1494 [inline] free_unref_page_prepare+0xf63/0x1120 mm/page_alloc.c:3369 free_unref_page+0x33/0x3e0 mm/page_alloc.c:3464 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x76/0xe0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x156/0x170 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x1f/0x70 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x52/0x3a0 mm/slab.h:737 slab_alloc_node mm/slub.c:3398 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc+0x10c/0x2d0 mm/slub.c:3422 vm_area_alloc+0x20/0xe0 kernel/fork.c:458 mmap_region+0xcbb/0x1fa0 mm/mmap.c:2743 do_mmap+0x8c5/0xf60 mm/mmap.c:1425 vm_mmap_pgoff+0x1ca/0x2d0 mm/util.c:520 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffff888057b71e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888057b71f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888057b71f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888057b72000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888057b72080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================