From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 22 08:10:23 2015 Return-Path: Delivered-To: freebsd-hackers@nevdull.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4C136786; Mon, 22 Jun 2015 08:10:23 +0000 (UTC) (envelope-from tuchalia@gmail.com) Received: from mail-la0-x230.google.com (mail-la0-x230.google.com [IPv6:2a00:1450:4010:c03::230]) (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 C5289E17; Mon, 22 Jun 2015 08:10:22 +0000 (UTC) (envelope-from tuchalia@gmail.com) Received: by lacny3 with SMTP id ny3so104739827lac.3; Mon, 22 Jun 2015 01:10:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type; bh=qNLFWYMuY2rZSMuMHk0gv70rFxxj41gTBYh5GX3zh/A=; b=CeBGPM6Fp+Xm8P0BZyDXPot5TWWVMA9q0CTmF+I8h8ToaAMFtUDGYbOOo70GvBTcWB i1Rtf5fuNHsqq0aEAab5iTPCa8GlbxV0942wah4OPE29jghKnBNyZrgGACvGjCA652/L ptHqf10WUVblk/slwW5oUZXZTv+uZQ0UG1u/Jb6FfbKZYgNP3zvIwMFWVu4yOkZBk8zs NJzPeZ7Yet15KDzcvzXHdJuyOeTOIlUaoAgumk4sfgRhgWcJwBlSkyxhh+y2Azi+pNyy x/JwB5trWvcZbMGsdmjBYBtQLc9JiMAUw+b2sRGw4fRsDEmcjll/y31xpEPn3GYKERRE yFgw== X-Received: by 10.152.239.131 with SMTP id vs3mr29503081lac.102.1434960620777; Mon, 22 Jun 2015 01:10:20 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Daniel Peyrolon Date: Mon, 22 Jun 2015 08:10:10 +0000 Message-ID: Subject: Re: How to test for memory corruption ? To: Pratik Singhal , freebsd-hackers , FreeBSD Questions Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jun 2015 08:10:23 -0000 Hi, I have absolutely no idea, but maybe you can use DTrace for this? You could also print the location for each memory write. El s=C3=A1b., 20 de junio de 2015 9:20, Pratik Singhal escribi=C3=B3: > Hello, I have written code for adding support for DMA transfers for > Allwinner A10 SoC (Cubieboard 1) in MMC driver/ > > I have tried transferring files to/from mmc card and verified that files > are copied fine. > Although, many times the kernel panics suddenly, after I transfer files. > This does not happen If I use PIO to transfer data (PIO's code is tested > and already committed to ~HEAD). Panics don't occur in the statements > written for DMA transfer. > > I am suspecting that the problem is that the DMA transfer apart from > writing where it is required, is overwriting other parts of the memory > also. > > Is there any way, I can verify that this is/this is not the case ? > > Thank you, > Pratik Singhal > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " > --=20 Daniel From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 23 01:59:30 2015 Return-Path: Delivered-To: freebsd-hackers@nevdull.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1D637B30 for ; Tue, 23 Jun 2015 01:59:30 +0000 (UTC) (envelope-from Suresh.Gumpula@netapp.com) Received: from mx143.netapp.com (mx143.netapp.com [216.240.21.24]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "mx143.netapp.com", Issuer "VeriSign Class 3 International Server CA - G3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id DCDF3AE1; Tue, 23 Jun 2015 01:59:29 +0000 (UTC) (envelope-from Suresh.Gumpula@netapp.com) X-IronPort-AV: E=Sophos;i="5.13,663,1427785200"; d="scan'208";a="50023946" Received: from hioexcmbx05-prd.hq.netapp.com ([10.122.105.38]) by mx143-out.netapp.com with ESMTP; 22 Jun 2015 18:58:19 -0700 Received: from HIOEXCMBX06-PRD.hq.netapp.com (10.122.105.39) by hioexcmbx05-prd.hq.netapp.com (10.122.105.38) with Microsoft SMTP Server (TLS) id 15.0.1076.9; Mon, 22 Jun 2015 18:58:19 -0700 Received: from HIOEXCMBX06-PRD.hq.netapp.com ([::1]) by hioexcmbx06-prd.hq.netapp.com ([fe80::559a:ad5b:4641:c02e%21]) with mapi id 15.00.1076.000; Mon, 22 Jun 2015 18:58:19 -0700 From: "Gumpula, Suresh" To: Pedro Giffuni , "Gumpula, Suresh" , FreeBSD Hackers , Oliver Pinter Subject: Re: Use after free check for all private zones too Thread-Topic: Use after free check for all private zones too Thread-Index: AQHQhopTQv6FyLvjkE2duWbwV+tNQZ1shvcA///F0gCAAFBhgP//y7qAgBMZ/QCAGLhEgIADUl2AgB5H2IA= Date: Tue, 23 Jun 2015 01:58:19 +0000 Message-ID: References: <556F1E41.4090301@FreeBSD.org> In-Reply-To: <556F1E41.4090301@FreeBSD.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.4.7.141117 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.122.56.79] Content-Type: text/plain; charset="us-ascii" Content-ID: <34219281DED1104898A32A2B530208D8@hq.netapp.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2015 01:59:30 -0000 Hi, Could someone please review and approve this change ? Thanks Suresh On 6/3/15, 11:33 AM, "Pedro Giffuni" wrote: >Hello; > >I have created a Code Differential for this: > >https://reviews.freebsd.org/D2725 > >Feel free to review, enhance, comment or even commit ;). > >Pedro. From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 23 07:04:44 2015 Return-Path: Delivered-To: freebsd-hackers@nevdull.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6BFABD9D for ; Tue, 23 Jun 2015 07:04:44 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "gold.funkthat.com", Issuer "gold.funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1CCE6B6B; Tue, 23 Jun 2015 07:04:43 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.14.5/8.14.5) with ESMTP id t5N74hIe045772 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 23 Jun 2015 00:04:43 -0700 (PDT) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.14.5/8.14.5/Submit) id t5N74gxL045771; Tue, 23 Jun 2015 00:04:42 -0700 (PDT) (envelope-from jmg) Date: Tue, 23 Jun 2015 00:04:42 -0700 From: John-Mark Gurney To: "Gumpula, Suresh" Cc: Pedro Giffuni , FreeBSD Hackers , Oliver Pinter Subject: Re: Use after free check for all private zones too Message-ID: <20150623070442.GK96349@funkthat.com> References: <556F1E41.4090301@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 9.1-PRERELEASE amd64 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (gold.funkthat.com [127.0.0.1]); Tue, 23 Jun 2015 00:04:43 -0700 (PDT) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2015 07:04:44 -0000 Gumpula, Suresh wrote this message on Tue, Jun 23, 2015 at 01:58 +0000: > Could someone please review and approve this change ? I tried to look at the raw diff to verify that there aren't any line length issues (that I noticed in your first patch), but reviews doesn't seem to have it.. I've tried to contact the admins to figure this out.. Also, it looks like the v_addpollinfo issue has not been fixed... I have created: https://reviews.freebsd.org/D2890 D2890 should go in before this change... > On 6/3/15, 11:33 AM, "Pedro Giffuni" wrote: > > >Hello; > > > >I have created a Code Differential for this: > > > >https://reviews.freebsd.org/D2725 > > > >Feel free to review, enhance, comment or even commit ;). -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-hackers@freebsd.org Sat Jun 27 22:02:59 2015 Return-Path: Delivered-To: freebsd-hackers@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 C58ED98DE59 for ; Sat, 27 Jun 2015 22:02:59 +0000 (UTC) (envelope-from sbruno@ignoranthack.me) Received: from mail.ignoranthack.me (ignoranthack.me [199.102.79.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ABA4B1513 for ; Sat, 27 Jun 2015 22:02:56 +0000 (UTC) (envelope-from sbruno@ignoranthack.me) Received: from [192.168.200.214] (unknown [50.136.155.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id 43C5D193DA3 for ; Sat, 27 Jun 2015 22:02:49 +0000 (UTC) Message-ID: <558F1D88.8010407@ignoranthack.me> Date: Sat, 27 Jun 2015 15:02:48 -0700 From: Sean Bruno Reply-To: sbruno@freebsd.org User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: "freebsd-hackers@freebsd.org" Subject: sysctl(3) man page examples Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jun 2015 22:02:59 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 sysctl(3) specifies three easy to understand examples. The first appears to depend on a FreeBSD libc() function or library that is missing, "printkproc()". Is this a deprecated/deleted function from the past? The second example works just fine. The third accesss user.cs_path which seems to be empty across all platforms. I'm not sure if we should replace this example with something more meaningful(that is to say that its proper for user.cs_path to be empty) or if there is a bug causing user.cs_path to be empty. sean -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJVjx2IXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5kMRsIAKLX678aJ0TDAKWA8Q3Rsf9z EQ1o0E7wdqnfjoNLVfje+xGAJaYBDUnKTtJX3CRORd+h9kVV2RjgTS0PhZSW95xb 9dM+NU6J1mOzahechEV+7SvSie1J/EpUYh4Px2CAMXWp/b6XFJsrr96bwERgf5+s cSBK2f/YjA6j03dG+oIS4ZbpUPvFb1EfaOtibq05ToN4L9I7R9hzfyC5UwGRTsrj x4rBvbGEDDy2orlZqzDQWK2VnpZdp0Lp4u/UI6rJn3krRJgK2IXgzkkYaTufz7gh BWFUCdluGtOuRsFdWim8obW1m8ZYbPVPL14+icibsJlNBy4L693p9gK0EQQlUzE= =Wyv7 -----END PGP SIGNATURE-----