aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_user.c
AgeCommit message (Expand)AuthorFilesLines
2023-09-27scsi: target: tcmu: Annotate struct tcmu_tmr with __counted_byKees Cook1-1/+1
2023-06-21scsi: target: tcmu: Replace strlcpy() with strscpy()Azeem Shaikh1-2/+2
2023-02-09mm: replace vma->vm_flags direct modifications with modifier callsSuren Baghdasaryan1-1/+1
2022-08-29genetlink: start to validate reserved header bytesJakub Kicinski1-0/+1
2022-05-19scsi: target: tcmu: Avoid holding XArray lock when calling lock_pageBodo Stroesser1-5/+5
2022-05-02scsi: target: tcmu: Fix possible data corruptionXiaoguang Wang1-3/+37
2022-03-29scsi: target: tcmu: Fix possible page UAFXiaoguang Wang1-1/+2
2022-02-22scsi: target: tcmu: Make cmd_ring_size changeable via configfsGuixin Liu1-10/+63
2021-10-18scsi: target: tcmu: Allocate zeroed pages for data areaBodo Stroesser1-2/+2
2021-10-04scsi: target: tcmu: Use struct_size() helper in kmalloc()Gustavo A. R. Silva1-2/+1
2021-08-03scsi: target: tcmu: Add new feature KEEP_BUFBodo Stroesser1-11/+139
2021-07-02Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-5/+5
2021-05-21scsi: target: tcmu: Fix boolreturn.cocci warningskernel test robot1-1/+1
2021-05-21scsi: target: tcmu: Fix xarray RCU warningBodo Stroesser1-5/+7
2021-05-14scsi: target: tcmu: Rename TCM_DEV_BIT_PLUGGED to TCMU_DEV_BIT_PLUGGEDBodo Stroesser1-4/+4
2021-04-28scsi: target: tcmu: Return from tcmu_handle_completions() if cmd_id not foundBodo Stroesser1-2/+2
2021-04-12scsi: target: tcmu: Make data_pages_per_blk changeable via configfsBodo Stroesser1-2/+53
2021-04-12scsi: target: tcmu: Replace block size definitions with new udev membersBodo Stroesser1-37/+45
2021-04-12scsi: target: tcmu: Remove function tcmu_get_block_page()Bodo Stroesser1-7/+1
2021-04-12scsi: target: tcmu: Support DATA_BLOCK_SIZE = N * PAGE_SIZEBodo Stroesser1-89/+116
2021-04-12scsi: target: tcmu: Prepare for PAGE_SIZE != DATA_BLOCK_SIZEBodo Stroesser1-41/+41
2021-04-12scsi: target: tcmu: Adjust names of variables and definitionsBodo Stroesser1-17/+22
2021-03-15scsi: target: tcmu: Adjust parameter in call to tcmu_blocks_release()Bodo Stroesser1-1/+1
2021-03-09scsi: target: tcmu: Use GFP_NOIO while handling cmds or holding cmdr_lockBodo Stroesser1-2/+2
2021-03-09scsi: target: tcmu: Replace radix_tree with XArrayBodo Stroesser1-18/+16
2021-03-09scsi: target: tcmu: Replace IDR by XArrayBodo Stroesser1-15/+15
2021-03-04scsi: target: tcmu: Add backend plug/unplug calloutsMike Christie1-2/+25
2021-02-22scsi: target: tcmu: Fix memory leak caused by wrong uio usageBodo Stroesser1-3/+26
2021-02-22scsi: target: tcmu: Move some functions without code changeBodo Stroesser1-80/+80
2021-01-14scsi: target: tcmu: Fix use-after-free of se_cmd->privShin'ichiro Kawasaki1-3/+8
2020-12-16Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-89/+75
2020-10-29scsi: target: tcmu: Replace zero-length array with flexible-array memberGustavo A. R. Silva1-1/+1
2020-10-26scsi: target: tcmu: scatter_/gather_data_area() reworkBodo Stroesser1-89/+75
2020-10-15Merge tag 'net-next-5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/ne...Linus Torvalds1-3/+3
2020-10-02genetlink: move to smaller ops wherever possibleJakub Kicinski1-3/+3
2020-10-02scsi: target: tcmu: Fix warning: 'page' may be used uninitializedJohn Donnelly1-1/+1
2020-09-22scsi: target: tcmu: Optimize scatter_data_area()Bodo Stroesser1-76/+63
2020-09-22scsi: target: tcmu: Optimize queue_cmd_ring()Bodo Stroesser1-82/+102
2020-09-22scsi: target: tcmu: Join tcmu_cmd_get_data_length() and tcmu_cmd_get_block_cnt()Bodo Stroesser1-30/+23
2020-09-15scsi: target: tcmu: Add missing newline when printing parametersXiongfeng Wang1-1/+1
2020-07-28scsi: target: tcmu: Make TMR notification optionalBodo Stroesser1-0/+38
2020-07-28scsi: target: tcmu: Implement tmr_notify callbackBodo Stroesser1-9/+216
2020-07-28scsi: target: tcmu: Fix and simplify timeout handlingBodo Stroesser1-36/+23
2020-07-28scsi: target: tcmu: Factor out new helper ring_insert_paddingBodo Stroesser1-21/+30
2020-07-28scsi: target: tcmu: Do not queue aborted commandsBodo Stroesser1-3/+4
2020-07-28scsi: target: tcmu: Use priv pointer in se_cmdBodo Stroesser1-2/+5
2020-06-29scsi: target: tcmu: Fix crash on ARM during cmd completionBodo Stroesser1-1/+8
2020-06-19scsi: target: tcmu: Fix crash in tcmu_flush_dcache_range on ARMBodo Stroesser1-1/+1
2020-06-19scsi: target: tcmu: Optimize use of flush_dcache_pageBodo Stroesser1-4/+7
2020-06-19scsi: target: tcmu: Remove unnecessary bit TCMU_CMD_BIT_INFLIGHTBodo Stroesser1-2/+0
2020-06-13Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-2/+2
2020-06-05Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-94/+83
2020-06-02scsi: target: tcmu: Fix size in calls to tcmu_flush_dcache_rangeBodo Stroesser1-2/+2
2020-05-26scsi: target: tcmu: Fix a use after free in tcmu_check_expired_queue_cmd()Dan Carpenter1-3/+3
2020-05-19scsi: target: tcmu: Userspace must not complete queued commandsBodo Stroesser1-83/+71
2020-05-07scsi: target: tcmu: Make pgr_support and alua_support attributes writableBodo Stroesser1-0/+2
2020-05-07scsi: target: Make transport_flags per deviceBodo Stroesser1-1/+1
2020-05-07scsi: target: tcmu: Add attributes enforce_pr_isids and force_pr_aptplBodo Stroesser1-10/+9
2020-04-13scsi: target: tcmu: reset_ring should reset TCMU_DEV_BIT_BROKENBodo Stroesser1-0/+1
2019-11-08scsi: target: tcmu: Prevent memory reclaim recursionDamien Le Moal1-3/+3
2019-09-21Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-0/+20
2019-08-14scsi: target: tcmu: avoid use-after-free after command timeoutDmitry Fomichev1-2/+7
2019-08-07scsi: target: tcmu: clean the nl_cmd of the udev when nl send failsLi Zhong1-0/+20
2019-07-11Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-9/+7
2019-06-20scsi: tcmu: Simplify tcmu_update_uio_info()Christophe JAILLET1-9/+7
2019-06-05treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 335Thomas Gleixner1-13/+1
2019-04-27genetlink: optionally validate strictly/dumpsJohannes Berg1-0/+4
2019-03-27Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-10/+9
2019-03-22genetlink: make policy common to familyJohannes Berg1-4/+1
2019-03-16Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-10/+9
2019-03-06scsi: target: tcmu: Switch to bitmap_zalloc()Andy Shevchenko1-5/+3
2019-03-06scsi: target: tcmu: wait for nl reply only if there are listeners or during a...Cathy Avery1-5/+6
2019-01-22scsi: tcmu: fix use after freeXiubo Li1-1/+2
2019-01-11scsi: tcmu: avoid cmd/qfull timers updated whenever a new cmd comesXiubo Li1-27/+61
2018-12-07scsi: target/tcmu: Fix queue_cmd_ring() declarationBart Van Assche1-1/+1
2018-08-15Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-140/+237
2018-07-30scsi: tcmu: use u64 for dev_sizeMike Christie1-13/+8
2018-07-30scsi: tcmu: use match_int for dev paramsMike Christie1-23/+14
2018-07-30scsi: tcmu: do not set max_blocks if data_bitmap has been setupMike Christie1-33/+40
2018-07-30scsi: tcmu: unmap if dev is configuredMike Christie1-0/+5
2018-07-30scsi: tcmu: check if dev is configured before block/resetMike Christie1-0/+10
2018-07-30scsi: tcmu: use lio core se_device configuration helperMike Christie1-8/+3
2018-07-30scsi: tcmu: initialize list headMike Christie1-0/+1
2018-07-30scsi: target_core_user: fix double unlockMike Christie1-1/+0
2018-06-26scsi: tcmu: Don't pass KERN_ERR to pr_errMike Christie1-1/+1
2018-06-26scsi: tcmu: add module wide block/reset_netlink supportMike Christie1-3/+97
2018-06-26scsi: tcmu: misc nl code cleanupMike Christie1-12/+9
2018-06-26scsi: tcmu: simplify nl interfaceMike Christie1-14/+12
2018-06-26scsi: tcmu: track nl commandsMike Christie1-29/+39
2018-06-26scsi: tcmu: delete unused __waitMike Christie1-1/+0
2018-06-18scsi: tcmu: remove useless code and clean up the code style.Xiubo Li1-6/+2
2018-06-18scsi: target: tcmu: add read length supportbstroesser@ts.fujitsu.com1-8/+36
2018-06-12treewide: kzalloc() -> kcalloc()Kees Cook1-2/+3
2018-06-10Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-39/+121
2018-05-14scsi: target: tcmu: fix error resetting qfull_time_out to defaultPrasanna Kumar Kalever1-0/+2
2018-05-08scsi: tcmu: refactor nl wr_cache attr with new helpersZhu Lingshan1-69/+20
2018-05-08scsi: tcmu: refactor nl dev_size attr with new helpersZhu Lingshan1-2/+21
2018-05-08scsi: tcmu: refactor nl dev_cfg attr with new nl helpersZhu Lingshan1-2/+22
2018-05-08scsi: tcmu: refactor rm_device cmd with new nl helpersZhu Lingshan1-1/+15
2018-05-08scsi: tcmu: refactor add_device cmd with new nl helpersZhu Lingshan1-1/+16
2018-05-08scsi: tcmu: add new netlink events helpersZhu Lingshan1-0/+59
2018-04-20scsi: target: target_core_user.[ch]: convert comments into DOC:Randy Dunlap1-2/+6
2018-04-19scsi: target: Change return type to vm_fault_tSouptick Joarder1-1/+1
2018-01-18tcmu: Fix trailing semicolonLuis de Bethencourt1-1/+1
2018-01-18tcmu: fix cmd user after freeMike Christie1-2/+1
2018-01-16tcmu: allow userspace to reset ringMike Christie1-4/+166
2018-01-12tcmu: fix error return code in tcmu_configure_device()Wei Yongjun1-1/+3
2018-01-12target_core_user: add cmd id to broken ring messageMike Christie1-1/+2
2018-01-12tcmu: prevent corruption when invalid data page requestedMike Christie1-37/+6
2018-01-12tcmu: allow max block and global max blocks to be settableMike Christie1-19/+124
2018-01-12tcmu: make ring buffer timer configurableMike Christie1-34/+115
2018-01-12tcmu: don't block submitting context for block waitsMike Christie1-95/+169
2018-01-12tcmu: simplify dbi thresh handlingMike Christie1-19/+3
2018-01-12tcmu: prep queue_cmd_ring to be used by unmap wqMike Christie1-15/+27
2018-01-12tcmu: clean up the scatter helperXiubo Li1-5/+25
2018-01-12tcmu: fix free block calculationMike Christie1-3/+4
2018-01-12tcmu: simplify scatter_data_area error handlingMike Christie1-24/+7
2018-01-12tcmu: release blocks for partially setup cmdsMike Christie1-0/+7
2018-01-12tcmu: remove commands_lockMike Christie1-10/+3
2018-01-12tcmu: move expired command completion to unmap threadMike Christie1-9/+39
2018-01-12tcmu: fix unmap thread raceMike Christie1-33/+10
2018-01-12tcmu: split unmap_thread_fnMike Christie1-50/+70
2018-01-12tcmu: merge common block release codeMike Christie1-16/+8
2018-01-12tcmu: fix page addr in tcmu_flush_dcache_rangetangwenji1-2/+3
2017-11-25Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-4/+3
2017-11-24Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/...Linus Torvalds1-71/+137
2017-11-21treewide: setup_timer() -> timer_setup()Kees Cook1-4/+3
2017-11-08tcmu: Add a missing unlock on an error pathDan Carpenter1-0/+1
2017-11-08tcmu: Fix some memory corruptionDan Carpenter1-3/+2
2017-11-04tcmu: fix double se_cmd completionMike Christie1-23/+31
2017-11-04target: Add netlink command reply supported option for each deviceKenjiro Nakayama1-1/+58
2017-11-04target/tcmu: Use macro to call container_of in tcmu_cmd_time_out_showKenjiro Nakayama1-2/+1
2017-11-04tcmu: fix crash when removing the tcmu deviceXiubo Li1-45/+47
2017-10-25locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns ...Mark Rutland1-1/+1
2017-07-30tcmu: free old string on reconfigBryant G. Ly1-0/+2
2017-07-30tcmu: Fix possible to/from address overflow when doing the memcpyXiubo Li1-6/+5
2017-07-11tcmu: clean up the code and with one small fixXiubo Li1-13/+11
2017-07-11tcmu: Fix possbile memory leak / OOPs when recalculating cmd base sizeXiubo Li1-7/+5
2017-07-09tcmu: Fix dev_config_storeBryant G. Ly1-8/+24
2017-07-06tcmu: fix sense handling during completionMike Christie1-2/+1
2017-07-06tcmu: Fix flushing cmd entry dcache pageXiubo Li1-2/+2
2017-07-06tcmu: fix multiple uio open/close sequencesMike Christie1-1/+5
2017-07-06tcmu: drop configured check in destroyMike Christie1-4/+2
2017-07-06tcmu: perfom device add, del and reconfig synchronouslyMike Christie1-20/+193
2017-07-06target: break up free_device callbackMike Christie1-3/+9
2017-07-06tcmu: reconfigure netlink attr changesMike Christie1-29/+44
2017-07-06tcmu: make array tcmu_attrib_attrs static constColin Ian King1-1/+1
2017-07-06tcmu: Fix module removal due to stuck unmap_thread thread againXiubo Li1-1/+1
2017-07-06tcmu: Add Type of reconfig into netlinkBryant G. Ly1-6/+14
2017-07-06tcmu: Make dev_config configurableBryant G. Ly1-0/+41
2017-07-06tcmu: Make dev_size configurable via userspaceBryant G. Ly1-5/+54
2017-07-06tcmu: Add netlink for device reconfigurationBryant G. Ly1-0/+12
2017-07-06tcmu: Support emulate_write_cacheBryant G. Ly1-0/+30
2017-05-23tcmu: fix crash during device removalMike Christie1-13/+33
2017-05-04tcmu: fix module removal due to stuck threadMike Christie1-0/+3
2017-05-02tcmu: Recalculate the tcmu_cmd size to save cmd area memoriesXiubo Li1-11/+41
2017-05-01tcmu: Add global data block pool supportXiubo Li1-128/+336
2017-05-01tcmu: Add dynamic growing data area feature supportXiubo Li1-101/+237
2017-04-02tcmu: Skip Data-Out blocks before gathering Data-In buffer for BIDI caseXiubo Li1-15/+33
2017-03-30tcmu: Fix wrongly calculating of the base_command_sizeXiubo Li1-2/+8
2017-03-30tcmu: Fix possible overwrite of t_data_sg's last iov[]Xiubo Li1-11/+23
2017-03-30tcmu: Allow cmd_time_out to be set to zero (disabled)Nicholas Bellinger1-5/+0
2017-03-18tcmu: Convert cmd_time_out into backend device attributeNicholas Bellinger1-26/+68
2017-03-18tcmu: make cmd timeout configurableMike Christie1-6/+35
2017-03-18tcmu: add helper to check if dev was configuredMike Christie1-2/+6
2017-03-18tcmu: return on first Opt parse failureMike Christie1-0/+3
2017-03-18tcmu: allow hw_max_sectors greater than 128Mike Christie1-19/+35
2017-02-28Merge branch 'idr-4.11' of git://git.infradead.org/users/willy/linux-daxLinus Torvalds1-3/+1
2017-02-24mm, fs: reduce fault, page_mkwrite, and pfn_mkwrite to take only vmfDave Jiang1-3/+3
2017-02-13idr: Return the deleted entry from idr_removeMatthew Wilcox1-3/+1
2016-12-21Merge branch 'scsi-target-for-v4.10' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-3/+2
2016-12-15target/user: Fix use-after-free of tcmu_cmds if they are expiredAndy Grover1-2/+0
2016-12-09target/user: Add an #include directiveBart Van Assche1-0/+1
2016-12-09target/user: Fix a data type in tcmu_queue_cmd()Bart Van Assche1-1/+1
2016-10-30Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-29/+21
2016-10-27genetlink: mark families as __ro_after_initJohannes Berg1-1/+1
2016-10-27genetlink: statically initialize familiesJohannes Berg1-0/+1
2016-10-27genetlink: no longer support using static family IDsJohannes Berg1-1/+0
2016-10-19target/user: Fix comments to not refer to data ringAndy Grover1-7/+5
2016-10-19target/user: Return an error if cmd data size is too largeAndy Grover1-3/+6
2016-10-19target/user: Use sense_reason_t in tcmu_queue_cmd_ringAndy Grover1-19/+10
2016-03-10target/user: Report capability of handling out-of-order completions to userspaceSheng Yang1-0/+1
2016-03-10target/user: Fix size_t format-spec build warningNicholas Bellinger1-3/+2
2016-03-10target/user: Don't free expired command when time outSheng Yang1-8/+17
2016-03-10target/user: Introduce data_bitmap, replace data_length/data_head/data_tailSheng Yang1-100/+121
2016-03-10target/user: Free data ring in unified functionSheng Yang1-10/+12
2016-03-10target/user: Use iovec[] to describe continuous areaSheng Yang1-15/+26
2016-02-06target/user: Fix cast from pointer to phys_addr_tArnd Bergmann1-1/+1
2016-01-20Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/...Linus Torvalds1-3/+6
2016-01-20target/user: Make sure netlink would reach all network namespacesSheng Yang1-1/+2
2016-01-07target/user: Allow user to set block size before enabling deviceSheng Yang1-1/+3
2016-01-06target: use offset_in_page macroGeliang Tang1-1/+1
2015-11-28target/user: Do not set unused fields in tcmu_opsAndy Grover1-2/+0
2015-11-28target/user: Fix time calc in expired cmd processingAndy Grover1-1/+1
2015-09-11target: use stringify.h instead of own definitionDavid Disseldorp1-1/+2
2015-09-11target/user: Fix UFLAG_UNKNOWN_OP handlingAndy Grover1-8/+2
2015-09-11target/user: Remove unused variableAndy Grover1-1/+0
2015-07-04Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/...Linus Torvalds1-119/+147
2015-06-24Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds1-0/+1
2015-06-23Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-2/+3