23 May, 2011

1 commit


21 May, 2011

1 commit

  • * git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: (45 commits)
    crypto: caam - add support for sha512 variants of existing AEAD algorithms
    crypto: caam - remove unused authkeylen from caam_ctx
    crypto: caam - fix decryption shared vs. non-shared key setting
    crypto: caam - platform_bus_type migration
    crypto: aesni-intel - fix aesni build on i386
    crypto: aesni-intel - Merge with fpu.ko
    crypto: mv_cesa - make count_sgs() null-pointer proof
    crypto: mv_cesa - copy remaining bytes to SRAM only when needed
    crypto: mv_cesa - move digest state initialisation to a better place
    crypto: mv_cesa - fill inner/outer IV fields only in HMAC case
    crypto: mv_cesa - refactor copy_src_to_buf()
    crypto: mv_cesa - no need to save digest state after the last chunk
    crypto: mv_cesa - print a warning when registration of AES algos fail
    crypto: mv_cesa - drop this call to mv_hash_final from mv_hash_finup
    crypto: mv_cesa - the descriptor pointer register needs to be set just once
    crypto: mv_cesa - use ablkcipher_request_cast instead of the manual container_of
    crypto: caam - fix printk recursion for long error texts
    crypto: caam - remove unused keylen from session context
    hwrng: amd - enable AMD hw rnd driver for Maple PPC boards
    hwrng: amd - manage resource allocation
    ...

    Linus Torvalds
     

19 May, 2011

4 commits


11 May, 2011

10 commits


04 May, 2011

6 commits


03 May, 2011

4 commits


26 Apr, 2011

4 commits


08 Apr, 2011

2 commits

  • This change adds support for AES encrypting and decrypting using
    advanced crypto engine found on Samsung S5PV210 and S5PC110 SoCs.

    Signed-off-by: Vladimir Zapolskiy
    Signed-off-by: Herbert Xu

    Vladimir Zapolskiy
     
  • Error handling code following a kmalloc should free the allocated data.

    The semantic match that finds the problem is as follows:
    (http://www.emn.fr/x-info/coccinelle/)

    //
    @r exists@
    local idexpression x;
    statement S;
    expression E;
    identifier f,f1,l;
    position p1,p2;
    expression *ptr != NULL;
    @@

    x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
    ...
    if (x == NULL) S
    }
    (
    x->f1 = E
    |
    (x->f1 == NULL || ...)
    |
    f(...,x->f1,...)
    )
    ...>
    (
    return \(0\|\|ptr\);
    |
    return@p2 ...;
    )

    @script:python@
    p1 << r.p1;
    p2 << r.p2;
    @@

    print "* file: %s kmalloc %s return %s" % (p1[0].file,p1[0].line,p2[0].line)
    //

    Signed-off-by: Julia Lawall
    Acked-by: Kim Phillips
    Signed-off-by: Herbert Xu

    Julia Lawall
     

31 Mar, 2011

1 commit


27 Mar, 2011

6 commits

  • The SPAcc's have 2 equally sized FIFO's - a command FIFO and a status
    FIFO. The command FIFO takes the requests that are to be performed and
    the status FIFO reports the results. It is possible to get into the
    situation where there are more free spaces in the command FIFO than the
    status FIFO if we don't empty the status FIFO quickly enough resulting
    in a possible overflow of the status FIFO. This can result in incorrect
    status being reported in the status FIFO.

    Make sure that when we are submitting requests the number of requests
    that have been dispatched but not yet popped from the status FIFO does
    not exceed the size of a single FIFO.

    Signed-off-by: Jamie Iles
    Signed-off-by: Herbert Xu

    Jamie Iles
     
  • Add new SHA-1/256 module that never needs any fallback and just calls the
    PadLock hardware instruction supported from VIA Nano processors to implement
    the "update" and "final" function.

    They are respectively named "sha1_alg_nano" and "sha256_alg_nano", and will
    be used on any VIA Nano processor or the later ones. On VIA C7 CPU, the
    "sha1_alg" and "sha256_alg" modules will still be used as before.

    Signed-off-by: Brilly Wu
    Signed-off-by: Kary Jin
    Signed-off-by: Herbert Xu

    Brilly Wu
     
  • ARRAY_SIZE() was intended here instead of sizeof(). sizeof() is four
    times larger than ARRAY_SIZE(). outstr is normally 256 chars so
    printing garbage to it could overfill the buffer and corrupt memory.

    Signed-off-by: Dan Carpenter
    Acked-by: Kim Phillips
    Signed-off-by: Herbert Xu

    Dan Carpenter
     
  • t_alg is an ERR_PTR here so we can't dereference it.

    Signed-off-by: Dan Carpenter
    Acked-by: Kim Phillips
    Signed-off-by: Herbert Xu

    Dan Carpenter
     
  • Help clarify that the number trailing in compatible nomenclature
    is the version number of the device, i.e., change:

    "fsl,p4080-sec4.0", "fsl,sec4.0";

    to:

    "fsl,p4080-sec-v4.0", "fsl,sec-v4.0";

    Signed-off-by: Kim Phillips
    Cc: Kumar Gala
    Cc: Steve Cornelius
    Signed-off-by: Herbert Xu

    Kim Phillips
     
  • The SEC4 supercedes the SEC2.x/3.x as Freescale's
    Integrated Security Engine. Its programming model is
    incompatible with all prior versions of the SEC (talitos).

    The SEC4 is also known as the Cryptographic Accelerator
    and Assurance Module (CAAM); this driver is named caam.

    This initial submission does not include support for Data Path
    mode operation - AEAD descriptors are submitted via the job
    ring interface, while the Queue Interface (QI) is enabled
    for use by others. Only AEAD algorithms are implemented
    at this time, for use with IPsec.

    Many thanks to the Freescale STC team for their contributions
    to this driver.

    Signed-off-by: Steve Cornelius
    Signed-off-by: Kim Phillips
    Signed-off-by: Herbert Xu

    Kim Phillips
     

17 Mar, 2011

1 commit

  • * 'devicetree/next' of git://git.secretlab.ca/git/linux-2.6: (21 commits)
    tty: serial: altera_jtaguart: Add device tree support
    tty: serial: altera_uart: Add devicetree support
    dt: eliminate of_platform_driver shim code
    dt: Eliminate of_platform_{,un}register_driver
    dt/serial: Eliminate users of of_platform_{,un}register_driver
    dt/usb: Eliminate users of of_platform_{,un}register_driver
    dt/video: Eliminate users of of_platform_{,un}register_driver
    dt/net: Eliminate users of of_platform_{,un}register_driver
    dt/sound: Eliminate users of of_platform_{,un}register_driver
    dt/spi: Eliminate users of of_platform_{,un}register_driver
    dt: uartlite: merge platform and of_platform driver bindings
    dt: xilinx_hwicap: merge platform and of_platform driver bindings
    ipmi: convert OF driver to platform driver
    leds/leds-gpio: merge platform_driver with of_platform_driver
    dt/sparc: Eliminate users of of_platform_{,un}register_driver
    dt/powerpc: Eliminate users of of_platform_{,un}register_driver
    dt/powerpc: move of_bus_type infrastructure to ibmebus
    drivercore/dt: add a match table pointer to struct device
    dt: Typo fix.
    altera_ps2: Add devicetree support
    ...

    Linus Torvalds