AES corruption

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi, under mandrake's distro 9.0 :  2.4.19-16mdksecure , I get occasional
bad reads from disk into buffer. filesystem reiserfs (if that matters),

/etc/fstab:
/dev/hdd2 /mnt/pepsi reiserfs encrypted,encryption=AES,notail 1 1

it appears that the corruption is always in 17-byte chunks.
Also, the buffer stays same until it is removed and re-read.

please note that in the examples below, disk reading activities were
performed between comparisons (cmp -l), to force invalidation of the
current buffer in hopes that next read would re-read the disk and get the
copy into the buffer correctly. Sometimes it is read into the buffer
correctly, sometimes not, as can be seen from below.

through the whole experiment, the files (pepsi-semifinal-JYp*m)
haven't changed, but cmp -l has reported them differently a few times.

what's wrong ? how can this be fixed ? what do i do ?

thanks - rkelly


 # cmp -l pepsi-semifinal-JYp*m ; echo $?

 4198353 110  34
 4198354 267 226
 4198355  40 112
 4198356 143 105
 4198357 161 117
 4198358 127  34
 4198359 333 110
 4198360  51 135
 4198361 374  77
 4198362 131 213
 4198363 333 212
 4198364 132  11
 4198365 156 161
 4198366  64  36
 4198367   5 225
 4198368 261 274
 4198378  32  72

1

 # cmp -l pepsi-semifinal-JYp*m ; echo $?
0

 # ll pepsi-semifinal-JYp*
-rw-------    1 root     root    28395732 Mar 16 13:59 pepsi-semifinal-JYp-x1
-rw-rw-r--    1 simon    simon   28395732 Mar 14 22:08 pepsi-semifinal-JYp-x2



 # cmp -l /tmp/pepsi-semifinal-JYp*m ; echo $?
 9543633  50 324
 9543634 172 312
 9543635  75 322
 9543636 172 107
 9543637 346 355
 9543638  73 165
 9543639 220 313
 9543640 307 273
 9543641 353 254
 9543642 217   5
 9543643  11 234
 9543644 131  51
 9543645 251 340
 9543646  66 270
 9543647  43 141
 9543648 112   4
 9543658 275 235
10506193 243 223
10506194 235 146
10506195 217 161
10506196 371   5
10506197 113 305
10506198  47 112
10506199  50 171
10506200  71 111
10506201  30 251
10506202  37 226
10506203 276 324
10506204 177 131
10506205 316 203
10506206  56 326
10506207 255 236
10506208   6 132
10506218 137 177
1

1149 [1] # cmp -l /tmp/pepsi-semifinal-JYp*m ; echo $?
 9543633  50 324
 9543634 172 312
 9543635  75 322
 9543636 172 107
 9543637 346 355
 9543638  73 165
 9543639 220 313
 9543640 307 273
 9543641 353 254
 9543642 217   5
 9543643  11 234
 9543644 131  51
 9543645 251 340
 9543646  66 270
 9543647  43 141
 9543648 112   4
 9543658 275 235
10506193 243 223
10506194 235 146
10506195 217 161
10506196 371   5
10506197 113 305
10506198  47 112
10506199  50 171
10506200  71 111
10506201  30 251
10506202  37 226
10506203 276 324
10506204 177 131
10506205 316 203
10506206  56 326
10506207 255 236
10506208   6 132
10506218 137 177
1
root@xxxx:/home/simon Thu Mar 13 12:47:21

 # cmp -l /tmp/pepsi-semifinal-JYp*m ; echo $?

 9543633  50 324
 9543634 172 312
 9543635  75 322
 9543636 172 107
 9543637 346 355
 9543638  73 165
 9543639 220 313
 9543640 307 273
 9543641 353 254
 9543642 217   5
 9543643  11 234
 9543644 131  51
 9543645 251 340
 9543646  66 270
 9543647  43 141
 9543648 112   4
 9543658 275 235
10506193 243 223
10506194 235 146
10506195 217 161
10506196 371   5
10506197 113 305
10506198  47 112
10506199  50 171
10506200  71 111
10506201  30 251
10506202  37 226
10506203 276 324
10506204 177 131
10506205 316 203
10506206  56 326
10506207 255 236
10506208   6 132
10506218 137 177

1
root@xxxx:/home/simon Thu Mar 13 12:47:50

 # cmp -l /tmp/pepsi-semifinal-JYp*m ; echo $?
0
root@xxxx:/home/simon Thu Mar 13 13:49:12



-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/


[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux