Bug 13210 - talloc magic protection incorrectly claims mixed version for use-after-free
Summary: talloc magic protection incorrectly claims mixed version for use-after-free
Status: RESOLVED FIXED
Alias: None
Product: TALLOC
Classification: Unclassified
Component: libtalloc (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-11 22:14 UTC by Andrew Bartlett
Modified: 2018-05-21 21:00 UTC (History)
1 user (show)

See Also:


Attachments
patch for master (4.65 KB, patch)
2018-01-11 22:21 UTC, Andrew Bartlett
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Bartlett 2018-01-11 22:14:13 UTC
When a talloc object is used after free the error message is wrong:

Bad talloc magic value - wrong talloc version used/mixed
Comment 1 Andrew Bartlett 2018-01-11 22:21:55 UTC
Created attachment 13901 [details]
patch for master
Comment 2 Timur Bakeyev 2018-05-21 20:42:18 UTC
(In reply to Andrew Bartlett from comment #1)

Andrew, did this patch ever hit the source tree? Would be nice to get it in, as we  getting:

PANIC (pid 36454): Bad talloc magic value - wrong talloc version used/mixed

somewhere in our product and I believe it's actually use after free.
Comment 3 Andrew Bartlett 2018-05-21 21:00:04 UTC
Yes, we released this in talloc 2.1.11 with master commit efe317c59204af076bb500ad904d2a5f6a961509 for Samba 4.8.