Bug#364529: Info received (was [Pkg-cryptsetup-devel] Bug#364529:
cryptsetup: non-terminal input truncated at 32 characters)
Kees Cook
kees at outflux.net
Wed Apr 26 22:15:28 UTC 2006
Sorry, here are better ltraces, done with "-s 1024" so you can see the
entire string getting read/strlen'd, etc.
--
Kees Cook @outflux.net
-------------- next part --------------
__libc_start_main(0x804def0, 4, 0xbfce8e34, 0x808a3c0, 0x808a430 <unfinished ...>
setlocale(6, "") = "C"
bindtextdomain("cryptsetup-luks", "/usr/share/locale") = "/usr/share/locale"
textdomain("cryptsetup-luks") = "cryptsetup-luks"
poptGetContext(0x808af90, 4, 0xbfce8e34, 0x80984c0, 0) = 0x809d080
poptSetOtherOptionHelp(0x809d080, 0x808b410, 0xbfce8e34, 0x80984c0, 0) = 0x809d270
poptGetNextOpt(0x809d080, 0x808b410, 0xbfce8e34, 0x80984c0, 0) = -1
poptGetArg(0x809d080, 0x808b410, 0xbfce8e34, 0x80984c0, 0) = 0xbfce9e90
strcmp("create", "create") = 0
poptGetArgs(0x809d080, 0xbfce9e90, 0xbfce8e34, 0x80984c0, 0) = 0x809d21c
memset(0xbfce8c88, '\000', 84) = 0xbfce8c88
mlockall(3, 0xbfce8c88, 0xbfce9e90, 0, 0xbfce8ce8) = 0
dm_log_init(0x804a4e0, 0x8098108, 0xbfce8c68, 0x804c4e9, 0) = 0xb7fc34e0
memset(0xbfce8bc0, '\000', 84) = 0xbfce8bc0
dm_task_create(10, 0, 0, 0, 0) = 0x809d2a0
dm_task_set_name(0x809d2a0, 0xbfce9e97, 0, 0, 0) = 1
dm_task_run(0x809d2a0, 0xbfce9e97, 0, 0, 0) = 1
dm_task_get_info(0x809d2a0, 0xbfce8b38, 0, 0, 0) = 1
dm_task_destroy(0x809d2a0, 0xbfce8b38, 0, 0, 0) = 177
open64("/dev/mapper/datavg-test", 0, 026776632554) = 4
ioctl(4, 4702, 0xbfce8b80) = 0
ioctl(4, -2147216782, 0xbfce8b78) = 0
close(4) = 0
signal(14, 0x804b140) = NULL
alarm(0) = 0
isatty(0) = 1
getpass("Enter passphrase: ") = "abcdefghijklmnopqrstuvwxyz0123456789"
strlen("abcdefghijklmnopqrstuvwxyz0123456789") = 36
malloc(41) = 0x809d320
strcpy(0x809d324, "abcdefghijklmnopqrstuvwxyz0123456789") = 0x809d324
strlen("abcdefghijklmnopqrstuvwxyz0123456789") = 36
memset(0x809d2a0, '\000', 36) = 0x809d2a0
strlen("abcdefghijklmnopqrstuvwxyz0123456789") = 36
malloc(36) = 0x809d560
malloc(24) = 0x809d588
malloc(24) = 0x809d5a8
malloc(24) = 0x809d5c8
malloc(24) = 0x809d5e8
malloc(24) = 0x809d608
malloc(24) = 0x809d628
malloc(24) = 0x809d648
malloc(24) = 0x809d668
malloc(24) = 0x809d688
malloc(24) = 0x809d6a8
malloc(24) = 0x809d6c8
malloc(24) = 0x809d6e8
malloc(24) = 0x809d708
malloc(24) = 0x809d728
malloc(24) = 0x809d748
malloc(24) = 0x809d768
malloc(24) = 0x809d788
malloc(24) = 0x809d7a8
malloc(24) = 0x809d7c8
malloc(24) = 0x809d7e8
malloc(24) = 0x809d808
malloc(24) = 0x809d828
malloc(24) = 0x809d848
malloc(24) = 0x809d868
malloc(24) = 0x809d888
malloc(24) = 0x809d8a8
malloc(24) = 0x809d8c8
malloc(24) = 0x809d8e8
malloc(24) = 0x809d908
__ctype_b_loc() = 0xb7e1e6ac
__ctype_b_loc() = 0xb7e1e6ac
__ctype_b_loc() = 0xb7e1e6ac
__ctype_b_loc() = 0xb7e1e6ac
__ctype_b_loc() = 0xb7e1e6ac
__ctype_b_loc() = 0xb7e1e6ac
malloc(256) = 0x809d928
malloc(144) = 0x809da30
__strdup(0x80950f7, 0xbfce8b58, 0xb7fac8b8, 0xb7fac960, 5) = 0x809dac8
__ctype_tolower_loc() = 0xb7e1e6a4
__strdup(0x8094e20, 0xbfce8b58, 0xb7fac8b8, 0xb7fac960, 5) = 0x809dad8
__ctype_tolower_loc() = 0xb7e1e6a4
__strdup(0x8094e3e, 0xbfce8b58, 0xb7fac8b8, 0xb7fac960, 5) = 0x809dae8
__ctype_tolower_loc() = 0xb7e1e6a4
__strdup(0x8094cfb, 0xbfce8b58, 0xb7fac8b8, 0xb7fac960, 5) = 0x809daf8
__ctype_tolower_loc() = 0xb7e1e6a4
__strdup(0x8095119, 0xbfce8b58, 0xb7fac8b8, 0xb7fac960, 5) = 0x809db08
__ctype_tolower_loc() = 0xb7e1e6a4
__strdup(0x8095100, 0xbfce8b58, 0xb7fac8b8, 0xb7fac960, 5) = 0x809db18
__ctype_tolower_loc() = 0xb7e1e6a4
__strdup(0x8094ccf, 0xbfce8b58, 0xb7fac8b8, 0xb7fac960, 5) = 0x809db28
__ctype_tolower_loc() = 0xb7e1e6a4
__strdup(0x8094cb8, 0xbfce8b58, 0xb7fac8b8, 0xb7fac960, 5) = 0x809db38
__ctype_tolower_loc() = 0xb7e1e6a4
__strdup(0x8094c98, 0xbfce8b58, 0xb7fac8b8, 0xb7fac960, 5) = 0x809db48
__ctype_tolower_loc() = 0xb7e1e6a4
__strdup(0x8094ca5, 0xbfce8b58, 0xb7fac8b8, 0xb7fac960, 5) = 0x809db60
__ctype_tolower_loc() = 0xb7e1e6a4
__strdup(0x8094cb2, 0xbfce8b58, 0xb7fac8b8, 0xb7fac960, 5) = 0x809db78
__ctype_tolower_loc() = 0xb7e1e6a4
free(0x809d928) = <void>
strcmp("tiger192", "ripemd160") = 1
strcmp("sha384", "ripemd160") = 1
strcmp("sha512", "ripemd160") = 1
strcmp("sha256", "ripemd160") = 1
strcmp("sha1", "ripemd160") = 1
strcmp("ripemd160", "ripemd160") = 0
malloc(1068) = 0x809db88
malloc(108) = 0x809d928
strlen("abcdefghijklmnopqrstuvwxyz0123456789") = 36
memcpy(0xbfce8a3c, "abcdefghijklmnopqrstuvwxyz0123456789\200", 64) = 0xbfce8a3c
memcpy(0x809d564, "\255\231T\301"\250\237\357}.", 20) = 0x809d564
memset(0x809d938, '\000', 92) = 0x809d938
strlen("abcdefghijklmnopqrstuvwxyz0123456789") = 36
memcpy(0xbfce8a3c, "Aabcdefghijklmnopqrstuvwxyz0123456789\200", 64) = 0xbfce8a3c
memcpy(0x809d578, "\213+\002Q\251/\331\337\016e\247\002", 12) = 0x809d578
free(0x809d928) = <void>
free(0x809db88) = <void>
free(0x809dac8) = <void>
free(0x809dad8) = <void>
free(0x809dae8) = <void>
free(0x809daf8) = <void>
free(0x809db08) = <void>
free(0x809db18) = <void>
free(0x809db28) = <void>
free(0x809db38) = <void>
free(0x809db48) = <void>
free(0x809db60) = <void>
free(0x809db78) = <void>
free(0x809da30) = <void>
memset(0x809d324, '\000', 37) = 0x809d324
free(0x809d320) = <void>
malloc(69) = 0x809d928
sprintf("ad", "%02x", 0xad) = 2
sprintf("99", "%02x", 0x99) = 2
sprintf("54", "%02x", 0x54) = 2
sprintf("c1", "%02x", 0xc1) = 2
sprintf("22", "%02x", 0x22) = 2
sprintf("a8", "%02x", 0xa8) = 2
sprintf("9f", "%02x", 0x9f) = 2
sprintf("ef", "%02x", 0xef) = 2
sprintf("7d", "%02x", 0x7d) = 2
sprintf("2e", "%02x", 0x2e) = 2
sprintf("00", "%02x", 0) = 2
sprintf("da", "%02x", 0xda) = 2
sprintf("bf", "%02x", 0xbf) = 2
sprintf("26", "%02x", 0x26) = 2
sprintf("a7", "%02x", 0xa7) = 2
sprintf("16", "%02x", 0x16) = 2
sprintf("59", "%02x", 0x59) = 2
sprintf("f7", "%02x", 0xf7) = 2
sprintf("03", "%02x", 0x3) = 2
sprintf("d5", "%02x", 0xd5) = 2
sprintf("8b", "%02x", 0x8b) = 2
sprintf("2b", "%02x", 0x2b) = 2
sprintf("02", "%02x", 0x2) = 2
sprintf("51", "%02x", 0x51) = 2
sprintf("a9", "%02x", 0xa9) = 2
sprintf("2f", "%02x", 0x2f) = 2
sprintf("d9", "%02x", 0xd9) = 2
sprintf("df", "%02x", 0xdf) = 2
sprintf("0e", "%02x", 0xe) = 2
sprintf("65", "%02x", 0x65) = 2
sprintf("a7", "%02x", 0xa7) = 2
sprintf("02", "%02x", 0x2) = 2
strlen("ad9954c122a89fef7d2e00dabf26a71659f703d58b2b0251a92fd9df0e65a702") = 64
strlen("aes") = 3
strlen("/dev/mapper/datavg-test") = 23
malloc(158) = 0x809d978
sprintf("aes ad9954c122a89fef7d2e00dabf26a71659f703d58b2b0251a92fd9df0e65a702 0 /dev/mapper/datavg-test 0", "%s %s %llu %s %llu", "aes", "ad9954c122a89fef7d2e00dabf26a71659f703d58b2b0251a92fd9df0e65a702", ...) = 96
memset(0x809d92c, '\000', 65) = 0x809d92c
free(0x809d928) = <void>
dm_task_create(0, 0x808a57c, 0x808ad35, 0x809d92c, 0) = 0x809da20
dm_task_set_name(0x809da20, 0xbfce9e97, 0x808ad35, 0x809d92c, 0) = 1
dm_task_add_target(0x809da20, 0, 0, 0x200000, 0) = 1
dm_task_run(0x809da20, 0, 0, 0x200000, 0) = 1
dm_task_get_info(0x809da20, 0xbfce8b64, 0, 0x200000, 0) = 1
memset(0x809d97c, '\000', 154) = 0x809d97c
free(0x809d978) = <void>
dm_task_destroy(0x809da20, 0xbfce8b64, 0, 0x200000, 0) = 0
dm_log_init(0, 0x8098108, 0xbfce8b18, 0x804a58b, 0x809da20) = 0xb7fc34e0
dm_lib_release(0, 0x8098108, 0xbfce8b18, 0x804a58b, 0x809da20) = 0xb7fc34e4
dm_log_init(0x804a4e0, 0x8098108, 0xbfce8b98, 0x804a8fc, 0x809da20) = 0xb7fc34e0
memset(0x809d564, '\000', 32) = 0x809d564
free(0x809d560) = <void>
dm_log_init(0, 0x8098108, 0xbfce8c68, 0x804c515, 0) = 0xb7fc34e0
dm_lib_release(0, 0x8098108, 0xbfce8c68, 0x804c515, 0) = 0xb7fc34e4
+++ exited (status 0) +++
-------------- next part --------------
__libc_start_main(0x804def0, 4, 0xbfcbb874, 0x808a3c0, 0x808a430 <unfinished ...>
setlocale(6, "") = "C"
bindtextdomain("cryptsetup-luks", "/usr/share/locale") = "/usr/share/locale"
textdomain("cryptsetup-luks") = "cryptsetup-luks"
poptGetContext(0x808af90, 4, 0xbfcbb874, 0x80984c0, 0) = 0x809d080
poptSetOtherOptionHelp(0x809d080, 0x808b410, 0xbfcbb874, 0x80984c0, 0) = 0x809d270
poptGetNextOpt(0x809d080, 0x808b410, 0xbfcbb874, 0x80984c0, 0) = -1
poptGetArg(0x809d080, 0x808b410, 0xbfcbb874, 0x80984c0, 0) = 0xbfcbbe90
strcmp("create", "create") = 0
poptGetArgs(0x809d080, 0xbfcbbe90, 0xbfcbb874, 0x80984c0, 0) = 0x809d21c
memset(0xbfcbb6c8, '\000', 84) = 0xbfcbb6c8
mlockall(3, 0xbfcbb6c8, 0xbfcbbe90, 0, 0xbfcbb728) = 0
dm_log_init(0x804a4e0, 0x8098108, 0xbfcbb6a8, 0x804c4e9, 0) = 0xb7f954e0
memset(0xbfcbb600, '\000', 84) = 0xbfcbb600
dm_task_create(10, 0, 0, 0, 0) = 0x809d2a0
dm_task_set_name(0x809d2a0, 0xbfcbbe97, 0, 0, 0) = 1
dm_task_run(0x809d2a0, 0xbfcbbe97, 0, 0, 0) = 1
dm_task_get_info(0x809d2a0, 0xbfcbb578, 0, 0, 0) = 1
dm_task_destroy(0x809d2a0, 0xbfcbb578, 0, 0, 0) = 177
open64("/dev/mapper/datavg-test", 0, 026776052554) = 4
ioctl(4, 4702, 0xbfcbb5c0) = 0
ioctl(4, -2147216782, 0xbfcbb5b8) = 0
close(4) = 0
signal(14, 0x804b140) = NULL
alarm(0) = 0
isatty(0) = 0
malloc(132) = 0x809d2a0
read(0, "a", 1) = 1
read(0, "b", 1) = 1
read(0, "c", 1) = 1
read(0, "d", 1) = 1
read(0, "e", 1) = 1
read(0, "f", 1) = 1
read(0, "g", 1) = 1
read(0, "h", 1) = 1
read(0, "i", 1) = 1
read(0, "j", 1) = 1
read(0, "k", 1) = 1
read(0, "l", 1) = 1
read(0, "m", 1) = 1
read(0, "n", 1) = 1
read(0, "o", 1) = 1
read(0, "p", 1) = 1
read(0, "q", 1) = 1
read(0, "r", 1) = 1
read(0, "s", 1) = 1
read(0, "t", 1) = 1
read(0, "u", 1) = 1
read(0, "v", 1) = 1
read(0, "w", 1) = 1
read(0, "x", 1) = 1
read(0, "y", 1) = 1
read(0, "z", 1) = 1
read(0, "0", 1) = 1
read(0, "1", 1) = 1
read(0, "2", 1) = 1
read(0, "3", 1) = 1
read(0, "4", 1) = 1
read(0, "5", 1) = 1
alarm(0) = 0
malloc(36) = 0x809d328
malloc(24) = 0x809d560
malloc(24) = 0x809d580
malloc(24) = 0x809d5a0
malloc(24) = 0x809d5c0
malloc(24) = 0x809d5e0
malloc(24) = 0x809d600
malloc(24) = 0x809d620
malloc(24) = 0x809d640
malloc(24) = 0x809d660
malloc(24) = 0x809d680
malloc(24) = 0x809d6a0
malloc(24) = 0x809d6c0
malloc(24) = 0x809d6e0
malloc(24) = 0x809d700
malloc(24) = 0x809d720
malloc(24) = 0x809d740
malloc(24) = 0x809d760
malloc(24) = 0x809d780
malloc(24) = 0x809d7a0
malloc(24) = 0x809d7c0
malloc(24) = 0x809d7e0
malloc(24) = 0x809d800
malloc(24) = 0x809d820
malloc(24) = 0x809d840
malloc(24) = 0x809d860
malloc(24) = 0x809d880
malloc(24) = 0x809d8a0
malloc(24) = 0x809d8c0
malloc(24) = 0x809d8e0
__ctype_b_loc() = 0xb7df06ac
__ctype_b_loc() = 0xb7df06ac
__ctype_b_loc() = 0xb7df06ac
__ctype_b_loc() = 0xb7df06ac
__ctype_b_loc() = 0xb7df06ac
__ctype_b_loc() = 0xb7df06ac
malloc(256) = 0x809d900
malloc(144) = 0x809da08
__strdup(0x80950f7, 0xbfcbb598, 0x809d320, 1, 5) = 0x809daa0
__ctype_tolower_loc() = 0xb7df06a4
__strdup(0x8094e20, 0xbfcbb598, 0x809d320, 1, 5) = 0x809dab0
__ctype_tolower_loc() = 0xb7df06a4
__strdup(0x8094e3e, 0xbfcbb598, 0x809d320, 1, 5) = 0x809dac0
__ctype_tolower_loc() = 0xb7df06a4
__strdup(0x8094cfb, 0xbfcbb598, 0x809d320, 1, 5) = 0x809dad0
__ctype_tolower_loc() = 0xb7df06a4
__strdup(0x8095119, 0xbfcbb598, 0x809d320, 1, 5) = 0x809dae0
__ctype_tolower_loc() = 0xb7df06a4
__strdup(0x8095100, 0xbfcbb598, 0x809d320, 1, 5) = 0x809daf0
__ctype_tolower_loc() = 0xb7df06a4
__strdup(0x8094ccf, 0xbfcbb598, 0x809d320, 1, 5) = 0x809db00
__ctype_tolower_loc() = 0xb7df06a4
__strdup(0x8094cb8, 0xbfcbb598, 0x809d320, 1, 5) = 0x809db10
__ctype_tolower_loc() = 0xb7df06a4
__strdup(0x8094c98, 0xbfcbb598, 0x809d320, 1, 5) = 0x809db20
__ctype_tolower_loc() = 0xb7df06a4
__strdup(0x8094ca5, 0xbfcbb598, 0x809d320, 1, 5) = 0x809db38
__ctype_tolower_loc() = 0xb7df06a4
__strdup(0x8094cb2, 0xbfcbb598, 0x809d320, 1, 5) = 0x809db50
__ctype_tolower_loc() = 0xb7df06a4
free(0x809d900) = <void>
strcmp("tiger192", "ripemd160") = 1
strcmp("sha384", "ripemd160") = 1
strcmp("sha512", "ripemd160") = 1
strcmp("sha256", "ripemd160") = 1
strcmp("sha1", "ripemd160") = 1
strcmp("ripemd160", "ripemd160") = 0
malloc(1068) = 0x809db60
malloc(108) = 0x809d900
strlen("abcdefghijklmnopqrstuvwxyz012345") = 32
memcpy(0xbfcbb47c, "abcdefghijklmnopqrstuvwxyz012345\200", 64) = 0xbfcbb47c
memcpy(0x809d32c, "\2006u\212\374\177\304\213Y\3446\250\317\360\024*\t\310\276Y", 20) = 0x809d32c
memset(0x809d910, '\000', 92) = 0x809d910
strlen("abcdefghijklmnopqrstuvwxyz012345") = 32
memcpy(0xbfcbb47c, "Aabcdefghijklmnopqrstuvwxyz012345\200", 64) = 0xbfcbb47c
memcpy(0x809d340, "^\025\314\030\001\016;aF`\374H", 12) = 0x809d340
free(0x809d900) = <void>
free(0x809db60) = <void>
free(0x809daa0) = <void>
free(0x809dab0) = <void>
free(0x809dac0) = <void>
free(0x809dad0) = <void>
free(0x809dae0) = <void>
free(0x809daf0) = <void>
free(0x809db00) = <void>
free(0x809db10) = <void>
free(0x809db20) = <void>
free(0x809db38) = <void>
free(0x809db50) = <void>
free(0x809da08) = <void>
memset(0x809d2a4, '\000', 128) = 0x809d2a4
free(0x809d2a0) = <void>
malloc(69) = 0x809d2a0
sprintf("80", "%02x", 0x80) = 2
sprintf("36", "%02x", 0x36) = 2
sprintf("75", "%02x", 0x75) = 2
sprintf("8a", "%02x", 0x8a) = 2
sprintf("fc", "%02x", 0xfc) = 2
sprintf("7f", "%02x", 0x7f) = 2
sprintf("c4", "%02x", 0xc4) = 2
sprintf("8b", "%02x", 0x8b) = 2
sprintf("59", "%02x", 0x59) = 2
sprintf("e4", "%02x", 0xe4) = 2
sprintf("36", "%02x", 0x36) = 2
sprintf("a8", "%02x", 0xa8) = 2
sprintf("cf", "%02x", 0xcf) = 2
sprintf("f0", "%02x", 0xf0) = 2
sprintf("14", "%02x", 0x14) = 2
sprintf("2a", "%02x", 0x2a) = 2
sprintf("09", "%02x", 0x9) = 2
sprintf("c8", "%02x", 0xc8) = 2
sprintf("be", "%02x", 0xbe) = 2
sprintf("59", "%02x", 0x59) = 2
sprintf("5e", "%02x", 0x5e) = 2
sprintf("15", "%02x", 0x15) = 2
sprintf("cc", "%02x", 0xcc) = 2
sprintf("18", "%02x", 0x18) = 2
sprintf("01", "%02x", 0x1) = 2
sprintf("0e", "%02x", 0xe) = 2
sprintf("3b", "%02x", 0x3b) = 2
sprintf("61", "%02x", 0x61) = 2
sprintf("46", "%02x", 0x46) = 2
sprintf("60", "%02x", 0x60) = 2
sprintf("fc", "%02x", 0xfc) = 2
sprintf("48", "%02x", 0x48) = 2
strlen("8036758afc7fc48b59e436a8cff0142a09c8be595e15cc18010e3b614660fc48") = 64
strlen("aes") = 3
strlen("/dev/mapper/datavg-test") = 23
malloc(158) = 0x809d900
sprintf("aes 8036758afc7fc48b59e436a8cff0142a09c8be595e15cc18010e3b614660fc48 0 /dev/mapper/datavg-test 0", "%s %s %llu %s %llu", "aes", "8036758afc7fc48b59e436a8cff0142a09c8be595e15cc18010e3b614660fc48", ...) = 96
memset(0x809d2a4, '\000', 65) = 0x809d2a4
free(0x809d2a0) = <void>
dm_task_create(0, 0x808a57c, 0x808ad35, 0x809d2a4, 0) = 0x809d2a0
dm_task_set_name(0x809d2a0, 0xbfcbbe97, 0x808ad35, 0x809d2a4, 0) = 1
dm_task_add_target(0x809d2a0, 0, 0, 0x200000, 0) = 1
dm_task_run(0x809d2a0, 0, 0, 0x200000, 0) = 1
dm_task_get_info(0x809d2a0, 0xbfcbb5a4, 0, 0x200000, 0) = 1
memset(0x809d904, '\000', 154) = 0x809d904
free(0x809d900) = <void>
dm_task_destroy(0x809d2a0, 0xbfcbb5a4, 0, 0x200000, 0) = 137
dm_log_init(0, 0x8098108, 0xbfcbb558, 0x804a58b, 0x809d2a0) = 0xb7f954e0
dm_lib_release(0, 0x8098108, 0xbfcbb558, 0x804a58b, 0x809d2a0) = 0xb7f954e4
dm_log_init(0x804a4e0, 0x8098108, 0xbfcbb5d8, 0x804a8fc, 0x809d2a0) = 0xb7f954e0
memset(0x809d32c, '\000', 32) = 0x809d32c
free(0x809d328) = <void>
dm_log_init(0, 0x8098108, 0xbfcbb6a8, 0x804c515, 0) = 0xb7f954e0
dm_lib_release(0, 0x8098108, 0xbfcbb6a8, 0x804c515, 0) = 0xb7f954e4
+++ exited (status 0) +++
More information about the Pkg-cryptsetup-devel
mailing list