All of lore.kernel.org
 help / color / mirror / Atom feed
From: syzbot <syzbot+2e293dbd67de2836ba42@syzkaller.appspotmail.com>
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
Subject: memory leak in ieee80211_check_fast_xmit
Date: Thu, 24 Sep 2020 02:26:25 -0700	[thread overview]
Message-ID: <000000000000477d5705b00bcbec@google.com> (raw)

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

                 reply	other threads:[~2020-09-24  9:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=000000000000477d5705b00bcbec@google.com \
    --to=syzbot+2e293dbd67de2836ba42@syzkaller.appspotmail.com \
    --cc=davem@davemloft.net \
    --cc=johannes@sipsolutions.net \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=syzkaller-bugs@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.