R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000020 R13: 00007ffe9f4c013f R14: 00007fceaab459c0 R15: 000000000119bf8c kobject_add_internal failed for 9p-fcall-cache (error: -12 parent: slab) ================================================================== BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3072 [inline] BUG: KASAN: double-free or invalid-free in kmem_cache_free+0x8b/0x390 mm/slub.c:3088 CPU: 0 PID: 10425 Comm: syz-executor.2 Not tainted 5.7.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x96/0xe0 lib/dump_stack.c:118 print_address_description.constprop.7.cold.9+0x9/0x455 mm/kasan/report.c:383 kasan_report_invalid_free+0x50/0x80 mm/kasan/report.c:477 __kasan_slab_free+0x158/0x170 mm/kasan/common.c:434 slab_free_hook mm/slub.c:1474 [inline] slab_free_freelist_hook+0x53/0x140 mm/slub.c:1507 slab_free mm/slub.c:3072 [inline] kmem_cache_free+0x8b/0x390 mm/slub.c:3088 create_cache+0x100/0x1f0 mm/slab_common.c:421 kmem_cache_create_usercopy+0x1a0/0x260 mm/slab_common.c:505 p9_client_create+0xaaa/0x10f0 net/9p/client.c:1061 v9fs_session_init+0x1f0/0x13f0 fs/9p/v9fs.c:406 v9fs_mount+0x6f/0x7f0 fs/9p/vfs_super.c:124 legacy_get_tree+0xfe/0x200 fs/fs_context.c:592 vfs_get_tree+0x7e/0x330 fs/super.c:1547 do_new_mount fs/namespace.c:2869 [inline] do_mount+0x1039/0x1750 fs/namespace.c:3194 __do_sys_mount fs/namespace.c:3404 [inline] __se_sys_mount fs/namespace.c:3381 [inline] __x64_sys_mount+0x15d/0x1b0 fs/namespace.c:3381 do_syscall_64+0x8e/0x4f0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x45e219 Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fceaab44c68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000007 RCX: 000000000045e219 RDX: 0000000020000280 RSI: 00000000200002c0 RDI: 0000000000000000 RBP: 00007fceaab44ca0 R08: 0000000020000480 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000020 R13: 00007ffe9f4c013f R14: 00007fceaab459c0 R15: 000000000119bf8c Allocated by task 10425: save_stack+0x19/0x40 mm/kasan/common.c:48 set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc.constprop.15+0xc1/0xd0 mm/kasan/common.c:494 slab_post_alloc_hook mm/slab.h:586 [inline] slab_alloc_node mm/slub.c:2824 [inline] slab_alloc mm/slub.c:2832 [inline] kmem_cache_alloc+0xaa/0x2a0 mm/slub.c:2837 kmem_cache_zalloc include/linux/slab.h:659 [inline] create_cache+0x3d/0x1f0 mm/slab_common.c:392 kmem_cache_create_usercopy+0x1a0/0x260 mm/slab_common.c:505 p9_client_create+0xaaa/0x10f0 net/9p/client.c:1061 v9fs_session_init+0x1f0/0x13f0 fs/9p/v9fs.c:406 v9fs_mount+0x6f/0x7f0 fs/9p/vfs_super.c:124 legacy_get_tree+0xfe/0x200 fs/fs_context.c:592 vfs_get_tree+0x7e/0x330 fs/super.c:1547 do_new_mount fs/namespace.c:2869 [inline] do_mount+0x1039/0x1750 fs/namespace.c:3194 __do_sys_mount fs/namespace.c:3404 [inline] __se_sys_mount fs/namespace.c:3381 [inline] __x64_sys_mount+0x15d/0x1b0 fs/namespace.c:3381 do_syscall_64+0x8e/0x4f0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 Freed by task 10425: save_stack+0x19/0x40 mm/kasan/common.c:48 set_track mm/kasan/common.c:56 [inline] kasan_set_free_info mm/kasan/common.c:316 [inline] __kasan_slab_free+0x124/0x170 mm/kasan/common.c:455 slab_free_hook mm/slub.c:1474 [inline] slab_free_freelist_hook+0x53/0x140 mm/slub.c:1507 slab_free mm/slub.c:3072 [inline] kmem_cache_free+0x8b/0x390 mm/slub.c:3088 kobject_cleanup lib/kobject.c:693 [inline] kobject_release lib/kobject.c:722 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x191/0x430 lib/kobject.c:739 sysfs_slab_add+0x200/0x2b0 mm/slub.c:5839 __kmem_cache_create+0x4b5/0x620 mm/slub.c:4421 create_cache+0xdc/0x1f0 mm/slab_common.c:407 kmem_cache_create_usercopy+0x1a0/0x260 mm/slab_common.c:505 p9_client_create+0xaaa/0x10f0 net/9p/client.c:1061 v9fs_session_init+0x1f0/0x13f0 fs/9p/v9fs.c:406 v9fs_mount+0x6f/0x7f0 fs/9p/vfs_super.c:124 legacy_get_tree+0xfe/0x200 fs/fs_context.c:592 vfs_get_tree+0x7e/0x330 fs/super.c:1547 do_new_mount fs/namespace.c:2869 [inline] do_mount+0x1039/0x1750 fs/namespace.c:3194 __do_sys_mount fs/namespace.c:3404 [inline] __se_sys_mount fs/namespace.c:3381 [inline] __x64_sys_mount+0x15d/0x1b0 fs/namespace.c:3381 do_syscall_64+0x8e/0x4f0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 The buggy address belongs to the object at ffff8880b4eb4a00 which belongs to the cache kmem_cache of size 488 The buggy address is located 0 bytes inside of 488-byte region [ffff8880b4eb4a00, ffff8880b4eb4be8) The buggy address belongs to the page: page:ffffea0002d3ad00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 head:ffffea0002d3ad00 order:1 compound_mapcount:0 flags: 0xfff00000010200(slab|head) raw: 00fff00000010200 dead000000000100 dead000000000122 ffff8880b5802000 raw: 0000000000000000 00000000800c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880b4eb4900: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc ffff8880b4eb4980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880b4eb4a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880b4eb4a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880b4eb4b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================