netlink: 4 bytes leftover after parsing attributes in process `syz-executor4'. netlink: 4 bytes leftover after parsing attributes in process `syz-executor4'. ====================================================== WARNING: possible circular locking dependency detected 4.17.0-rc7+ #80 Not tainted ------------------------------------------------------ syz-executor4/11801 is trying to acquire lock: 00000000933dac6c (rlock-AF_UNIX){+.+.}, at: skb_queue_tail+0x26/0x150 net/core/skbuff.c:2915 but task is already holding lock: 00000000f640dc42 (&(&u->lock)->rlock/1){+.+.}, at: unix_state_double_lock+0x80/0xb0 net/unix/af_unix.c:1078 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (&(&u->lock)->rlock/1){+.+.}: _raw_spin_lock_nested+0x28/0x40 kernel/locking/spinlock.c:354 sk_diag_dump_icons net/unix/diag.c:82 [inline] sk_diag_fill.isra.5+0xa43/0x10d0 net/unix/diag.c:144 sk_diag_dump net/unix/diag.c:178 [inline] unix_diag_dump+0x35f/0x550 net/unix/diag.c:206 netlink_dump+0x507/0xd20 net/netlink/af_netlink.c:2226 __netlink_dump_start+0x51a/0x780 net/netlink/af_netlink.c:2323 netlink_dump_start include/linux/netlink.h:214 [inline] unix_diag_handler_dump+0x3f4/0x7b0 net/unix/diag.c:307 __sock_diag_cmd net/core/sock_diag.c:230 [inline] sock_diag_rcv_msg+0x2e0/0x3d0 net/core/sock_diag.c:261 netlink_rcv_skb+0x172/0x440 net/netlink/af_netlink.c:2448 sock_diag_rcv+0x2a/0x40 net/core/sock_diag.c:272 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline] netlink_unicast+0x58b/0x740 net/netlink/af_netlink.c:1336 netlink_sendmsg+0x9f0/0xfa0 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:629 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:639 sock_write_iter+0x35a/0x5a0 net/socket.c:908 call_write_iter include/linux/fs.h:1784 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x64d/0x960 fs/read_write.c:487 vfs_write+0x1f8/0x560 fs/read_write.c:549 ksys_write+0xf9/0x250 fs/read_write.c:598 __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:607 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #0 (rlock-AF_UNIX){+.+.}: lock_acquire+0x1dc/0x520 kernel/locking/lockdep.c:3920 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x96/0xc0 kernel/locking/spinlock.c:152 skb_queue_tail+0x26/0x150 net/core/skbuff.c:2915 unix_dgram_sendmsg+0xf77/0x1730 net/unix/af_unix.c:1797 sock_sendmsg_nosec net/socket.c:629 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:639 ___sys_sendmsg+0x525/0x940 net/socket.c:2117 __sys_sendmmsg+0x240/0x6f0 net/socket.c:2212 __do_sys_sendmmsg net/socket.c:2241 [inline] __se_sys_sendmmsg net/socket.c:2238 [inline] __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2238 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&(&u->lock)->rlock/1); lock(rlock-AF_UNIX); lock(&(&u->lock)->rlock/1); lock(rlock-AF_UNIX); *** DEADLOCK *** 1 lock held by syz-executor4/11801: #0: 00000000f640dc42 (&(&u->lock)->rlock/1){+.+.}, at: unix_state_double_lock+0x80/0xb0 net/unix/af_unix.c:1078 stack backtrace: CPU: 1 PID: 11801 Comm: syz-executor4 Not tainted 4.17.0-rc7+ #80 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1b9/0x294 lib/dump_stack.c:113 print_circular_bug.isra.36.cold.54+0x1bd/0x27d kernel/locking/lockdep.c:1223 check_prev_add kernel/locking/lockdep.c:1863 [inline] check_prevs_add kernel/locking/lockdep.c:1976 [inline] validate_chain kernel/locking/lockdep.c:2417 [inline] __lock_acquire+0x343e/0x5140 kernel/locking/lockdep.c:3431 lock_acquire+0x1dc/0x520 kernel/locking/lockdep.c:3920 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x96/0xc0 kernel/locking/spinlock.c:152 skb_queue_tail+0x26/0x150 net/core/skbuff.c:2915 unix_dgram_sendmsg+0xf77/0x1730 net/unix/af_unix.c:1797 sock_sendmsg_nosec net/socket.c:629 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:639 ___sys_sendmsg+0x525/0x940 net/socket.c:2117 __sys_sendmmsg+0x240/0x6f0 net/socket.c:2212 __do_sys_sendmmsg net/socket.c:2241 [inline] __se_sys_sendmmsg net/socket.c:2238 [inline] __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2238 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455a09 RSP: 002b:00007fc27df89c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007fc27df8a6d4 RCX: 0000000000455a09 RDX: fffffffffffffdc3 RSI: 00000000200bd000 RDI: 0000000000000018 RBP: 000000000072c000 R08: 0000000000000000 R09: 0000000000000000 R10: 5a6d8d97750cae5e R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000005aa R14: 00000000006fd890 R15: 0000000000000002 ieee80211 phy2: Selected rate control algorithm 'minstrel_ht' netlink: 8 bytes leftover after parsing attributes in process `syz-executor4'. ieee80211 phy3: Selected rate control algorithm 'minstrel_ht' netlink: 8 bytes leftover after parsing attributes in process `syz-executor4'. ieee80211 phy4: Selected rate control algorithm 'minstrel_ht' ieee80211 phy5: Selected rate control algorithm 'minstrel_ht' ieee80211 phy6: Selected rate control algorithm 'minstrel_ht' ieee80211 phy7: Selected rate control algorithm 'minstrel_ht' ieee80211 phy8: Selected rate control algorithm 'minstrel_ht' ieee80211 phy9: Selected rate control algorithm 'minstrel_ht' ieee80211 phy10: Selected rate control algorithm 'minstrel_ht' ieee80211 phy11: Selected rate control algorithm 'minstrel_ht' ieee80211 phy12: Selected rate control algorithm 'minstrel_ht' ieee80211 phy13: Selected rate control algorithm 'minstrel_ht' ieee80211 phy14: Selected rate control algorithm 'minstrel_ht' ieee80211 phy15: Selected rate control algorithm 'minstrel_ht' ieee80211 phy16: Selected rate control algorithm 'minstrel_ht' ieee80211 phy17: Selected rate control algorithm 'minstrel_ht' ieee80211 phy18: Selected rate control algorithm 'minstrel_ht' ieee80211 phy19: Selected rate control algorithm 'minstrel_ht' ieee80211 phy20: Selected rate control algorithm 'minstrel_ht' ieee80211 phy21: Selected rate control algorithm 'minstrel_ht' ieee80211 phy22: Selected rate control algorithm 'minstrel_ht' ieee80211 phy23: Selected rate control algorithm 'minstrel_ht' ieee80211 phy24: Selected rate control algorithm 'minstrel_ht' ieee80211 phy25: Selected rate control algorithm 'minstrel_ht' ieee80211 phy26: Selected rate control algorithm 'minstrel_ht' ieee80211 phy27: Selected rate control algorithm 'minstrel_ht' ieee80211 phy28: Selected rate control algorithm 'minstrel_ht' ieee80211 phy29: Selected rate control algorithm 'minstrel_ht' ieee80211 phy30: Selected rate control algorithm 'minstrel_ht' ieee80211 phy31: Selected rate control algorithm 'minstrel_ht' ieee80211 phy32: Selected rate control algorithm 'minstrel_ht' ieee80211 phy33: Selected rate control algorithm 'minstrel_ht' ieee80211 phy34: Selected rate control algorithm 'minstrel_ht' ieee80211 phy35: Selected rate control algorithm 'minstrel_ht' ieee80211 phy36: Selected rate control algorithm 'minstrel_ht' ieee80211 phy37: Selected rate control algorithm 'minstrel_ht' ieee80211 phy38: Selected rate control algorithm 'minstrel_ht' ieee80211 phy39: Selected rate control algorithm 'minstrel_ht' ieee80211 phy40: Selected rate control algorithm 'minstrel_ht' ieee80211 phy41: Selected rate control algorithm 'minstrel_ht' ieee80211 phy42: Selected rate control algorithm 'minstrel_ht' ieee80211 phy43: Selected rate control algorithm 'minstrel_ht' ieee80211 phy44: Selected rate control algorithm 'minstrel_ht' ieee80211 phy45: Selected rate control algorithm 'minstrel_ht' ieee80211 phy46: Selected rate control algorithm 'minstrel_ht' ieee80211 phy47: Selected rate control algorithm 'minstrel_ht' ieee80211 phy48: Selected rate control algorithm 'minstrel_ht' ieee80211 phy49: Selected rate control algorithm 'minstrel_ht' ieee80211 phy50: Selected rate control algorithm 'minstrel_ht' ieee80211 phy51: Selected rate control algorithm 'minstrel_ht' ieee80211 phy52: Selected rate control algorithm 'minstrel_ht' ieee80211 phy53: Selected rate control algorithm 'minstrel_ht' ieee80211 phy54: Selected rate control algorithm 'minstrel_ht' ieee80211 phy55: Selected rate control algorithm 'minstrel_ht' ieee80211 phy56: Selected rate control algorithm 'minstrel_ht' ieee80211 phy57: Selected rate control algorithm 'minstrel_ht' ieee80211 phy58: Selected rate control algorithm 'minstrel_ht' ieee80211 phy59: Selected rate control algorithm 'minstrel_ht' ieee80211 phy60: Selected rate control algorithm 'minstrel_ht' ieee80211 phy61: Selected rate control algorithm 'minstrel_ht' ieee80211 phy62: Selected rate control algorithm 'minstrel_ht' ieee80211 phy63: Selected rate control algorithm 'minstrel_ht' ieee80211 phy64: Selected rate control algorithm 'minstrel_ht' ieee80211 phy65: Selected rate control algorithm 'minstrel_ht' ieee80211 phy66: Selected rate control algorithm 'minstrel_ht' ieee80211 phy67: Selected rate control algorithm 'minstrel_ht' ieee80211 phy68: Selected rate control algorithm 'minstrel_ht' ieee80211 phy69: Selected rate control algorithm 'minstrel_ht' ieee80211 phy70: Selected rate control algorithm 'minstrel_ht' ieee80211 phy71: Selected rate control algorithm 'minstrel_ht' ieee80211 phy72: Selected rate control algorithm 'minstrel_ht' ieee80211 phy73: Selected rate control algorithm 'minstrel_ht' ieee80211 phy74: Selected rate control algorithm 'minstrel_ht' ieee80211 phy75: Selected rate control algorithm 'minstrel_ht' ieee80211 phy76: Selected rate control algorithm 'minstrel_ht' ieee80211 phy77: Selected rate control algorithm 'minstrel_ht' ieee80211 phy78: Selected rate control algorithm 'minstrel_ht' ieee80211 phy79: Selected rate control algorithm 'minstrel_ht' ieee80211 phy80: Selected rate control algorithm 'minstrel_ht' ieee80211 phy81: Selected rate control algorithm 'minstrel_ht' ieee80211 phy82: Selected rate control algorithm 'minstrel_ht' ieee80211 phy83: Selected rate control algorithm 'minstrel_ht' ieee80211 phy84: Selected rate control algorithm 'minstrel_ht' ieee80211 phy85: Selected rate control algorithm 'minstrel_ht' ieee80211 phy86: Selected rate control algorithm 'minstrel_ht' ieee80211 phy87: Selected rate control algorithm 'minstrel_ht' ieee80211 phy88: Selected rate control algorithm 'minstrel_ht' ieee80211 phy89: Selected rate control algorithm 'minstrel_ht' ieee80211 phy90: Selected rate control algorithm 'minstrel_ht' ieee80211 phy91: Selected rate control algorithm 'minstrel_ht' ieee80211 phy92: Selected rate control algorithm 'minstrel_ht' ieee80211 phy93: Selected rate control algorithm 'minstrel_ht' ieee80211 phy94: Selected rate control algorithm 'minstrel_ht' ieee80211 phy95: Selected rate control algorithm 'minstrel_ht' ieee80211 phy96: Selected rate control algorithm 'minstrel_ht' ieee80211 phy97: Selected rate control algorithm 'minstrel_ht' ieee80211 phy98: Selected rate control algorithm 'minstrel_ht' ieee80211 phy99: Selected rate control algorithm 'minstrel_ht' ieee80211 phy100: Selected rate control algorithm 'minstrel_ht' ieee80211 phy101: Selected rate control algorithm 'minstrel_ht' ieee80211 phy102: Selected rate control algorithm 'minstrel_ht' ieee80211 phy103: Selected rate control algorithm 'minstrel_ht' ieee80211 phy104: Selected rate control algorithm 'minstrel_ht' ieee80211 phy105: Selected rate control algorithm 'minstrel_ht' ieee80211 phy106: Selected rate control algorithm 'minstrel_ht' ieee80211 phy107: Selected rate control algorithm 'minstrel_ht' ieee80211 phy108: Selected rate control algorithm 'minstrel_ht' ieee80211 phy109: Selected rate control algorithm 'minstrel_ht' ieee80211 phy110: Selected rate control algorithm 'minstrel_ht' ieee80211 phy111: Selected rate control algorithm 'minstrel_ht' ieee80211 phy112: Selected rate control algorithm 'minstrel_ht' ieee80211 phy113: Selected rate control algorithm 'minstrel_ht' ieee80211 phy114: Selected rate control algorithm 'minstrel_ht' ieee80211 phy115: Selected rate control algorithm 'minstrel_ht' ieee80211 phy116: Selected rate control algorithm 'minstrel_ht' ieee80211 phy117: Selected rate control algorithm 'minstrel_ht' ieee80211 phy118: Selected rate control algorithm 'minstrel_ht' ieee80211 phy119: Selected rate control algorithm 'minstrel_ht' ieee80211 phy120: Selected rate control algorithm 'minstrel_ht' ieee80211 phy121: Selected rate control algorithm 'minstrel_ht' ieee80211 phy122: Selected rate control algorithm 'minstrel_ht' ieee80211 phy123: Selected rate control algorithm 'minstrel_ht' ieee80211 phy124: Selected rate control algorithm 'minstrel_ht' ieee80211 phy125: Selected rate control algorithm 'minstrel_ht' ieee80211 phy126: Selected rate control algorithm 'minstrel_ht' ieee80211 phy127: Selected rate control algorithm 'minstrel_ht' ieee80211 phy128: Selected rate control algorithm 'minstrel_ht' ieee80211 phy129: Selected rate control algorithm 'minstrel_ht' ieee80211 phy130: Selected rate control algorithm 'minstrel_ht' ieee80211 phy131: Selected rate control algorithm 'minstrel_ht' ieee80211 phy132: Selected rate control algorithm 'minstrel_ht' ieee80211 phy133: Selected rate control algorithm 'minstrel_ht' ieee80211 phy134: Selected rate control algorithm 'minstrel_ht' ieee80211 phy135: Selected rate control algorithm 'minstrel_ht' ieee80211 phy136: Selected rate control algorithm 'minstrel_ht' ieee80211 phy137: Selected rate control algorithm 'minstrel_ht' ieee80211 phy138: Selected rate control algorithm 'minstrel_ht' ieee80211 phy139: Selected rate control algorithm 'minstrel_ht' ieee80211 phy140: Selected rate control algorithm 'minstrel_ht' ieee80211 phy141: Selected rate control algorithm 'minstrel_ht' ieee80211 phy142: Selected rate control algorithm 'minstrel_ht' ieee80211 phy143: Selected rate control algorithm 'minstrel_ht' ieee80211 phy144: Selected rate control algorithm 'minstrel_ht' ieee80211 phy145: Selected rate control algorithm 'minstrel_ht' ieee80211 phy146: Selected rate control algorithm 'minstrel_ht' ieee80211 phy147: Selected rate control algorithm 'minstrel_ht' ieee80211 phy148: Selected rate control algorithm 'minstrel_ht' ieee80211 phy149: Selected rate control algorithm 'minstrel_ht' ieee80211 phy150: Selected rate control algorithm 'minstrel_ht' ieee80211 phy151: Selected rate control algorithm 'minstrel_ht' ieee80211 phy152: Selected rate control algorithm 'minstrel_ht' ieee80211 phy153: Selected rate control algorithm 'minstrel_ht' ieee80211 phy154: Selected rate control algorithm 'minstrel_ht' ieee80211 phy155: Selected rate control algorithm 'minstrel_ht' ieee80211 phy156: Selected rate control algorithm 'minstrel_ht' ieee80211 phy157: Selected rate control algorithm 'minstrel_ht' ieee80211 phy158: Selected rate control algorithm 'minstrel_ht'