[Bug 1105758] Re: On my PC, gcry_cipher_encrypt() doesn't release all x87 FPU data registers .

Mitsutoshi NAKANO bkbin005 at rinku.zaq.ne.jp
Wed Jan 30 06:33:19 UTC 2013


The patch was released to Gcrypt-devel ML ( http://lists.gnupg.org/mailman/listinfo/gcrypt-devel ) .
For the people troubled by this problem, I wrote that how to apply the patch

*** How to apply the patch . ***

1. Get source .
$apt-get -b source libgcrypt11
$ cd libgcrypt11-1.5.0

NOTE: Additional packages may be required at this time and you may become an error. 
      Follow directions then .
   ex) $ sudo apt-get install dpkg-dev
       $ sudo apt-get install debhelper texlive-latex-base texlive-generic-recommended texinfo cdbs libgpg-error-dev autotools-dev

2. Get the patch .
2.1. Access by your Web browser to http://marc.info/?l=gcrypt-devel&m=135944673925649&w=2
2.2. Start your editor. 
$vi mail.patch
2.3. Copy&paste the mail message whole sentence . 
2.4. Save it
NOTE: Don't use wget .

3. Apply the patch .
$ patch -p1  -b <mail.patch

4. Check updating . 
$ diff cipher/rijndael.c.orig cipher/rijndael.c | less

5. Build it .
$ make

6. Test it .
$ make check
$ echo $?
0

7. Install it .
$ sudo make install
$ sudo ldconfig

8. Test the application with which the problem had occurred . 
ex) $ chromium-browser --password-store=gnome

Thanks all .

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to libgcrypt11 in Ubuntu.
https://bugs.launchpad.net/bugs/1105758

Title:
  On my PC, gcry_cipher_encrypt() doesn't release all x87 FPU data
  registers .

Status in “libgcrypt11” package in Ubuntu:
  New

Bug description:
  1)
  Description:    Xubuntu 12.10 desktop i386
  Release:        12.10
  PC: Sony PCG-SRX7S/P Memory 512 M byte http://www.sony.jp/products/biz/vaio/PCG-SRX7S_P/spec.html
  Chipset: Intel 815EM
  $ cat /proc/cpuinfo
  processor       : 0
  vendor_id       : GenuineIntel
  cpu family      : 6
  model           : 11
  model name      : Mobile Intel(R) Pentium(R) III CPU - M   900MHz
  stepping        : 4
  microcode       : 0x2
  cpu MHz         : 500.000
  cache size      : 512 KB
  fdiv_bug        : no
  hlt_bug         : no
  f00f_bug        : no
  coma_bug        : no
  fpu             : yes
  fpu_exception   : yes
  cpuid level     : 2
  wp              : yes
  flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pse36 mmx fxsr sse up
  bogomips        : 993.64
  clflush size    : 32
  cache_alignment : 32
  address sizes   : 36 bits physical, 32 bits virtual
  power management:
  $ uname -a
  Linux loghost 3.5.0-22-generic #34-Ubuntu SMP Tue Jan 8 21:41:11 UTC 2013 i686 i686 i686 GNU/Linux

  
  2)
  libgcrypt11 1.5.0-3ubuntu1
  gnome-keyring 3.6.1-0ubuntu1

  3) What you expected to happen
  $apt-get -b source gnome-keyring
  $cd gnome-keyring-3.6.1/
  $make -k check | tee make-k-check2.txt
  	→all check OK

  4) What happened instead
  	→ but /gnome2-store/import/pkcs12: was FAIL on the PC .
  See also https://dl.dropbox.com/u/86335040/make-k-check2.txt .

  
  5) I analyzed the gnome-keyring program. 
  So I found that gcry_cipher_encrypt() doesn't release all x87 FPU data registers .
  Then -nan goes into a variable subsequent processing.

  This problem found on the test of /gnome2-store/import/pkcs12 on
  gnome-keyring-3.6.1,
  function is encrypt_buffer() in gnome-keyring-3.6.1/pkcs11/gnome2-store/gkm-gnome2-file.c .

  I wrote a reappearance program .
  https://dl.dropbox.com/u/86335040/bug.tar.gz .
  Please check it, and please fix this problem

  
  See also https://forums.ubuntulinux.jp/viewtopic.php?id=14643 
  and http://d.hatena.ne.jp/Itisango/searchdiary?word=%2A%5Bgnome-keyring%5D .

  Thanks .

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libgcrypt11/+bug/1105758/+subscriptions




More information about the foundations-bugs mailing list