Date: Wed, 10 Jun 2015 16:33:26 +0300 From: Ivan Klymenko <fidaj@ukr.net> To: Mateusz Guzik <mjg@FreeBSD.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r284215 - in head/sys: amd64/linux32 compat/linux compat/svr4 dev/drm2/i915 fs/fdescfs i386/ibcs2 i386/linux kern ofed/drivers/infiniband/core ofed/drivers/infiniband/hw/mthca sys vm Message-ID: <20150610163326.20ab3e0c@nonamehost.local> In-Reply-To: <201506101048.t5AAmD1O029382@svn.freebsd.org> References: <201506101048.t5AAmD1O029382@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Wed, 10 Jun 2015 10:48:13 +0000 (UTC) Mateusz Guzik <mjg@FreeBSD.org> =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=B2: > Author: mjg > Date: Wed Jun 10 10:48:12 2015 > New Revision: 284215 > URL: https://svnweb.freebsd.org/changeset/base/284215 >=20 > Log: > Implement lockless resource limits. > =20 > Use the same scheme implemented to manage credentials. > =20 > Code needing to look at process's credentials (as opposed to > thred's) is provided with *_proc variants of relevant functions. > =20 > Places which possibly had to take the proc lock anyway still use > the proc pointer to access limits. >=20 > Modified: > head/sys/amd64/linux32/linux32_machdep.c > head/sys/compat/linux/linux_misc.c > head/sys/compat/svr4/imgact_svr4.c > head/sys/compat/svr4/svr4_misc.c > head/sys/compat/svr4/svr4_resource.c > head/sys/dev/drm2/i915/i915_gem.c > head/sys/fs/fdescfs/fdesc_vfsops.c > head/sys/i386/ibcs2/ibcs2_misc.c > head/sys/i386/linux/imgact_linux.c > head/sys/i386/linux/linux_machdep.c > head/sys/kern/imgact_aout.c > head/sys/kern/imgact_elf.c > head/sys/kern/imgact_gzip.c > head/sys/kern/kern_descrip.c > head/sys/kern/kern_event.c > head/sys/kern/kern_exec.c > head/sys/kern/kern_fork.c > head/sys/kern/kern_proc.c > head/sys/kern/kern_resource.c > head/sys/kern/kern_sig.c > head/sys/kern/kern_syscalls.c > head/sys/kern/kern_thread.c > head/sys/kern/subr_uio.c > head/sys/kern/sysv_shm.c > head/sys/kern/tty_pts.c > head/sys/kern/uipc_sockbuf.c > head/sys/kern/vfs_vnops.c > head/sys/ofed/drivers/infiniband/core/umem.c > head/sys/ofed/drivers/infiniband/hw/mthca/mthca_memfree.c > head/sys/sys/proc.h > head/sys/sys/resourcevar.h > head/sys/sys/vnode.h > head/sys/vm/swap_pager.c > head/sys/vm/vm_map.c > head/sys/vm/vm_mmap.c > head/sys/vm/vm_pageout.c > head/sys/vm/vm_unix.c >=20 I have panic. I not sure that it refers to a specific commit. FreeBSD nonamehost.local 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r284215M: Wed= Jun 10 15:38:11 EEST 2015 ivan@nonamehost.local:/media/da0s1/obj/usr/s= rc/sys/mk11 amd64 panic: page fault GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain condition= s. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"... Unread portion of the kernel message buffer: Fatal trap 12: page fault while in kernel mode cpuid =3D 0; apic id =3D 00 fault virtual address =3D 0x80 fault code =3D supervisor read data, page not present instruction pointer =3D 0x20:0xffffffff809cfbfa stack pointer =3D 0x28:0xfffffe01aa4906c0 frame pointer =3D 0x28:0xfffffe01aa4906e0 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 4091 (npviewer.bin) trap number =3D 12 panic: page fault cpuid =3D 0 KDB: stack backtrace: #0 0xffffffff80a17c27 at kdb_backtrace+0x67 #1 0xffffffff809d3f79 at vpanic+0x189 #2 0xffffffff809d3de3 at panic+0x43 #3 0xffffffff80e73b35 at trap_fatal+0x355 #4 0xffffffff80e73e6e at trap_pfault+0x31e #5 0xffffffff80e734d4 at trap+0x464 #6 0xffffffff80e57422 at calltrap+0x8 #7 0xffffffff8097c942 at fdalloc+0x32 #8 0xffffffff8097cf95 at finstall+0x95 #9 0xffffffff80a99844 at kern_openat+0x3c4 #10 0xffffffff8229fe93 at linux_common_open+0xc3 #11 0xffffffff822a0068 at linux_open+0x58 #12 0xffffffff80f7408b at ia32_syscall+0x41b #13 0xffffffff80e57a05 at Xint0x80_syscall+0x95 Uptime: 29m1s Dumping 854 out of 6047 MB:..2%..12%..21%..32%..42%..51%..62%..72%..81%..92% Reading symbols from /bootpool/boot/kernel/fdescfs.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/fdescfs.ko.symbols Reading symbols from /bootpool/boot/kernel/linprocfs.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/linprocfs.ko.symbols Reading symbols from /bootpool/boot/kernel/linux_common.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/linux_common.ko.symbols Reading symbols from /bootpool/boot/kernel/linsysfs.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/linsysfs.ko.symbols Reading symbols from /bootpool/boot/kernel/zfs.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/zfs.ko.symbols Reading symbols from /bootpool/boot/kernel/opensolaris.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/opensolaris.ko.symbols Reading symbols from /bootpool/boot/kernel/coretemp.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/coretemp.ko.symbols Reading symbols from /bootpool/boot/kernel/ichwd.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/ichwd.ko.symbols Reading symbols from /bootpool/boot/kernel/cpuctl.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/cpuctl.ko.symbols Reading symbols from /bootpool/boot/kernel/aesni.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/aesni.ko.symbols Reading symbols from /bootpool/boot/kernel/crypto.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/crypto.ko.symbols Reading symbols from /bootpool/boot/kernel/cryptodev.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/cryptodev.ko.symbols Reading symbols from /bootpool/boot/kernel/sem.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/sem.ko.symbols Reading symbols from /bootpool/boot/kernel/accf_data.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/accf_data.ko.symbols Reading symbols from /bootpool/boot/kernel/accf_http.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/accf_http.ko.symbols Reading symbols from /bootpool/boot/kernel/accf_dns.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/accf_dns.ko.symbols Reading symbols from /bootpool/boot/kernel/h_ertt.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/h_ertt.ko.symbols Reading symbols from /bootpool/boot/kernel/cc_cdg.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/cc_cdg.ko.symbols Reading symbols from /bootpool/boot/kernel/cc_chd.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/cc_chd.ko.symbols Reading symbols from /bootpool/boot/kernel/cc_cubic.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/cc_cubic.ko.symbols Reading symbols from /bootpool/boot/kernel/cc_hd.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/cc_hd.ko.symbols Reading symbols from /bootpool/boot/kernel/cc_htcp.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/cc_htcp.ko.symbols Reading symbols from /bootpool/boot/kernel/cc_vegas.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/cc_vegas.ko.symbols Reading symbols from /bootpool/boot/kernel/aio.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/aio.ko.symbols Reading symbols from /bootpool/boot/kernel/tmpfs.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/tmpfs.ko.symbols Reading symbols from /bootpool/boot/kernel/fuse.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/fuse.ko.symbols Reading symbols from /bootpool/boot/kernel/acpi_hp.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/acpi_hp.ko.symbols Reading symbols from /bootpool/boot/kernel/acpi_wmi.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/acpi_wmi.ko.symbols Reading symbols from /bootpool/boot/kernel/acpi_video.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/acpi_video.ko.symbols Reading symbols from /bootpool/boot/kernel/linux.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/linux.ko.symbols Reading symbols from /bootpool/boot/kernel/i915.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/i915.ko.symbols Reading symbols from /bootpool/boot/kernel/drm.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/drm.ko.symbols Reading symbols from /bootpool/boot/kernel/i915kms.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/i915kms.ko.symbols Reading symbols from /bootpool/boot/kernel/drm2.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/drm2.ko.symbols Reading symbols from /bootpool/boot/kernel/iicbus.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/iicbus.ko.symbols Reading symbols from /bootpool/boot/kernel/iic.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/iic.ko.symbols Reading symbols from /bootpool/boot/kernel/iicbb.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/iicbb.ko.symbols Reading symbols from /bootpool/boot/kernel/smbus.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/smbus.ko.symbols Reading symbols from /bootpool/boot/kernel/smb.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/smb.ko.symbols Reading symbols from /bootpool/boot/kernel/ichsmb.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/ichsmb.ko.symbols Reading symbols from /bootpool/boot/kernel/snd_uaudio.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/snd_uaudio.ko.symbols Reading symbols from /boot/modules/cuse4bsd.ko...done. Loaded symbols for /boot/modules/cuse4bsd.ko Reading symbols from /bootpool/boot/kernel/ng_bt3c.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/ng_bt3c.ko.symbols Reading symbols from /bootpool/boot/kernel/netgraph.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/netgraph.ko.symbols Reading symbols from /bootpool/boot/kernel/ng_ubt.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/ng_ubt.ko.symbols Reading symbols from /bootpool/boot/kernel/ng_hci.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/ng_hci.ko.symbols Reading symbols from /bootpool/boot/kernel/ng_bluetooth.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/ng_bluetooth.ko.symbols Reading symbols from /bootpool/boot/kernel/ubtbcmfw.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/ubtbcmfw.ko.symbols Reading symbols from /bootpool/boot/kernel/cd9660_iconv.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/cd9660_iconv.ko.symbols Reading symbols from /bootpool/boot/kernel/libiconv.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/libiconv.ko.symbols Reading symbols from /bootpool/boot/kernel/wlan_xauth.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/wlan_xauth.ko.symbols Reading symbols from /bootpool/boot/kernel/wlan_acl.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/wlan_acl.ko.symbols Reading symbols from /bootpool/boot/kernel/libmchain.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/libmchain.ko.symbols Reading symbols from /bootpool/boot/kernel/ums.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/ums.ko.symbols Reading symbols from /boot/modules/vboxnetflt.ko...done. Loaded symbols for /boot/modules/vboxnetflt.ko Reading symbols from /boot/modules/vboxdrv.ko...done. Loaded symbols for /boot/modules/vboxdrv.ko Reading symbols from /bootpool/boot/kernel/ng_ether.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/ng_ether.ko.symbols Reading symbols from /boot/modules/vboxnetadp.ko...done. Loaded symbols for /boot/modules/vboxnetadp.ko Reading symbols from /bootpool/boot/kernel/ng_btsocket.ko.symbols...done. Loaded symbols for /bootpool/boot/kernel/ng_btsocket.ko.symbols Reading symbols from /usr/local/modules/rtc.ko...done. Loaded symbols for /usr/local/modules/rtc.ko #0 doadump (textdump=3D<value optimized out>) at pcpu.h:221 221 pcpu.h: No such file or directory. in pcpu.h (kgdb) #0 doadump (textdump=3D<value optimized out>) at pcpu.h:221 #1 0xffffffff809d3a7d in kern_reboot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:447 #2 0xffffffff809d3fb8 in vpanic (fmt=3D<value optimized out>,=20 ap=3D<value optimized out>) at /usr/src/sys/kern/kern_shutdown.c:744 #3 0xffffffff809d3de3 in panic (fmt=3D0x0) at /usr/src/sys/kern/kern_shutdown.c:675 #4 0xffffffff80e73b35 in trap_fatal (frame=3D<value optimized out>,=20 eva=3D<value optimized out>) at /usr/src/sys/amd64/amd64/trap.c:853 #5 0xffffffff80e73e6e in trap_pfault (frame=3D0xfffffe01aa490610,=20 usermode=3D<value optimized out>) at /usr/src/sys/amd64/amd64/trap.c:676 #6 0xffffffff80e734d4 in trap (frame=3D0xfffffe01aa490610) at /usr/src/sys/amd64/amd64/trap.c:426 #7 0xffffffff80e57422 in calltrap () at /usr/src/sys/amd64/amd64/exception.S:235 #8 0xffffffff809cfbfa in lim_cur (td=3D0xfffff8010185e4c0, which=3D8) at /usr/src/sys/kern/kern_resource.c:1209 #9 0xffffffff8097c942 in fdalloc (td=3D0xfffff8010185e4c0,=20 minfd=3D<value optimized out>, result=3D0xfffffe01aa4907dc) at /usr/src/sys/kern/kern_descrip.c:790 #10 0xffffffff8097cf95 in finstall (td=3D0xfffff8010185e4c0,=20 fp=3D0xfffff80139e89870, fd=3D0xfffffe01aa4907dc, flags=3D1, fcaps=3D0x= 0) at /usr/src/sys/kern/kern_descrip.c:1768 #11 0xffffffff80a99844 in kern_openat (td=3D0xfffff8010185e4c0, fd=3D-100,= =20 path=3D0xfffff80016832400 "/compat/linux/proc/stat", pathseg=3DUIO_SYSS= PACE,=20 flags=3D<value optimized out>, mode=3D<value optimized out>) at /usr/src/sys/kern/vfs_syscalls.c:1158 #12 0xffffffff8229fe93 in linux_common_open (td=3D0xfffff8010185e4c0, dirfd= =3D8,=20 path=3D0xfffff80016832400 "/compat/linux/proc/stat",=20 l_flags=3D<value optimized out>, mode=3D51) at /usr/src/sys/modules/linux/../../compat/linux/linux_file.c:134 #13 0xffffffff822a0068 in linux_open (td=3D<value optimized out>,=20 args=3D<value optimized out>) at /usr/src/sys/modules/linux/../../compat/linux/linux_file.c:211 #14 0xffffffff80f7408b in ia32_syscall (frame=3D0xfffffe01aa490ac0) at subr_syscall.c:133 #15 0xffffffff80e57a05 in Xint0x80_syscall () at ia32_exception.S:73 #16 0x00000000ffffe452 in ?? () Previous frame inner to this frame (corrupt stack?) Current language: auto; currently minimal (kgdb)=20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150610163326.20ab3e0c>