public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: syzbot <syzbot+c7f9b4282ce793ea2456@syzkaller.appspotmail.com>,
	davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
	linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org,
	netdev@vger.kernel.org, pabeni@redhat.com,
	syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [wireless?] [net?] memory leak in ieee80211_add_key
Date: Wed, 11 Oct 2023 08:59:04 +0200	[thread overview]
Message-ID: <844b47b618a2ef91f6dcfe2cb88ccd92ad278a6a.camel@sipsolutions.net> (raw)
In-Reply-To: <000000000000230b04060765c8d0@google.com>

On Tue, 2023-10-10 at 17:19 -0700, syzbot wrote:
> Hello,
> 
> syzbot found the following issue on:
> 
> HEAD commit:    af95dc6fdc25 Merge tag 'pci-v6.6-fixes-2' of git://git.ker..
> git tree:       upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=111f9141680000
> kernel config:  https://syzkaller.appspot.com/x/.config?x=92fc678f64486a09
> dashboard link: https://syzkaller.appspot.com/bug?extid=c7f9b4282ce793ea2456
> compiler:       gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
> syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=12874a7e680000
> C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=17eba911680000
> 
> Downloadable assets:
> disk image: https://storage.googleapis.com/syzbot-assets/8bc195198bd8/disk-af95dc6f.raw.xz
> vmlinux: https://storage.googleapis.com/syzbot-assets/769216d795c4/vmlinux-af95dc6f.xz
> kernel image: https://storage.googleapis.com/syzbot-assets/8ceb9e44a618/bzImage-af95dc6f.xz
> 
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by: syzbot+c7f9b4282ce793ea2456@syzkaller.appspotmail.com
> 
> executing program
> executing program
> BUG: memory leak
> unreferenced object 0xffff8881419b3000 (size 1024):
>   comm "syz-executor294", pid 5023, jiffies 4294944772 (age 13.090s)
>   hex dump (first 32 bytes):
>     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
>     00 00 00 00 00 00 00 00 18 30 9b 41 81 88 ff ff  .........0.A....
>   backtrace:
>     [<ffffffff8157491b>] __do_kmalloc_node mm/slab_common.c:1022 [inline]
>     [<ffffffff8157491b>] __kmalloc+0x4b/0x150 mm/slab_common.c:1036
>     [<ffffffff848575dc>] kmalloc include/linux/slab.h:603 [inline]
>     [<ffffffff848575dc>] kzalloc include/linux/slab.h:720 [inline]
>     [<ffffffff848575dc>] ieee80211_key_alloc+0x5c/0x590 net/mac80211/key.c:603
>     [<ffffffff8482b0d2>] ieee80211_add_key+0x162/0x540 net/mac80211/cfg.c:500

I think already fixed by
https://patchwork.kernel.org/project/linux-wireless/patch/20231005210917.13977-2-johannes@sipsolutions.net/
though the patch isn't in the tree yet - will take care of it later
today (I hope).

johannes

      reply	other threads:[~2023-10-11  6:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-11  0:19 [syzbot] [wireless?] [net?] memory leak in ieee80211_add_key syzbot
2023-10-11  6:59 ` Johannes Berg [this message]

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=844b47b618a2ef91f6dcfe2cb88ccd92ad278a6a.camel@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=syzbot+c7f9b4282ce793ea2456@syzkaller.appspotmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox