ceph: device name is missing path (no : separator in /dev/nullb0) overlayfs: failed to resolve './file1': -2 ================================================================== BUG: KASAN: use-after-free in tasklet_action_common.constprop.0+0x29e/0x360 kernel/softirq.c:515 Read of size 8 at addr ffff8880a496e110 by task syz-executor.5/23820 CPU: 1 PID: 23820 Comm: syz-executor.5 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load8_noabort+0x88/0x90 mm/kasan/report.c:433 tasklet_action_common.constprop.0+0x29e/0x360 kernel/softirq.c:515 __do_softirq+0x265/0x980 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x215/0x260 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894 RIP: 0010:pmd_huge+0x2/0x150 arch/x86/mm/hugetlbpage.c:68 Code: 00 00 4c 89 f7 e8 9e 9f 6c 00 e9 68 ff ff ff be 38 00 00 00 e8 3f a5 6c 00 eb a3 90 90 90 90 90 90 90 90 90 90 90 90 90 41 54 <55> 48 bd 00 00 00 00 00 fc ff df 53 48 83 ec 60 48 89 e3 48 c7 04 RSP: 0018:ffff8880affdfa18 EFLAGS: 00000216 ORIG_RAX: ffffffffffffff13 RAX: 0000000000040000 RBX: ffff8880affdfab0 RCX: ffffc90006a7f000 RDX: 000000000000ae94 RSI: ffffffff818a85f4 RDI: 0000000059b37067 RBP: ffff88809c306da8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000002404 R13: 0000000059b37007 R14: 000000002006e000 R15: ffff888092731800 follow_pmd_mask mm/gup.c:240 [inline] follow_pud_mask mm/gup.c:370 [inline] follow_p4d_mask mm/gup.c:396 [inline] follow_page_mask+0x72d/0x1d00 mm/gup.c:449 follow_page include/linux/mm.h:2591 [inline] break_ksm+0xb7/0x3e0 mm/ksm.c:477 unmerge_ksm_pages+0x75/0x180 mm/ksm.c:841 unmerge_and_remove_all_rmap_items mm/ksm.c:971 [inline] run_store+0x33a/0x990 mm/ksm.c:2895 kobj_attr_store+0x50/0x80 lib/kobject.c:811 sysfs_kf_write+0x110/0x160 fs/sysfs/file.c:140 kernfs_fop_write+0x2b0/0x470 fs/kernfs/file.c:316 __vfs_write+0xf7/0x770 fs/read_write.c:485 vfs_write+0x1f3/0x540 fs/read_write.c:549 ksys_write+0x12b/0x2a0 fs/read_write.c:599 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fa8022fa0f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fa80086c168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa802419f80 RCX: 00007fa8022fa0f9 RDX: 0000000000000002 RSI: 0000000020000000 RDI: 0000000000000005 RBP: 00007fa802355ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffddfb4b08f R14: 00007fa80086c300 R15: 0000000000022000 Allocated by task 23822: kmem_cache_alloc_trace+0x12f/0x380 mm/slab.c:3625 kmalloc include/linux/slab.h:515 [inline] kzalloc include/linux/slab.h:709 [inline] bcm_tx_setup net/can/bcm.c:947 [inline] bcm_sendmsg+0x25d7/0x4150 net/can/bcm.c:1386 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:661 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2227 __sys_sendmsg net/socket.c:2265 [inline] __do_sys_sendmsg net/socket.c:2274 [inline] __se_sys_sendmsg net/socket.c:2272 [inline] __x64_sys_sendmsg+0x132/0x220 net/socket.c:2272 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 23822: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 bcm_release+0x260/0x950 net/can/bcm.c:1561 __sock_release+0xcd/0x2a0 net/socket.c:599 sock_close+0x15/0x20 net/socket.c:1214 __fput+0x2ce/0x890 fs/file_table.c:278 task_work_run+0x148/0x1c0 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0xbf3/0x2be0 kernel/exit.c:870 do_group_exit+0x125/0x310 kernel/exit.c:967 get_signal+0x3f2/0x1f70 kernel/signal.c:2589 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:799 exit_to_usermode_loop+0x204/0x2a0 arch/x86/entry/common.c:163 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8880a496e040 which belongs to the cache kmalloc-1024 of size 1024 The buggy address is located 208 bytes inside of 1024-byte region [ffff8880a496e040, ffff8880a496e440) The buggy address belongs to the page: page:ffffea0002925b80 count:1 mapcount:0 mapping:ffff88813bff0ac0 index:0xffff8880a496edc0 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffffea0002712c88 ffffea0002948d08 ffff88813bff0ac0 raw: ffff8880a496edc0 ffff8880a496e040 0000000100000005 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a496e000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff8880a496e080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880a496e100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880a496e180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880a496e200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 4c 89 f7 mov %r14,%rdi 5: e8 9e 9f 6c 00 callq 0x6c9fa8 a: e9 68 ff ff ff jmpq 0xffffff77 f: be 38 00 00 00 mov $0x38,%esi 14: e8 3f a5 6c 00 callq 0x6ca558 19: eb a3 jmp 0xffffffbe 1b: 90 nop 1c: 90 nop 1d: 90 nop 1e: 90 nop 1f: 90 nop 20: 90 nop 21: 90 nop 22: 90 nop 23: 90 nop 24: 90 nop 25: 90 nop 26: 90 nop 27: 90 nop 28: 41 54 push %r12 * 2a: 55 push %rbp <-- trapping instruction 2b: 48 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%rbp 32: fc ff df 35: 53 push %rbx 36: 48 83 ec 60 sub $0x60,%rsp 3a: 48 89 e3 mov %rsp,%rbx 3d: 48 rex.W 3e: c7 .byte 0xc7 3f: 04 .byte 0x4