aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-integrity.c
AgeCommit message (Expand)AuthorFilesLines
2024-03-29dm integrity: fix out-of-range warningArnd Bergmann1-1/+1
2024-03-21dm-integrity: align the outgoing bio in integrity_recheckMikulas Patocka1-2/+10
2024-03-19dm-integrity: fix a memory leak when rechecking the dataMikulas Patocka1-3/+3
2024-03-13Merge tag 'for-6.9/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-7/+7
2024-03-06dm-integrity: set max_integrity_segments in dm_integrity_io_hintsChristoph Hellwig1-1/+1
2024-02-24dm-integrity, dm-verity: reduce stack usage for recheckArnd Bergmann1-6/+4
2024-02-20dm io: Support IO priorityHongyu Jin1-6/+6
2024-02-20dm-crypt, dm-integrity, dm-verity: bump target versionMike Snitzer1-1/+1
2024-02-20dm-integrity: recheck the integrity tag after a failureMikulas Patocka1-9/+84
2023-12-18dm-integrity: don't modify bio's immutable bio_vec in integrity_metadata()Mikulas Patocka1-5/+6
2023-10-31dm integrity: use crypto_shash_digest() in sb_mac()Eric Biggers1-20/+10
2023-07-25dm integrity: fix double free on memory allocation failureMikulas Patocka1-0/+1
2023-06-30Merge tag 'for-6.5/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-47/+38
2023-06-27dm integrity: scale down the recalculate buffer if memory allocation failsMikulas Patocka1-5/+11
2023-06-27dm integrity: only allocate recalculate buffer when neededMikulas Patocka1-26/+26
2023-06-27dm integrity: reduce vmalloc space footprint on 32-bit architecturesMikulas Patocka1-2/+2
2023-06-22dm integrity: Use %*ph for printing hexdump of a small bufferAndy Shevchenko1-18/+3
2023-05-25dm integrity: Use alloc_ordered_workqueue() to create ordered workqueuesTejun Heo1-2/+2
2023-04-11dm: remove unnecessary (void*) conversionsYu Zhe1-3/+3
2023-04-11dm: push error reporting down to dm_register_target()Yangtao Li1-1/+0
2023-04-04dm integrity: call kmem_cache_destroy() in dm_integrity_init() error pathMike Snitzer1-3/+5
2023-02-22Merge tag 'for-6.3/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-245/+296
2023-02-14dm integrity: change macros min/max() -> min_t/max_t where appropriateHeinz Mauelshagen1-5/+5
2023-02-14dm: fix use of sizeof() macroHeinz Mauelshagen1-8/+8
2023-02-14dm: avoid 'do {} while(0)' loop in single statement macrosHeinz Mauelshagen1-2/+2
2023-02-14dm: prefer '"%s...", __func__'Heinz Mauelshagen1-2/+2
2023-02-14dm: remove unnecessary braces from single statement blocksHeinz Mauelshagen1-28/+20
2023-02-14dm: add missing empty linesHeinz Mauelshagen1-8/+71
2023-02-14dm: fix trailing statementsHeinz Mauelshagen1-26/+28
2023-02-14dm: address indent/space issuesHeinz Mauelshagen1-3/+2
2023-02-14dm: change "unsigned" to "unsigned int"Heinz Mauelshagen1-160/+161
2023-02-14dm: add missing SPDX-License-IndentifiersHeinz Mauelshagen1-0/+1
2023-02-13dm: Remove completion function scaffoldingHerbert Xu1-2/+2
2023-02-13dm: Add scaffolding to change completion function signatureHerbert Xu1-2/+2
2023-02-02dm integrity: Remove bi_sector that's only used by commented debug codeJiapeng Chong1-7/+0
2022-11-30dm integrity: Fix UAF in dm_integrity_dtr()Luo Meng1-0/+2
2022-11-18Merge tag 'block-6.1-2022-11-18' of git://git.kernel.dk/linuxLinus Torvalds1-0/+1
2022-11-18dm integrity: clear the journal on suspendMikulas Patocka1-0/+13
2022-11-18dm integrity: flush the journal on suspendMikulas Patocka1-6/+1
2022-11-16dm-integrity: set dma_alignment limit in io_hintsKeith Busch1-0/+1
2022-08-06Merge tag 'for-6.0/dm-changes-2' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-1/+1
2022-07-28dm bufio: Add flags argument to dm_bufio_client_createNathan Huckleberry1-1/+1
2022-07-14dm/dm-integrity: Combine request operation and flagsBart Van Assche1-29/+34
2022-07-14dm/core: Reduce the size of struct dm_io_requestBart Van Assche1-10/+5
2022-07-14treewide: Rename enum req_opf into enum req_opBart Van Assche1-1/+1
2022-05-09dm integrity: fix error code in dm_integrity_ctr()Dan Carpenter1-2/+0
2022-04-13dm integrity: fix memory corruption when tag_size is less than digest sizeMikulas Patocka1-2/+5
2022-04-01dm integrity: set journal entry unused when shrinking deviceMikulas Patocka1-2/+4
2022-03-07dm-integrity: stop using bio_devnameChristoph Hellwig1-3/+2
2022-01-06dm integrity: Use struct_group() to zero struct journal_sectorKees Cook1-3/+6
2021-12-15dm integrity: fix data corruption due to improper use of bvec_kmap_localMike Snitzer1-1/+1
2021-11-09Merge tag 'for-5.16/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-9/+26
2021-11-01dm integrity: use bvec_kmap_local in __journal_read_writeChristoph Hellwig1-3/+3
2021-11-01dm integrity: use bvec_kmap_local in integrity_metadataChristoph Hellwig1-2/+2
2021-10-27dm integrity: log audit events for dm-integrity targetMichael Weiß1-4/+21
2021-10-18dm: use bdev_nr_sectors and bdev_nr_bytes instead of open coding themChristoph Hellwig1-3/+3
2021-08-31Merge tag 'for-5.15/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-0/+24
2021-08-20dm ima: update dm target attributes for ima measurementsTushar Sugandhi1-1/+0
2021-08-16dm-integrity: use bvec_virtChristoph Hellwig1-2/+2
2021-08-10dm: update target status functions to support IMA measurementTushar Sugandhi1-0/+25
2021-05-13dm integrity: fix sparse warningsMikulas Patocka1-12/+12
2021-05-13dm integrity: revert to not using discard filler when recalulatingMikulas Patocka1-33/+24
2021-04-30dm integrity: use discard support when recalculatingMikulas Patocka1-24/+33
2021-04-30dm integrity: increase RECALC_SECTORS to improve recalculate speedMikulas Patocka1-1/+1
2021-04-30dm integrity: don't re-write metadata if discarding same blocksMikulas Patocka1-2/+4
2021-04-19dm integrity: fix missing goto in bitmap_flush_interval error handlingTian Tao1-0/+1
2021-03-26dm integrity: add the "reset_recalculate" feature flagMikulas Patocka1-4/+17
2021-02-03dm integrity: introduce the "fix_hmac" argumentMikulas Patocka1-13/+125
2021-02-03dm integrity: fix spelling mistake "flusing" -> "flushing"Colin Ian King1-1/+1
2021-01-21dm integrity: conditionally disable "recalculate" featureMikulas Patocka1-2/+24
2021-01-21dm integrity: fix a crash if "recalculate" used without "internal_hash"Mikulas Patocka1-0/+6
2021-01-12dm integrity: fix the maximum number of argumentsMikulas Patocka1-1/+1
2021-01-08dm integrity: fix flush with external metadata deviceMikulas Patocka1-11/+49
2020-11-17dm integrity: don't use drivers that have CRYPTO_ALG_ALLOCATES_MEMORYMikulas Patocka1-2/+2
2020-09-01dm integrity: fix error reporting in bitmap mode after creationMikulas Patocka1-0/+12
2020-08-07mm, treewide: rename kzfree() to kfree_sensitive()Waiman Long1-3/+3
2020-08-03Merge tag 'for-5.9/block-20200802' of git://git.kernel.dk/linux-blockLinus Torvalds1-2/+2
2020-07-23dm integrity: fix integrity recalculation that is improperly skippedMikulas Patocka1-2/+2
2020-07-01block: rename generic_make_request to submit_bio_noacctChristoph Hellwig1-2/+2
2020-06-05Merge tag 'for-5.8/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-5/+1
2020-05-22block: remove the error_sector argument to blkdev_issue_flushChristoph Hellwig1-1/+1
2020-05-20dm: replace zero-length array with flexible-arrayGustavo A. R. Silva1-1/+1
2020-05-15dm integrity: remove set but not used variablesYueHaibing1-4/+0
2020-04-03dm integrity: fix logic bug in integrity tag testingMikulas Patocka1-1/+1
2020-04-03dm integrity: fix ppc64le warningMike Snitzer1-1/+1
2020-03-24dm integrity: improve discard in journal modeMikulas Patocka1-0/+16
2020-03-24dm integrity: add optional discard supportMikulas Patocka1-32/+145
2020-03-24dm integrity: allow resize of the integrity deviceMikulas Patocka1-7/+27
2020-03-24dm integrity: factor out get_provided_data_sectors()Mikulas Patocka1-10/+23
2020-03-24dm integrity: don't replay journal data past the end of the deviceMikulas Patocka1-0/+4
2020-03-24dm integrity: remove sector type castsMikulas Patocka1-17/+16
2020-03-24dm integrity: fix a crash with unusually large tag sizeMikulas Patocka1-2/+2
2020-03-24dm integrity: print device name in integrity_metadata() error messageErich Eckner1-1/+2
2020-03-03dm: bump version of core and various targetsMike Snitzer1-1/+1
2020-03-03dm integrity: use dm_bio_record and dm_bio_restoreMike Snitzer1-23/+9
2020-02-27dm: report suspended device during destroyMikulas Patocka1-7/+5
2020-02-25dm integrity: fix invalid table returned due to argument count mismatchMikulas Patocka1-1/+1
2020-02-25dm integrity: fix a deadlock due to offloading to an incorrect workqueueMikulas Patocka1-4/+15
2020-02-25dm integrity: fix recalculation when moving from journal mode to bitmap modeMikulas Patocka1-5/+12
2019-11-15dm integrity: fix excessive alignment of metadata runsMikulas Patocka1-5/+23
2019-09-17block: centralize PI remapping logic to the block layerMax Gurtovoy1-0/+10
2019-08-15dm integrity: fix a crash due to BUG_ON in __journal_read_write()Mikulas Patocka1-0/+15
2019-07-09dm integrity: use kzalloc() instead of kmalloc() + memset()Fuqian Huang1-2/+1
2019-07-09dm integrity: always set version on superblock updateMilan Broz1-1/+3
2019-05-16Merge tag 'for-5.2/dm-changes-v2' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-78/+639
2019-05-09dm integrity: whitespace, coding style and dead code cleanupMike Snitzer1-43/+61
2019-05-08dm integrity: implement synchronous mode for reboot handlingMikulas Patocka1-5/+38
2019-05-08dm integrity: handle machine reboot in bitmap modeMikulas Patocka1-0/+24
2019-05-08dm integrity: add a bitmap modeMikulas Patocka1-33/+503
2019-05-08dm integrity: introduce a function add_new_range_and_wait()Mikulas Patocka1-4/+8
2019-05-07Merge tag 'for-5.2/block-20190507' of git://git.kernel.dk/linux-blockLinus Torvalds1-6/+2
2019-05-07dm integrity: allow large ranges to be describedMikulas Patocka1-3/+3
2019-05-07dm ingerity: pass size to dm_integrity_alloc_page_list()Mikulas Patocka1-15/+15
2019-05-07dm integrity: introduce rw_journal_sectors()Mikulas Patocka1-6/+14
2019-05-07dm integrity: update documentationMikulas Patocka1-1/+3
2019-05-07dm integrity: don't report unused optionsMikulas Patocka1-3/+7
2019-05-07dm integrity: don't check null pointer before kvfree and vfreeMikulas Patocka1-4/+2
2019-05-07dm integrity: correctly calculate the size of metadata areaMikulas Patocka1-2/+2
2019-05-06Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert...Linus Torvalds1-2/+0
2019-04-25crypto: shash - remove shash_desc::flagsEric Biggers1-2/+0
2019-04-22Merge tag 'v5.1-rc6' into for-5.2/blockJens Axboe1-9/+7
2019-04-06block: remove CONFIG_LBDAFChristoph Hellwig1-6/+2
2019-04-05dm integrity: fix deadlock with overlapping I/OMikulas Patocka1-3/+1
2019-04-01dm integrity: make dm_integrity_init and dm_integrity_exit staticYueHaibing1-2/+2
2019-04-01dm integrity: change memcmp to strncmp in dm_integrity_ctrMikulas Patocka1-4/+4
2019-03-06dm integrity: limit the rate of error messagesMikulas Patocka1-4/+4
2019-03-05dm integrity: remove redundant unlikely annotationChengguang Xu1-1/+1
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-1/+1
2018-12-28mm: convert totalram_pages and totalhigh_pages variables to atomicArun KS1-1/+1
2018-12-18dm integrity: fix spelling mistake in workqueue nameColin Ian King1-1/+1
2018-11-20crypto: drop mask=CRYPTO_ALG_ASYNC from 'shash' tfm allocationsEric Biggers1-1/+1
2018-10-25Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert...Linus Torvalds1-6/+17
2018-10-11Merge tag 'alloc-args-v4.19-rc8' of https://git.kernel.org/pub/scm/linux/kern...Greg Kroah-Hartman1-1/+2
2018-10-05treewide: Replace more open-coded allocation size multiplicationsKees Cook1-1/+2
2018-09-14dm: Remove VLA usage from hashesKees Cook1-6/+17
2018-09-06dm: disable CRYPTO_TFM_REQ_MAY_SLEEP to fix a GFP_KERNEL recursion deadlockMikulas Patocka1-2/+2
2018-07-27dm integrity: recalculate checksums on creationMikulas Patocka1-4/+183
2018-07-27dm integrity: flush journal on suspend when using separate metadata deviceMikulas Patocka1-1/+3
2018-07-27dm integrity: use version 2 for separate metadataMikulas Patocka1-3/+13
2018-07-27dm integrity: allow separate metadata deviceMikulas Patocka1-54/+149
2018-07-27dm integrity: add ic->start in get_data_sector()Mikulas Patocka1-3/+4
2018-07-27dm integrity: report provided data sectors in the statusMikulas Patocka1-1/+3
2018-07-27dm integrity: implement fair range locksMikulas Patocka1-9/+59
2018-07-27dm integrity: decouple common code in dm_integrity_map_continue()Mikulas Patocka1-3/+7
2018-07-27dm integrity: change 'suspending' variable from bool to intMikulas Patocka1-3/+3
2018-06-12treewide: kvmalloc() -> kvmalloc_array()Kees Cook1-4/+11
2018-06-12treewide: kmalloc() -> kmalloc_array()Kees Cook1-1/+2
2018-06-04Merge tag 'for-4.18/block-20180603' of git://git.kernel.dk/linux-blockLinus Torvalds1-8/+7
2018-05-30dm: convert to bioset_init()/mempool_init()Kent Overstreet1-8/+7
2018-04-30dm integrity: use kvfree for kvmalloc'd memoryMikulas Patocka1-1/+1
2018-04-03dm bufio: move dm-bufio.h to include/linux/Mikulas Patocka1-1/+1
2018-04-03dm integrity: fail early if required HMAC key is not availableMilan Broz1-0/+3
2018-01-17dm integrity: don't store cipher request on the stackMikulas Patocka1-12/+37
2017-11-14md: Convert timers to use timer_setup()Kees Cook1-3/+3
2017-11-14Merge tag 'for-4.15/dm' of git://git.kernel.org/pub/scm/linux/kernel/git/devi...Linus Torvalds1-1/+1
2017-11-10dm integrity: allow unaligned bv_offsetMikulas Patocka1-1/+1
2017-10-25locking/atomics, dm-integrity: Convert ACCESS_ONCE() to READ_ONCE()/WRITE_ONCE()Mark Rutland1-7/+8
2017-09-14Merge tag 'for-4.14/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-16/+26
2017-09-11dm integrity: use init_completion instead of COMPLETION_INITIALIZER_ONSTACKArnd Bergmann1-10/+10
2017-09-11dm integrity: make blk_integrity_profile structure constBhumika Goyal1-1/+1
2017-09-11dm integrity: do not check integrity for failed read operationsHyunchul Lee1-1/+5
2017-08-28dm: constify argument arraysEric Biggers1-1/+1
2017-08-28dm integrity: count and display checksum failuresMikulas Patocka1-2/+8
2017-08-28dm integrity: optimize writing dm-bufio buffers that are partially changedMikulas Patocka1-1/+1
2017-08-23block: replace bi_bdev with a gendisk pointer and partitions indexChristoph Hellwig1-4/+7
2017-07-25dm integrity: test for corrupted disk format during table loadMikulas Patocka1-0/+5
2017-07-25dm integrity: WARN_ON if variables representing journal usage get out of syncMikulas Patocka1-0/+2
2017-07-19dm integrity: use plugging when writing the journalMikulas Patocka1-0/+5
2017-07-19dm integrity: fix inefficient allocation of journal spaceMikulas Patocka1-4/+6
2017-07-03Merge branch 'for-4.13/block' of git://git.kernel.dk/linux-blockLinus Torvalds1-15/+15
2017-06-21dm integrity: fix to not disable/enable interrupts from interrupt contextMike Snitzer1-2/+5
2017-06-12dm integrity: reject mappings too large for deviceOndrej Mosnáček1-0/+5
2017-06-12Merge tag 'v4.12-rc5' into for-4.13/blockJens Axboe1-22/+8
2017-06-09block: switch bios to blk_status_tChristoph Hellwig1-9/+9
2017-06-09dm: don't return errnos from ->mapChristoph Hellwig1-6/+6
2017-05-31dm: make flush bios explicitly syncJan Kara1-1/+2
2017-05-22dm integrity: use kvmalloc() instead of dm_integrity_kvmalloc()Mikulas Patocka1-21/+6
2017-04-27dm integrity: use previously calculated log2 of sectors_per_blockMikulas Patocka1-2/+1
2017-04-27dm integrity: use hex2bin instead of open-coded variantMikulas Patocka1-12/+2
2017-04-24dm integrity: support larger block sizesMikulas Patocka1-45/+174
2017-04-24dm integrity: various small changes and cleanupsMikulas Patocka1-54/+62
2017-03-24dm integrity: add recovery modeMikulas Patocka1-13/+27
2017-03-24dm integrity: factor out create_journal() from dm_integrity_ctr()Mike Snitzer1-183/+196
2017-03-24dm: add integrity targetMikulas Patocka1-0/+3085