EXT4-fs (loop3): mounted filesystem without journal. Quota mode: none. ================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x7c0/0x15ac fs/ext4/xattr.c:1742 Read of size 18446744073709551588 at addr ffff0000dd6c7040 by task syz.3.507/7313 CPU: 1 PID: 7313 Comm: syz.3.507 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 print_address_description+0x88/0x218 mm/kasan/report.c:316 print_report+0x50/0x68 mm/kasan/report.c:420 kasan_report+0xa8/0x100 mm/kasan/report.c:524 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x260/0x2a0 mm/kasan/generic.c:189 memmove+0x48/0x90 mm/kasan/shadow.c:54 ext4_xattr_set_entry+0x7c0/0x15ac fs/ext4/xattr.c:1742 ext4_xattr_block_set+0x614/0x2810 fs/ext4/xattr.c:1989 ext4_xattr_set_handle+0xe30/0x102c fs/ext4/xattr.c:2414 ext4_xattr_set+0x1e0/0x2b4 fs/ext4/xattr.c:2516 ext4_xattr_trusted_set+0x4c/0x64 fs/ext4/xattr_trusted.c:38 __vfs_setxattr+0x388/0x3a4 fs/xattr.c:182 __vfs_setxattr_noperm+0x120/0x564 fs/xattr.c:216 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:277 vfs_setxattr+0x158/0x2ac fs/xattr.c:309 do_setxattr fs/xattr.c:594 [inline] setxattr+0x228/0x28c fs/xattr.c:617 path_setxattr+0x12c/0x25c fs/xattr.c:636 __do_sys_lsetxattr fs/xattr.c:659 [inline] __se_sys_lsetxattr fs/xattr.c:655 [inline] __arm64_sys_lsetxattr+0xbc/0xd8 fs/xattr.c:655 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Allocated by task 7313: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:52 kasan_save_alloc_info+0x28/0x34 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0xa0/0xb8 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+0xe0/0x16c mm/slab_common.c:956 kmemdup+0x5c/0x98 mm/util.c:129 kmemdup include/linux/fortify-string.h:585 [inline] ext4_xattr_block_set+0x558/0x2810 fs/ext4/xattr.c:1937 ext4_xattr_set_handle+0xe30/0x102c fs/ext4/xattr.c:2414 ext4_xattr_set+0x1e0/0x2b4 fs/ext4/xattr.c:2516 ext4_xattr_trusted_set+0x4c/0x64 fs/ext4/xattr_trusted.c:38 __vfs_setxattr+0x388/0x3a4 fs/xattr.c:182 __vfs_setxattr_noperm+0x120/0x564 fs/xattr.c:216 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:277 vfs_setxattr+0x158/0x2ac fs/xattr.c:309 do_setxattr fs/xattr.c:594 [inline] setxattr+0x228/0x28c fs/xattr.c:617 path_setxattr+0x12c/0x25c fs/xattr.c:636 __do_sys_lsetxattr fs/xattr.c:659 [inline] __se_sys_lsetxattr fs/xattr.c:655 [inline] __arm64_sys_lsetxattr+0xbc/0xd8 fs/xattr.c:655 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Last potentially related work creation: kasan_save_stack+0x40/0x70 mm/kasan/common.c:45 __kasan_record_aux_stack+0xc0/0xdc mm/kasan/generic.c:486 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:496 call_rcu+0x100/0x954 kernel/rcu/tree.c:2849 sctp_transport_destroy net/sctp/transport.c:173 [inline] sctp_transport_put+0xf0/0x174 net/sctp/transport.c:486 sctp_transport_free+0x140/0x158 net/sctp/transport.c:144 sctp_association_free+0x5c0/0x6e0 net/sctp/associola.c:382 sctp_cmd_delete_tcb net/sctp/sm_sideeffect.c:944 [inline] sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1331 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1199 [inline] sctp_do_sm+0x2ce0/0x4894 net/sctp/sm_sideeffect.c:1170 sctp_endpoint_bh_rcv+0x498/0x69c net/sctp/endpointola.c:402 sctp_inq_push+0x190/0x1b4 net/sctp/inqueue.c:88 sctp_rcv+0x1ad0/0x21cc net/sctp/input.c:258 sctp6_rcv+0x4c/0x80 net/sctp/ipv6.c:1111 ip6_protocol_deliver_rcu+0x928/0x11d0 net/ipv6/ip6_input.c:438 ip6_input_finish+0x164/0x298 net/ipv6/ip6_input.c:483 NF_HOOK+0x2c4/0x358 include/linux/netfilter.h:302 ip6_input+0x90/0xa8 net/ipv6/ip6_input.c:492 dst_input include/net/dst.h:463 [inline] ip6_rcv_finish+0x1f4/0x220 net/ipv6/ip6_input.c:79 NF_HOOK+0x2c4/0x358 include/linux/netfilter.h:302 ipv6_rcv+0x9c/0xbc net/ipv6/ip6_input.c:310 __netif_receive_skb_one_core net/core/dev.c:5581 [inline] __netif_receive_skb+0xcc/0x2ac net/core/dev.c:5695 process_backlog+0x408/0x714 net/core/dev.c:6023 __napi_poll+0xb4/0x3f0 net/core/dev.c:6590 napi_poll net/core/dev.c:6657 [inline] net_rx_action+0x50c/0xb10 net/core/dev.c:6771 handle_softirqs+0x318/0xc6c kernel/softirq.c:596 __do_softirq+0x14/0x20 kernel/softirq.c:630 Second to last potentially related work creation: kasan_save_stack+0x40/0x70 mm/kasan/common.c:45 __kasan_record_aux_stack+0xc0/0xdc mm/kasan/generic.c:486 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:496 call_rcu+0x100/0x954 kernel/rcu/tree.c:2849 __qdisc_destroy+0x2a8/0x500 net/sched/sch_generic.c:1084 qdisc_put net/sched/sch_generic.c:1104 [inline] dev_shutdown+0x35c/0x47c net/sched/sch_generic.c:1492 unregister_netdevice_many+0x944/0x1740 net/core/dev.c:10981 default_device_exit_batch+0x9a8/0xa40 net/core/dev.c:11503 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x644/0xa74 net/core/net_namespace.c:640 process_one_work+0x7f4/0x13a8 kernel/workqueue.c:2292 worker_thread+0x8c8/0xfbc kernel/workqueue.c:2439 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:850 The buggy address belongs to the object at ffff0000dd6c7000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 64 bytes inside of 1024-byte region [ffff0000dd6c7000, ffff0000dd6c7400) The buggy address belongs to the physical page: page:00000000e7ba25aa refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11d6c0 head:00000000e7ba25aa order:3 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 0000000000000000 dead000000000001 ffff0000c0002780 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000dd6c6f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000dd6c6f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000dd6c7000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff0000dd6c7080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000dd6c7100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== netlink: 'syz.3.507': attribute type 4 has an invalid length.