Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Dec 2007 15:58:53 +0900
From:      "Hidetoshi Shimokawa" <simokawa@FreeBSD.ORG>
To:        "Sean Bruno" <sbruno@miralink.com>
Cc:        freebsd-firewire@freebsd.org
Subject:   Re: sbp_targ memory leak
Message-ID:  <626eb4530712162258s4dfe1448o1102f20a623d3f95@mail.gmail.com>
In-Reply-To: <476610E5.2060108@miralink.com>
References:  <476610E5.2060108@miralink.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks for the tracking of the problem.
Could you resend the patch in unified or context diff?

Thanks,

On 12/17/07, Sean Bruno <sbruno@miralink.com> wrote:
> In trying to understand and make sbp_targ functional, I've noted that
> the code seems to lose track of how many page tables it allocates for
> any give orbi.  I had to add a lot of debugging code around the
> malloc/free's to find out what was going on, and I'm not sure what the
> code is supposed to do in this case.
>
> Please review the patch diff at --> http://consultcsg.com/RELENG_6.diff
>
> And the log at -->http://consultcsg.com/malloc_failure.txt
>
> This clearly shows that a new page table is being allocated for the same
> IO operation, which should be fine, but then a second malloc is
> attempted and stored in the same variable effectively leaking the data.
> I'm sure that this type of operation is supposed to be possible, but my
> interpretation of SBP-2 is suspect!  :)
>
> Sean
>
>
>


-- 
/\ Hidetoshi Shimokawa
\/  simokawa@FreeBSD.ORG



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?626eb4530712162258s4dfe1448o1102f20a623d3f95>