From owner-svn-src-all@freebsd.org Wed Nov 23 11:19:26 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BAB3CC50CBC; Wed, 23 Nov 2016 11:19:26 +0000 (UTC) (envelope-from cochard@gmail.com) Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5AF90C59; Wed, 23 Nov 2016 11:19:26 +0000 (UTC) (envelope-from cochard@gmail.com) Received: by mail-wm0-x22d.google.com with SMTP id t79so18982584wmt.0; Wed, 23 Nov 2016 03:19:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=ya4dk/gan+aP90Gxb0dr/DNpQ8ROp8ZsKc9sgXyiK/I=; b=BCqv3FMU2hjSDkrf0SCU9GAju0UnOc0/gzuQmiES38xIMjQPs8kU/XDj4JGFhOt1m1 ypgGBizrATfI8DHQu0g0VXjHAsyU3WOYJZTrRlSLpupR7Wj/T2fSMAUW/xBLyuVjEpyC 0/LKjDhc4+Dv3jtE5uzhmIEFm7juC0O2Rlo0xUg4j/Dt7Z0OfR2IhQxhUjnnjl1f4+fA OSfmhfqNhDCVnG1zhS3fweBU6GJ4qnt0r6fdOVZoMWXll+TezKBEX07hL8Woqt1ZMi52 fS19lxKcVuPUtddrCB+v0QyJ5FYz0UGSD64+d6h1wJGncNjwFUy0sZDNhUg9qBVy8oRG JiBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=ya4dk/gan+aP90Gxb0dr/DNpQ8ROp8ZsKc9sgXyiK/I=; b=dgu4QLyIULgTQs1/sIQw9cp3cg1ZXzYca4fItxAyKLzWSBqPdX966WmuUtpH3agAf3 yoXGA4uNjGQNArW+XbWeoT5Vm6ilKzckioT6ffstmT1B7B1SK6O27Md8As40KYjM8207 6Br+vYReU+RgkQb80kDJuy7sUghTGFEPXFq4HARlNdbY3uPGhZO/tkfOyY6sw+7JZo7u 0nCUyFNDQx5QF1ujFGK6/nNiwymFyy9BXvI5bAtimX/WYeA7QG7UActB1G9sX650v2ip zEzlTjWBm/2LmSRidCMIoe1e0yiKtRi7U39BJbH7nO98iUKRhlCK27ql7g23aRjQ702e eUMQ== X-Gm-Message-State: AKaTC00ou0hi8Bg7/urJWBcvwXYzg0p1ktcIufEYu87SywCwYFAbVwnU2vWY21RH46SSrU7YzFoqxkbnRah3Ig== X-Received: by 10.28.213.74 with SMTP id m71mr6748506wmg.39.1479899964357; Wed, 23 Nov 2016 03:19:24 -0800 (PST) MIME-Version: 1.0 Sender: cochard@gmail.com Received: by 10.194.28.7 with HTTP; Wed, 23 Nov 2016 03:19:03 -0800 (PST) In-Reply-To: <201610161413.u9GEDW91013522@repo.freebsd.org> References: <201610161413.u9GEDW91013522@repo.freebsd.org> From: =?UTF-8?Q?Olivier_Cochard=2DLabb=C3=A9?= Date: Wed, 23 Nov 2016 12:19:03 +0100 X-Google-Sender-Auth: CQ0fulPkvAJgUzPUvJRCsBLdMNg Message-ID: Subject: Re: svn commit: r307394 - in head: share/man/man4 sys/conf sys/dev/netmap sys/modules/netmap sys/net tools/tools/netmap To: Luigi Rizzo , Navdeep Parhar Cc: src-committers , svn-src-all , svn-src-head Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Nov 2016 11:19:26 -0000 =E2=80=8BHi, since this commit, my system panic when using netmap pkt-gen with a Chelsio T540-CR NIC (I didn't reproduce it with Intel NIC). - Latest known working system: FreeBSD 12.0-CURRENT #2 r307393 - Crash since: FreeBSD 12.0-CURRENT #1 r307396 On a fresh (r309034) system, here is he behavior: [root@SM]~# pkt-gen -i vcxl0 -f rx -w 4 133.571714 main [2546] interface is vcxl0 133.572025 main [2670] running on 1 cpus (have 8) 133.572377 extract_ip_range [462] range is 10.0.0.1:1234 to 10.0.0.1:1234 133.572393 extract_ip_range [462] range is 10.1.0.1:1234 to 10.1.0.1:1234 =E2=80=8BFatal trap 12: page fault while in kernel mode cpuid =3D 7; apic id =3D 0e fault virtual address =3D 0x0 fault code =3D supervisor write data, page not present instruction pointer =3D 0x20:0xffffffff80d5480e stack pointer =3D 0x28:0xfffffe0466ba61e0 frame pointer =3D 0x28:0xfffffe0466ba61e0 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 1900 (pkt-gen) trap number =3D 12 panic: page fault cpuid =3D 7 KDB: stack backtrace: #0 0xffffffff80971167 at kdb_backtrace+0x67 #1 0xffffffff80929b72 at vpanic+0x182 #2 0xffffffff809299e3 at panic+0x43 #3 0xffffffff80d56e84 at trap_fatal+0x324 #4 0xffffffff80d57083 at trap_pfault+0x1e3 #5 0xffffffff80d56683 at trap+0x273 #6 0xffffffff80d39261 at calltrap+0x8 #7 0xffffffff8047c664 at cxgbe_netmap_reg+0x2f4 #8 0xffffffff8063d48c at netmap_hw_reg+0x2c #9 0xffffffff8063a93b at netmap_do_regif+0x2ab #10 0xffffffff8063b564 at netmap_ioctl+0xba4 #11 0xffffffff8063f14e at freebsd_netmap_ioctl+0x3e #12 0xffffffff8085e47c at devfs_ioctl+0xac #13 0xffffffff80eee78d at VOP_IOCTL_APV+0x8d #14 0xffffffff80a08901 at vn_ioctl+0x131 #15 0xffffffff8085ecdf at devfs_ioctl_f+0x1f #16 0xffffffff8098ed7b at kern_ioctl+0x29b #17 0xffffffff8098ea71 at sys_ioctl+0x171 Uptime: 4m41s Dumping 1112 out of 16325 MB:..2%..11%..21%..31%..41%.. 51%..61%..71%..81%..91% Dump complete (kgdb) backtrace #0 doadump (textdump=3D) at pcpu.h:222 #1 0xffffffff809295f9 in kern_reboot (howto=3D260) at /usr/local/BSDRP/BSDRPcur/FreeBSD/src/sys/kern/kern_shutdown.c:366 #2 0xffffffff80929bab in vpanic (fmt=3D, ap=3D) at /usr/local/BSDRP/BSDRPcur/FreeBSD/src/sys/kern/kern_shutdown.c:759 #3 0xffffffff809299e3 in panic (fmt=3D0x0) at /usr/local/BSDRP/BSDRPcur/FreeBSD/src/sys/kern/kern_shutdown.c:690 #4 0xffffffff80d56e84 in trap_fatal (frame=3D0xfffffe0466ba6120, eva=3D0) = at /usr/local/BSDRP/BSDRPcur/FreeBSD/src/sys/amd64/amd64/trap.c:801 #5 0xffffffff80d57083 in trap_pfault (frame=3D0xfffffe0466ba6120, usermode=3D0) at /usr/local/BSDRP/BSDRPcur/FreeBSD/src/sys/amd64/amd64/trap.c:658 #6 0xffffffff80d56683 in trap (frame=3D0xfffffe0466ba6120) at /usr/local/BSDRP/BSDRPcur/FreeBSD/src/sys/amd64/amd64/trap.c:421 #7 0xffffffff80d39261 in calltrap () at /usr/local/BSDRP/BSDRPcur/FreeBSD/src/sys/amd64/amd64/exception.S:236 #8 0xffffffff80d5480e in bzero () at /usr/local/BSDRP/BSDRPcur/FreeBSD/src/sys/amd64/amd64/support.S:53 #9 0xffffffff8047c664 in cxgbe_netmap_reg (na=3D, on=3D) at /usr/local/BSDRP/BSDRPcur/FreeBSD/src/sys/dev/cxgbe/t4_netmap.c:102 #10 0xffffffff8063d48c in netmap_hw_reg (na=3D0xfffff800055ba400, onoff=3D1= ) at /usr/local/BSDRP/BSDRPcur/FreeBSD/src/sys/dev/netmap/netmap.c:2788 #11 0xffffffff8063a93b in netmap_do_regif (priv=3D, na=3D, ringid=3D, flags=3D) at /usr/local/BSDRP/BSDRPcur/FreeBSD/src/sys/dev/netmap/netmap.c:2050 #12 0xffffffff8063b564 in netmap_ioctl (priv=3D, cmd=3D, data=3D0xfffffe0466ba69b0 "vcxl0", td=3D0xfffff8001509a500) at /usr/local/BSDRP/BSDRPcur/FreeBSD/src/sys/dev/netmap/netmap.c:2257 #13 0xffffffff8063f14e in freebsd_netmap_ioctl (dev=3D= , cmd=3D3225184658, data=3D0xfffffe0466ba69b0 "vcxl0", ffla=3D, td=3D0xfffff8001509a500) at /usr/local/BSDRP/BSDRPcur/FreeBSD/src/sys/dev/netmap/netmap_freebsd.c:1389 #14 0xffffffff8085e47c in devfs_ioctl (ap=3D) at /usr/local/BSDRP/BSDRPcur/FreeBSD/src/sys/fs/devfs/devfs_vnops.c:831 #15 0xffffffff80eee78d in VOP_IOCTL_APV (vop=3D, a=3D) at vnode_if.c:1067 #16 0xffffffff80a08901 in vn_ioctl (fp=3D0xfffff80015191f00, com=3D, data=3D0xfffffe0466ba69b0, active_cred=3D0xfffff8019928bd00= , td=3D0x1) at vnode_if.h:448 #17 0xffffffff8085ecdf in devfs_ioctl_f (fp=3D0x0, com=3D131072, data=3D0x0= , cred=3D0x4000, td=3D0xfffff8001509a500) at /usr/local/BSDRP/BSDRPcur/FreeBSD/src/sys/fs/devfs/devfs_vnops.c:789 #18 0xffffffff8098ed7b in kern_ioctl (td=3D, fd=3D, com=3D3225184658, data=3D0xfffffe0466ba69b0 "vcxl0") at file.h:327 #19 0xffffffff8098ea71 in sys_ioctl (td=3D0xfffff8001509a500, uap=3D0xfffffe0466ba6b10) at /usr/local/BSDRP/BSDRPcur/FreeBSD/src/sys/kern/sys_generic.c:746 #20 0xffffffff80d57825 in amd64_syscall (td=3D, traced=3D0) at subr_syscall.c:135 #21 0xffffffff80d3954b in Xfast_syscall () at /usr/local/BSDRP/BSDRPcur/FreeBSD/src/sys/amd64/amd64/exception.S:396 #22 0x000000080100e5ca in ?? () =E2=80=8BRegards, Olivier=E2=80=8B