Warning: Permanently added '10.128.0.98' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program syzkaller login: [ 38.128318] netlink: 4 bytes leftover after parsing attributes in process `syz-executor665'. [ 38.142923] netlink: 4 bytes leftover after parsing attributes in process `syz-executor665'. [ 38.153224] netlink: 4 bytes leftover after parsing attributes in process `syz-executor665'. [ 38.163242] netlink: 4 bytes leftover after parsing attributes in process `syz-executor665'. executing program [ 38.172467] netlink: 4 bytes leftover after parsing attributes in process `syz-executor665'. [ 38.181781] netlink: 4 bytes leftover after parsing attributes in process `syz-executor665'. executing program [ 38.227633] netlink: 4 bytes leftover after parsing attributes in process `syz-executor665'. [ 38.237063] netlink: 4 bytes leftover after parsing attributes in process `syz-executor665'. [ 38.247161] netlink: 4 bytes leftover after parsing attributes in process `syz-executor665'. [ 38.261307] netlink: 4 bytes leftover after parsing attributes in process `syz-executor665'. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 39.556419] ================================================================== [ 39.563999] BUG: KASAN: use-after-free in refcount_dec_not_one+0x71/0x1d0 [ 39.570949] Read of size 4 at addr ffff8880a3625d58 by task syz-executor665/8248 [ 39.579056] [ 39.580677] CPU: 1 PID: 8248 Comm: syz-executor665 Not tainted 4.19.176-syzkaller #0 [ 39.588765] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.598129] Call Trace: [ 39.600734] dump_stack+0x1fc/0x2ef [ 39.604372] print_address_description.cold+0x54/0x219 [ 39.609649] kasan_report_error.cold+0x8a/0x1b9 [ 39.614443] ? refcount_dec_not_one+0x71/0x1d0 [ 39.619037] kasan_report+0x8f/0xa0 [ 39.623092] ? refcount_dec_not_one+0x71/0x1d0 [ 39.628379] refcount_dec_not_one+0x71/0x1d0 [ 39.632801] ? refcount_dec_and_test_checked+0x20/0x20 [ 39.638188] ? nbd_config_put+0x5da/0x870 [ 39.642345] refcount_dec_and_mutex_lock+0x1c/0x80 [ 39.647275] nbd_genl_connect+0x11ee/0x1630 [ 39.651597] ? nbd_xmit_timeout+0x730/0x730 [ 39.655915] ? __sanitizer_cov_trace_switch+0x4b/0x80 [ 39.661109] ? validate_nla+0x270/0x820 [ 39.665077] ? nla_parse+0x1b2/0x290 [ 39.668957] genl_family_rcv_msg+0x642/0xc40 [ 39.673374] ? genl_rcv+0x40/0x40 [ 39.676831] ? genl_rcv_msg+0x12f/0x160 [ 39.680988] ? __mutex_add_waiter+0x160/0x160 [ 39.685480] ? __radix_tree_lookup+0x216/0x370 [ 39.690198] genl_rcv_msg+0xbf/0x160 [ 39.693966] netlink_rcv_skb+0x160/0x440 [ 39.698518] ? genl_family_rcv_msg+0xc40/0xc40 [ 39.703100] ? netlink_ack+0xae0/0xae0 [ 39.707124] ? genl_rcv+0x15/0x40 [ 39.710640] genl_rcv+0x24/0x40 [ 39.714029] netlink_unicast+0x4d5/0x690 [ 39.718136] ? netlink_sendskb+0x110/0x110 [ 39.722825] ? _copy_from_iter_full+0x229/0x7c0 [ 39.729574] ? __phys_addr_symbol+0x2c/0x70 [ 39.733990] ? __check_object_size+0x17b/0x3e0 [ 39.738584] netlink_sendmsg+0x6bb/0xc40 [ 39.742648] ? aa_af_perm+0x230/0x230 [ 39.746451] ? nlmsg_notify+0x1a0/0x1a0 [ 39.750597] ? kernel_recvmsg+0x220/0x220 [ 39.754772] ? nlmsg_notify+0x1a0/0x1a0 [ 39.758745] sock_sendmsg+0xc3/0x120 [ 39.762483] ___sys_sendmsg+0x7bb/0x8e0 [ 39.766450] ? copy_msghdr_from_user+0x440/0x440 [ 39.772169] ? mark_held_locks+0xf0/0xf0 [ 39.776216] ? __do_page_fault+0x180/0xd60 [ 39.780454] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 39.785207] ? lockdep_hardirqs_on+0x3a8/0x5c0 [ 39.789785] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 39.794558] ? __sys_socketpair+0x45c/0x570 [ 39.798883] ? lock_acquire+0x170/0x3c0 [ 39.803197] ? lock_downgrade+0x720/0x720 [ 39.807391] ? __fdget+0x1a0/0x230 [ 39.811210] __x64_sys_sendmsg+0x132/0x220 [ 39.816973] ? __sys_sendmsg+0x1b0/0x1b0 [ 39.821322] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 39.826849] ? trace_hardirqs_off_caller+0x6e/0x210 [ 39.831990] ? do_syscall_64+0x21/0x620 [ 39.835977] do_syscall_64+0xf9/0x620 [ 39.839778] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.845224] RIP: 0033:0x440959 [ 39.848433] 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 [ 39.867443] RSP: 002b:00007ffd88792008 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 39.875140] RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 0000000000440959 [ 39.882513] RDX: 0000000002000800 RSI: 0000000020002580 RDI: 0000000000000003 [ 39.889885] RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001 [ 39.898626] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000988e [ 39.905891] R13: 00007ffd8879201c R14: 00007ffd88792030 R15: 00007ffd88792020 [ 39.913162] [ 39.914914] Allocated by task 8238: [ 39.918536] kmem_cache_alloc_trace+0x12f/0x380 [ 39.923303] nbd_dev_add+0x44/0x890 [ 39.926937] nbd_genl_connect+0x4cc/0x1630 [ 39.931180] genl_family_rcv_msg+0x642/0xc40 [ 39.935606] genl_rcv_msg+0xbf/0x160 [ 39.939306] netlink_rcv_skb+0x160/0x440 [ 39.944321] genl_rcv+0x24/0x40 [ 39.947599] netlink_unicast+0x4d5/0x690 [ 39.951658] netlink_sendmsg+0x6bb/0xc40 [ 39.955703] sock_sendmsg+0xc3/0x120 [ 39.959407] ___sys_sendmsg+0x7bb/0x8e0 [ 39.963381] __x64_sys_sendmsg+0x132/0x220 [ 39.967608] do_syscall_64+0xf9/0x620 [ 39.971753] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.976945] [ 39.978582] Freed by task 8248: [ 39.981870] kfree+0xcc/0x210 [ 39.984972] nbd_put.part.0+0xfe/0x140 [ 39.988846] nbd_config_put+0x6a0/0x870 [ 39.992847] nbd_genl_connect+0x11bb/0x1630 [ 39.997611] genl_family_rcv_msg+0x642/0xc40 [ 40.002659] genl_rcv_msg+0xbf/0x160 [ 40.006380] netlink_rcv_skb+0x160/0x440 [ 40.010448] genl_rcv+0x24/0x40 [ 40.013746] netlink_unicast+0x4d5/0x690 [ 40.018601] netlink_sendmsg+0x6bb/0xc40 [ 40.022657] sock_sendmsg+0xc3/0x120 [ 40.026390] ___sys_sendmsg+0x7bb/0x8e0 [ 40.030349] __x64_sys_sendmsg+0x132/0x220 [ 40.035178] do_syscall_64+0xf9/0x620 [ 40.038974] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.044162] [ 40.045776] The buggy address belongs to the object at ffff8880a3625c80 [ 40.045776] which belongs to the cache kmalloc-512 of size 512 [ 40.058427] The buggy address is located 216 bytes inside of [ 40.058427] 512-byte region [ffff8880a3625c80, ffff8880a3625e80) [ 40.070311] The buggy address belongs to the page: [ 40.075235] page:ffffea00028d8940 count:1 mapcount:0 mapping:ffff88813bff0940 index:0x0 [ 40.083525] flags: 0xfff00000000100(slab) [ 40.087681] raw: 00fff00000000100 ffffea0002a66208 ffffea0002ab52c8 ffff88813bff0940 [ 40.095572] raw: 0000000000000000 ffff8880a3625000 0000000100000006 0000000000000000 [ 40.104096] page dumped because: kasan: bad access detected [ 40.110492] [ 40.112137] Memory state around the buggy address: [ 40.117109] ffff8880a3625c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 40.124603] ffff8880a3625c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.131977] >ffff8880a3625d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.139472] ^ [ 40.145943] ffff8880a3625d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.153405] ffff8880a3625e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.161800] ================================================================== [ 40.169766] Disabling lock debugging due to kernel taint [ 40.177443] Kernel panic - not syncing: panic_on_warn set ... [ 40.177443] [ 40.184845] CPU: 1 PID: 8248 Comm: syz-executor665 Tainted: G B 4.19.176-syzkaller #0 [ 40.194137] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.203533] Call Trace: [ 40.206137] dump_stack+0x1fc/0x2ef [ 40.209784] panic+0x26a/0x50e [ 40.213083] ? __warn_printk+0xf3/0xf3 [ 40.217003] ? preempt_schedule_common+0x45/0xc0 [ 40.221774] ? ___preempt_schedule+0x16/0x18 [ 40.226308] ? trace_hardirqs_on+0x55/0x210 [ 40.230639] kasan_end_report+0x43/0x49 [ 40.234615] kasan_report_error.cold+0xa7/0x1b9 [ 40.239643] ? refcount_dec_not_one+0x71/0x1d0 [ 40.244228] kasan_report+0x8f/0xa0 [ 40.247846] ? refcount_dec_not_one+0x71/0x1d0 [ 40.252430] refcount_dec_not_one+0x71/0x1d0 [ 40.256840] ? refcount_dec_and_test_checked+0x20/0x20 [ 40.262269] ? nbd_config_put+0x5da/0x870 [ 40.266536] refcount_dec_and_mutex_lock+0x1c/0x80 [ 40.271604] nbd_genl_connect+0x11ee/0x1630 [ 40.275964] ? nbd_xmit_timeout+0x730/0x730 [ 40.280290] ? __sanitizer_cov_trace_switch+0x4b/0x80 [ 40.285480] ? validate_nla+0x270/0x820 [ 40.289452] ? nla_parse+0x1b2/0x290 [ 40.293297] genl_family_rcv_msg+0x642/0xc40 [ 40.297710] ? genl_rcv+0x40/0x40 [ 40.301171] ? genl_rcv_msg+0x12f/0x160 [ 40.305145] ? __mutex_add_waiter+0x160/0x160 [ 40.309661] ? __radix_tree_lookup+0x216/0x370 [ 40.314596] genl_rcv_msg+0xbf/0x160 [ 40.318314] netlink_rcv_skb+0x160/0x440 [ 40.322485] ? genl_family_rcv_msg+0xc40/0xc40 [ 40.327089] ? netlink_ack+0xae0/0xae0 [ 40.331066] ? genl_rcv+0x15/0x40 [ 40.334611] genl_rcv+0x24/0x40 [ 40.337897] netlink_unicast+0x4d5/0x690 [ 40.341961] ? netlink_sendskb+0x110/0x110 [ 40.346480] ? _copy_from_iter_full+0x229/0x7c0 [ 40.352006] ? __phys_addr_symbol+0x2c/0x70 [ 40.356344] ? __check_object_size+0x17b/0x3e0 [ 40.360934] netlink_sendmsg+0x6bb/0xc40 [ 40.365116] ? aa_af_perm+0x230/0x230 [ 40.369202] ? nlmsg_notify+0x1a0/0x1a0 [ 40.373176] ? kernel_recvmsg+0x220/0x220 [ 40.377323] ? nlmsg_notify+0x1a0/0x1a0 [ 40.381412] sock_sendmsg+0xc3/0x120 [ 40.385121] ___sys_sendmsg+0x7bb/0x8e0 [ 40.389201] ? copy_msghdr_from_user+0x440/0x440 [ 40.393994] ? mark_held_locks+0xf0/0xf0 [ 40.398923] ? __do_page_fault+0x180/0xd60 [ 40.403347] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 40.408146] ? lockdep_hardirqs_on+0x3a8/0x5c0 [ 40.412865] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 40.417851] ? __sys_socketpair+0x45c/0x570 [ 40.422196] ? lock_acquire+0x170/0x3c0 [ 40.426183] ? lock_downgrade+0x720/0x720 [ 40.430336] ? __fdget+0x1a0/0x230 [ 40.434038] __x64_sys_sendmsg+0x132/0x220 [ 40.438347] ? __sys_sendmsg+0x1b0/0x1b0 [ 40.442498] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 40.447964] ? trace_hardirqs_off_caller+0x6e/0x210 [ 40.452986] ? do_syscall_64+0x21/0x620 [ 40.456958] do_syscall_64+0xf9/0x620 [ 40.460744] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.465936] RIP: 0033:0x440959 [ 40.469130] 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 [ 40.488980] RSP: 002b:00007ffd88792008 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 40.496674] RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 0000000000440959 [ 40.503939] RDX: 0000000002000800 RSI: 0000000020002580 RDI: 0000000000000003 [ 40.511203] RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001 [ 40.518466] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000988e [ 40.525729] R13: 00007ffd8879201c R14: 00007ffd88792030 R15: 00007ffd88792020 [ 40.533723] Kernel Offset: disabled [ 40.537346] Rebooting in 86400 seconds..