caif:caif_disconnect_client(): nothing to disconnect ================================================================== BUG: KASAN: global-out-of-bounds in record_print_text+0x33f/0x380 kernel/printk/printk.c:1401 Write of size 1 at addr ffffffff8f09f146 by task syz-executor.2/3047 CPU: 1 PID: 3047 Comm: syz-executor.2 Not tainted 5.11.0-rc4-next-20210121-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:120 print_address_description.constprop.0.cold+0x5/0x2f8 mm/kasan/report.c:230 __kasan_report mm/kasan/report.c:397 [inline] kasan_report.cold+0x79/0xd5 mm/kasan/report.c:414 record_print_text+0x33f/0x380 kernel/printk/printk.c:1401 console_unlock+0x318/0xbb0 kernel/printk/printk.c:2555 vprintk_emit+0x189/0x490 kernel/printk/printk.c:2092 vprintk_func+0x8d/0x1e0 kernel/printk/printk_safe.c:393 printk+0xba/0xed kernel/printk/printk.c:2140 __dynamic_pr_debug+0xeb/0x130 lib/dynamic_debug.c:635 caif_disconnect_client+0xb8/0x1e0 net/caif/cfcnfg.c:194 caif_release+0x1a7/0x3e0 net/caif/caif_socket.c:925 __sock_release+0x1d3/0x280 net/socket.c:597 sock_release net/socket.c:625 [inline] __sys_socketpair+0x4cf/0x570 net/socket.c:1576 __do_sys_socketpair net/socket.c:1610 [inline] __se_sys_socketpair net/socket.c:1607 [inline] __x64_sys_socketpair+0x93/0xf0 net/socket.c:1607 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 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:00007f0645600c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000035 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000045e219 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000025 RBP: 000000000119bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000020000200 R11: 0000000000000246 R12: 000000000119bf8c R13: 00007ffe180eeadf R14: 00007f06456019c0 R15: 000000000119bf8c The buggy address belongs to the variable: dmesg_restrict+0x26/0x40 Memory state around the buggy address: ffffffff8f09f000: f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 ffffffff8f09f080: f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 >ffffffff8f09f100: f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 ^ ffffffff8f09f180: 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 00 00 00 00 ffffffff8f09f200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================