[ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... Starting Load/Save RF Kill Switch Status... [ OK ] Started Update UTMP about System Runlevel Changes. [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.253' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 41.163337] ================================================================== [ 41.170790] BUG: KASAN: use-after-free in refcount_dec_not_one+0x71/0x1d0 [ 41.177700] Read of size 4 at addr ffff88809dfe0dd8 by task syz-executor742/9210 [ 41.185212] [ 41.186824] CPU: 0 PID: 9210 Comm: syz-executor742 Not tainted 4.19.211-syzkaller #0 [ 41.194686] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.204017] Call Trace: [ 41.206619] dump_stack+0x1fc/0x2ef [ 41.210232] print_address_description.cold+0x54/0x219 [ 41.215493] kasan_report_error.cold+0x8a/0x1b9 [ 41.220144] ? refcount_dec_not_one+0x71/0x1d0 [ 41.224712] kasan_report+0x8f/0xa0 [ 41.228321] ? refcount_dec_not_one+0x71/0x1d0 [ 41.232883] refcount_dec_not_one+0x71/0x1d0 [ 41.237273] ? refcount_dec_and_test_checked+0x20/0x20 [ 41.242540] ? nbd_config_put+0x5da/0x870 [ 41.246672] refcount_dec_and_mutex_lock+0x1c/0x80 [ 41.251583] nbd_genl_connect+0x11ee/0x1630 [ 41.255886] ? nbd_xmit_timeout+0x730/0x730 [ 41.260191] ? __sanitizer_cov_trace_switch+0x4b/0x80 [ 41.265358] ? validate_nla+0x270/0x820 [ 41.269311] ? nla_parse+0x1b2/0x290 [ 41.273009] genl_family_rcv_msg+0x642/0xc40 [ 41.277542] ? genl_rcv+0x40/0x40 [ 41.280973] ? genl_rcv_msg+0x12f/0x160 [ 41.284929] ? mutex_trylock+0x1a0/0x1a0 [ 41.288972] ? __radix_tree_lookup+0x216/0x370 [ 41.293535] genl_rcv_msg+0xbf/0x160 [ 41.297228] netlink_rcv_skb+0x160/0x440 [ 41.301269] ? genl_family_rcv_msg+0xc40/0xc40 [ 41.305829] ? netlink_ack+0xae0/0xae0 [ 41.309697] ? genl_rcv+0x15/0x40 [ 41.313132] genl_rcv+0x24/0x40 [ 41.316391] netlink_unicast+0x4d5/0x690 [ 41.320432] ? netlink_sendskb+0x110/0x110 [ 41.324645] ? _copy_from_iter_full+0x229/0x7c0 [ 41.329294] ? __phys_addr_symbol+0x2c/0x70 [ 41.333592] ? __check_object_size+0x17b/0x3e0 [ 41.338153] netlink_sendmsg+0x6c3/0xc50 [ 41.342194] ? aa_af_perm+0x230/0x230 [ 41.345973] ? nlmsg_notify+0x1f0/0x1f0 [ 41.349922] ? kernel_recvmsg+0x220/0x220 [ 41.354053] ? nlmsg_notify+0x1f0/0x1f0 [ 41.358013] sock_sendmsg+0xc3/0x120 [ 41.361708] ___sys_sendmsg+0x7bb/0x8e0 [ 41.365663] ? copy_msghdr_from_user+0x440/0x440 [ 41.370437] ? netlink_dump+0xc10/0xc10 [ 41.374408] ? nlmsg_notify+0x1f0/0x1f0 [ 41.378371] ? security_socket_recvmsg+0x8f/0xc0 [ 41.383114] ? __sys_recvfrom+0x2cd/0x3a0 [ 41.387259] ? __ia32_sys_send+0x100/0x100 [ 41.391488] ? __fdget+0x1a0/0x230 [ 41.395017] __x64_sys_sendmsg+0x132/0x220 [ 41.399242] ? __sys_sendmsg+0x1b0/0x1b0 [ 41.403293] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 41.408644] ? trace_hardirqs_off_caller+0x6e/0x210 [ 41.413646] ? do_syscall_64+0x21/0x620 [ 41.417604] do_syscall_64+0xf9/0x620 [ 41.421392] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.426559] RIP: 0033:0x7fa390b69839 [ 41.430253] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 14 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 c0 ff ff ff f7 d8 64 89 01 48 [ 41.449146] RSP: 002b:00007ffe2b7b1b08 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 41.456954] RAX: ffffffffffffffda RBX: 000000000000a080 RCX: 00007fa390b69839 [ 41.464215] RDX: 0000000000000000 RSI: 0000000020000380 RDI: 0000000000000003 [ 41.471471] RBP: 0000000000000000 R08: 0000000000000000 R09: 00007ffe2b7b1ca8 [ 41.478725] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe2b7b1b1c [ 41.485978] R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000 [ 41.493238] [ 41.495069] Allocated by task 9205: [ 41.498714] kmem_cache_alloc_trace+0x12f/0x380 [ 41.503369] nbd_dev_add+0x44/0x890 [ 41.506975] nbd_genl_connect+0x4cc/0x1630 [ 41.511189] genl_family_rcv_msg+0x642/0xc40 [ 41.515575] genl_rcv_msg+0xbf/0x160 [ 41.519270] netlink_rcv_skb+0x160/0x440 [ 41.523312] genl_rcv+0x24/0x40 [ 41.526575] netlink_unicast+0x4d5/0x690 [ 41.530632] netlink_sendmsg+0x6c3/0xc50 [ 41.534692] sock_sendmsg+0xc3/0x120 [ 41.538394] ___sys_sendmsg+0x7bb/0x8e0 [ 41.542361] __x64_sys_sendmsg+0x132/0x220 [ 41.546593] do_syscall_64+0xf9/0x620 [ 41.550377] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.555541] [ 41.557148] Freed by task 9210: [ 41.560498] kfree+0xcc/0x210 [ 41.563587] nbd_put.part.0+0xfe/0x140 [ 41.567454] nbd_config_put+0x6a0/0x870 [ 41.571411] nbd_genl_connect+0x11bb/0x1630 [ 41.575713] genl_family_rcv_msg+0x642/0xc40 [ 41.580104] genl_rcv_msg+0xbf/0x160 [ 41.583796] netlink_rcv_skb+0x160/0x440 [ 41.587837] genl_rcv+0x24/0x40 [ 41.591093] netlink_unicast+0x4d5/0x690 [ 41.595135] netlink_sendmsg+0x6c3/0xc50 [ 41.599192] sock_sendmsg+0xc3/0x120 [ 41.602894] ___sys_sendmsg+0x7bb/0x8e0 [ 41.606855] __x64_sys_sendmsg+0x132/0x220 [ 41.611073] do_syscall_64+0xf9/0x620 [ 41.614856] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.620022] [ 41.621630] The buggy address belongs to the object at ffff88809dfe0d00 [ 41.621630] which belongs to the cache kmalloc-512 of size 512 [ 41.634272] The buggy address is located 216 bytes inside of [ 41.634272] 512-byte region [ffff88809dfe0d00, ffff88809dfe0f00) [ 41.646127] The buggy address belongs to the page: [ 41.651035] page:ffffea000277f800 count:1 mapcount:0 mapping:ffff88813bff0940 index:0x0 [ 41.659155] flags: 0xfff00000000100(slab) [ 41.663282] raw: 00fff00000000100 ffffea0002930948 ffffea00026ccfc8 ffff88813bff0940 [ 41.671140] raw: 0000000000000000 ffff88809dfe0080 0000000100000006 0000000000000000 [ 41.678993] page dumped because: kasan: bad access detected [ 41.684677] [ 41.686282] Memory state around the buggy address: [ 41.691188] ffff88809dfe0c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 41.698527] ffff88809dfe0d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.705864] >ffff88809dfe0d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.713213] ^ [ 41.719421] ffff88809dfe0e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.726755] ffff88809dfe0e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.734089] ================================================================== [ 41.741421] Disabling lock debugging due to kernel taint [ 41.752090] Kernel panic - not syncing: panic_on_warn set ... [ 41.752090] [ 41.759464] CPU: 1 PID: 9210 Comm: syz-executor742 Tainted: G B 4.19.211-syzkaller #0 [ 41.768724] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.778069] Call Trace: [ 41.780742] dump_stack+0x1fc/0x2ef [ 41.784360] panic+0x26a/0x50e [ 41.787534] ? __warn_printk+0xf3/0xf3 [ 41.791402] ? preempt_schedule_common+0x45/0xc0 [ 41.796138] ? ___preempt_schedule+0x16/0x18 [ 41.800522] ? trace_hardirqs_on+0x55/0x210 [ 41.804831] kasan_end_report+0x43/0x49 [ 41.808781] kasan_report_error.cold+0xa7/0x1b9 [ 41.813431] ? refcount_dec_not_one+0x71/0x1d0 [ 41.818008] kasan_report+0x8f/0xa0 [ 41.821615] ? refcount_dec_not_one+0x71/0x1d0 [ 41.826171] refcount_dec_not_one+0x71/0x1d0 [ 41.830569] ? refcount_dec_and_test_checked+0x20/0x20 [ 41.835824] ? nbd_config_put+0x5da/0x870 [ 41.839949] refcount_dec_and_mutex_lock+0x1c/0x80 [ 41.844854] nbd_genl_connect+0x11ee/0x1630 [ 41.849154] ? nbd_xmit_timeout+0x730/0x730 [ 41.853452] ? __sanitizer_cov_trace_switch+0x4b/0x80 [ 41.858616] ? validate_nla+0x270/0x820 [ 41.862569] ? nla_parse+0x1b2/0x290 [ 41.866260] genl_family_rcv_msg+0x642/0xc40 [ 41.871079] ? genl_rcv+0x40/0x40 [ 41.874507] ? genl_rcv_msg+0x12f/0x160 [ 41.878460] ? mutex_trylock+0x1a0/0x1a0 [ 41.882519] ? __radix_tree_lookup+0x216/0x370 [ 41.887079] genl_rcv_msg+0xbf/0x160 [ 41.890768] netlink_rcv_skb+0x160/0x440 [ 41.894806] ? genl_family_rcv_msg+0xc40/0xc40 [ 41.899622] ? netlink_ack+0xae0/0xae0 [ 41.903484] ? genl_rcv+0x15/0x40 [ 41.906915] genl_rcv+0x24/0x40 [ 41.910169] netlink_unicast+0x4d5/0x690 [ 41.914206] ? netlink_sendskb+0x110/0x110 [ 41.918416] ? _copy_from_iter_full+0x229/0x7c0 [ 41.923068] ? __phys_addr_symbol+0x2c/0x70 [ 41.927370] ? __check_object_size+0x17b/0x3e0 [ 41.931927] netlink_sendmsg+0x6c3/0xc50 [ 41.935965] ? aa_af_perm+0x230/0x230 [ 41.939741] ? nlmsg_notify+0x1f0/0x1f0 [ 41.943689] ? kernel_recvmsg+0x220/0x220 [ 41.947811] ? nlmsg_notify+0x1f0/0x1f0 [ 41.951763] sock_sendmsg+0xc3/0x120 [ 41.955456] ___sys_sendmsg+0x7bb/0x8e0 [ 41.959408] ? copy_msghdr_from_user+0x440/0x440 [ 41.964138] ? netlink_dump+0xc10/0xc10 [ 41.968089] ? nlmsg_notify+0x1f0/0x1f0 [ 41.972041] ? security_socket_recvmsg+0x8f/0xc0 [ 41.976794] ? __sys_recvfrom+0x2cd/0x3a0 [ 41.980916] ? __ia32_sys_send+0x100/0x100 [ 41.985130] ? __fdget+0x1a0/0x230 [ 41.988646] __x64_sys_sendmsg+0x132/0x220 [ 41.992857] ? __sys_sendmsg+0x1b0/0x1b0 [ 41.996896] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 42.002235] ? trace_hardirqs_off_caller+0x6e/0x210 [ 42.007226] ? do_syscall_64+0x21/0x620 [ 42.011174] do_syscall_64+0xf9/0x620 [ 42.014953] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.020118] RIP: 0033:0x7fa390b69839 [ 42.023807] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 14 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 c0 ff ff ff f7 d8 64 89 01 48 [ 42.042683] RSP: 002b:00007ffe2b7b1b08 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 42.050364] RAX: ffffffffffffffda RBX: 000000000000a080 RCX: 00007fa390b69839 [ 42.057608] RDX: 0000000000000000 RSI: 0000000020000380 RDI: 0000000000000003 [ 42.064852] RBP: 0000000000000000 R08: 0000000000000000 R09: 00007ffe2b7b1ca8 [ 42.072101] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe2b7b1b1c [ 42.079347] R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000 [ 42.086665] Kernel Offset: disabled [ 42.090273] Rebooting in 86400 seconds..