NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/55509: npm install -g electron crashes the kernel



Minimal reproducer:

#include <sys/types.h>
#include <stdio.h>
#include <unistd.h>

#define _LIBC
#include <sys/ksem.h>

int
main(int argc, char **argv)
{
	intptr_t id;

	id = 0;
	_ksem_init(0xffff, &id);
	setreuid(0xee00, 0);

	return 0;
}

Credit:

https://syzkaller.appspot.com/bug?extid=9d04b3ef2ca180ef9b06


Home | Main Index | Thread Index | Old Index