Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | sizes for free(); ok sthen | 2015-09-10 | 1 | -7/+7 | |
| | |||||
* | Fixup potential use after free and a memory leak. | 2015-05-12 | 1 | -2/+5 | |
| | | | | | Found by Maxime Villard <max at m00nbsd ! net> with the Brainy Code Scanner, thanks! | ||||
* | Some reallocarray() use; review Jean-Philippe Ouellet, patrick keshishian | 2014-07-13 | 1 | -3/+3 | |
| | | | | ok tedu | ||||
* | add a size argument to free. will be used soon, but for now default to 0. | 2014-07-12 | 1 | -8/+8 | |
| | | | | after discussions with beck deraadt kettenis. | ||||
* | handle m_copyback errors, this code is too sensitive for such | 2012-01-13 | 1 | -4/+12 | |
| | | | | failures to be neglected; ok markus | ||||
* | Passing M_WAITOK to mbuf functions is supposed to be a contract between | 2011-04-05 | 1 | -3/+4 | |
| | | | | | | | | | | | | | | | the caller and the function that the function will not fail to allocate memory and return a NULL pointer. However, m_dup_pkthdr() violates this contract, making it possible for functions that pass M_WAITOK to be surprised in ways that hurt. Fix this by passing the wait flag all the way down the functions that actually do the allocation for m_dup_pkthdr() so that we won't be surprised. man page update forthcoming ok claudio@ | ||||
* | use nitems(); no binary change for drivers that are compiled on amd64. | 2011-04-03 | 1 | -3/+3 | |
| | | | | ok claudio@ | ||||
* | A bunch more explicit_bzero calls for key material | 2011-01-12 | 1 | -3/+10 | |
| | | | | | ubsec tested by mikeb, hifn tested by kettenis ok mikeb | ||||
* | Bring CBC oracle attack countermeasure from r1.32 of cryptosoft.c to | 2010-12-15 | 1 | -30/+3 | |
| | | | | | | | | | | | | | the hardware crypto accelerator land. This fixes aes-ni, via xcrypt, glxsb(4), hifn(4), safe(4) and ubsec(4) drivers. Original commit message by angelos: Don't keep the last blocksize-bytes of ciphertext for use as the next plaintext's IV, in CBC mode. Use arc4random() to acquire fresh IVs per message. with and ok deraadt, ok markus, djm | ||||
* | timeout_add -> timeout_add_sec | 2010-07-05 | 1 | -3/+3 | |
| | | | | ok art@ | ||||
* | m_copyback can fail to allocate memory, but is a void fucntion so gymnastics | 2010-07-02 | 1 | -4/+5 | |
| | | | | | | | | | are required to detect that. Change the function to take a wait argument (used in nfs server, but M_NOWAIT everywhere else for now) and to return an error ok claudio@ henning@ krw@ | ||||
* | BUS_DMA_ZERO instead of alloc, map, bzero. | 2010-05-19 | 1 | -3/+3 | |
| | | | | ok krw@ | ||||
* | these files don't need to include proc.h anymore. ok oga for agp | 2010-04-08 | 1 | -2/+2 | |
| | |||||
* | M_DUP_PKTHDR() define -> m_dup_pkthdr() function to properly deal | 2009-09-13 | 1 | -5/+14 | |
| | | | | | | | | | | | | | with m_tag_copy_chain() failures. Use m_defrag() to eliminate hand rolled defragging of mbufs and some uses of M_DUP_PKTHDR(). Original diff from thib@, claudio@'s feedback integrated by me. Tests kevlo@ claudio@, "reads ok" blambert@ ok thib@ claudio@, "m_defrag() bits ok" kettenis@ | ||||
* | remove dead store. | 2008-09-25 | 1 | -2/+2 | |
| | | | | | | Found by LLVM/Clang Static Analyzer. ok brad@ krw@ | ||||
* | remove http links to dead/changed domains. | 2008-08-31 | 1 | -2/+2 | |
| | |||||
* | rename arc4random_bytes => arc4random_buf to match libc's nicer name; | 2008-06-09 | 1 | -2/+2 | |
| | | | | ok deraadt@ | ||||
* | More easy bzero() -> M_ZERO. Use 'p = malloc(sizeof(*p) ...' where | 2007-10-01 | 1 | -4/+2 | |
| | | | | obvious. | ||||
* | arc4random_bytes() is the preferred interface for generating nonces; | 2007-09-18 | 1 | -2/+2 | |
| | | | | "looks ok" markus@ | ||||
* | do not check for master/io/mem enables; ok kettenis | 2006-06-29 | 1 | -12/+1 | |
| | |||||
* | update comment to match what the code does as of rev 1.149. | 2006-01-04 | 1 | -7/+9 | |
| | | | | | | From Jochen <jochen at penguin-breeder dot org> in PR 4961 ok deraadt@ | ||||
* | potential memory leak in hifn7751.c:hifn_newsession; 3873, fixed by jason | 2005-11-29 | 1 | -2/+2 | |
| | |||||
* | Leave the command wait interrupt enabled as long as there is at least one | 2004-08-12 | 1 | -9/+5 | |
| | | | | | | | pending result. This isn't a good solution (we're obviously missing an interrupt or two in some cases), but this will guarantee we get called periodically until all of the queues are drained. Based on idea from "jochen from penguin-breeder decimal org"; ok theo | ||||
* | Return EINVAL in case of a zero length descriptor. The hifn can not handle | 2004-03-14 | 1 | -1/+6 | |
| | | | | | | this. ok jason@ deraadt@ | ||||
* | advertise features of our crypto chips better; ok tdeval | 2004-02-03 | 1 | -5/+12 | |
| | | | | jason is being a slacker | ||||
* | don't limit the number of sessions to the onboard ram (always upload the | 2004-01-20 | 1 | -35/+43 | |
| | | | | | key and IV data). This kinda sucks for HMAC, but the alternative is a cache manager and I just don't want to go there. Tested by sturm@ (thanks!) | ||||
* | remove uvm_extern.h | 2004-01-09 | 1 | -3/+1 | |
| | | | | | | tested on alpha, i386, powerpc, sparc64, m68k. ok miod@ | ||||
* | - from freebsd: 795[56] AES support | 2003-10-09 | 1 | -51/+114 | |
| | | | | | - don't bother with the master/mmio enable stuff (it's done in pci.c for us) based on suggestion from mickey | ||||
* | hifn 7956 support | 2003-09-25 | 1 | -3/+12 | |
| | |||||
* | initial support for hifn 7955 (no AES or PK yet) | 2003-09-24 | 1 | -2/+13 | |
| | |||||
* | kill unneeded caddr_t casts for *_copyback | 2003-08-14 | 1 | -3/+3 | |
| | |||||
* | ansi | 2003-08-01 | 1 | -91/+38 | |
| | |||||
* | print LZS-only and such for the cards (more clear than saying "disabled" for the 9751 which isn't true these days) | 2003-03-13 | 1 | -5/+10 | |
| | |||||
* | Add support for LZS compression (only usable by ipcomp at the moment) | 2003-02-24 | 1 | -32/+479 | |
| | |||||
* | whitespace, typos, and compression structure defns | 2003-02-17 | 1 | -9/+9 | |
| | |||||
* | kill the remaining typedefs (These are about the last trace of Invertex | 2003-02-15 | 1 | -14/+14 | |
| | | | | save for the copyright message). | ||||
* | Whitespace diff; from FreeBSD | 2002-11-26 | 1 | -11/+11 | |
| | |||||
* | From Angelos: | 2002-11-21 | 1 | -15/+14 | |
| | | | | | | - simplistic load balancing across multiple cards - simplified registration process - a few style nits. | ||||
* | Add a simplistic table driven lookup routine and use it where appropriate. | 2002-11-19 | 1 | -15/+11 | |
| | |||||
* | whoops, last write tracker should be updated on every write to avoid the burst write problem on 7811. | 2002-08-01 | 1 | -3/+3 | |
| | |||||
* | hifn isn't sure if the burst write problem applies to the 7811 rev 1 or not, so play it safe and apply the workaround on all 7811's. | 2002-07-29 | 1 | -10/+3 | |
| | |||||
* | house cleaning, also fix a couple of incorrect bit definitions in the | 2002-07-25 | 1 | -4/+4 | |
| | | | | (currently unused) pk engine | ||||
* | from reading sam@errno.com's code: | 2002-07-23 | 1 | -11/+16 | |
| | | | | | - TRDY and RETRY register definitions were backwards - move TRDY/RETRY setup into its own function | ||||
* | Don't use a magic constant | 2002-07-23 | 1 | -2/+2 | |
| | |||||
* | Turn READ/WRITE into function calls (driver was getting too bloated with | 2002-07-23 | 1 | -12/+30 | |
| | | | | | | inline macro's; if hifn wanted to make it possible to write a very efficient driver they would have fixed the bugs in the chips). Also, invalidate the burst write checks when a read is executed. | ||||
* | uninitialized variable; pointed out by sam@errno.com | 2002-07-22 | 1 | -2/+2 | |
| | |||||
* | Flip on the LEDs on a 7811 when each of the rings is active (and turn them | 2002-07-21 | 1 | -2/+9 | |
| | | | | off when not), I should really get a life. | ||||
* | Deal with the fact that one of the 7811 revisions cannot correctly handle | 2002-07-21 | 1 | -1/+41 | |
| | | | | | | burst writes (bridges may coalesce sequential writes into a burst) by inserting a read (I know, icky!) in between sequential writes. Thanks to sam@errno.com, GTGI, and Hifn for helping track this one down. | ||||
* | Two fixes from sam@errno.com: | 2002-07-16 | 1 | -2/+5 | |
| | | | | | - fix a reference after free on the src mbuf in hifn_callback() - prevent a mbuf leak on error in hifn_crypto() | ||||
* | Never call crp_callback directly, use crypto_done() instead | 2002-07-05 | 1 | -2/+2 | |
| |