[Bug 233377] [PowerPC64] Panic during high disk I/O activity

[email protected]
Newsgroups gmane.os.freebsd.devel.ppc
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233377

--- Comment #12 from Mark Johnston <[email protected]> ---
(In reply to Leandro Lupori from comment #11)
Prior to rXXXXXX, zone_alloc_bucket() did:

max = MIN(bucket->ub_entries, zone->uz_count);
bucket->ub_cnt = zone->uz_import(zone->uz_arg, bucket->ub_bucket,
    max, domain, flags);

However, the zone lock is not held at this point, so uz_count may change.  In
particular, since MIN is a macro that evaluates its arguments twice, I believe
it's possible for max to end up being larger than bucket->ub_entries, which
would result in a use-after-free.

r343026 fixed this problem as part of some refactoring, so that might explain
why you don't see it anymore.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[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.