Module Name: src Committed By: ozaki-r Date: Mon Jan 23 02:30:47 UTC 2017
Modified Files: src/sys/net: pfil.c Log Message: Add curlwp_bind It is necessary for example when we use tun(4). Without it the following panic occurs: panic: kernel diagnostic assertion "(kpreempt_disabled() || cpu_softintr_p() || ISSET(curlwp->l_pflag, LP_BOUND))" failed: file "/usr/src/sys/kern/subr_psref.c", line 291 passive references are CPU-local, but preemption is enabled and the caller is not in a softint or CPU-bound LWP Backtrace: vpanic() ch_voltag_convert_in() psref_release() pfil_run_arg.isra.0() if_initialize() if_attach() tun_clone_create() tunopen() cdev_open() spec_open() VOP_OPEN() vn_open() do_open() do_sys_openat() sys_open() syscall() To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 src/sys/net/pfil.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.