[ OK ] Started Getty on tty1. [ OK ] Started Getty on tty2. [ OK ] Started Serial Getty on ttyS0. [ OK ] Reached target Login Prompts. [ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Update UTMP about System Runlevel Changes. Starting Load/Save RF Kill Switch Status... [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.15.210' (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 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 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: [ 53.505473] ================================================================== [ 53.512957] BUG: KASAN: use-after-free in refcount_dec_not_one+0x71/0x1d0 [ 53.519873] Read of size 4 at addr ffff88809f4d6918 by task syz-executor167/11149 [ 53.527469] [ 53.529091] CPU: 1 PID: 11149 Comm: syz-executor167 Not tainted 4.19.190-syzkaller #0 [ 53.537144] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 53.546515] Call Trace: [ 53.549090] dump_stack+0x1fc/0x2ef [ 53.552704] print_address_description.cold+0x54/0x219 [ 53.557976] kasan_report_error.cold+0x8a/0x1b9 [ 53.562671] ? refcount_dec_not_one+0x71/0x1d0 [ 53.567247] kasan_report+0x8f/0xa0 [ 53.570855] ? refcount_dec_not_one+0x71/0x1d0 [ 53.575450] refcount_dec_not_one+0x71/0x1d0 [ 53.579841] ? refcount_dec_and_test_checked+0x20/0x20 [ 53.585101] ? nbd_config_put+0x5da/0x870 [ 53.589235] refcount_dec_and_mutex_lock+0x1c/0x80 [ 53.594153] nbd_genl_connect+0x11ee/0x1630 [ 53.598460] ? nbd_xmit_timeout+0x730/0x730 [ 53.602764] ? __sanitizer_cov_trace_switch+0x4b/0x80 [ 53.607937] ? validate_nla+0x270/0x820 [ 53.611907] ? nla_parse+0x1b2/0x290 [ 53.615616] genl_family_rcv_msg+0x642/0xc40 [ 53.620028] ? genl_rcv+0x40/0x40 [ 53.623474] ? genl_rcv_msg+0x12f/0x160 [ 53.627433] ? __mutex_add_waiter+0x160/0x160 [ 53.631915] ? __radix_tree_lookup+0x216/0x370 [ 53.636498] genl_rcv_msg+0xbf/0x160 [ 53.640201] netlink_rcv_skb+0x160/0x440 [ 53.645197] ? genl_family_rcv_msg+0xc40/0xc40 [ 53.649771] ? netlink_ack+0xae0/0xae0 [ 53.653650] ? genl_rcv+0x15/0x40 [ 53.657088] genl_rcv+0x24/0x40 [ 53.660363] netlink_unicast+0x4d5/0x690 [ 53.664405] ? netlink_sendskb+0x110/0x110 [ 53.668621] ? _copy_from_iter_full+0x229/0x7c0 [ 53.673283] ? __phys_addr_symbol+0x2c/0x70 [ 53.677585] ? __check_object_size+0x17b/0x3e0 [ 53.682152] netlink_sendmsg+0x6bb/0xc40 [ 53.686203] ? aa_af_perm+0x230/0x230 [ 53.689987] ? nlmsg_notify+0x1a0/0x1a0 [ 53.693968] ? kernel_recvmsg+0x220/0x220 [ 53.698164] ? nlmsg_notify+0x1a0/0x1a0 [ 53.702138] sock_sendmsg+0xc3/0x120 [ 53.705835] ___sys_sendmsg+0x7bb/0x8e0 [ 53.709806] ? copy_msghdr_from_user+0x440/0x440 [ 53.714554] ? netlink_dump+0xc10/0xc10 [ 53.718507] ? nlmsg_notify+0x1a0/0x1a0 [ 53.722466] ? security_socket_recvmsg+0x8f/0xc0 [ 53.727201] ? __sys_recvfrom+0x2cd/0x3a0 [ 53.731329] ? __ia32_sys_send+0x100/0x100 [ 53.735565] ? __fdget+0x1a0/0x230 [ 53.739087] __x64_sys_sendmsg+0x132/0x220 [ 53.743302] ? __sys_sendmsg+0x1b0/0x1b0 [ 53.747351] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 53.752703] ? trace_hardirqs_off_caller+0x6e/0x210 [ 53.757703] ? do_syscall_64+0x21/0x620 [ 53.761659] do_syscall_64+0xf9/0x620 [ 53.765447] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 53.770617] RIP: 0033:0x440709 [ 53.773806] 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 [ 53.792687] RSP: 002b:00007ffd63ac8668 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 53.800387] RAX: ffffffffffffffda RBX: 000000000000d0ad RCX: 0000000000440709 [ 53.807635] RDX: 0000000000000000 RSI: 0000000020000300 RDI: 0000000000000003 [ 53.814990] RBP: 0000000000000000 R08: 0000000000000000 R09: 00007ffd63ac8808 [ 53.822246] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd63ac867c [ 53.829506] R13: 431bde82d7b634db R14: 00000000004ae018 R15: 00000000004004a0 [ 53.836880] [ 53.838490] Allocated by task 11143: [ 53.842191] kmem_cache_alloc_trace+0x12f/0x380 [ 53.846845] nbd_dev_add+0x44/0x890 [ 53.850452] nbd_genl_connect+0x4cc/0x1630 [ 53.854667] genl_family_rcv_msg+0x642/0xc40 [ 53.859052] genl_rcv_msg+0xbf/0x160 [ 53.862746] netlink_rcv_skb+0x160/0x440 [ 53.866784] genl_rcv+0x24/0x40 [ 53.870067] netlink_unicast+0x4d5/0x690 [ 53.874139] netlink_sendmsg+0x6bb/0xc40 [ 53.878205] sock_sendmsg+0xc3/0x120 [ 53.881899] ___sys_sendmsg+0x7bb/0x8e0 [ 53.885858] __x64_sys_sendmsg+0x132/0x220 [ 53.890092] do_syscall_64+0xf9/0x620 [ 53.893874] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 53.899047] [ 53.900652] Freed by task 11149: [ 53.904012] kfree+0xcc/0x210 [ 53.907111] nbd_put.part.0+0xfe/0x140 [ 53.910978] nbd_config_put+0x6a0/0x870 [ 53.914933] nbd_genl_connect+0x11bb/0x1630 [ 53.919249] genl_family_rcv_msg+0x642/0xc40 [ 53.923653] genl_rcv_msg+0xbf/0x160 [ 53.927364] netlink_rcv_skb+0x160/0x440 [ 53.931417] genl_rcv+0x24/0x40 [ 53.934719] netlink_unicast+0x4d5/0x690 [ 53.938776] netlink_sendmsg+0x6bb/0xc40 [ 53.942827] sock_sendmsg+0xc3/0x120 [ 53.946527] ___sys_sendmsg+0x7bb/0x8e0 [ 53.950526] __x64_sys_sendmsg+0x132/0x220 [ 53.954751] do_syscall_64+0xf9/0x620 [ 53.958565] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 53.963727] [ 53.965370] The buggy address belongs to the object at ffff88809f4d6840 [ 53.965370] which belongs to the cache kmalloc-512 of size 512 [ 53.978006] The buggy address is located 216 bytes inside of [ 53.978006] 512-byte region [ffff88809f4d6840, ffff88809f4d6a40) [ 53.989880] The buggy address belongs to the page: [ 53.994799] page:ffffea00027d3580 count:1 mapcount:0 mapping:ffff88813bff0940 index:0x0 [ 54.002929] flags: 0xfff00000000100(slab) [ 54.007069] raw: 00fff00000000100 ffffea0002a6d248 ffffea0002920d08 ffff88813bff0940 [ 54.014929] raw: 0000000000000000 ffff88809f4d60c0 0000000100000006 0000000000000000 [ 54.022802] page dumped because: kasan: bad access detected [ 54.028586] [ 54.030194] Memory state around the buggy address: [ 54.035102] ffff88809f4d6800: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 54.042440] ffff88809f4d6880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 54.049777] >ffff88809f4d6900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 54.057116] ^ [ 54.061251] ffff88809f4d6980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 54.068649] ffff88809f4d6a00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 54.075996] ================================================================== [ 54.083332] Disabling lock debugging due to kernel taint [ 54.089542] Kernel panic - not syncing: panic_on_warn set ... [ 54.089542] [ 54.096925] CPU: 1 PID: 11149 Comm: syz-executor167 Tainted: G B 4.19.190-syzkaller #0 [ 54.106276] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 54.115623] Call Trace: [ 54.118223] dump_stack+0x1fc/0x2ef [ 54.121852] panic+0x26a/0x50e [ 54.125045] ? __warn_printk+0xf3/0xf3 [ 54.128934] ? preempt_schedule_common+0x45/0xc0 [ 54.133693] ? ___preempt_schedule+0x16/0x18 [ 54.138128] ? trace_hardirqs_on+0x55/0x210 [ 54.142445] kasan_end_report+0x43/0x49 [ 54.146400] kasan_report_error.cold+0xa7/0x1b9 [ 54.151050] ? refcount_dec_not_one+0x71/0x1d0 [ 54.155612] kasan_report+0x8f/0xa0 [ 54.159220] ? refcount_dec_not_one+0x71/0x1d0 [ 54.163792] refcount_dec_not_one+0x71/0x1d0 [ 54.168193] ? refcount_dec_and_test_checked+0x20/0x20 [ 54.173453] ? nbd_config_put+0x5da/0x870 [ 54.177578] refcount_dec_and_mutex_lock+0x1c/0x80 [ 54.182500] nbd_genl_connect+0x11ee/0x1630 [ 54.186815] ? nbd_xmit_timeout+0x730/0x730 [ 54.191119] ? __sanitizer_cov_trace_switch+0x4b/0x80 [ 54.196435] ? validate_nla+0x270/0x820 [ 54.200404] ? nla_parse+0x1b2/0x290 [ 54.204102] genl_family_rcv_msg+0x642/0xc40 [ 54.208493] ? genl_rcv+0x40/0x40 [ 54.211927] ? genl_rcv_msg+0x12f/0x160 [ 54.215881] ? __mutex_add_waiter+0x160/0x160 [ 54.220360] ? __radix_tree_lookup+0x216/0x370 [ 54.224922] genl_rcv_msg+0xbf/0x160 [ 54.228630] netlink_rcv_skb+0x160/0x440 [ 54.232679] ? genl_family_rcv_msg+0xc40/0xc40 [ 54.237244] ? netlink_ack+0xae0/0xae0 [ 54.241110] ? genl_rcv+0x15/0x40 [ 54.244542] genl_rcv+0x24/0x40 [ 54.247799] netlink_unicast+0x4d5/0x690 [ 54.251853] ? netlink_sendskb+0x110/0x110 [ 54.256082] ? _copy_from_iter_full+0x229/0x7c0 [ 54.260742] ? __phys_addr_symbol+0x2c/0x70 [ 54.265044] ? __check_object_size+0x17b/0x3e0 [ 54.269622] netlink_sendmsg+0x6bb/0xc40 [ 54.273668] ? aa_af_perm+0x230/0x230 [ 54.277449] ? nlmsg_notify+0x1a0/0x1a0 [ 54.281401] ? kernel_recvmsg+0x220/0x220 [ 54.285530] ? nlmsg_notify+0x1a0/0x1a0 [ 54.289481] sock_sendmsg+0xc3/0x120 [ 54.293175] ___sys_sendmsg+0x7bb/0x8e0 [ 54.297129] ? copy_msghdr_from_user+0x440/0x440 [ 54.301864] ? netlink_dump+0xc10/0xc10 [ 54.305817] ? nlmsg_notify+0x1a0/0x1a0 [ 54.309781] ? security_socket_recvmsg+0x8f/0xc0 [ 54.314519] ? __sys_recvfrom+0x2cd/0x3a0 [ 54.318647] ? __ia32_sys_send+0x100/0x100 [ 54.322898] ? __fdget+0x1a0/0x230 [ 54.326420] __x64_sys_sendmsg+0x132/0x220 [ 54.330675] ? __sys_sendmsg+0x1b0/0x1b0 [ 54.334721] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 54.340084] ? trace_hardirqs_off_caller+0x6e/0x210 [ 54.345130] ? do_syscall_64+0x21/0x620 [ 54.349086] do_syscall_64+0xf9/0x620 [ 54.352897] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.358099] RIP: 0033:0x440709 [ 54.361289] 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 [ 54.380174] RSP: 002b:00007ffd63ac8668 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 54.387901] RAX: ffffffffffffffda RBX: 000000000000d0ad RCX: 0000000000440709 [ 54.395154] RDX: 0000000000000000 RSI: 0000000020000300 RDI: 0000000000000003 [ 54.402408] RBP: 0000000000000000 R08: 0000000000000000 R09: 00007ffd63ac8808 [ 54.409663] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd63ac867c [ 54.416929] R13: 431bde82d7b634db R14: 00000000004ae018 R15: 00000000004004a0 [ 54.424588] Kernel Offset: disabled [ 54.428203] Rebooting in 86400 seconds..