====================================================== WARNING: possible circular locking dependency detected 4.14.209-syzkaller #0 Not tainted ------------------------------------------------------ kworker/u4:7/6523 is trying to acquire lock: (k-sk_lock-AF_INET){+.+.}, at: [] lock_sock include/net/sock.h:1471 [inline] (k-sk_lock-AF_INET){+.+.}, at: [] do_tcp_setsockopt.constprop.0+0xfb/0x1c10 net/ipv4/tcp.c:2562 but task is already holding lock: ((&(&cp->cp_send_w)->work)){+.+.}, at: [] process_one_work+0x6e6/0x14a0 kernel/workqueue.c:2091 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 ((&(&cp->cp_send_w)->work)){+.+.}: flush_work+0xad/0x770 kernel/workqueue.c:2889 __cancel_work_timer+0x321/0x460 kernel/workqueue.c:2964 rds_tcp_reset_callbacks+0x18d/0x450 net/rds/tcp.c:167 rds_tcp_accept_one+0x61a/0x8b0 net/rds/tcp_listen.c:194 rds_tcp_accept_worker+0x4d/0x70 net/rds/tcp.c:407 process_one_work+0x793/0x14a0 kernel/workqueue.c:2116 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2250 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 -> #0 (k-sk_lock-AF_INET){+.+.}: lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 lock_sock_nested+0xb7/0x100 net/core/sock.c:2796 lock_sock include/net/sock.h:1471 [inline] do_tcp_setsockopt.constprop.0+0xfb/0x1c10 net/ipv4/tcp.c:2562 tcp_setsockopt net/ipv4/tcp.c:2830 [inline] tcp_setsockopt+0xa7/0xc0 net/ipv4/tcp.c:2822 kernel_setsockopt+0xfb/0x1b0 net/socket.c:3396 rds_tcp_cork net/rds/tcp_send.c:43 [inline] rds_tcp_xmit_path_prepare+0xaf/0xe0 net/rds/tcp_send.c:50 rds_send_xmit+0x1ae/0x1c00 net/rds/send.c:187 rds_send_worker+0x6d/0x240 net/rds/threads.c:189 process_one_work+0x793/0x14a0 kernel/workqueue.c:2116 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2250 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock((&(&cp->cp_send_w)->work)); lock(k-sk_lock-AF_INET); lock((&(&cp->cp_send_w)->work)); lock(k-sk_lock-AF_INET); *** DEADLOCK *** 2 locks held by kworker/u4:7/6523: #0: ("%s""krdsd"){+.+.}, at: [] process_one_work+0x6b0/0x14a0 kernel/workqueue.c:2087 #1: ((&(&cp->cp_send_w)->work)){+.+.}, at: [] process_one_work+0x6e6/0x14a0 kernel/workqueue.c:2091 stack backtrace: CPU: 1 PID: 6523 Comm: kworker/u4:7 Not tainted 4.14.209-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: krdsd rds_send_worker Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x283 lib/dump_stack.c:58 print_circular_bug.constprop.0.cold+0x2d7/0x41e kernel/locking/lockdep.c:1258 check_prev_add kernel/locking/lockdep.c:1905 [inline] check_prevs_add kernel/locking/lockdep.c:2022 [inline] validate_chain kernel/locking/lockdep.c:2464 [inline] __lock_acquire+0x2e0e/0x3f20 kernel/locking/lockdep.c:3491 lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 lock_sock_nested+0xb7/0x100 net/core/sock.c:2796 lock_sock include/net/sock.h:1471 [inline] do_tcp_setsockopt.constprop.0+0xfb/0x1c10 net/ipv4/tcp.c:2562 tcp_setsockopt net/ipv4/tcp.c:2830 [inline] tcp_setsockopt+0xa7/0xc0 net/ipv4/tcp.c:2822 kernel_setsockopt+0xfb/0x1b0 net/socket.c:3396 rds_tcp_cork net/rds/tcp_send.c:43 [inline] rds_tcp_xmit_path_prepare+0xaf/0xe0 net/rds/tcp_send.c:50 rds_send_xmit+0x1ae/0x1c00 net/rds/send.c:187 rds_send_worker+0x6d/0x240 net/rds/threads.c:189 process_one_work+0x793/0x14a0 kernel/workqueue.c:2116 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2250 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 can: request_module (can-proto-0) failed. can: request_module (can-proto-0) failed. device lo entered promiscuous mode ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0xa00 vif->addr=02:00:00:00:11:00) ieee80211 phy17: BCN EN: 0 (BI=100) ieee80211 phy17: beaconing vifs remaining: 0 ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0x4000 vif->addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_config (freq=2412(2412 - 0)/noht idle=0 ps=0 smps=static) ieee80211 phy17: mac80211_hwsim_config (freq=2412(2412 - 0)/noht idle=1 ps=0 smps=static) ieee80211 phy17: mac80211_hwsim_remove_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_stop ieee80211 phy17: mac80211_hwsim_start ieee80211 phy17: mac80211_hwsim_add_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0xe vif->addr=02:00:00:00:11:00) ieee80211 phy17: ERP_CTS_PROT: 0 ieee80211 phy17: ERP_PREAMBLE: 0 ieee80211 phy17: ERP_SLOT: 0 ieee80211 phy17: mac80211_hwsim_conf_tx (queue=0 txop=47 cw_min=3 cw_max=7 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=1 txop=94 cw_min=7 cw_max=15 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=2 txop=0 cw_min=15 cw_max=1023 aifs=3) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=3 txop=0 cw_min=15 cw_max=1023 aifs=7) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0x2000 vif->addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_config (freq=2412(2412 - 0)/noht idle=1 ps=0 smps=static) device wlan1 entered promiscuous mode ieee80211 phy17: mac80211_hwsim_configure_filter IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_remove_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_stop device wlan1 left promiscuous mode ieee80211 phy17: mac80211_hwsim_start ieee80211 phy17: mac80211_hwsim_add_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0xe vif->addr=02:00:00:00:11:00) ieee80211 phy17: ERP_CTS_PROT: 0 ieee80211 phy17: ERP_PREAMBLE: 0 ieee80211 phy17: ERP_SLOT: 0 ieee80211 phy17: mac80211_hwsim_conf_tx (queue=0 txop=47 cw_min=3 cw_max=7 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=1 txop=94 cw_min=7 cw_max=15 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=2 txop=0 cw_min=15 cw_max=1023 aifs=3) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=3 txop=0 cw_min=15 cw_max=1023 aifs=7) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0x2000 vif->addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_config (freq=2412(2412 - 0)/noht idle=1 ps=0 smps=static) device wlan1 entered promiscuous mode ieee80211 phy17: mac80211_hwsim_configure_filter IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_remove_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_stop device wlan1 left promiscuous mode ieee80211 phy21: mac80211_hwsim_configure_filter ieee80211 phy21: mac80211_hwsim_bss_info_changed(changed=0xa00 vif->addr=02:00:00:00:15:00) ieee80211 phy21: BCN EN: 0 (BI=100) ieee80211 phy21: beaconing vifs remaining: 0 ieee80211 phy21: mac80211_hwsim_bss_info_changed(changed=0x4000 vif->addr=02:00:00:00:15:00) ieee80211 phy21: mac80211_hwsim_config (freq=2412(2412 - 0)/noht idle=0 ps=0 smps=static) ieee80211 phy21: mac80211_hwsim_config (freq=2412(2412 - 0)/noht idle=1 ps=0 smps=static) ieee80211 phy21: mac80211_hwsim_remove_interface (type=1 mac_addr=02:00:00:00:15:00) ieee80211 phy21: mac80211_hwsim_stop ieee80211 phy17: mac80211_hwsim_start ieee80211 phy17: mac80211_hwsim_add_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0xe vif->addr=02:00:00:00:11:00) ieee80211 phy17: ERP_CTS_PROT: 0 ieee80211 phy17: ERP_PREAMBLE: 0 ieee80211 phy17: ERP_SLOT: 0 ieee80211 phy17: mac80211_hwsim_conf_tx (queue=0 txop=47 cw_min=3 cw_max=7 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=1 txop=94 cw_min=7 cw_max=15 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=2 txop=0 cw_min=15 cw_max=1023 aifs=3) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=3 txop=0 cw_min=15 cw_max=1023 aifs=7) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0x2000 vif->addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_config (freq=2412(2412 - 0)/noht idle=1 ps=0 smps=static) device wlan1 entered promiscuous mode ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_configure_filter IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy21: mac80211_hwsim_start ieee80211 phy21: mac80211_hwsim_add_interface (type=1 mac_addr=02:00:00:00:15:00) ieee80211 phy21: mac80211_hwsim_bss_info_changed(changed=0xe vif->addr=02:00:00:00:15:00) ieee80211 phy21: ERP_CTS_PROT: 0 ieee80211 phy21: ERP_PREAMBLE: 0 ieee80211 phy21: ERP_SLOT: 0 ieee80211 phy21: mac80211_hwsim_conf_tx (queue=0 txop=47 cw_min=3 cw_max=7 aifs=2) ieee80211 phy21: mac80211_hwsim_conf_tx (queue=1 txop=94 cw_min=7 cw_max=15 aifs=2) ieee80211 phy21: mac80211_hwsim_conf_tx (queue=2 txop=0 cw_min=15 cw_max=1023 aifs=3) ieee80211 phy21: mac80211_hwsim_conf_tx (queue=3 txop=0 cw_min=15 cw_max=1023 aifs=7) ieee80211 phy21: mac80211_hwsim_bss_info_changed(changed=0x2000 vif->addr=02:00:00:00:15:00) ieee80211 phy21: mac80211_hwsim_config (freq=2412(2412 - 0)/noht idle=1 ps=0 smps=static) device wlan1 entered promiscuous mode ieee80211 phy21: mac80211_hwsim_configure_filter IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready ieee80211 phy21: mac80211_hwsim_configure_filter ieee80211 phy21: mac80211_hwsim_configure_filter ieee80211 phy21: mac80211_hwsim_remove_interface (type=1 mac_addr=02:00:00:00:15:00) ieee80211 phy21: mac80211_hwsim_stop device wlan1 left promiscuous mode ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_remove_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_stop device wlan1 left promiscuous mode ieee80211 phy21: mac80211_hwsim_start ieee80211 phy21: mac80211_hwsim_add_interface (type=1 mac_addr=02:00:00:00:15:00) ieee80211 phy21: mac80211_hwsim_bss_info_changed(changed=0xe vif->addr=02:00:00:00:15:00) ieee80211 phy21: ERP_CTS_PROT: 0 ieee80211 phy21: ERP_PREAMBLE: 0 ieee80211 phy21: ERP_SLOT: 0 ieee80211 phy21: mac80211_hwsim_conf_tx (queue=0 txop=47 cw_min=3 cw_max=7 aifs=2) ieee80211 phy21: mac80211_hwsim_conf_tx (queue=1 txop=94 cw_min=7 cw_max=15 aifs=2) ieee80211 phy21: mac80211_hwsim_conf_tx (queue=2 txop=0 cw_min=15 cw_max=1023 aifs=3) ieee80211 phy21: mac80211_hwsim_conf_tx (queue=3 txop=0 cw_min=15 cw_max=1023 aifs=7) ieee80211 phy21: mac80211_hwsim_bss_info_changed(changed=0x2000 vif->addr=02:00:00:00:15:00) ieee80211 phy21: mac80211_hwsim_config (freq=2412(2412 - 0)/noht idle=1 ps=0 smps=static) ieee80211 phy21: mac80211_hwsim_configure_filter device wlan1 entered promiscuous mode ieee80211 phy21: mac80211_hwsim_configure_filter IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready ieee80211 phy21: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_start ieee80211 phy17: mac80211_hwsim_add_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0xe vif->addr=02:00:00:00:11:00) ieee80211 phy17: ERP_CTS_PROT: 0 ieee80211 phy17: ERP_PREAMBLE: 0 ieee80211 phy17: ERP_SLOT: 0 ieee80211 phy17: mac80211_hwsim_conf_tx (queue=0 txop=47 cw_min=3 cw_max=7 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=1 txop=94 cw_min=7 cw_max=15 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=2 txop=0 cw_min=15 cw_max=1023 aifs=3) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=3 txop=0 cw_min=15 cw_max=1023 aifs=7) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0x2000 vif->addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_config (freq=2412(2412 - 0)/noht idle=1 ps=0 smps=static) device wlan1 entered promiscuous mode ieee80211 phy17: mac80211_hwsim_configure_filter IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_remove_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_stop device wlan1 left promiscuous mode ieee80211 phy21: mac80211_hwsim_remove_interface (type=1 mac_addr=02:00:00:00:15:00) ieee80211 phy21: mac80211_hwsim_configure_filter ieee80211 phy21: mac80211_hwsim_stop device wlan1 left promiscuous mode ieee80211 phy21: mac80211_hwsim_start ieee80211 phy21: mac80211_hwsim_add_interface (type=1 mac_addr=02:00:00:00:15:00) ieee80211 phy21: mac80211_hwsim_bss_info_changed(changed=0xe vif->addr=02:00:00:00:15:00) ieee80211 phy21: ERP_CTS_PROT: 0 ieee80211 phy21: ERP_PREAMBLE: 0 ieee80211 phy21: ERP_SLOT: 0 ieee80211 phy21: mac80211_hwsim_conf_tx (queue=0 txop=47 cw_min=3 cw_max=7 aifs=2) ieee80211 phy21: mac80211_hwsim_conf_tx (queue=1 txop=94 cw_min=7 cw_max=15 aifs=2) ieee80211 phy21: mac80211_hwsim_conf_tx (queue=2 txop=0 cw_min=15 cw_max=1023 aifs=3) ieee80211 phy21: mac80211_hwsim_conf_tx (queue=3 txop=0 cw_min=15 cw_max=1023 aifs=7) ieee80211 phy21: mac80211_hwsim_bss_info_changed(changed=0x2000 vif->addr=02:00:00:00:15:00) ieee80211 phy21: mac80211_hwsim_config (freq=2412(2412 - 0)/noht idle=1 ps=0 smps=static) ieee80211 phy21: mac80211_hwsim_configure_filter device wlan1 entered promiscuous mode ieee80211 phy21: mac80211_hwsim_configure_filter IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready ieee80211 phy21: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_start ieee80211 phy17: mac80211_hwsim_add_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0xe vif->addr=02:00:00:00:11:00) ieee80211 phy17: ERP_CTS_PROT: 0 ieee80211 phy17: ERP_PREAMBLE: 0 ieee80211 phy17: ERP_SLOT: 0 ieee80211 phy17: mac80211_hwsim_conf_tx (queue=0 txop=47 cw_min=3 cw_max=7 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=1 txop=94 cw_min=7 cw_max=15 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=2 txop=0 cw_min=15 cw_max=1023 aifs=3) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=3 txop=0 cw_min=15 cw_max=1023 aifs=7) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0x2000 vif->addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_config (freq=2412(2412 - 0)/noht idle=1 ps=0 smps=static) device wlan1 entered promiscuous mode ieee80211 phy17: mac80211_hwsim_configure_filter IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy21: mac80211_hwsim_configure_filter ieee80211 phy21: mac80211_hwsim_remove_interface (type=1 mac_addr=02:00:00:00:15:00) ieee80211 phy21: mac80211_hwsim_stop device wlan1 left promiscuous mode ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_remove_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_stop device wlan1 left promiscuous mode ieee80211 phy21: mac80211_hwsim_start ieee80211 phy21: mac80211_hwsim_add_interface (type=1 mac_addr=02:00:00:00:15:00) ieee80211 phy21: mac80211_hwsim_bss_info_changed(changed=0xe vif->addr=02:00:00:00:15:00) ieee80211 phy21: ERP_CTS_PROT: 0 ieee80211 phy21: ERP_PREAMBLE: 0 ieee80211 phy21: ERP_SLOT: 0 ieee80211 phy21: mac80211_hwsim_conf_tx (queue=0 txop=47 cw_min=3 cw_max=7 aifs=2) ieee80211 phy21: mac80211_hwsim_conf_tx (queue=1 txop=94 cw_min=7 cw_max=15 aifs=2) ieee80211 phy21: mac80211_hwsim_conf_tx (queue=2 txop=0 cw_min=15 cw_max=1023 aifs=3) ieee80211 phy21: mac80211_hwsim_conf_tx (queue=3 txop=0 cw_min=15 cw_max=1023 aifs=7) ieee80211 phy21: mac80211_hwsim_bss_info_changed(changed=0x2000 vif->addr=02:00:00:00:15:00) ieee80211 phy21: mac80211_hwsim_config (freq=2412(2412 - 0)/noht idle=1 ps=0 smps=static) ieee80211 phy21: mac80211_hwsim_configure_filter device wlan1 entered promiscuous mode ieee80211 phy21: mac80211_hwsim_configure_filter IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready ieee80211 phy21: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_start ieee80211 phy17: mac80211_hwsim_add_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0xe vif->addr=02:00:00:00:11:00) ieee80211 phy17: ERP_CTS_PROT: 0 ieee80211 phy17: ERP_PREAMBLE: 0 ieee80211 phy17: ERP_SLOT: 0 ieee80211 phy17: mac80211_hwsim_conf_tx (queue=0 txop=47 cw_min=3 cw_max=7 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=1 txop=94 cw_min=7 cw_max=15 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=2 txop=0 cw_min=15 cw_max=1023 aifs=3) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=3 txop=0 cw_min=15 cw_max=1023 aifs=7) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0x2000 vif->addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_config (freq=2412(2412 - 0)/noht idle=1 ps=0 smps=static) ieee80211 phy17: mac80211_hwsim_configure_filter device wlan1 entered promiscuous mode IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy21: mac80211_hwsim_configure_filter ieee80211 phy21: mac80211_hwsim_remove_interface (type=1 mac_addr=02:00:00:00:15:00) ieee80211 phy21: mac80211_hwsim_stop device wlan1 left promiscuous mode ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_remove_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_stop device wlan1 left promiscuous mode ieee80211 phy17: mac80211_hwsim_start ieee80211 phy17: mac80211_hwsim_add_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0xe vif->addr=02:00:00:00:11:00) ieee80211 phy17: ERP_CTS_PROT: 0 ieee80211 phy17: ERP_PREAMBLE: 0 ieee80211 phy17: ERP_SLOT: 0 ieee80211 phy17: mac80211_hwsim_conf_tx (queue=0 txop=47 cw_min=3 cw_max=7 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=1 txop=94 cw_min=7 cw_max=15 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=2 txop=0 cw_min=15 cw_max=1023 aifs=3) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=3 txop=0 cw_min=15 cw_max=1023 aifs=7) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0x2000 vif->addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_config (freq=2412(2412 - 0)/noht idle=1 ps=0 smps=static) device wlan1 entered promiscuous mode ieee80211 phy17: mac80211_hwsim_configure_filter IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_remove_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_stop device wlan1 left promiscuous mode ieee80211 phy17: mac80211_hwsim_start ieee80211 phy17: mac80211_hwsim_add_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0xe vif->addr=02:00:00:00:11:00) ieee80211 phy17: ERP_CTS_PROT: 0 ieee80211 phy17: ERP_PREAMBLE: 0 ieee80211 phy17: ERP_SLOT: 0 ieee80211 phy17: mac80211_hwsim_conf_tx (queue=0 txop=47 cw_min=3 cw_max=7 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=1 txop=94 cw_min=7 cw_max=15 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=2 txop=0 cw_min=15 cw_max=1023 aifs=3) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=3 txop=0 cw_min=15 cw_max=1023 aifs=7) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0x2000 vif->addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_config (freq=2412(2412 - 0)/noht idle=1 ps=0 smps=static) ieee80211 phy17: mac80211_hwsim_configure_filter device wlan1 entered promiscuous mode ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_configure_filter IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_remove_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_stop device wlan1 left promiscuous mode ieee80211 phy17: mac80211_hwsim_start ieee80211 phy17: mac80211_hwsim_add_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0xe vif->addr=02:00:00:00:11:00) ieee80211 phy17: ERP_CTS_PROT: 0 ieee80211 phy17: ERP_PREAMBLE: 0 ieee80211 phy17: ERP_SLOT: 0 ieee80211 phy17: mac80211_hwsim_conf_tx (queue=0 txop=47 cw_min=3 cw_max=7 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=1 txop=94 cw_min=7 cw_max=15 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=2 txop=0 cw_min=15 cw_max=1023 aifs=3) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=3 txop=0 cw_min=15 cw_max=1023 aifs=7) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0x2000 vif->addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_config (freq=2412(2412 - 0)/noht idle=1 ps=0 smps=static) device wlan1 entered promiscuous mode ieee80211 phy17: mac80211_hwsim_configure_filter IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready ieee80211 phy17: mac80211_hwsim_configure_filter device lo entered promiscuous mode ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_remove_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_stop device wlan1 left promiscuous mode ieee80211 phy17: mac80211_hwsim_start ieee80211 phy17: mac80211_hwsim_add_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0xe vif->addr=02:00:00:00:11:00) ieee80211 phy17: ERP_CTS_PROT: 0 ieee80211 phy17: ERP_PREAMBLE: 0 ieee80211 phy17: ERP_SLOT: 0 ieee80211 phy17: mac80211_hwsim_conf_tx (queue=0 txop=47 cw_min=3 cw_max=7 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=1 txop=94 cw_min=7 cw_max=15 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=2 txop=0 cw_min=15 cw_max=1023 aifs=3) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=3 txop=0 cw_min=15 cw_max=1023 aifs=7) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0x2000 vif->addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_config (freq=2412(2412 - 0)/noht idle=1 ps=0 smps=static) device wlan1 entered promiscuous mode ieee80211 phy17: mac80211_hwsim_configure_filter IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready ieee80211 phy17: mac80211_hwsim_configure_filter device lo entered promiscuous mode ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_remove_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_stop device wlan1 left promiscuous mode ieee80211 phy17: mac80211_hwsim_start ieee80211 phy17: mac80211_hwsim_add_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0xe vif->addr=02:00:00:00:11:00) ieee80211 phy17: ERP_CTS_PROT: 0 ieee80211 phy17: ERP_PREAMBLE: 0 ieee80211 phy17: ERP_SLOT: 0 ieee80211 phy17: mac80211_hwsim_conf_tx (queue=0 txop=47 cw_min=3 cw_max=7 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=1 txop=94 cw_min=7 cw_max=15 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=2 txop=0 cw_min=15 cw_max=1023 aifs=3) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=3 txop=0 cw_min=15 cw_max=1023 aifs=7) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0x2000 vif->addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_config (freq=2412(2412 - 0)/noht idle=1 ps=0 smps=static) ieee80211 phy17: mac80211_hwsim_configure_filter device wlan1 entered promiscuous mode ieee80211 phy17: mac80211_hwsim_configure_filter IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_remove_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_stop device wlan1 left promiscuous mode ieee80211 phy17: mac80211_hwsim_start ieee80211 phy17: mac80211_hwsim_add_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0xe vif->addr=02:00:00:00:11:00) ieee80211 phy17: ERP_CTS_PROT: 0 ieee80211 phy17: ERP_PREAMBLE: 0 ieee80211 phy17: ERP_SLOT: 0 ieee80211 phy17: mac80211_hwsim_conf_tx (queue=0 txop=47 cw_min=3 cw_max=7 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=1 txop=94 cw_min=7 cw_max=15 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=2 txop=0 cw_min=15 cw_max=1023 aifs=3) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=3 txop=0 cw_min=15 cw_max=1023 aifs=7) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0x2000 vif->addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_config (freq=2412(2412 - 0)/noht idle=1 ps=0 smps=static) ieee80211 phy17: mac80211_hwsim_configure_filter device wlan1 entered promiscuous mode ieee80211 phy17: mac80211_hwsim_configure_filter IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_remove_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_stop device wlan1 left promiscuous mode ieee80211 phy17: mac80211_hwsim_start ieee80211 phy17: mac80211_hwsim_add_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0xe vif->addr=02:00:00:00:11:00) ieee80211 phy17: ERP_CTS_PROT: 0 ieee80211 phy17: ERP_PREAMBLE: 0 ieee80211 phy17: ERP_SLOT: 0 ieee80211 phy17: mac80211_hwsim_conf_tx (queue=0 txop=47 cw_min=3 cw_max=7 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=1 txop=94 cw_min=7 cw_max=15 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=2 txop=0 cw_min=15 cw_max=1023 aifs=3) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=3 txop=0 cw_min=15 cw_max=1023 aifs=7) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0x2000 vif->addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_config (freq=2412(2412 - 0)/noht idle=1 ps=0 smps=static) ieee80211 phy17: mac80211_hwsim_configure_filter device wlan1 entered promiscuous mode IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_remove_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_stop device wlan1 left promiscuous mode ieee80211 phy17: mac80211_hwsim_start ieee80211 phy17: mac80211_hwsim_add_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0xe vif->addr=02:00:00:00:11:00) ieee80211 phy17: ERP_CTS_PROT: 0 ieee80211 phy17: ERP_PREAMBLE: 0 ieee80211 phy17: ERP_SLOT: 0 ieee80211 phy17: mac80211_hwsim_conf_tx (queue=0 txop=47 cw_min=3 cw_max=7 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=1 txop=94 cw_min=7 cw_max=15 aifs=2) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=2 txop=0 cw_min=15 cw_max=1023 aifs=3) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=3 txop=0 cw_min=15 cw_max=1023 aifs=7) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0x2000 vif->addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_config (freq=2412(2412 - 0)/noht idle=1 ps=0 smps=static) ieee80211 phy17: mac80211_hwsim_configure_filter device wlan1 entered promiscuous mode ieee80211 phy17: mac80211_hwsim_configure_filter IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_configure_filter ieee80211 phy17: mac80211_hwsim_remove_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_stop device wlan1 left promiscuous mode ieee80211 phy17: mac80211_hwsim_start ieee80211 phy17: mac80211_hwsim_add_interface (type=1 mac_addr=02:00:00:00:11:00) ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0xe vif->addr=02:00:00:00:11:00) ieee80211 phy17: ERP_CTS_PROT: 0 ieee80211 phy17: ERP_PREAMBLE: 0 ieee80211 phy17: ERP_SLOT: 0 ieee80211 phy17: mac80211_hwsim_conf_tx (queue=0 txop=47 cw_min=3 cw_max=7 aifs=2) ================================================================== BUG: KASAN: slab-out-of-bounds in tipc_nametbl_lookup_dst_nodes+0x44c/0x4c0 net/tipc/name_table.c:670 Read of size 4 at addr ffff8880a0010ed0 by task syz-executor.2/7751 CPU: 0 PID: 7751 Comm: syz-executor.2 Not tainted 4.14.209-syzkaller #0 ieee80211 phy17: mac80211_hwsim_conf_tx (queue=1 txop=94 cw_min=7 cw_max=15 aifs=2) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x283 lib/dump_stack.c:58 print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:252 kasan_report_error.cold+0x8a/0x194 mm/kasan/report.c:351 kasan_report mm/kasan/report.c:409 [inline] __asan_report_load4_noabort+0x68/0x70 mm/kasan/report.c:429 tipc_nametbl_lookup_dst_nodes+0x44c/0x4c0 net/tipc/name_table.c:670 tipc_sendmcast+0x51a/0xac0 net/tipc/socket.c:767 ieee80211 phy17: mac80211_hwsim_conf_tx (queue=2 txop=0 cw_min=15 cw_max=1023 aifs=3) ieee80211 phy17: mac80211_hwsim_conf_tx (queue=3 txop=0 cw_min=15 cw_max=1023 aifs=7) __tipc_sendmsg+0xbab/0xf90 net/tipc/socket.c:971 ieee80211 phy17: mac80211_hwsim_bss_info_changed(changed=0x2000 vif->addr=02:00:00:00:11:00) tipc_sendmsg+0x4c/0x70 net/tipc/socket.c:919 ieee80211 phy17: mac80211_hwsim_config (freq=2412(2412 - 0)/noht idle=1 ps=0 smps=static) sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062 device wlan1 entered promiscuous mode IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready __sys_sendmsg+0xa3/0x120 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x27/0x40 net/socket.c:2103 ieee80211 phy17: mac80211_hwsim_configure_filter do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x45deb9 RSP: 002b:00007f8e3bb7bc78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000002e7c0 RCX: 000000000045deb9 RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000003 RBP: 000000000118bf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bf2c R13: 00007ffcd00d97df R14: 00007f8e3bb7c9c0 R15: 000000000118bf2c Allocated by task 8007: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551 __do_kmalloc mm/slab.c:3720 [inline] __kmalloc+0x15a/0x400 mm/slab.c:3729 tipc_nameseq_create+0x53/0x290 net/tipc/name_table.c:152 tipc_nametbl_insert_publ+0xb37/0x14e0 net/tipc/name_table.c:476 tipc_nametbl_publish+0x211/0x3f0 net/tipc/name_table.c:701 tipc_sk_publish net/tipc/socket.c:2203 [inline] tipc_bind+0x2c4/0x600 net/tipc/socket.c:629 tipc_create_listen_sock net/tipc/server.c:338 [inline] tipc_open_listening_sock net/tipc/server.c:396 [inline] tipc_server_start+0x31f/0x880 net/tipc/server.c:611 tipc_topsrv_start net/tipc/subscr.c:382 [inline] tipc_topsrv_init_net+0x53b/0x730 net/tipc/subscr.c:397 ops_init+0xaa/0x3e0 net/core/net_namespace.c:118 setup_net+0x22f/0x530 net/core/net_namespace.c:295 copy_net_ns+0x19b/0x440 net/core/net_namespace.c:419 create_new_namespaces+0x375/0x720 kernel/nsproxy.c:107 unshare_nsproxy_namespaces+0xa1/0x1d0 kernel/nsproxy.c:206 SYSC_unshare kernel/fork.c:2412 [inline] SyS_unshare+0x308/0x7f0 kernel/fork.c:2362 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb Freed by task 4613: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xc3/0x1a0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xc9/0x250 mm/slab.c:3815 aa_free_task_context+0xda/0x130 security/apparmor/context.c:54 apparmor_cred_free+0x34/0x70 security/apparmor/lsm.c:58 security_cred_free+0x71/0xb0 security/security.c:1003 put_cred_rcu+0xe3/0x300 kernel/cred.c:117 __put_cred+0x1a1/0x210 kernel/cred.c:151 put_cred include/linux/cred.h:271 [inline] SYSC_faccessat fs/open.c:444 [inline] SyS_faccessat+0x52a/0x680 fs/open.c:353 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb The buggy address belongs to the object at ffff8880a0010ec0 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 16 bytes inside of 32-byte region [ffff8880a0010ec0, ffff8880a0010ee0) The buggy address belongs to the page: page:ffffea0002800400 count:1 mapcount:0 mapping:ffff8880a0010000 index:0xffff8880a0010fc1 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffff8880a0010000 ffff8880a0010fc1 000000010000003a raw: ffffea00028cdf20 ffffea000292efa0 ffff88813fe801c0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a0010d80: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ffff8880a0010e00: fb fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc >ffff8880a0010e80: fb fb fb fb fc fc fc fc 00 00 fc fc fc fc fc fc ^ ffff8880a0010f00: 00 00 fc fc fc fc fc fc fb fb fb fb fc fc fc fc ffff8880a0010f80: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================