Re: head -r356109 on 32-bit powerpc (old PowerMac): Memory modified after free during late-stage of boot, most recently used by bus-sc

Mark Millard via freebsd-ppc <[email protected]>
Newsgroups gmane.os.freebsd.devel.ppc,gmane.os.freebsd.devel.hackers,gmane.os.freebsd.current
Message-ID <[email protected]>

On 2019-Dec-29, at 14:04, Hans Petter Selasky <hps at selasky.org> wrote:

> On 2019-12-29 22:53, Mark Millard via freebsd-hackers wrote:
>> 0xd2630510: at uma_zalloc_arg+0x1b4
>> 0xd2630540: at malloc+0xfc
>> 0xd2630580: at alloc_bounce_pages+0x7c
>> 0xd26305c0: at bus_dmamap_create+0x1e8
> 
> Do you know what drivers are using bounce pages?

No clue. Looking around a bit I see that there is:

        if (newtag->lowaddr < ptoa((vm_paddr_t)Maxmem) && newtag->iommu == NULL)
                newtag->flags |= BUS_DMA_COULD_BOUNCE;

        if (newtag->alignment > 1)
                newtag->flags |= BUS_DMA_COULD_BOUNCE;

in bus_dma_tag_create (in sys/powerpc/powerpc/busdma_machdep.c ).
But that does not indicate what all specifically might have met
one of those 2 conditions for some tag creation. (The material
is not familiar.)


===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)

_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.