================================================================== BUG: KASAN: slab-out-of-bounds in memcpy_from_iter lib/iov_iter.c:73 [inline] BUG: KASAN: slab-out-of-bounds in iterate_bvec include/linux/iov_iter.h:122 [inline] BUG: KASAN: slab-out-of-bounds in iterate_and_advance2 include/linux/iov_iter.h:249 [inline] BUG: KASAN: slab-out-of-bounds in iterate_and_advance include/linux/iov_iter.h:271 [inline] BUG: KASAN: slab-out-of-bounds in __copy_from_iter lib/iov_iter.c:268 [inline] BUG: KASAN: slab-out-of-bounds in copy_page_from_iter_atomic+0xa60/0x17b4 lib/iov_iter.c:500 Read of size 2048 at addr ffff0000d5381000 by task kworker/u4:9/653 CPU: 0 PID: 653 Comm: kworker/u4:9 Not tainted 6.7.0-rc6-syzkaller-00090-gaafe7ad77b91 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 Workqueue: loop0 loop_workfn Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:291 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:298 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0x174/0x514 mm/kasan/report.c:475 kasan_report+0xd8/0x138 mm/kasan/report.c:588 kasan_check_range+0x254/0x294 mm/kasan/generic.c:187 __asan_memcpy+0x3c/0x84 mm/kasan/shadow.c:105 memcpy_from_iter lib/iov_iter.c:73 [inline] iterate_bvec include/linux/iov_iter.h:122 [inline] iterate_and_advance2 include/linux/iov_iter.h:249 [inline] iterate_and_advance include/linux/iov_iter.h:271 [inline] __copy_from_iter lib/iov_iter.c:268 [inline] copy_page_from_iter_atomic+0xa60/0x17b4 lib/iov_iter.c:500 generic_perform_write+0x310/0x588 mm/filemap.c:3926 shmem_file_write_iter+0x110/0x138 mm/shmem.c:2895 do_iter_write+0x654/0xa78 fs/read_write.c:860 vfs_iter_write+0x88/0xac fs/read_write.c:901 lo_write_bvec drivers/block/loop.c:249 [inline] lo_write_simple drivers/block/loop.c:271 [inline] do_req_filebacked drivers/block/loop.c:495 [inline] loop_handle_cmd drivers/block/loop.c:1915 [inline] loop_process_work+0x15c8/0x2498 drivers/block/loop.c:1950 loop_workfn+0x54/0x68 drivers/block/loop.c:1974 process_one_work+0x694/0x1204 kernel/workqueue.c:2627 process_scheduled_works kernel/workqueue.c:2700 [inline] worker_thread+0x938/0xef4 kernel/workqueue.c:2781 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:857 Allocated by task 6554: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x7c mm/kasan/common.c:52 kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:511 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0xac/0xc4 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:198 [inline] __do_kmalloc_node mm/slab_common.c:1007 [inline] __kmalloc+0xcc/0x1b8 mm/slab_common.c:1020 kmalloc include/linux/slab.h:604 [inline] hfsplus_read_wrapper+0x3ac/0xfcc fs/hfsplus/wrapper.c:178 hfsplus_fill_super+0x2f0/0x166c fs/hfsplus/super.c:413 mount_bdev+0x1e8/0x2b4 fs/super.c:1650 hfsplus_mount+0x44/0x58 fs/hfsplus/super.c:641 legacy_get_tree+0xd4/0x16c fs/fs_context.c:662 vfs_get_tree+0x90/0x288 fs/super.c:1771 do_new_mount+0x25c/0x8c8 fs/namespace.c:3337 path_mount+0x590/0xe04 fs/namespace.c:3664 do_mount fs/namespace.c:3677 [inline] __do_sys_mount fs/namespace.c:3886 [inline] __se_sys_mount fs/namespace.c:3863 [inline] __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3863 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 Last potentially related work creation: kasan_save_stack+0x40/0x6c mm/kasan/common.c:45 __kasan_record_aux_stack+0xcc/0xe8 mm/kasan/generic.c:492 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:502 __call_rcu_common kernel/rcu/tree.c:2681 [inline] call_rcu+0x104/0xaf4 kernel/rcu/tree.c:2795 fib6_info_release include/net/ip6_fib.h:332 [inline] fib6_del_route net/ipv6/ip6_fib.c:2001 [inline] fib6_del+0xdd0/0x1220 net/ipv6/ip6_fib.c:2034 fib6_clean_node+0x24c/0x4d0 net/ipv6/ip6_fib.c:2196 fib6_walk_continue+0x5b8/0x7e0 net/ipv6/ip6_fib.c:2118 fib6_walk+0x144/0x258 net/ipv6/ip6_fib.c:2166 fib6_clean_tree net/ipv6/ip6_fib.c:2246 [inline] __fib6_clean_all+0x29c/0x418 net/ipv6/ip6_fib.c:2262 fib6_clean_all+0x3c/0x50 net/ipv6/ip6_fib.c:2273 rt6_sync_down_dev net/ipv6/route.c:4892 [inline] rt6_disable_ip+0x134/0x798 net/ipv6/route.c:4897 addrconf_ifdown+0x154/0x17c8 net/ipv6/addrconf.c:3804 addrconf_notify+0x340/0xcf0 notifier_call_chain+0x1a4/0x510 kernel/notifier.c:93 raw_notifier_call_chain+0x3c/0x50 kernel/notifier.c:461 call_netdevice_notifiers_info net/core/dev.c:1967 [inline] call_netdevice_notifiers_extack net/core/dev.c:2005 [inline] call_netdevice_notifiers net/core/dev.c:2019 [inline] dev_close_many+0x308/0x474 net/core/dev.c:1560 unregister_netdevice_many_notify+0x41c/0x17b4 net/core/dev.c:11013 unregister_netdevice_many+0x28/0x38 net/core/dev.c:11096 ip6gre_exit_batch_net+0x40c/0x45c net/ipv6/ip6_gre.c:1643 ops_exit_list net/core/net_namespace.c:175 [inline] cleanup_net+0x5dc/0x8d0 net/core/net_namespace.c:614 process_one_work+0x694/0x1204 kernel/workqueue.c:2627 process_scheduled_works kernel/workqueue.c:2700 [inline] worker_thread+0x938/0xef4 kernel/workqueue.c:2781 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:857 The buggy address belongs to the object at ffff0000d5381000 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 0 bytes inside of allocated 512-byte region [ffff0000d5381000, ffff0000d5381200) The buggy address belongs to the physical page: page:0000000086cc8e62 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x115380 head:0000000086cc8e62 order:2 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x5ffc00000000840(slab|head|node=0|zone=2|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 05ffc00000000840 ffff0000c0001c80 fffffc000324e200 dead000000000002 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000d5381100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000d5381180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000d5381200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000d5381280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000d5381300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================