Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 399569 - sys-fs/multipath-tools -0.4.9-r3 buffer overflow in multipathd log_enqueue
Summary: sys-fs/multipath-tools -0.4.9-r3 buffer overflow in multipathd log_enqueue
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-21 01:31 UTC by Cheyenne Wills
Modified: 2012-05-25 21:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cheyenne Wills 2012-01-21 01:31:59 UTC
Hit a bug with multipath-tools that is fixed upstream 

http://git.kernel.org/gitweb.cgi?p=linux/storage/multipath/hare/multipath-tools.git;a=commit;h=e1d69df0cdd1627676501df3a533b25ffadaeff0

I have a workaround -- simply modified /etc/init.d/multipathd to use the -d option and then force it to run in the background.

Please see the above link to upstream on the details.  Simple one line fix to log.c


Captured strace of failure messages:

11879 write(2, "======= Backtrace: =========\n", 29) = 29
11879 writev(2, [{"/lib64/libc.so.6", 16}, {"(", 1}, {"__fortify_fail", 14}, {"+0x", 3}, {"37", 2}, {")", 1}, {"[0x", 3}, {"7fb9106b06f7", 12}, {"]\n", 2}], 9) = 54
11879 writev(2, [{"/lib64/libc.so.6", 16}, {"(", 1}, {"+0x", 3}, {"ee510", 5}, {")", 1}, {"[0x", 3}, {"7fb9106ae510", 12}, {"]\n", 2}], 8) = 43
11879 writev(2, [{"/lib64/libmultipath.so.0", 24}, {"(", 1}, {"log_enqueue", 11}, {"+0x", 3}, {"12b", 3}, {")", 1}, {"[0x", 3}, {"7fb91097419b", 12}, {"]\n", 2}], 9) = 60
11879 writev(2, [{"/lib64/libmultipath.so.0", 24}, {"(", 1}, {"log_safe", 8}, {"+0x", 3}, {"60", 2}, {")", 1}, {"[0x", 3}, {"7fb910973d00", 12}, {"]\n", 2}], 9) = 56
11879 writev(2, [{"/lib64/libmultipath.so.0", 24}, {"(", 1}, {"dlog", 4}, {"+0x", 3}, {"b6", 2}, {")", 1}, {"[0x", 3}, {"7fb910968ef6", 12}, {"]\n", 2}], 9) = 52
11879 writev(2, [{"/lib64/libmultipath.so.0", 24}, {"(", 1}, {"start_waiter_thread", 19}, {"+0x", 3}, {"11f", 3}, {")", 1}, {"[0x", 3}, {"7fb910978acf", 12}, {"]\n", 2}], 9) = 68
11879 writev(2, [{"multipathd", 10}, {"[0x", 3}, {"4079e2", 6}, {"]\n", 2}], 4) = 21
11879 writev(2, [{"multipathd", 10}, {"[0x", 3}, {"408118", 6}, {"]\n", 2}], 4) = 21
11879 writev(2, [{"/lib64/libc.so.6", 16}, {"(", 1}, {"__libc_start_main", 17}, {"+0x", 3}, {"fd", 2}, {")", 1}, {"[0x", 3}, {"7fb9105e209d", 12}, {"]\n", 2}], 9) = 57
11879 writev(2, [{"multipathd", 10}, {"[0x", 3}, {"4055d9", 6}, {"]\n", 2}], 4) = 21
Comment 1 Alexey Shvetsov archtester gentoo-dev 2012-05-25 21:48:18 UTC
Fixed in Cvs