Bug in gss_krb5_crypto.c

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

 



Hi Kevin & Bruce,

When running sparse on the sunrpc code, I'm seeing the following error
message:
"net/sunrpc/auth_gss/gss_krb5_crypto.c:603:52: error: bad constant
expression"

This boils down to the line:
        u8 data[crypto_blkcipher_blocksize(cipher) * 2];

which is using a GNU Cc-ism in order to do dynamic allocation on the
stack. This is not acceptable in kernel code, and really needs to be
changed. How should we move forward with this? Is there an upper limit
on the value of crypto_blkcipher_blocksize(cipher) that we can use?

Cheers
  Trond

-- 
Trond Myklebust
Linux NFS client maintainer

NetApp
Trond.Myklebust@xxxxxxxxxx
www.netapp.com

��.n��������+%������w��{.n�����{��w���jg��������ݢj����G�������j:+v���w�m������w�������h�����٥



[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux