From owner-freebsd-current@freebsd.org Wed Aug 5 03:24:47 2015 Return-Path: Delivered-To: freebsd-current@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 8D2A59B36DD for ; Wed, 5 Aug 2015 03:24:47 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-io0-x236.google.com (mail-io0-x236.google.com [IPv6:2607:f8b0:4001:c06::236]) (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 5D48619D6 for ; Wed, 5 Aug 2015 03:24:47 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by ioeg141 with SMTP id g141so36990757ioe.3 for ; Tue, 04 Aug 2015 20:24:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=MYgxQRq/oyzPG1mR3+XUYpnnh9zxoIUmvU+X9jXEClU=; b=lJZ5p1xA56O/KTzDWMuCutSnEslRu/XglzbHnxJTZDvbZbTDoyULHrvDB9/gKx6aPB 5gpY5LC9vKcWRONYr6FvnSOSa03HWxTYQ6ZvZRg2bF/reUzZjVdfSsTxaDGfa3Dhl/nO 4L+NL4up6mDqgqFCAkuMvDzlEVLkQDNDLDU83KePeQZ0OLYIZFTmEH1RUd6Bb3Zyx3kb aC9Hc6hf2QCJnBbpS//E46O+Ert9wTcYuUmugIVK5vCP85iQGs/7wl6nteEk7frjqKB2 lVtZAZvPt6t52hU8PG93RhSgU4AKUUuHECeIqkssZ01GGgsvo0Eyu0kUdoRuXSSii7a4 K1HQ== X-Received: by 10.107.135.193 with SMTP id r62mr7271511ioi.29.1438745086278; Tue, 04 Aug 2015 20:24:46 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.136.200 with HTTP; Tue, 4 Aug 2015 20:24:26 -0700 (PDT) From: Ed Maste Date: Wed, 5 Aug 2015 03:24:26 +0000 X-Google-Sender-Auth: vMgZrD4dc9g360eH1yGDeCxQLbQ Message-ID: Subject: Memory modified after free, seemingly geli related To: FreeBSD Current Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Aug 2015 03:24:47 -0000 I've encountered a few memory modified after free panics recently, which seem to be from geli. I don't yet have any debugging to completely confirm it's geli, but it has not happened on my other test laptop which configured similarly but without geli. This has a few local patches from my to-commit-to-HEAD queue. FreeBSD volta 11.0-CURRENT FreeBSD 11.0-CURRENT #10 r284409+6a002d9(staging): Tue Jul 7 17:57:01 EDT 2015 panic: Memory modified after free 0xfffff80009d504d8(248) val=0 @ 0xfffff80009d50518 cpuid = 1 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe011414a880 vpanic() at vpanic+0x189/frame 0xfffffe011414a900 panic() at panic+0x43/frame 0xfffffe011414a960 trash_ctor() at trash_ctor+0x48/frame 0xfffffe011414a970 uma_zalloc_arg() at uma_zalloc_arg+0x573/frame 0xfffffe011414a9e0 g_clone_bio() at g_clone_bio+0x1d/frame 0xfffffe011414aa00 g_eli_start() at g_eli_start+0xbd/frame 0xfffffe011414aa30 g_io_schedule_down() at g_io_schedule_down+0xe6/frame 0xfffffe011414aa60 g_down_procbody() at g_down_procbody+0x7d/frame 0xfffffe011414aa70 fork_exit() at fork_exit+0x84/frame 0xfffffe011414aab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe011414aab0 --- trap 0, rip = 0, rsp = 0xfffffe011414ab70, rbp = 0 ---