lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <tencent_FF866D3C2E416D7494ACE9BEED56CD88780A@qq.com> Date: Wed, 27 Dec 2023 10:27:05 +0800 From: Edward Adam Davis <eadavis@...com> To: syzbot+3eff5e51bf1db122a16e@...kaller.appspotmail.com Cc: linux-kernel@...r.kernel.org, syzkaller-bugs@...glegroups.com Subject: Re: [syzbot] [perf?] WARNING in perf_event_open please test WARNING in perf_event_open #syz test https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 39676dfe5233 diff --git a/mm/madvise.c b/mm/madvise.c index 912155a94ed5..8fd3e00af243 100644 --- a/mm/madvise.c +++ b/mm/madvise.c @@ -1405,6 +1405,9 @@ int do_madvise(struct mm_struct *mm, unsigned long start, size_t len_in, int beh if (!madvise_behavior_valid(behavior)) return -EINVAL; + if (!start) + return -EINVAL; + if (!PAGE_ALIGNED(start)) return -EINVAL; len = PAGE_ALIGN(len_in);
Powered by blists - more mailing lists