From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4CB3C4727F for ; Thu, 24 Sep 2020 09:27:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6D7C22311A for ; Thu, 24 Sep 2020 09:27:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727721AbgIXJ1X (ORCPT ); Thu, 24 Sep 2020 05:27:23 -0400 Received: from mail-io1-f79.google.com ([209.85.166.79]:55804 "EHLO mail-io1-f79.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727473AbgIXJ01 (ORCPT ); Thu, 24 Sep 2020 05:26:27 -0400 Received: by mail-io1-f79.google.com with SMTP id t187so1904935iof.22 for ; Thu, 24 Sep 2020 02:26:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=zkwYPXXqbu6Jbit+dih6xwU3OyHwkBJP9aKMHzOM6ec=; b=d55X9MGFfMtx/ydirFYx06E895YGM9sSXvEID5Fcylt4ltn35KPsqvXEWju237l/w1 vmUHJZKIFDjN4BM/98kp2GgKQIfkBxSEhNDTbUnUrYriUbOf66kYxDYqP4/oEjIxoqOQ PNYL4cqlHYCEqs3jyrImsQu+tNTSfdogx7pAg4tNnnwXi3OURr+9xX20wOLHxVI70zmC VlXPhO6CSztVVpbBwBsgy4XkmgSuMwisuHNVOxoJUgowtTRQXbNy49mbR+wzBWOPjrQr Cf+mm4N3c4pGzQ5IV9xdRD1dqdJDey7GMd3yaeooZj00eGoFvFulkHo+o1BneypdlSIO /g2A== X-Gm-Message-State: AOAM530NuaPnQmGWBlcF7pc/C13KI07Ivw0cVnOimjAo3mIDcs2aV9tk wSdUpDdtX7KgXKjOpruo4XwJFB0bx5fLhFWG4R8vYVjBfN+1 X-Google-Smtp-Source: ABdhPJwfvyxW/EjELvpHYZMhxwKdeNbMg8UUCWaHwdC4LaRjb0YPxjphmEUMlB28B1tXx3++LCtXW7OHL2Nr9e7POvZcNL8/y7C6 MIME-Version: 1.0 X-Received: by 2002:a6b:8f10:: with SMTP id r16mr2597910iod.165.1600939585140; Thu, 24 Sep 2020 02:26:25 -0700 (PDT) Date: Thu, 24 Sep 2020 02:26:25 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000477d5705b00bcbec@google.com> Subject: memory leak in ieee80211_check_fast_xmit From: syzbot To: davem@davemloft.net, johannes@sipsolutions.net, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: c9c9e6a4 Merge tag 'trace-v5.9-rc5-2' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13735209900000 kernel config: https://syzkaller.appspot.com/x/.config?x=23de0cdbdd5f681b dashboard link: https://syzkaller.appspot.com/bug?extid=2e293dbd67de2836ba42 compiler: gcc (GCC) 10.1.0-syz 20200507 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1762d887900000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=174c88ad900000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+2e293dbd67de2836ba42@syzkaller.appspotmail.com BUG: memory leak unreferenced object 0xffff888115177200 (size 96): comm "kworker/u4:0", pid 7, jiffies 4294961513 (age 31.340s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 1e 0a 04 00 00 00 08 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 50 50 ..............PP backtrace: [<000000007aa91ff2>] kmemdup+0x23/0x50 mm/util.c:127 [<0000000000c381ce>] kmemdup include/linux/string.h:479 [inline] [<0000000000c381ce>] ieee80211_check_fast_xmit+0x33c/0x590 net/mac80211/tx.c:3103 [<00000000b3947435>] sta_info_move_state+0xbf/0x3e0 net/mac80211/sta_info.c:2024 [<000000008c85d507>] sta_info_pre_move_state net/mac80211/sta_info.h:706 [inline] [<000000008c85d507>] ieee80211_ibss_finish_sta+0x113/0x180 net/mac80211/ibss.c:587 [<00000000cf829a1b>] ieee80211_ibss_work+0xfc/0x430 net/mac80211/ibss.c:1699 [<00000000beb78158>] ieee80211_iface_work+0x3d0/0x440 net/mac80211/iface.c:1438 [<000000001352d51f>] process_one_work+0x213/0x4d0 kernel/workqueue.c:2269 [<000000005e0a2f8f>] worker_thread+0x58/0x4b0 kernel/workqueue.c:2415 [<000000007ed18dcd>] kthread+0x164/0x190 kernel/kthread.c:292 [<000000005a47bdfe>] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 BUG: memory leak unreferenced object 0xffff888115177200 (size 96): comm "kworker/u4:0", pid 7, jiffies 4294961513 (age 31.420s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 1e 0a 04 00 00 00 08 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 50 50 ..............PP backtrace: [<000000007aa91ff2>] kmemdup+0x23/0x50 mm/util.c:127 [<0000000000c381ce>] kmemdup include/linux/string.h:479 [inline] [<0000000000c381ce>] ieee80211_check_fast_xmit+0x33c/0x590 net/mac80211/tx.c:3103 [<00000000b3947435>] sta_info_move_state+0xbf/0x3e0 net/mac80211/sta_info.c:2024 [<000000008c85d507>] sta_info_pre_move_state net/mac80211/sta_info.h:706 [inline] [<000000008c85d507>] ieee80211_ibss_finish_sta+0x113/0x180 net/mac80211/ibss.c:587 [<00000000cf829a1b>] ieee80211_ibss_work+0xfc/0x430 net/mac80211/ibss.c:1699 [<00000000beb78158>] ieee80211_iface_work+0x3d0/0x440 net/mac80211/iface.c:1438 [<000000001352d51f>] process_one_work+0x213/0x4d0 kernel/workqueue.c:2269 [<000000005e0a2f8f>] worker_thread+0x58/0x4b0 kernel/workqueue.c:2415 [<000000007ed18dcd>] kthread+0x164/0x190 kernel/kthread.c:292 [<000000005a47bdfe>] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 BUG: memory leak unreferenced object 0xffff888115177200 (size 96): comm "kworker/u4:0", pid 7, jiffies 4294961513 (age 31.500s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 1e 0a 04 00 00 00 08 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 50 50 ..............PP backtrace: [<000000007aa91ff2>] kmemdup+0x23/0x50 mm/util.c:127 [<0000000000c381ce>] kmemdup include/linux/string.h:479 [inline] [<0000000000c381ce>] ieee80211_check_fast_xmit+0x33c/0x590 net/mac80211/tx.c:3103 [<00000000b3947435>] sta_info_move_state+0xbf/0x3e0 net/mac80211/sta_info.c:2024 [<000000008c85d507>] sta_info_pre_move_state net/mac80211/sta_info.h:706 [inline] [<000000008c85d507>] ieee80211_ibss_finish_sta+0x113/0x180 net/mac80211/ibss.c:587 [<00000000cf829a1b>] ieee80211_ibss_work+0xfc/0x430 net/mac80211/ibss.c:1699 [<00000000beb78158>] ieee80211_iface_work+0x3d0/0x440 net/mac80211/iface.c:1438 [<000000001352d51f>] process_one_work+0x213/0x4d0 kernel/workqueue.c:2269 [<000000005e0a2f8f>] worker_thread+0x58/0x4b0 kernel/workqueue.c:2415 [<000000007ed18dcd>] kthread+0x164/0x190 kernel/kthread.c:292 [<000000005a47bdfe>] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 BUG: memory leak unreferenced object 0xffff888115177200 (size 96): comm "kworker/u4:0", pid 7, jiffies 4294961513 (age 31.580s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 1e 0a 04 00 00 00 08 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 50 50 ..............PP backtrace: [<000000007aa91ff2>] kmemdup+0x23/0x50 mm/util.c:127 [<0000000000c381ce>] kmemdup include/linux/string.h:479 [inline] [<0000000000c381ce>] ieee80211_check_fast_xmit+0x33c/0x590 net/mac80211/tx.c:3103 [<00000000b3947435>] sta_info_move_state+0xbf/0x3e0 net/mac80211/sta_info.c:2024 [<000000008c85d507>] sta_info_pre_move_state net/mac80211/sta_info.h:706 [inline] [<000000008c85d507>] ieee80211_ibss_finish_sta+0x113/0x180 net/mac80211/ibss.c:587 [<00000000cf829a1b>] ieee80211_ibss_work+0xfc/0x430 net/mac80211/ibss.c:1699 [<00000000beb78158>] ieee80211_iface_work+0x3d0/0x440 net/mac80211/iface.c:1438 [<000000001352d51f>] process_one_work+0x213/0x4d0 kernel/workqueue.c:2269 [<000000005e0a2f8f>] worker_thread+0x58/0x4b0 kernel/workqueue.c:2415 [<000000007ed18dcd>] kthread+0x164/0x190 kernel/kthread.c:292 [<000000005a47bdfe>] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 BUG: memory leak unreferenced object 0xffff888115177200 (size 96): comm "kworker/u4:0", pid 7, jiffies 4294961513 (age 31.660s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 1e 0a 04 00 00 00 08 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 50 50 ..............PP backtrace: [<000000007aa91ff2>] kmemdup+0x23/0x50 mm/util.c:127 [<0000000000c381ce>] kmemdup include/linux/string.h:479 [inline] [<0000000000c381ce>] ieee80211_check_fast_xmit+0x33c/0x590 net/mac80211/tx.c:3103 [<00000000b3947435>] sta_info_move_state+0xbf/0x3e0 net/mac80211/sta_info.c:2024 [<000000008c85d507>] sta_info_pre_move_state net/mac80211/sta_info.h:706 [inline] [<000000008c85d507>] ieee80211_ibss_finish_sta+0x113/0x180 net/mac80211/ibss.c:587 [<00000000cf829a1b>] ieee80211_ibss_work+0xfc/0x430 net/mac80211/ibss.c:1699 [<00000000beb78158>] ieee80211_iface_work+0x3d0/0x440 net/mac80211/iface.c:1438 [<000000001352d51f>] process_one_work+0x213/0x4d0 kernel/workqueue.c:2269 [<000000005e0a2f8f>] worker_thread+0x58/0x4b0 kernel/workqueue.c:2415 [<000000007ed18dcd>] kthread+0x164/0x190 kernel/kthread.c:292 [<000000005a47bdfe>] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 BUG: memory leak unreferenced object 0xffff888115177200 (size 96): comm "kworker/u4:0", pid 7, jiffies 4294961513 (age 31.740s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 1e 0a 04 00 00 00 08 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 50 50 ..............PP backtrace: [<000000007aa91ff2>] kmemdup+0x23/0x50 mm/util.c:127 [<0000000000c381ce>] kmemdup include/linux/string.h:479 [inline] [<0000000000c381ce>] ieee80211_check_fast_xmit+0x33c/0x590 net/mac80211/tx.c:3103 [<00000000b3947435>] sta_info_move_state+0xbf/0x3e0 net/mac80211/sta_info.c:2024 [<000000008c85d507>] sta_info_pre_move_state net/mac80211/sta_info.h:706 [inline] [<000000008c85d507>] ieee80211_ibss_finish_sta+0x113/0x180 net/mac80211/ibss.c:587 [<00000000cf829a1b>] ieee80211_ibss_work+0xfc/0x430 net/mac80211/ibss.c:1699 [<00000000beb78158>] ieee80211_iface_work+0x3d0/0x440 net/mac80211/iface.c:1438 [<000000001352d51f>] process_one_work+0x213/0x4d0 kernel/workqueue.c:2269 [<000000005e0a2f8f>] worker_thread+0x58/0x4b0 kernel/workqueue.c:2415 [<000000007ed18dcd>] kthread+0x164/0x190 kernel/kthread.c:292 [<000000005a47bdfe>] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 BUG: memory leak unreferenced object 0xffff888115177200 (size 96): comm "kworker/u4:0", pid 7, jiffies 4294961513 (age 31.820s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 1e 0a 04 00 00 00 08 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 50 50 ..............PP backtrace: [<000000007aa91ff2>] kmemdup+0x23/0x50 mm/util.c:127 [<0000000000c381ce>] kmemdup include/linux/string.h:479 [inline] [<0000000000c381ce>] ieee80211_check_fast_xmit+0x33c/0x590 net/mac80211/tx.c:3103 [<00000000b3947435>] sta_info_move_state+0xbf/0x3e0 net/mac80211/sta_info.c:2024 [<000000008c85d507>] sta_info_pre_move_state net/mac80211/sta_info.h:706 [inline] [<000000008c85d507>] ieee80211_ibss_finish_sta+0x113/0x180 net/mac80211/ibss.c:587 [<00000000cf829a1b>] ieee80211_ibss_work+0xfc/0x430 net/mac80211/ibss.c:1699 [<00000000beb78158>] ieee80211_iface_work+0x3d0/0x440 net/mac80211/iface.c:1438 [<000000001352d51f>] process_one_work+0x213/0x4d0 kernel/workqueue.c:2269 [<000000005e0a2f8f>] worker_thread+0x58/0x4b0 kernel/workqueue.c:2415 [<000000007ed18dcd>] kthread+0x164/0x190 kernel/kthread.c:292 [<000000005a47bdfe>] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 BUG: memory leak unreferenced object 0xffff888115177200 (size 96): comm "kworker/u4:0", pid 7, jiffies 4294961513 (age 31.900s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 1e 0a 04 00 00 00 08 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 50 50 ..............PP backtrace: [<000000007aa91ff2>] kmemdup+0x23/0x50 mm/util.c:127 [<0000000000c381ce>] kmemdup include/linux/string.h:479 [inline] [<0000000000c381ce>] ieee80211_check_fast_xmit+0x33c/0x590 net/mac80211/tx.c:3103 [<00000000b3947435>] sta_info_move_state+0xbf/0x3e0 net/mac80211/sta_info.c:2024 [<000000008c85d507>] sta_info_pre_move_state net/mac80211/sta_info.h:706 [inline] [<000000008c85d507>] ieee80211_ibss_finish_sta+0x113/0x180 net/mac80211/ibss.c:587 [<00000000cf829a1b>] ieee80211_ibss_work+0xfc/0x430 net/mac80211/ibss.c:1699 [<00000000beb78158>] ieee80211_iface_work+0x3d0/0x440 net/mac80211/iface.c:1438 [<000000001352d51f>] process_one_work+0x213/0x4d0 kernel/workqueue.c:2269 [<000000005e0a2f8f>] worker_thread+0x58/0x4b0 kernel/workqueue.c:2415 [<000000007ed18dcd>] kthread+0x164/0x190 kernel/kthread.c:292 [<000000005a47bdfe>] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches