[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <db1c7ad3-5c9d-4597-811c-4b40b9ae2788@linux.dev>
Date: Sun, 16 Nov 2025 22:06:29 -0800
From: Yonghong Song <yonghong.song@...ux.dev>
To: Edward Adam Davis <eadavis@...com>,
syzbot+cf08c551fecea9fd1320@...kaller.appspotmail.com
Cc: andrii@...nel.org, ast@...nel.org, bpf@...r.kernel.org,
daniel@...earbox.net, eddyz87@...il.com, haoluo@...gle.com,
john.fastabend@...il.com, jolsa@...nel.org, kpsingh@...nel.org,
linux-kernel@...r.kernel.org, martin.lau@...ux.dev, sdf@...ichev.me,
song@...nel.org, syzkaller-bugs@...glegroups.com
Subject: Re: [PATCH] bpf: Plug a potential exclusive map memory leak
On 11/16/25 6:58 AM, Edward Adam Davis wrote:
> When excl_prog_hash is 0 and excl_prog_hash_size is non-zero, the map also
> needs to be freed. Otherwise, the map memory will not be reclaimed, just
> like the memory leak problem reported by syzbot [1].
>
> syzbot reported:
> BUG: memory leak
> backtrace (crc 7b9fb9b4):
> map_create+0x322/0x11e0 kernel/bpf/syscall.c:1512
> __sys_bpf+0x3556/0x3610 kernel/bpf/syscall.c:6131
>
> Fixes: baefdbdf6812 ("bpf: Implement exclusive map creation")
> Reported-by: syzbot+cf08c551fecea9fd1320@...kaller.appspotmail.com
> Closes: https://syzkaller.appspot.com/bug?extid=cf08c551fecea9fd1320
> Tested-by: syzbot+cf08c551fecea9fd1320@...kaller.appspotmail.com
> Signed-off-by: Edward Adam Davis <eadavis@...com>
Acked-by: Yonghong Song <yonghong.song@...ux.dev>
Powered by blists - more mailing lists