loop0: detected capacity change from 0 to 128 ======================================================= WARNING: The mand mount option has been deprecated and and is ignored by this kernel. Remove the mand option from the mount to silence this warning. ======================================================= ================================================================== BUG: KASAN: slab-out-of-bounds in md5_block lib/crypto/md5.c:40 [inline] BUG: KASAN: slab-out-of-bounds in md5_blocks+0x120/0xbd0 lib/crypto/md5.c:126 Read of size 64 at addr ffff888013654520 by task syz.0.0/5315 CPU: 0 UID: 0 PID: 5315 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200 __asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105 md5_block lib/crypto/md5.c:40 [inline] md5_blocks+0x120/0xbd0 lib/crypto/md5.c:126 md5_update+0xef/0x150 lib/crypto/md5.c:161 md5+0xed/0x180 lib/crypto/md5.c:202 ecryptfs_write_tag_70_packet+0x820/0x12e0 fs/ecryptfs/keystore.c:741 ecryptfs_encrypt_filename fs/ecryptfs/crypto.c:1378 [inline] ecryptfs_encrypt_and_encode_filename+0x576/0x1580 fs/ecryptfs/crypto.c:1789 ecryptfs_lookup+0x20e/0x780 fs/ecryptfs/inode.c:402 lookup_open+0x9e1/0x1a40 fs/namei.c:4528 open_last_lookups fs/namei.c:4767 [inline] path_openat+0x677/0x1d60 fs/namei.c:4997 do_file_open+0x23e/0x4a0 fs/namei.c:5029 do_sys_openat2+0x115/0x200 fs/open.c:1417 do_sys_open fs/open.c:1423 [inline] __do_sys_openat fs/open.c:1439 [inline] __se_sys_openat fs/open.c:1434 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1434 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4b9159e159 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 RSP: 002b:00007f4b92497fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f4b91825fa0 RCX: 00007f4b9159e159 RDX: 0000000000000800 RSI: 0000200000000680 RDI: ffffffffffffff9c RBP: 00007f4b9163506b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f4b91826038 R14: 00007f4b91825fa0 R15: 00007fff5b0f98e8 Allocated by task 1053: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __kmalloc_cache_noprof+0x321/0x600 mm/slub.c:5563 _kmalloc_noprof include/linux/slab.h:991 [inline] neigh_hash_alloc+0x67/0x250 net/core/neighbour.c:562 neigh_hash_grow net/core/neighbour.c:598 [inline] ___neigh_create+0x1136/0x22b0 net/core/neighbour.c:691 ip6_finish_output2+0xe0f/0x1460 net/ipv6/ip6_output.c:130 __ip6_finish_output net/ipv6/ip6_output.c:-1 [inline] ip6_finish_output+0x292/0x770 net/ipv6/ip6_output.c:221 NF_HOOK_COND include/linux/netfilter.h:314 [inline] ip6_output+0x337/0x540 net/ipv6/ip6_output.c:248 dst_output include/net/dst.h:472 [inline] NF_HOOK include/linux/netfilter.h:325 [inline] ndisc_send_skb+0xcb2/0x1650 net/ipv6/ndisc.c:513 ndisc_send_ns+0xd7/0x160 net/ipv6/ndisc.c:672 addrconf_dad_work+0xa8d/0x15c0 net/ipv6/addrconf.c:4318 process_one_work kernel/workqueue.c:3396 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3479 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3560 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff888013654500 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 32 bytes inside of allocated 48-byte region [ffff888013654500, ffff888013654530) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x13654 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff88801b0418c0 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000200020 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x252800(GFP_NOWAIT|__GFP_NORETRY|__GFP_COMP|__GFP_THISNODE), pid 5279, tgid 5279 (syz-executor), ts 72735790414 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871 prep_new_page mm/page_alloc.c:1879 [inline] get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436 alloc_slab_page mm/slub.c:3347 [inline] allocate_slab+0x7d/0x620 mm/slub.c:3462 new_slab mm/slub.c:3513 [inline] ___slab_alloc+0x16a/0x960 mm/slub.c:4568 slab_alloc_node mm/slub.c:4987 [inline] __do_kmalloc_node mm/slub.c:5413 [inline] __kmalloc_flags_noprof+0x341/0x7a0 mm/slub.c:5602 _kmalloc_flags_noprof mm/slab.h:55 [inline] alloc_slab_obj_exts+0x5c/0x180 mm/slub.c:2186 __memcg_slab_post_alloc_hook+0x60b/0xd90 mm/memcontrol.c:3649 memcg_slab_post_alloc_hook mm/slub.c:2517 [inline] slab_post_alloc_hook mm/slub.c:4702 [inline] slab_alloc_node mm/slub.c:4996 [inline] __do_kmalloc_node mm/slub.c:5413 [inline] __kvmalloc_node_noprof+0x5f1/0x820 mm/slub.c:7014 xt_alloc_table_info+0x40/0xb0 net/netfilter/x_tables.c:1286 arpt_register_table+0xe0/0x440 net/ipv4/netfilter/arp_tables.c:1070 arptable_filter_table_init+0x41/0x70 net/ipv4/netfilter/arptable_filter.c:39 xt_find_table_lock+0x311/0x400 net/netfilter/x_tables.c:1353 xt_request_find_table_lock+0x26/0x100 net/netfilter/x_tables.c:1378 get_info net/ipv4/netfilter/arp_tables.c:739 [inline] do_arpt_get_ctl+0x5f0/0x1270 net/ipv4/netfilter/arp_tables.c:1009 nf_getsockopt+0x26e/0x290 net/netfilter/nf_sockopt.c:116 page last free pid 5313 tgid 5313 ts 72399716411 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1418 [inline] free_unref_folios+0xdc2/0x14e0 mm/page_alloc.c:3022 folios_put_refs+0x9e9/0xb30 mm/folio.c:1036 free_pages_and_swap_cache+0x41e/0x490 mm/swap_state.c:595 __tlb_batch_free_encoded_pages mm/mmu_gather.c:138 [inline] tlb_batch_pages_flush mm/mmu_gather.c:151 [inline] tlb_flush_mmu_free mm/mmu_gather.c:417 [inline] tlb_flush_mmu+0x6d3/0xa30 mm/mmu_gather.c:424 tlb_finish_mmu+0xf4/0x220 mm/mmu_gather.c:549 exit_mmap+0x4b2/0x9f0 mm/mmap.c:1328 __mmput+0x118/0x420 kernel/fork.c:1193 exit_mm+0x18e/0x240 kernel/exit.c:592 do_exit+0x6cd/0x2360 kernel/exit.c:974 do_group_exit+0x22d/0x2f0 kernel/exit.c:1129 __do_sys_exit_group kernel/exit.c:1140 [inline] __se_sys_exit_group kernel/exit.c:1138 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1138 x64_sys_call+0x18c6/0x18d0 arch/x86/include/generated/asm/syscalls_64.h:232 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888013654400: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff888013654480: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff888013654500: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ^ ffff888013654580: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff888013654600: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================