mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
x86: Mark the trapframe as initialized in ipi_bitmap_handler()
Otherwise KASAN may generate false positives if the trapframe was written into a poisoned region of the stack. Reported by: pho Reported by: syzbot+ee60455cd58e6eed20c9@syzkaller.appspotmail.com Reported by: syzbot+be5f9df26426ace3a00c@syzkaller.appspotmail.com Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
5d243d41b1
commit
36226163fa
1 changed files with 3 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ __FBSDID("$FreeBSD$");
|
|||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/asan.h>
|
||||
#include <sys/bus.h>
|
||||
#include <sys/cons.h> /* cngetc() */
|
||||
#include <sys/cpuset.h>
|
||||
|
|
@ -1279,6 +1280,8 @@ ipi_bitmap_handler(struct trapframe frame)
|
|||
int cpu = PCPU_GET(cpuid);
|
||||
u_int ipi_bitmap;
|
||||
|
||||
kasan_mark(&frame, sizeof(frame), sizeof(frame), 0);
|
||||
|
||||
td = curthread;
|
||||
ipi_bitmap = atomic_readandclear_int(&cpuid_to_pcpu[cpu]->
|
||||
pc_ipi_bitmap);
|
||||
|
|
|
|||
Loading…
Reference in a new issue