Re: [syzbot] memory leak in cfg80211_inform_single_bss_frame_data

From: syzbot
Date: Wed Jul 13 2022 - 05:08:12 EST


Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
memory leak in regulatory_init_db

BUG: memory leak
unreferenced object 0xffff8881450dc880 (size 64):
comm "swapper/0", pid 1, jiffies 4294937974 (age 80.900s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
ff ff ff ff 00 00 00 00 00 00 00 00 30 30 00 00 ............00..
backtrace:
[<ffffffff86ff026b>] kmalloc include/linux/slab.h:600 [inline]
[<ffffffff86ff026b>] kzalloc include/linux/slab.h:733 [inline]
[<ffffffff86ff026b>] regulatory_hint_core net/wireless/reg.c:3216 [inline]
[<ffffffff86ff026b>] regulatory_init_db+0x22f/0x2de net/wireless/reg.c:4277
[<ffffffff81000fe3>] do_one_initcall+0x63/0x2e0 init/main.c:1295
[<ffffffff86f4eb10>] do_initcall_level init/main.c:1368 [inline]
[<ffffffff86f4eb10>] do_initcalls init/main.c:1384 [inline]
[<ffffffff86f4eb10>] do_basic_setup init/main.c:1403 [inline]
[<ffffffff86f4eb10>] kernel_init_freeable+0x255/0x2cf init/main.c:1610
[<ffffffff845b427a>] kernel_init+0x1a/0x1c0 init/main.c:1499
[<ffffffff8100225f>] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306

[ 88.


Tested on:

commit: b047602d Merge tag 'trace-v5.19-rc5' of git://git.kern..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=13d4252a080000
kernel config: https://syzkaller.appspot.com/x/.config?x=689b5fe7168a1260
dashboard link: https://syzkaller.appspot.com/bug?extid=7a942657a255a9d9b18a
compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2

Note: no patches were applied.