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.0.202' (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 syzkaller login: [ 69.231029][ T8681] ================================================================== [ 69.239740][ T8681] BUG: KASAN: use-after-free in refcount_dec_not_one+0x71/0x1e0 [ 69.247394][ T8681] Read of size 4 at addr ffff8880210df1a0 by task syz-executor404/8681 [ 69.255627][ T8681] [ 69.257948][ T8681] CPU: 1 PID: 8681 Comm: syz-executor404 Not tainted 5.11.0-rc7-syzkaller #0 [ 69.266750][ T8681] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 69.276807][ T8681] Call Trace: [ 69.280097][ T8681] dump_stack+0x107/0x163 [ 69.284548][ T8681] ? refcount_dec_not_one+0x71/0x1e0 [ 69.289969][ T8681] ? refcount_dec_not_one+0x71/0x1e0 [ 69.295275][ T8681] print_address_description.constprop.0.cold+0x5b/0x2f8 [ 69.302311][ T8681] ? refcount_dec_not_one+0x71/0x1e0 [ 69.307614][ T8681] ? refcount_dec_not_one+0x71/0x1e0 [ 69.312902][ T8681] kasan_report.cold+0x79/0xd5 [ 69.317677][ T8681] ? refcount_dec_not_one+0x71/0x1e0 [ 69.323041][ T8681] check_memory_region+0x13d/0x180 [ 69.328164][ T8681] refcount_dec_not_one+0x71/0x1e0 [ 69.333279][ T8681] ? refcount_warn_saturate+0x1e0/0x1e0 [ 69.338838][ T8681] ? nbd_config_put+0x5d0/0x8c0 [ 69.343696][ T8681] refcount_dec_and_mutex_lock+0x19/0x140 [ 69.349421][ T8681] nbd_genl_connect+0xee7/0x1560 [ 69.354381][ T8681] ? nbd_start_device+0xd40/0xd40 [ 69.359663][ T8681] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 69.366146][ T8681] ? genl_family_rcv_msg_attrs_parse.constprop.0+0x1b7/0x290 [ 69.373524][ T8681] ? genl_family_rcv_msg_attrs_parse.constprop.0+0xaf/0x290 [ 69.380820][ T8681] genl_family_rcv_msg_doit+0x228/0x320 [ 69.386457][ T8681] ? genl_family_rcv_msg_attrs_parse.constprop.0+0x290/0x290 [ 69.393851][ T8681] ? genl_op_from_small+0x23/0x3c0 [ 69.398965][ T8681] ? genl_get_cmd+0x3cf/0x480 [ 69.403649][ T8681] genl_rcv_msg+0x328/0x580 [ 69.408492][ T8681] ? genl_get_cmd+0x480/0x480 [ 69.413182][ T8681] ? nbd_start_device+0xd40/0xd40 [ 69.418235][ T8681] ? lock_release+0x710/0x710 [ 69.422990][ T8681] netlink_rcv_skb+0x153/0x420 [ 69.427760][ T8681] ? genl_get_cmd+0x480/0x480 [ 69.432462][ T8681] ? netlink_ack+0xaa0/0xaa0 [ 69.437313][ T8681] genl_rcv+0x24/0x40 [ 69.441303][ T8681] netlink_unicast+0x533/0x7d0 [ 69.446091][ T8681] ? netlink_attachskb+0x870/0x870 [ 69.451203][ T8681] ? _copy_from_iter_full+0x275/0x850 [ 69.456575][ T8681] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 69.462856][ T8681] ? __phys_addr_symbol+0x2c/0x70 [ 69.467882][ T8681] ? __sanitizer_cov_trace_cmp8+0x1d/0x70 [ 69.473601][ T8681] ? __check_object_size+0x171/0x3f0 [ 69.478892][ T8681] netlink_sendmsg+0x856/0xd90 [ 69.483662][ T8681] ? netlink_unicast+0x7d0/0x7d0 [ 69.488700][ T8681] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 69.494944][ T8681] ? netlink_unicast+0x7d0/0x7d0 [ 69.499931][ T8681] sock_sendmsg+0xcf/0x120 [ 69.504396][ T8681] ____sys_sendmsg+0x6e8/0x810 [ 69.509165][ T8681] ? kernel_sendmsg+0x50/0x50 [ 69.513839][ T8681] ? do_recvmmsg+0x6c0/0x6c0 [ 69.518490][ T8681] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 69.524736][ T8681] ? netlink_recvmsg+0x826/0xee0 [ 69.529683][ T8681] ___sys_sendmsg+0xf3/0x170 [ 69.534721][ T8681] ? sendmsg_copy_msghdr+0x160/0x160 [ 69.541909][ T8681] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 69.548447][ T8681] ? security_socket_recvmsg+0x8f/0xc0 [ 69.554012][ T8681] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 69.560257][ T8681] ? __sys_recvfrom+0x2cc/0x3a0 [ 69.565111][ T8681] ? __ia32_sys_send+0x100/0x100 [ 69.570186][ T8681] ? __sanitizer_cov_trace_const_cmp1+0x22/0x80 [ 69.576579][ T8681] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 69.582832][ T8681] ? __fget_light+0x215/0x280 [ 69.587645][ T8681] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 69.593910][ T8681] __sys_sendmsg+0xe5/0x1b0 [ 69.598431][ T8681] ? __sys_sendmsg_sock+0xb0/0xb0 [ 69.603461][ T8681] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 69.609926][ T8681] ? syscall_enter_from_user_mode+0x1d/0x50 [ 69.616111][ T8681] do_syscall_64+0x2d/0x70 [ 69.620533][ T8681] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 69.626431][ T8681] RIP: 0033:0x4406e9 [ 69.630347][ T8681] 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 [ 69.650067][ T8681] RSP: 002b:00007ffce3858c08 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 69.658500][ T8681] RAX: ffffffffffffffda RBX: 0000000000010e1c RCX: 00000000004406e9 [ 69.666597][ T8681] RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000003 [ 69.674709][ T8681] RBP: 0000000000000000 R08: 0000000000000000 R09: 00007ffce3858da8 [ 69.682676][ T8681] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffce3858c1c [ 69.690786][ T8681] R13: 431bde82d7b634db R14: 00000000004ae018 R15: 00000000004004a0 [ 69.699076][ T8681] [ 69.701410][ T8681] Allocated by task 8668: [ 69.705728][ T8681] kasan_save_stack+0x1b/0x40 [ 69.710494][ T8681] ____kasan_kmalloc.constprop.0+0x82/0xa0 [ 69.716293][ T8681] nbd_dev_add+0x44/0x8e0 [ 69.720625][ T8681] nbd_genl_connect+0x59c/0x1560 [ 69.725561][ T8681] genl_family_rcv_msg_doit+0x228/0x320 [ 69.731106][ T8681] genl_rcv_msg+0x328/0x580 [ 69.735608][ T8681] netlink_rcv_skb+0x153/0x420 [ 69.740375][ T8681] genl_rcv+0x24/0x40 [ 69.744365][ T8681] netlink_unicast+0x533/0x7d0 [ 69.749126][ T8681] netlink_sendmsg+0x856/0xd90 [ 69.753890][ T8681] sock_sendmsg+0xcf/0x120 [ 69.758308][ T8681] ____sys_sendmsg+0x6e8/0x810 [ 69.763087][ T8681] ___sys_sendmsg+0xf3/0x170 [ 69.767670][ T8681] __sys_sendmsg+0xe5/0x1b0 [ 69.772395][ T8681] do_syscall_64+0x2d/0x70 [ 69.776809][ T8681] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 69.782702][ T8681] [ 69.785018][ T8681] Freed by task 8681: [ 69.789007][ T8681] kasan_save_stack+0x1b/0x40 [ 69.793704][ T8681] kasan_set_track+0x1c/0x30 [ 69.798300][ T8681] kasan_set_free_info+0x20/0x30 [ 69.803281][ T8681] ____kasan_slab_free+0xe1/0x110 [ 69.808324][ T8681] slab_free_freelist_hook+0x5d/0x150 [ 69.813691][ T8681] kfree+0xdb/0x3b0 [ 69.817494][ T8681] nbd_put.part.0+0x180/0x1d0 [ 69.822176][ T8681] nbd_config_put+0x6dd/0x8c0 [ 69.826873][ T8681] nbd_genl_connect+0xeb7/0x1560 [ 69.831928][ T8681] genl_family_rcv_msg_doit+0x228/0x320 [ 69.837514][ T8681] genl_rcv_msg+0x328/0x580 [ 69.842018][ T8681] netlink_rcv_skb+0x153/0x420 [ 69.846780][ T8681] genl_rcv+0x24/0x40 [ 69.850820][ T8681] netlink_unicast+0x533/0x7d0 [ 69.855580][ T8681] netlink_sendmsg+0x856/0xd90 [ 69.860391][ T8681] sock_sendmsg+0xcf/0x120 [ 69.865159][ T8681] ____sys_sendmsg+0x6e8/0x810 [ 69.872963][ T8681] ___sys_sendmsg+0xf3/0x170 [ 69.877554][ T8681] __sys_sendmsg+0xe5/0x1b0 [ 69.882059][ T8681] do_syscall_64+0x2d/0x70 [ 69.886561][ T8681] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 69.892455][ T8681] [ 69.894774][ T8681] The buggy address belongs to the object at ffff8880210df000 [ 69.894774][ T8681] which belongs to the cache kmalloc-1k of size 1024 [ 69.909115][ T8681] The buggy address is located 416 bytes inside of [ 69.909115][ T8681] 1024-byte region [ffff8880210df000, ffff8880210df400) [ 69.922613][ T8681] The buggy address belongs to the page: [ 69.928335][ T8681] page:000000007993983b refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x210d8 [ 69.938643][ T8681] head:000000007993983b order:3 compound_mapcount:0 compound_pincount:0 [ 69.946972][ T8681] flags: 0xfff00000010200(slab|head) [ 69.952425][ T8681] raw: 00fff00000010200 dead000000000100 dead000000000122 ffff888010c41140 [ 69.961202][ T8681] raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 [ 69.970548][ T8681] page dumped because: kasan: bad access detected [ 69.977117][ T8681] [ 69.979480][ T8681] Memory state around the buggy address: [ 69.985239][ T8681] ffff8880210df080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 69.993585][ T8681] ffff8880210df100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 70.001646][ T8681] >ffff8880210df180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 70.009743][ T8681] ^ [ 70.014968][ T8681] ffff8880210df200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 70.023028][ T8681] ffff8880210df280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 70.031079][ T8681] ================================================================== [ 70.039130][ T8681] Disabling lock debugging due to kernel taint [ 70.047529][ T8681] Kernel panic - not syncing: panic_on_warn set ... [ 70.054135][ T8681] CPU: 0 PID: 8681 Comm: syz-executor404 Tainted: G B 5.11.0-rc7-syzkaller #0 [ 70.064306][ T8681] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 70.074502][ T8681] Call Trace: [ 70.077792][ T8681] dump_stack+0x107/0x163 [ 70.082145][ T8681] ? refcount_dec_not_one+0x10/0x1e0 [ 70.087448][ T8681] panic+0x306/0x73d [ 70.091501][ T8681] ? __warn_printk+0xf3/0xf3 [ 70.096087][ T8681] ? preempt_schedule_common+0x59/0xc0 [ 70.101548][ T8681] ? refcount_dec_not_one+0x71/0x1e0 [ 70.107080][ T8681] ? preempt_schedule_thunk+0x16/0x18 [ 70.112449][ T8681] ? trace_hardirqs_on+0x38/0x1c0 [ 70.117555][ T8681] ? trace_hardirqs_on+0x51/0x1c0 [ 70.122574][ T8681] ? refcount_dec_not_one+0x71/0x1e0 [ 70.127855][ T8681] ? refcount_dec_not_one+0x71/0x1e0 [ 70.133226][ T8681] end_report+0x58/0x5e [ 70.137377][ T8681] kasan_report.cold+0x67/0xd5 [ 70.142170][ T8681] ? refcount_dec_not_one+0x71/0x1e0 [ 70.147491][ T8681] check_memory_region+0x13d/0x180 [ 70.152600][ T8681] refcount_dec_not_one+0x71/0x1e0 [ 70.157796][ T8681] ? refcount_warn_saturate+0x1e0/0x1e0 [ 70.163344][ T8681] ? nbd_config_put+0x5d0/0x8c0 [ 70.168232][ T8681] refcount_dec_and_mutex_lock+0x19/0x140 [ 70.173950][ T8681] nbd_genl_connect+0xee7/0x1560 [ 70.178884][ T8681] ? nbd_start_device+0xd40/0xd40 [ 70.184090][ T8681] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 70.190372][ T8681] ? genl_family_rcv_msg_attrs_parse.constprop.0+0x1b7/0x290 [ 70.197742][ T8681] ? genl_family_rcv_msg_attrs_parse.constprop.0+0xaf/0x290 [ 70.205024][ T8681] genl_family_rcv_msg_doit+0x228/0x320 [ 70.210653][ T8681] ? genl_family_rcv_msg_attrs_parse.constprop.0+0x290/0x290 [ 70.218022][ T8681] ? genl_op_from_small+0x23/0x3c0 [ 70.223127][ T8681] ? genl_get_cmd+0x3cf/0x480 [ 70.227800][ T8681] genl_rcv_msg+0x328/0x580 [ 70.232299][ T8681] ? genl_get_cmd+0x480/0x480 [ 70.237013][ T8681] ? nbd_start_device+0xd40/0xd40 [ 70.242035][ T8681] ? lock_release+0x710/0x710 [ 70.246708][ T8681] netlink_rcv_skb+0x153/0x420 [ 70.251505][ T8681] ? genl_get_cmd+0x480/0x480 [ 70.256217][ T8681] ? netlink_ack+0xaa0/0xaa0 [ 70.260814][ T8681] genl_rcv+0x24/0x40 [ 70.264789][ T8681] netlink_unicast+0x533/0x7d0 [ 70.269668][ T8681] ? netlink_attachskb+0x870/0x870 [ 70.274771][ T8681] ? _copy_from_iter_full+0x275/0x850 [ 70.280171][ T8681] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 70.286413][ T8681] ? __phys_addr_symbol+0x2c/0x70 [ 70.291441][ T8681] ? __sanitizer_cov_trace_cmp8+0x1d/0x70 [ 70.297157][ T8681] ? __check_object_size+0x171/0x3f0 [ 70.302435][ T8681] netlink_sendmsg+0x856/0xd90 [ 70.307194][ T8681] ? netlink_unicast+0x7d0/0x7d0 [ 70.312126][ T8681] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 70.318402][ T8681] ? netlink_unicast+0x7d0/0x7d0 [ 70.323334][ T8681] sock_sendmsg+0xcf/0x120 [ 70.327742][ T8681] ____sys_sendmsg+0x6e8/0x810 [ 70.332499][ T8681] ? kernel_sendmsg+0x50/0x50 [ 70.337166][ T8681] ? do_recvmmsg+0x6c0/0x6c0 [ 70.341745][ T8681] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 70.348025][ T8681] ? netlink_recvmsg+0x826/0xee0 [ 70.352957][ T8681] ___sys_sendmsg+0xf3/0x170 [ 70.357542][ T8681] ? sendmsg_copy_msghdr+0x160/0x160 [ 70.362860][ T8681] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 70.369303][ T8681] ? security_socket_recvmsg+0x8f/0xc0 [ 70.374756][ T8681] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 70.381700][ T8681] ? __sys_recvfrom+0x2cc/0x3a0 [ 70.386681][ T8681] ? __ia32_sys_send+0x100/0x100 [ 70.391615][ T8681] ? __sanitizer_cov_trace_const_cmp1+0x22/0x80 [ 70.397852][ T8681] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 70.404099][ T8681] ? __fget_light+0x215/0x280 [ 70.408785][ T8681] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 70.415065][ T8681] __sys_sendmsg+0xe5/0x1b0 [ 70.419576][ T8681] ? __sys_sendmsg_sock+0xb0/0xb0 [ 70.424640][ T8681] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 70.430878][ T8681] ? syscall_enter_from_user_mode+0x1d/0x50 [ 70.436768][ T8681] do_syscall_64+0x2d/0x70 [ 70.441178][ T8681] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 70.447183][ T8681] RIP: 0033:0x4406e9 [ 70.451068][ T8681] 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 [ 70.470798][ T8681] RSP: 002b:00007ffce3858c08 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 70.479204][ T8681] RAX: ffffffffffffffda RBX: 0000000000010e1c RCX: 00000000004406e9 [ 70.487203][ T8681] RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000003 [ 70.495163][ T8681] RBP: 0000000000000000 R08: 0000000000000000 R09: 00007ffce3858da8 [ 70.503163][ T8681] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffce3858c1c [ 70.511212][ T8681] R13: 431bde82d7b634db R14: 00000000004ae018 R15: 00000000004004a0 [ 70.520408][ T8681] Kernel Offset: disabled [ 70.524874][ T8681] Rebooting in 86400 seconds..