F2FS-fs (loop0): Unrecognized mount option "18446744073709551615184467440737095516150177777777777777777777718446744073709551615”źû÷ǘ$H¦Qs¾G™" or missing value ================================================================== BUG: KASAN: slab-use-after-free in destroy_device_list fs/f2fs/super.c:1611 [inline] BUG: KASAN: slab-use-after-free in kill_f2fs_super+0x474/0x530 fs/f2fs/super.c:4933 Read of size 4 at addr ffff888173785774 by task syz-executor.0/2561 CPU: 0 PID: 2561 Comm: syz-executor.0 Not tainted 6.7.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x3d/0x60 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xc4/0x620 mm/kasan/report.c:475 kasan_report+0xda/0x110 mm/kasan/report.c:588 destroy_device_list fs/f2fs/super.c:1611 [inline] kill_f2fs_super+0x474/0x530 fs/f2fs/super.c:4933 deactivate_locked_super+0x9d/0x160 fs/super.c:484 mount_bdev+0x219/0x270 fs/super.c:1652 legacy_get_tree+0xfe/0x1f0 fs/fs_context.c:662 vfs_get_tree+0x82/0x220 fs/super.c:1771 do_new_mount fs/namespace.c:3337 [inline] path_mount+0x878/0x1a00 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] __x64_sys_mount+0x208/0x280 fs/namespace.c:3863 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x40/0xe0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fd1b4c7e4aa Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd1b5a0cef8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fd1b5a0cf80 RCX: 00007fd1b4c7e4aa RDX: 00000000200000c0 RSI: 0000000020010280 RDI: 00007fd1b5a0cf40 RBP: 00000000200000c0 R08: 00007fd1b5a0cf80 R09: 0000000000000010 R10: 0000000000000010 R11: 0000000000000246 R12: 0000000020010280 R13: 00007fd1b5a0cf40 R14: 0000000000007e64 R15: 0000000020008000 Allocated by task 2561: kasan_save_stack+0x33/0x50 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383 kmalloc include/linux/slab.h:600 [inline] kzalloc include/linux/slab.h:721 [inline] f2fs_fill_super+0xeb/0x88d0 fs/f2fs/super.c:4397 mount_bdev+0x19e/0x270 fs/super.c:1650 legacy_get_tree+0xfe/0x1f0 fs/fs_context.c:662 vfs_get_tree+0x82/0x220 fs/super.c:1771 do_new_mount fs/namespace.c:3337 [inline] path_mount+0x878/0x1a00 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] __x64_sys_mount+0x208/0x280 fs/namespace.c:3863 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x40/0xe0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b Freed by task 2561: kasan_save_stack+0x33/0x50 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:522 ____kasan_slab_free mm/kasan/common.c:236 [inline] ____kasan_slab_free+0x15b/0x1b0 mm/kasan/common.c:200 kasan_slab_free include/linux/kasan.h:164 [inline] slab_free_hook mm/slub.c:1800 [inline] slab_free_freelist_hook+0x114/0x1e0 mm/slub.c:1826 slab_free mm/slub.c:3809 [inline] __kmem_cache_free+0xba/0x320 mm/slub.c:3822 f2fs_fill_super+0x170e/0x88d0 fs/f2fs/super.c:4883 mount_bdev+0x19e/0x270 fs/super.c:1650 legacy_get_tree+0xfe/0x1f0 fs/fs_context.c:662 vfs_get_tree+0x82/0x220 fs/super.c:1771 do_new_mount fs/namespace.c:3337 [inline] path_mount+0x878/0x1a00 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] __x64_sys_mount+0x208/0x280 fs/namespace.c:3863 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x40/0xe0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b The buggy address belongs to the object at ffff888173784000 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 6004 bytes inside of freed 8192-byte region [ffff888173784000, ffff888173786000) The buggy address belongs to the physical page: page:ffffea0005cde000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x173780 head:ffffea0005cde000 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0x100000000000840(slab|head|node=0|zone=2) page_type: 0xffffffff() raw: 0100000000000840 ffff888100042280 0000000000000000 0000000000000001 raw: 0000000000000000 0000000080020002 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1613, tgid 1613 (syz-fuzzer), ts 24101337894, free_ts 24088460673 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x27f/0x2f0 mm/page_alloc.c:1537 prep_new_page mm/page_alloc.c:1544 [inline] get_page_from_freelist+0x653/0x40c0 mm/page_alloc.c:3312 __alloc_pages+0x1d0/0x470 mm/page_alloc.c:4568 alloc_pages_mpol+0x175/0x4a0 mm/mempolicy.c:2133 alloc_slab_page mm/slub.c:1870 [inline] allocate_slab+0x24b/0x360 mm/slub.c:2017 new_slab mm/slub.c:2070 [inline] ___slab_alloc+0x8ce/0x10e0 mm/slub.c:3223 __slab_alloc.constprop.0+0x4d/0x90 mm/slub.c:3322 __slab_alloc_node mm/slub.c:3375 [inline] slab_alloc_node mm/slub.c:3468 [inline] __kmem_cache_alloc_node+0x150/0x350 mm/slub.c:3517 kmalloc_trace+0x25/0xb0 mm/slab_common.c:1098 kmalloc include/linux/slab.h:600 [inline] kzalloc include/linux/slab.h:721 [inline] tomoyo_print_bprm security/tomoyo/audit.c:26 [inline] tomoyo_init_log+0xb57/0x1ee0 security/tomoyo/audit.c:264 tomoyo_supervisor+0x2a7/0xc40 security/tomoyo/common.c:2089 tomoyo_audit_env_log security/tomoyo/environ.c:36 [inline] tomoyo_env_perm+0x16c/0x1d0 security/tomoyo/environ.c:63 tomoyo_environ security/tomoyo/domain.c:672 [inline] tomoyo_find_next_domain+0xaf6/0x1db0 security/tomoyo/domain.c:878 tomoyo_bprm_check_security security/tomoyo/tomoyo.c:101 [inline] tomoyo_bprm_check_security+0x109/0x170 security/tomoyo/tomoyo.c:91 security_bprm_check+0x4f/0x80 security/security.c:1103 search_binary_handler fs/exec.c:1725 [inline] exec_binprm fs/exec.c:1779 [inline] bprm_execve fs/exec.c:1854 [inline] bprm_execve+0x5e4/0x14d0 fs/exec.c:1810 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1137 [inline] free_unref_page_prepare+0x562/0xbd0 mm/page_alloc.c:2347 free_unref_page+0x33/0x350 mm/page_alloc.c:2487 __unfreeze_partials+0x1f3/0x210 mm/slub.c:2655 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x180/0x1b0 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x65/0x90 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook mm/slab.h:763 [inline] slab_alloc_node mm/slub.c:3478 [inline] __kmem_cache_alloc_node+0x1bd/0x350 mm/slub.c:3517 __do_kmalloc_node mm/slab_common.c:1006 [inline] __kmalloc_node_track_caller+0x50/0x160 mm/slab_common.c:1027 __do_krealloc mm/slab_common.c:1395 [inline] krealloc+0x5d/0x100 mm/slab_common.c:1428 ima_collect_measurement+0x36c/0x930 security/integrity/ima/ima_api.c:297 process_measurement+0x952/0x1ce0 security/integrity/ima/ima_main.c:359 ima_file_check+0xb3/0x100 security/integrity/ima/ima_main.c:557 do_open fs/namei.c:3624 [inline] path_openat+0x12bf/0x2a40 fs/namei.c:3779 do_filp_open+0x1bc/0x400 fs/namei.c:3809 file_open_name+0x185/0x220 fs/open.c:1385 __do_sys_swapon+0x5fa/0x34f0 mm/swapfile.c:3018 Memory state around the buggy address: ffff888173785600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888173785680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888173785700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888173785780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888173785800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================