From owner-freebsd-pf@freebsd.org Mon Feb 27 12:08:14 2017 Return-Path: Delivered-To: freebsd-pf@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 F1F5FCEEBB1 for ; Mon, 27 Feb 2017 12:08:14 +0000 (UTC) (envelope-from basarevych@gmail.com) Received: from mail-io0-x22b.google.com (mail-io0-x22b.google.com [IPv6:2607:f8b0:4001:c06::22b]) (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 BDDD37B7 for ; Mon, 27 Feb 2017 12:08:14 +0000 (UTC) (envelope-from basarevych@gmail.com) Received: by mail-io0-x22b.google.com with SMTP id j18so29909525ioe.2 for ; Mon, 27 Feb 2017 04:08:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=B+cq9j99ntFLFiSUw+fq5ITLMD+2xEGRI+41CWtP15s=; b=jTlGPSgJAiOVMMjZNg/1z3qoQkeOCzzMzKXU+eIfCYnF47Fx1gv/k8A2eZ7naBYMf8 tgSfIWZ+QGDwZVIelZ4NwQ9rw/tsz3sNSm7ko0HGcUembjj7tBwm4P3YoRuVlGLxoKJY 3GEmG4dqS25rDkfMQUnYH15nWD77rRFg2WORiwo67kWPdaQBAH1KR+W64COQ4zVh4KoY Go9/6ubi0DB/DAferwQ68P4E/C9h4/A4kYcgkAwdJJLbz2ppICVcLNyABE7CMTq0BNgH UucBZp+hcnw2NwknSb4RMdEZ0TEjSyCAbkGQyyrH2yF+DlYhqE4V9UxOvGHkqJnhxDZU ilWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=B+cq9j99ntFLFiSUw+fq5ITLMD+2xEGRI+41CWtP15s=; b=SlL18vhoPGG5l097886e+TWx0KyMHL7KeHzocsonQ/3rDD743NbVyZHapX4FLpagwn NemZLT6POVct96N5ElLJHiW/XNiWwoueZ7pKvcUIEAe2l1nJ+VlXEbCU4cxf2Rf1If/w tk50pN0XH9ydjEmBQKuJVTGeY8wXdVz25N9oSQFh3hR4s9HLP4auluFxdpJSGtfhXsLG T5Mk6rfslrPYvKfNky6YMztnc9r9yfTT+EQ4S+pGUoCV3od4cI2qSEpMHG244uPPE4oM Qapn38GTPObFSoLSmzFtBahT2BpOLh3/ux+OJf5oJ+8j53gleZmt4qA82VGp4uWQLzyi wawg== X-Gm-Message-State: AMke39kO5qUu6LIWyucy4Oloctz5wJOnJZj1UmV9GJgjWNEWX1nOimvhN2qusA2dZ/m9ugvw0BJfu7xh+gX8LQ== X-Received: by 10.107.165.146 with SMTP id o140mr13273310ioe.42.1488197293957; Mon, 27 Feb 2017 04:08:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.39.75 with HTTP; Mon, 27 Feb 2017 04:08:13 -0800 (PST) From: Ross Date: Mon, 27 Feb 2017 14:08:13 +0200 Message-ID: Subject: sonewconn: pru_attach() failed and kernel panic in PF To: freebsd-pf@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2017 12:08:15 -0000 Hello One of my machines panics almost every day. It is always like this: first there is a number of messages about "sonewconn: pcb 0xfffff80085478740: pru_attach() failed" at the same time and then panic. Here's an example: ... many lines of sonewconn ... Feb 27 13:41:43 core kernel: sonewconn: pcb 0xfffff8008575bcb0: pru_attach() failed Feb 27 13:41:43 core kernel: Feb 27 13:41:43 core kernel: Feb 27 13:41:43 core kernel: Fatal trap 12: page fault while in kernel mode Feb 27 13:41:43 core kernel: cpuid = 5; apic id = 0a Feb 27 13:41:43 core kernel: fault virtual address = 0x0 Feb 27 13:41:43 core kernel: fault code = supervisor write data, page not present Feb 27 13:41:43 core kernel: instruction pointer = 0x20:0xffffffff80e45383 Feb 27 13:41:43 core kernel: stack pointer = 0x28:0xfffffe00d7dd7f80 Feb 27 13:41:43 core kernel: frame pointer = 0x28:0xfffffe00d7dd7fe0 Feb 27 13:41:43 core kernel: code segment = base 0x0, limit 0xfffff, type 0x1b Feb 27 13:41:43 core kernel: = DPL 0, pres 1, long 1, def32 0, gran 1 Feb 27 13:41:43 core kernel: processor eflags = interrupt enabled, resume, IOPL = 0 Feb 27 13:41:43 core kernel: current process = 0 (em0 taskq) Feb 27 13:41:43 core kernel: trap number = 12 Feb 27 13:41:43 core kernel: panic: page fault Feb 27 13:41:43 core kernel: cpuid = 5 Feb 27 13:41:43 core kernel: KDB: stack backtrace: Feb 27 13:41:43 core kernel: #0 0xffffffff80b312c7 at kdb_backtrace+0x67 Feb 27 13:41:43 core kernel: #1 0xffffffff80ae5c92 at vpanic+0x182 Feb 27 13:41:43 core kernel: #2 0xffffffff80ae5b03 at panic+0x43 Feb 27 13:41:43 core kernel: #3 0xffffffff80fd6d51 at trap_fatal+0x351 Feb 27 13:41:43 core kernel: #4 0xffffffff80fd6f43 at trap_pfault+0x1e3 Feb 27 13:41:43 core kernel: #5 0xffffffff80fd64ec at trap+0x26c Feb 27 13:41:43 core kernel: #6 0xffffffff80fb9d61 at calltrap+0x8 Feb 27 13:41:43 core kernel: #7 0xffffffff80e4185e at uma_zfree_arg+0x4fe Feb 27 13:41:43 core kernel: #8 0xffffffff82442165 at pf_get_translation+0x2c5 Feb 27 13:41:43 core kernel: #9 0xffffffff824369d3 at pf_test_rule+0x2b3 Feb 27 13:41:43 core kernel: #10 0xffffffff82433e23 at pf_test+0x1a23 Feb 27 13:41:43 core kernel: #11 0xffffffff8244596d at pf_check_in+0x1d Feb 27 13:41:43 core kernel: #12 0xffffffff80c1e983 at pfil_run_hooks+0x83 Feb 27 13:41:43 core kernel: #13 0xffffffff80c82d7b at ip_input+0x3bb Feb 27 13:41:43 core kernel: #14 0xffffffff80c1d905 at netisr_dispatch_src+0xa5 Feb 27 13:41:43 core kernel: #15 0xffffffff80c0636a at ether_demux+0x12a Feb 27 13:41:43 core kernel: #16 0xffffffff80c06fc2 at ether_nh_input+0x322 Feb 27 13:41:43 core kernel: #17 0xffffffff80c1d905 at netisr_dispatch_src+0xa5 What should I do to fix it? PS This is FreeBSD 11.0-RELEASE