freebsd-skq/sys/compat
Hans Petter Selasky 8600ba1aa9 Make sure the selrecord() function is only called from within system
polling contexts in the LinuxKPI.

After the kqueue() support was added to the LinuxKPI in r319409 the
Linux poll file operation will be used outside the system file polling
callback function, which can cause a NULL-pointer panic inside
selrecord() because curthread->td_sel is set to NULL. This patch moves
the selrecord() call away from poll_wait() and to the system file poll
callback function in the LinuxKPI, which essentially wraps the Linux
one. This is similar to what the cuse(3) module is currently doing.
Refer to sys/fs/cuse/*.[ch] for more details.

MFC after:		1 week
Sponsored by:		Mellanox Technologies
2017-06-01 16:49:48 +00:00
..
cloudabi Include <sys/systm.h> to obtain the memcpy() prototype. 2017-03-24 07:09:33 +00:00
cloudabi32 Make file descriptor passing for CloudABI's recvmsg() work. 2017-03-22 19:20:39 +00:00
cloudabi64 Make file descriptor passing for CloudABI's recvmsg() work. 2017-03-22 19:20:39 +00:00
freebsd32 Followup to r318765 (capsicumize cpuset_*affinity) 2017-05-24 01:01:57 +00:00
ia32 With the removal of IA64, the only arch which uses ia32 compat is amd64. 2017-03-01 11:39:29 +00:00
linprocfs Fix linprocfs_docpuinfo() output regarding to what newer Linux apps expect 2017-05-06 17:37:01 +00:00
linsysfs Glibc get_nprocs() and get_nprocs_conf() uses the sysfs cpu infrastructure 2017-03-18 18:38:12 +00:00
linux On success, getrandom() Linux system call returns the number of bytes that 2017-05-28 07:40:09 +00:00
linuxkpi/common Make sure the selrecord() function is only called from within system 2017-06-01 16:49:48 +00:00
ndis Fix regression in ndis(4) after r286410. This adds a bunch of checks for 2017-05-22 20:00:01 +00:00
netbsd
x86bios x86bios: spelling fix in a comment. 2016-04-30 00:34:04 +00:00