[Devel] Problem with /dev/(u)random on 2.6.27
Łukasz Chrustek
lukasz at chrustek.net
Mon Feb 16 08:22:34 PST 2009
Hello,
According to this thread:
http://forum.openvz.org/index.php?t=msg&th=7079&start=0&
Does not working on 2.6.27 with applied patch http://bugzilla.openvz.org/show_bug.cgi?id=1162:
VE system: opensuse 10.3
command: strace certtool --generate-privkey --bits 512
select(4, [3], NULL, NULL, {3, 0}) = 1 (in [3], left {3, 0})
read(3, "H\fh\267l\'\234J\317WK5\366\331b\347\333\233\252\251\335!\243\305\331\220\211\267\7\366\24\272"..
., 120) = 120
select(4, [3], NULL, NULL, {3, 0}) = 1 (in [3], left {3, 0})
read(3, "\372/\t\21\27\325\22\345#*)\257\367\203\230)\317n\323\266]Wo~O\0169Y\333\177)\32"..., 120) = 120
select(4, [3], NULL, NULL, {3, 0}) = 1 (in [3], left {3, 0})
read(3, "\250\360\230\305\366G\236\313F\34\345\3I<9Cg\320\323\3205\204\301\202.\212H\261\275\20\270C"...,
120) = 120
select(4, [3], NULL, NULL, {3, 0}) = 1 (in [3], left {3, 0})
read(3, "\351x\3\350\20\277yl\265_O\35n\230\370!)\10\26\321~\314Wa\272\214\f+*\233\216\326"..., 120) = 120
select(4, [3], NULL, NULL, {3, 0}) = 1 (in [3], left {3, 0})
read(3, "{\327d)\330L\222\263+\205\270$\342\371\301\277\t)gBo\3629\367\t\31~\'\2277\207w"..., 120) = 120
gettimeofday({1234823553, 179705}, NULL) = 0
getrusage(RUSAGE_SELF, {ru_utime={0, 0}, ru_stime={0, 0}, ...}) = 0
time(NULL) = 1234823553
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 87583
write(2, "Generating a private key...\n", 28Generating a private key...
) = 28
write(2, "Generating a 512 bit RSA private"..., 40Generating a 512 bit RSA private key...
) = 40
open("/dev/random", O_RDONLY) = 4
fcntl64(4, F_GETFD) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {3, 0})
read(4, "X\365n\221t\374\241\273``\3159\345r\6\204\272y\17v", 300) = 20
select(5, [4], NULL, NULL, {3, 0}) = 0 (Timeout)
select(5, [4], NULL, NULL, {3, 0}) = 0 (Timeout)
select(5, [4], NULL, NULL, {3, 0}) = 0 (Timeout)
select(5, [4], NULL, NULL, {3, 0}^C <unfinished ...>
Next I did vzmigrate the same VE from 2.6.27 to 2.6.18, and on 2.6.18:
\243r\367T\324"..., 120) = 120
select(4, [3], NULL, NULL, {3, 0}) = 1 (in [3], left {3, 0})
read(3, "\36a\317m\271\305\240\3327\335Z@\227\351\16\2518\32\245\312=\246j\211\33\327\310\302\375h\302\222"..., 120) = 120
select(4, [3], NULL, NULL, {3, 0}) = 1 (in [3], left {3, 0})
read(3, "\226\232\225\222\3\243\353G\\\270\362\356\221?\233\177\217\2663W3\230\225-\264l\253\1)R\324d"..., 120) = 120
select(4, [3], NULL, NULL, {3, 0}) = 1 (in [3], left {3, 0})
read(3, "M\323\374\n}w\356A2\257\372\266H\\\f\371\34\335\34\245\325y|\340\335ZWA\321\324\225\240"..., 120) = 120
gettimeofday({1234799227, 307704}, NULL) = 0
getrusage(RUSAGE_SELF, {ru_utime={0, 4000}, ru_stime={0, 4000}, ...}) = 0
time(NULL) = 1234799227
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 11140
write(2, "Generating a private key...\n", 28Generating a private key...
) = 28
write(2, "Generating a 512 bit RSA private"..., 40Generating a 512 bit RSA private key...
) = 40
open("/dev/random", O_RDONLY) = 4
fcntl64(4, F_GETFD) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {3, 0})
read(4, "\6\202\225!\"\200HI\363\334Wfl\320\200\n", 300) = 16
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {1, 396000})
read(4, ":j\266\242\247r|\216", 284) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {1, 984000})
read(4, "\313F\242\255\271N\226(", 276) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {2, 68000})
read(4, "\266\357\330\20\360\252\254F", 268) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {1, 408000})
read(4, "\322Z\302\5:\356}\333", 260) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {2, 352000})
read(4, "\264\4\23.\375\7_\230", 252) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {0, 868000})
read(4, "PN^\326\252az\223\260", 244) = 9
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {2, 320000})
read(4, "p\365&\204\366\24\336\'", 235) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {0, 724000})
read(4, "\320\264[aS\234Z\21", 227) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {1, 944000})
read(4, "\0\346\36on\361\273\273", 219) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {1, 748000})
read(4, "\346Y\246\356T\337B8", 211) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {2, 544000})
read(4, "E\270B\260\356C\24]", 203) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {1, 968000})
read(4, "$\255\276^\342\\R\371", 195) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {2, 408000})
read(4, "=\10\252\275\323\345\262\266", 187) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {2, 224000})
read(4, ":\34\342\370\303\t\244d", 179) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {1, 680000})
read(4, "\'\365\304\344y\350\216\v", 171) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {2, 88000})
read(4, "\206\0Q\344\t\246\247\254", 163) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {2, 84000})
read(4, "o\204\333\316\325\366g\325", 155) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {1, 676000})
read(4, "\217wF\37\375\202>\34\f", 147) = 9
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {2, 160000})
read(4, "\242\263\212\24J\276\315\363", 138) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {1, 88000})
read(4, "L\351P\235|\232J\34", 130) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {2, 268000})
read(4, "\235l\307D -\332\246", 122) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {1, 436000})
read(4, "\'tY$-$\33 ", 114) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {2, 40000})
read(4, "D\324\256q\320\240)\307", 106) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {2, 292000})
read(4, "LV\275k\272\337\207\212", 98) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {2, 532000})
read(4, "D5\237T\340\r\357N", 90) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {2, 156000})
read(4, "I\375\212#\f\21L\3", 82) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {2, 36000})
read(4, "\25\274\27r\311\25\356N", 74) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {1, 980000})
read(4, "\200\35 \f\321;8\32", 66) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {1, 892000})
read(4, "\251L\372\311\255\3\1\225", 58) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {1, 492000})
read(4, "E\35Yc<\300\23\210", 50) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {2, 552000})
read(4, "`{\301L1lJY", 42) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {0, 996000})
read(4, "\233$7\212}i\2269", 34) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {2, 132000})
read(4, "\316\373\324\322\35\330S\336", 26) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {1, 772000})
read(4, "\324\253Cn\"\371\232L", 18) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {2, 352000})
read(4, "\177E\10\334\336!\275\312", 10) = 8
select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {2, 364000})
read(4, "\347\241", 2) = 2
gettimeofday({1234799266, 299523}, NULL) = 0
getrusage(RUSAGE_SELF, {ru_utime={0, 4000}, ru_stime={0, 4000}, ...}) = 0
time(NULL) = 1234799266
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 15039
time(NULL) = 1234799266
gettimeofday({1234799266, 303889}, NULL) = 0
getrusage(RUSAGE_SELF, {ru_utime={0, 8000}, ru_stime={0, 4000}, ...}) = 0
time(NULL) = 1234799266
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 15040
gettimeofday({1234799266, 305948}, NULL) = 0
getrusage(RUSAGE_SELF, {ru_utime={0, 8000}, ru_stime={0, 4000}, ...}) = 0
time(NULL) = 1234799266
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 15040
fstat64(1, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fe0000
write(1, "-----BEGIN RSA PRIVATE KEY-----\n"..., 493) = 493
close(1) = 0
munmap(0xb7fe0000, 4096) = 0
exit_group(0)
Something still wrong...
--
Regards
brushek
More information about the Devel
mailing list