aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-crypt.c
AgeCommit message (Expand)AuthorFilesLines
2024-04-23dm-crypt: don't set WQ_CPU_INTENSIVE for WQ_UNBOUND crypt_queueMike Snitzer1-1/+5
2024-04-23dm-crypt: stop constraining max_segment_size to PAGE_SIZEMike Snitzer1-10/+2
2024-04-16dm-crypt: export sysfs of all workqueuesyangerkun1-7/+21
2024-04-16dm-crypt: add the optional "high_priority" flagMikulas Patocka1-10/+25
2024-03-02dm-crypt: Convert from tasklet to BH workqueueTejun Heo1-1/+5
2024-02-20dm crypt: Fix IO priority lost when queuing write biosHongyu Jin1-0/+1
2024-02-20dm crypt: remove redundant state settings after waking upLizhe1-1/+0
2024-02-20dm-crypt, dm-integrity, dm-verity: bump target versionMike Snitzer1-1/+1
2024-02-20dm-verity, dm-crypt: align "struct bvec_iter" correctlyMikulas Patocka1-2/+2
2024-02-20dm-crypt: recheck the integrity tag after a failureMikulas Patocka1-16/+73
2024-02-20dm-crypt: don't modify the data when using authenticated encryptionMikulas Patocka1-0/+6
2024-02-02dm-crypt, dm-verity: disable taskletsMikulas Patocka1-36/+2
2024-01-08mm, treewide: rename MAX_ORDER to MAX_PAGE_ORDERKirill A. Shutemov1-1/+1
2023-11-17dm-crypt: start allocating with MAX_ORDERMikulas Patocka1-1/+1
2023-11-01Merge tag 'for-6.7/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-12/+14
2023-10-31dm crypt: account large pages in cc->n_allocated_pagesMikulas Patocka1-3/+12
2023-10-31dm crypt: use crypto_shash_digest() in crypt_iv_tcw_whitening()Eric Biggers1-7/+1
2023-10-30Merge tag 'hardening-v6.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-1/+1
2023-10-23dm crypt: replace open-coded kmemdup_nulJustin Stitt1-2/+1
2023-10-06dm crypt: Fix reqsize in crypt_iv_eboiv_genHerbert Xu1-1/+2
2023-10-02dm crypt: Annotate struct crypt_config with __counted_byKees Cook1-1/+1
2023-08-09bio-integrity: update the payload size in bio_integrity_add_page()Jinyoung Choi1-1/+0
2023-06-30Merge tag 'v6.5-p1' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/...Linus Torvalds1-4/+11
2023-06-30Merge tag 'for-6.5/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-15/+36
2023-06-28Merge tag 'mm-stable-2023-06-24-19-15' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-1/+1
2023-06-19dm-crypt: use ARCH_DMA_MINALIGN instead of ARCH_KMALLOC_MINALIGNCatalin Marinas1-1/+1
2023-06-16dm crypt: fix crypt_ctr_cipher_new return value on invalid AEAD cipherMikulas Patocka1-1/+1
2023-06-16dm crypt: allocate compound pages if possibleMikulas Patocka1-14/+35
2023-06-09dm crypt: Avoid using MAX_CIPHER_BLOCKSIZEHerbert Xu1-4/+11
2023-06-01dm-crypt: use __bio_add_page to add single page to clone bioJohannes Thumshirn1-2/+1
2023-04-11dm: add helper macro for simple DM target module init and exitYangtao Li1-13/+1
2023-04-11dm: push error reporting down to dm_register_target()Yangtao Li1-7/+1
2023-03-24Merge tag 'for-6.3/dm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-6/+10
2023-03-09dm crypt: avoid accessing uninitialized taskletMike Snitzer1-6/+9
2023-03-06dm crypt: add cond_resched() to dmcrypt_write()Mikulas Patocka1-0/+1
2023-02-22Merge tag 'for-6.3/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-55/+62
2023-02-14dm: avoid split of quoted strings where possibleHeinz Mauelshagen1-2/+1
2023-02-14dm: add missing empty linesHeinz Mauelshagen1-0/+3
2023-02-14dm crypt: correct 'foo*' to 'foo *'Heinz Mauelshagen1-9/+9
2023-02-14dm: correct block comments format.Heinz Mauelshagen1-3/+4
2023-02-14dm: address indent/space issuesHeinz Mauelshagen1-1/+1
2023-02-14dm: avoid initializing static variablesHeinz Mauelshagen1-1/+1
2023-02-14dm: avoid assignment in if conditionsHeinz Mauelshagen1-3/+6
2023-02-14dm: change "unsigned" to "unsigned int"Heinz Mauelshagen1-24/+24
2023-02-14dm: prefer kmap_local_page() instead of deprecated kmap_atomic()Heinz Mauelshagen1-12/+12
2023-02-14dm: add missing SPDX-License-IndentifiersHeinz Mauelshagen1-0/+1
2023-02-13dm: Remove completion function scaffoldingHerbert Xu1-3/+3
2023-02-13dm: Add scaffolding to change completion function signatureHerbert Xu1-5/+3
2023-02-02dm crypt: Slightly simplify crypt_set_keyring_key()Christophe JAILLET1-1/+1
2022-11-16dm-crypt: provide dma_alignment limit in io_hintsKeith Busch1-0/+1
2022-05-09dm crypt: make printing of the key constant-timeMikulas Patocka1-3/+11
2022-03-24Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-1/+0
2022-03-24Merge tag 'for-5.18/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-6/+9
2022-03-10dm: simplify dm_sumbit_bio_remap interfaceMike Snitzer1-3/+3
2022-03-07dm-crypt: stop using bio_devnameChristoph Hellwig1-6/+4
2022-02-22scsi: dm: Remove WRITE_SAME supportChristoph Hellwig1-1/+0
2022-02-22dm crypt: fix get_key_size compiler warning if !CONFIG_KEYSAashish Sharma1-1/+1
2022-02-21dm crypt: use dm_submit_bio_remapMike Snitzer1-5/+8
2022-02-04block: pass a block_device to bio_clone_fastChristoph Hellwig1-6/+5
2022-02-02block: pass a block_device and opf to bio_alloc_biosetChristoph Hellwig1-3/+2
2022-02-02dm-crypt: remove clone_initChristoph Hellwig1-13/+8
2022-02-02dm: bio_alloc can't fail if it is allowed to sleepChristoph Hellwig1-4/+1
2021-11-09Merge tag 'for-5.16/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-6/+19
2021-11-01dm crypt: Make use of the helper macro kthread_run()Cai Huoqing1-2/+1
2021-10-27dm crypt: log aead integrity violations to audit subsystemMichael Weiß1-4/+18
2021-10-18block: move integrity handling out of <linux/blkdev.h>Christoph Hellwig1-0/+1
2021-08-20dm crypt: use in_hardirq() instead of deprecated in_irq()Changbin Du1-2/+2
2021-08-18dm crypt: Avoid percpu_counter spinlock contention in crypt_page_alloc()Arne Welzel1-1/+6
2021-08-10dm: update target status functions to support IMA measurementTushar Sugandhi1-0/+27
2021-06-04dm crypt: Fix zoned block device supportDamien Le Moal1-5/+19
2021-06-04dm: Introduce dm_report_zones()Damien Le Moal1-4/+3
2021-03-11block: rename BIO_MAX_PAGES to BIO_MAX_VECSChristoph Hellwig1-4/+4
2021-02-11dm: fix deadlock when swapping to encrypted deviceMikulas Patocka1-0/+1
2021-02-11dm: simplify target code conditional on CONFIG_BLK_DEV_ZONEDMike Snitzer1-4/+2
2021-02-03dm crypt: support using trusted keysAhmad Fatoum1-1/+22
2021-02-03dm crypt: replaced #if defined with IS_ENABLEDAhmad Fatoum1-5/+2
2021-02-03dm crypt: Spelling s/cihper/cipher/Geert Uytterhoeven1-1/+1
2021-01-21dm crypt: fix copy and paste bug in crypt_alloc_req_aeadIgnat Korchagin1-3/+3
2021-01-14dm crypt: defer decryption to a tasklet if interrupts disabledIgnat Korchagin1-2/+6
2021-01-12dm crypt: do not call bio_endio() from the dm-crypt taskletIgnat Korchagin1-1/+23
2021-01-04dm crypt: use GFP_ATOMIC when allocating crypto requests from softirqIgnat Korchagin1-10/+25
2021-01-04dm crypt: do not wait for backlogged crypto request completion in softirqIgnat Korchagin1-5/+98
2020-12-28Revert "dm crypt: export sysfs of kcryptd workqueue"Mike Snitzer1-4/+3
2020-12-04dm crypt: export sysfs of kcryptd workqueueJeffle Xu1-3/+4
2020-12-04dm crypt: Constify static crypt_iv_operationsRikard Falkeborn1-3/+3
2020-09-29dm crypt: don't use drivers that have CRYPTO_ALG_ALLOCATES_MEMORYMikulas Patocka1-6/+11
2020-09-01dm crypt: Initialize crypto wait structuresDamien Le Moal1-2/+2
2020-08-23treewide: Use fallthrough pseudo-keywordGustavo A. R. Silva1-1/+1
2020-08-07Merge tag 'for-5.9/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-13/+116
2020-08-07mm, treewide: rename kzfree() to kfree_sensitive()Waiman Long1-16/+16
2020-08-04Merge tag 'docs-5.9' of git://git.lwn.net/linuxLinus Torvalds1-1/+1
2020-07-20dm crypt: Enable zoned block device supportDamien Le Moal1-7/+76
2020-07-20dm crypt: add flags to optionally bypass kcryptd workqueuesIgnat Korchagin1-8/+42
2020-07-05Replace HTTP links with HTTPS ones: LVMAlexander A. Klimov1-1/+1
2020-07-01block: rename generic_make_request to submit_bio_noacctChristoph Hellwig1-3/+3
2020-06-05dm crypt: avoid truncating the logical block sizeEric Biggers1-1/+1
2020-05-20dm: replace zero-length array with flexible-arrayGustavo A. R. Silva1-1/+1
2020-05-15dm crypt: support using encrypted keysDmitry Baryshkov1-19/+57
2020-03-24dm crypt: use crypt_integrity_aead() helperYang Yingliang1-2/+4
2020-01-14dm crypt: fix benbi IV constructor crash if used in authenticated modeMilan Broz1-2/+8
2020-01-14dm crypt: Implement Elephant diffuser for Bitlocker compatibilityMilan Broz1-4/+319
2020-01-07dm crypt: fix GFP flags passed to skcipher_request_alloc()Mikulas Patocka1-1/+1
2019-11-20Revert "dm crypt: use WQ_HIGHPRI for the IO and crypt workqueues"Mike Snitzer1-6/+3
2019-09-03dm crypt: omit parsing of the encapsulated cipherArd Biesheuvel1-58/+0
2019-09-03dm crypt: switch to ESSIV crypto API templateArd Biesheuvel1-170/+43
2019-08-23dm crypt: reuse eboiv skcipher for IV generationArd Biesheuvel1-48/+22
2019-07-09dm crypt: implement eboiv - encrypted byte-offset initialization vectorMilan Broz1-1/+81
2019-07-09dm crypt: remove obsolete comment about plumb IVMilan Broz1-3/+0
2019-07-09dm crypt: wipe private IV struct after key invalid flag is setMilan Broz1-7/+9
2019-07-09dm crypt: use struct_size() when allocating encryption contextZhengyuan Liu1-1/+1
2019-05-16Merge tag 'for-5.2/dm-changes-v2' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-11/+15
2019-05-16dm crypt: print device name in integrity error messageMilan Broz1-3/+6
2019-05-16dm crypt: move detailed message into debug levelMilan Broz1-4/+5
2019-05-07Merge tag 'for-5.2/block-20190507' of git://git.kernel.dk/linux-blockLinus Torvalds1-2/+1
2019-04-30block: remove the i argument to bio_for_each_segment_allChristoph Hellwig1-2/+1
2019-04-25crypto: shash - remove shash_desc::flagsEric Biggers1-3/+0
2019-04-18dm crypt: fix endianness annotations around org_sector_of_dmreqChristoph Hellwig1-4/+4
2019-03-08Merge tag 'for-5.1/block-20190302' of git://git.kernel.dk/linux-blockLinus Torvalds1-1/+2
2019-02-15block: allow bio_for_each_segment_all() to iterate over multi-page bvecMing Lei1-1/+2
2019-02-11dm crypt: don't overallocate the integrity tag spaceMikulas Patocka1-1/+1
2019-01-10dm crypt: fix parsing of extended IV argumentsMilan Broz1-8/+17
2018-12-28Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-1/+1
2018-12-28Merge tag 'for-4.21/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-4/+13
2018-12-28mm: convert totalram_pages and totalhigh_pages variables to atomicArun KS1-1/+1
2018-12-18dm crypt: log the encryption algorithm implementationEric Biggers1-0/+9
2018-12-18dm: Check for device sector overflow if CONFIG_LBDAF is not setMilan Broz1-1/+1
2018-12-18dm crypt: use u64 instead of sector_t to store iv_offsetAliOS system security1-3/+3
2018-11-20crypto: drop mask=CRYPTO_ALG_ASYNC from 'cipher' tfm allocationsEric Biggers1-1/+1
2018-10-18dm crypt: make workqueue names device-specificMichał Mirosław1-5/+10
2018-09-06dm: disable CRYPTO_TFM_REQ_MAY_SLEEP to fix a GFP_KERNEL recursion deadlockMikulas Patocka1-5/+5
2018-08-13dm crypt: don't decrease device limitsMikulas Patocka1-5/+5
2018-07-27dm crypt: convert essiv from ahash to shashKees Cook1-17/+14
2018-07-27dm crypt: use wake_up_process() instead of a wait queueMikulas Patocka1-15/+10
2018-06-12Merge tag 'overflow-v4.18-rc1-part2' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-2/+3
2018-06-12treewide: kzalloc() -> kcalloc()Kees Cook1-2/+3
2018-06-08dm: adjust structure members to improve alignmentMike Snitzer1-13/+13
2018-06-02dm-crypt: fix warning in shutdown pathKent Overstreet1-4/+3
2018-05-30dm: convert to bioset_init()/mempool_init()Kent Overstreet1-32/+28
2018-04-03dm crypt: limit the number of allocated pagesMikulas Patocka1-1/+65
2018-04-03dm: allow targets to return output from messages they are sentMike Snitzer1-1/+2
2018-01-31Merge tag 'for-4.16/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-2/+3
2018-01-29Merge branch 'for-4.16/block' of git://git.kernel.dk/linux-blockLinus Torvalds1-1/+0
2018-01-17dm: backfill missing calls to mutex_destroy()Mike Snitzer1-0/+2
2018-01-17dm crypt: fix error return code in crypt_ctr()Wei Yongjun1-0/+1
2018-01-17dm crypt: wipe kernel key copy after IV initializationOndrej Kozina1-4/+8
2018-01-17dm crypt: fix crash by adding missing check for auth key sizeMilan Broz1-1/+6
2018-01-06dm-crypt: don't clear bvec->bv_page in crypt_free_buffer_pages()Ming Lei1-1/+0
2017-12-13dm crypt: remove BIOSET_NEED_RESCUER flagNeilBrown1-2/+1
2017-11-10dm crypt: allow unaligned bv_offsetMikulas Patocka1-2/+2
2017-10-04dm crypt: reject sector_size feature if device length is not aligned to itMilan Broz1-0/+4
2017-09-28dm crypt: fix memory leak in crypt_ctr_cipher_old()Jeffy Chen1-0/+1
2017-09-14Merge tag 'for-4.14/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-1/+1
2017-09-07Merge branch 'for-4.14/block' of git://git.kernel.dk/linux-blockLinus Torvalds1-5/+2
2017-08-28dm: constify argument arraysEric Biggers1-1/+1
2017-08-23block: replace bi_bdev with a gendisk pointer and partitions indexChristoph Hellwig1-2/+2
2017-08-09dm-crypt: don't mess with BIP_BLOCK_INTEGRITYChristoph Hellwig1-3/+0
2017-08-04crypto: algapi - make crypto_xor() take separate dst and src argumentsArd Biesheuvel1-6/+5
2017-06-19dm crypt: add big-endian variant of plain64 IVMilan Broz1-1/+20
2017-06-18blk: make the bioset rescue_workqueue optional.NeilBrown1-1/+2
2017-06-18blk: replace bioset_create_nobvec() with a flags arg to bioset_create()NeilBrown1-1/+1
2017-06-09block: switch bios to blk_status_tChristoph Hellwig1-17/+17
2017-06-09dm: don't return errnos from ->mapChristoph Hellwig1-2/+2
2017-05-03Merge tag 'for-4.12/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-241/+1012
2017-04-27dm crypt: replace custom implementation of hex2bin()Andy Shevchenko1-25/+2
2017-04-25dm crypt: remove obsolete references to per-CPU stateEric Biggers1-8/+8
2017-04-24dm crypt: use WQ_HIGHPRI for the IO and crypt workqueuesTim Murray1-3/+4
2017-04-24dm crypt: rewrite (wipe) key in crypto layer using random dataOndrej Kozina1-2/+6
2017-04-24dm crypt: fix large block integrity supportMikulas Patocka1-6/+12
2017-04-08block: remove the discard_zeroes_data flagChristoph Hellwig1-1/+0
2017-03-24dm crypt: use shifts instead of sector_divMikulas Patocka1-7/+10
2017-03-24dm crypt: optionally support larger encryption sector sizeMilan Broz1-23/+82
2017-03-24dm crypt: introduce new format of cipher with "capi:" prefixMilan Broz1-82/+193
2017-03-24dm crypt: factor IV constructor out to separate functionMilan Broz1-61/+69
2017-03-24dm crypt: add cryptographic data integrity protection (authenticated encryption)Milan Broz1-140/+742
2017-03-02KEYS: Differentiate uses of rcu_dereference_key() and user_key_payload()David Howells1-1/+1
2017-02-20Merge branch 'locking-core-for-linus' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-2/+2
2017-02-03dm crypt: replace RCU read-side section with rwsemOndrej Kozina1-4/+4
2017-01-14sched/core: Remove set_task_state()Davidlohr Bueso1-2/+2
2016-12-14Merge tag 'dm-4.10-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-33/+181
2016-12-08dm crypt: reject key strings containing whitespace charsOndrej Kozina1-0/+18
2016-12-08dm crypt: add ability to use keys from the kernel key retention serviceOndrej Kozina1-13/+146
2016-11-21dm crypt: constify crypt_iv_operations structuresJulia Lawall1-8/+8
2016-11-21dm crypt: rename crypt_setkey_allcpus to crypt_setkeyMikulas Patocka1-3/+3
2016-11-21dm crypt: mark key as invalid until properly loadedOndrej Kozina1-2/+5
2016-11-21dm crypt: use bio_add_page()Ming Lei1-7/+1
2016-10-28block: better op and flags encodingChristoph Hellwig1-1/+1
2016-10-09Merge tag 'dm-4.9-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/d...Linus Torvalds1-14/+10
2016-10-07Merge branch 'for-4.9/block' of git://git.kernel.dk/linux-blockLinus Torvalds1-1/+1
2016-09-22dm crypt: fix crash on exitRabin Vincent1-14/+10
2016-09-14block, dm-crypt, btrfs: Introduce bio_flags()Bart Van Assche1-1/+1
2016-08-30dm crypt: fix free of bad values after tfm allocation failureEric Biggers1-1/+1
2016-08-30dm crypt: fix error with too large biosMikulas Patocka1-0/+7
2016-08-15dm crypt: increase mempool reserve to better support swappingMikulas Patocka1-1/+1
2016-08-07block: rename bio bi_rw to bi_opfJens Axboe1-2/+2
2016-07-01dm crypt: Fix sparse complaintsBart Van Assche1-2/+2
2016-06-07block, drivers, fs: rename REQ_FLUSH to REQ_PREFLUSHMike Christie1-3/+4
2016-06-07dm: use bio op accessorsMike Christie1-4/+4
2016-03-17Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert...Linus Torvalds1-45/+48
2016-02-22dm: rename target's per_bio_data_size to per_io_data_sizeMike Snitzer1-1/+1
2016-01-27dm crypt: Use skcipher and ahashHerbert Xu1-45/+48