aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sg.c
AgeCommit message (Expand)AuthorFilesLines
2024-04-04scsi: sg: Avoid race in error handling & drop bogus warnAlexander Wetzel1-8/+10
2024-03-25scsi: sg: Avoid sg device teardown raceAlexander Wetzel1-1/+3
2024-03-10scsi: sg: Make sg_sysfs_class constantRicardo B. Marliere1-9/+9
2023-10-11scsi: Remove now superfluous sentinel element from ctl_table arrayJoel Granados1-1/+0
2023-07-19scsi: sg: Fix checking return value of blk_get_queue()Yu Kuai1-3/+4
2023-06-30Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-1/+1
2023-06-23scsi/sg: don't grab scsi host module referenceYu Kuai1-3/+3
2023-06-16scsi: sg: Increase number of devicesHannes Reinecke1-1/+1
2023-06-14scsi: sg: fix blktrace debugfs entries leakageYu Kuai1-0/+9
2023-06-12scsi: replace the fmode_t argument to scsi_ioctl with a simple boolChristoph Hellwig1-2/+3
2023-06-12scsi: replace the fmode_t argument to scsi_cmd_allowed with a simple boolChristoph Hellwig1-1/+1
2023-04-03driver core: class: remove struct class_interface * from callbacksGreg Kroah-Hartman1-4/+4
2023-03-17driver core: class: remove module * from class_create()Greg Kroah-Hartman1-1/+1
2023-02-09mm: replace vma->vm_flags direct modifications with modifier callsSuren Baghdasaryan1-1/+1
2022-12-22Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-1/+1
2022-12-01scsi: core: Rename status_byte to sg_status_byteMike Christie1-1/+1
2022-11-25use less confusing names for iov_iter direction initializersAl Viro1-1/+1
2022-09-30scsi: Use blk_rq_map_user_io helperAnuj Gupta1-20/+2
2022-09-30block: change request end_io handler to pass back a return valueJens Axboe1-4/+5
2022-07-18scsi: sg: Allow waiting for commands to complete on removed deviceTony Battersby1-20/+33
2022-05-28blk-mq: remove the done argument to blk_execute_rq_nowaitChristoph Hellwig1-1/+2
2022-03-24Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-29/+23
2022-03-01scsi: core: Remove struct scsi_requestChristoph Hellwig1-3/+1
2022-03-01scsi: core: Move the result field from struct scsi_request to struct scsi_cmndChristoph Hellwig1-2/+1
2022-03-01scsi: core: Move the resid_len field from struct scsi_request to struct scsi_...Christoph Hellwig1-1/+1
2022-03-01scsi: core: Remove the sense and sense_len fields from struct scsi_requestChristoph Hellwig1-3/+4
2022-03-01scsi: core: Remove the cmd field from struct scsi_requestChristoph Hellwig1-19/+11
2022-02-25uaccess: remove CONFIG_SET_FSArnd Bergmann1-5/+0
2022-02-22scsi: Remove drivers/scsi/scsi.hBart Van Assche1-2/+6
2022-01-22scsi/sg: move sg-big-buff sysctl to scsi/sg.cXiaoming Ni1-1/+34
2021-11-29scsi: remove the gendisk argument to scsi_ioctlChristoph Hellwig1-2/+2
2021-11-29block: remove the gendisk argument to blk_execute_rqChristoph Hellwig1-1/+1
2021-10-29block: remove blk_{get,put}_requestChristoph Hellwig1-3/+3
2021-10-22scsi: add a scsi_alloc_request helperChristoph Hellwig1-2/+2
2021-10-18block: drop unused includes in <linux/genhd.h>Christoph Hellwig1-0/+1
2021-09-02Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-27/+6
2021-08-25sg: pass the device name to blk_trace_setupChristoph Hellwig1-1/+1
2021-08-23sg: do not allocate a gendiskChristoph Hellwig1-23/+9
2021-07-28scsi: scsi_ioctl: Unexport sg_scsi_ioctl()Christoph Hellwig1-1/+1
2021-07-28scsi: scsi_ioctl: Simplify SCSI passthrough permission checkingChristoph Hellwig1-2/+3
2021-07-28scsi: scsi_ioctl: Call scsi_cmd_ioctl() from scsi_ioctl()Christoph Hellwig1-1/+1
2021-07-28scsi: core: Remove scsi_compat_ioctl()Christoph Hellwig1-3/+0
2021-07-28scsi: sg: Consolidate compat ioctl handlingChristoph Hellwig1-22/+3
2021-07-09Merge tag 'block-5.14-2021-07-08' of git://git.kernel.dk/linux-blockLinus Torvalds1-1/+1
2021-06-30block: remove REQ_OP_SCSI_{IN,OUT}Christoph Hellwig1-1/+1
2021-05-31scsi: core: Drop message byte helperHannes Reinecke1-1/+1
2021-05-31scsi: core: Kill DRIVER_SENSEHannes Reinecke1-2/+5
2021-04-28Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-1/+1
2021-04-06scsi: remove the unchecked_isa_dma flagChristoph Hellwig1-8/+2
2021-03-04scsi: core: Add scsi_device_busy() wrapperMing Lei1-1/+1
2021-01-24block: remove unnecessary argument from blk_execute_rq_nowaitGuoqing Jiang1-2/+1
2020-10-03iov_iter: transparently handle compat iovecs in import_iovecChristoph Hellwig1-8/+1
2020-04-14scsi: sg: add sg_remove_request in sg_writeWu Bo1-1/+3
2020-04-13scsi: sg: add sg_remove_request in sg_common_writeLi Bin1-1/+3
2020-02-04proc: convert everything to "struct proc_ops"Alexey Dobriyan1-16/+14
2020-01-03compat_ioctl: scsi: move ioctl handling into driversArnd Bergmann1-17/+27
2020-01-03compat: scsi: sg: fix v3 compat read/write interfaceArnd Bergmann1-67/+59
2019-12-02Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-50/+41
2019-11-06scsi: sg: sg_ioctl(): get rid of access_ok()Al Viro1-2/+0
2019-11-06scsi: sg: sg_write(): get rid of access_ok()/__copy_from_user()/__get_user()Al Viro1-5/+3
2019-11-06scsi: sg: sg_read(): get rid of access_ok()/__copy_..._user()Al Viro1-12/+6
2019-11-06scsi: sg: sg_new_write(): don't bother with access_okAl Viro1-3/+1
2019-11-06scsi: sg: sg_read(): simplify reading ->pack_id of userland sg_io_hdr_tAl Viro1-11/+2
2019-11-06scsi: sg: sg_write(): __get_user() can fail...Al Viro1-2/+4
2019-11-06scsi: sg: sg_new_write(): replace access_ok() + __copy_from_user() with copy_...Al Viro1-5/+1
2019-11-06scsi: sg: sg_ioctl(): fix copyout handlingAl Viro1-27/+16
2019-10-23compat_ioctl: move SG_GET_REQUEST_TABLE handlingArnd Bergmann1-5/+35
2019-10-23compat_ioctl: reimplement SG_IO handlingArnd Bergmann1-8/+11
2019-05-24treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 45Thomas Gleixner1-6/+1
2019-01-03Remove 'type' argument from access_ok() functionLinus Torvalds1-8/+8
2018-11-07block: remove __blk_put_request()Jens Axboe1-1/+1
2018-10-16scsi: sg: remove bad blk_end_request_all() callJens Axboe1-1/+1
2018-08-15Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-5/+2
2018-08-14Merge SCSI_IOCTL_SEND_COMMAND cleanup branch.Linus Torvalds1-9/+0
2018-07-12scsi: sg: update comment for blk_get_request()Tony Battersby1-9/+5
2018-07-12scsi: sg: fix minor memory leak in error pathTony Battersby1-0/+1
2018-07-10scsi sg: remove incorrect scsi command checking logicLinus Torvalds1-9/+0
2018-06-26scsi: sg: mitigate read/write abuseJann Horn1-2/+40
2018-06-19scsi: sg: clean up gfp_mask in sg_build_indirectJeff Moyer1-5/+2
2018-06-12treewide: kzalloc() -> kcalloc()Kees Cook1-1/+1
2018-06-10Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-1/+1
2018-06-04Merge branch 'hch.procfs' of git://git.kernel.org/pub/scm/linux/kernel/git/vi...Linus Torvalds1-112/+12
2018-06-04Merge tag 'for-4.18/block-20180603' of git://git.kernel.dk/linux-blockLinus Torvalds1-1/+1
2018-05-18scsi: sg: allocate with __GFP_ZERO in sg_build_indirect()Alexander Potapenko1-1/+1
2018-05-16sg: simplify procfs codeChristoph Hellwig1-112/+12
2018-05-14block: sanitize blk_get_request calling conventionsChristoph Hellwig1-1/+1
2018-04-19scsi: sg: Change return type to vm_fault_tSouptick Joarder1-1/+1
2018-02-11vfs: do bulk POLL* -> EPOLL* replacementLinus Torvalds1-6/+6
2017-11-28debugging printk in sg_poll() uses %x to print POLL... bitmapAl Viro1-1/+1
2017-11-28the rest of drivers/*: annotate ->poll() instancesAl Viro1-2/+2
2017-11-14Merge branch 'for-4.15/block' of git://git.kernel.dk/linux-blockLinus Torvalds1-1/+1
2017-11-10block: pass full fmode_t to blk_verify_commandChristoph Hellwig1-1/+1
2017-10-17scsi: sg: Re-fix off by one in sg_fill_request_table()Ben Hutchings1-1/+1
2017-09-15scsi: sg: fixup infoleak when using SG_GET_REQUEST_TABLEHannes Reinecke1-3/+2
2017-09-15scsi: sg: factor out sg_fill_request_table()Hannes Reinecke1-26/+35
2017-09-07Merge branch 'fixes' into miscJames Bottomley1-31/+2
2017-08-25scsi: sg: Fix type of last blk_trace_setup() argumentBart Van Assche1-2/+1
2017-08-24scsi: sg: protect against races between mmap() and SG_SET_RESERVED_SIZETodd Poynor1-3/+9
2017-08-24scsi: sg: recheck MMAP_IO request length with lock heldTodd Poynor1-2/+5
2017-08-22scsi: sg: off by one in sg_ioctl()Dan Carpenter1-1/+1
2017-07-27scsi: sg: only check for dxfer_len greater than 256MJohannes Thumshirn1-30/+1
2017-07-17scsi: sg: fix static checker warning in sg_is_valid_dxferJohannes Thumshirn1-2/+5
2017-07-12scsi: sg: fix SG_DXFER_FROM_DEV transfersJohannes Thumshirn1-1/+4
2017-06-20block: Make most scsi_req_init() calls implicitBart Van Assche1-2/+0
2017-06-09block: introduce new block status code typeChristoph Hellwig1-3/+3
2017-05-11scsi: sg: don't return bogus Sg_requestsJohannes Thumshirn1-2/+3
2017-05-04Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-143/+141
2017-05-01Merge branch 'work.uaccess' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-1/+1
2017-05-01Merge branch 'for-4.12/block' of git://git.kernel.dk/linux-blockLinus Torvalds1-2/+2
2017-04-24scsi: sg: reset 'res_in_use' after unlinking reserved arrayHannes Reinecke1-0/+2
2017-04-20scsi: introduce a result field in struct scsi_requestChristoph Hellwig1-1/+1
2017-04-11scsi: sg: close race condition in sg_remove_sfp_usercontext()Hannes Reinecke1-2/+10
2017-04-11scsi: sg: use standard lists for sg_requestsHannes Reinecke1-86/+61
2017-04-11scsi: sg: check for valid direction before starting the requestJohannes Thumshirn1-12/+34
2017-04-11scsi: sg: protect accesses to 'reserved' page arrayHannes Reinecke1-20/+25
2017-04-11scsi: sg: remove 'save_scat_len'Hannes Reinecke1-2/+0
2017-04-11scsi: sg: disable SET_FORCE_LOW_DMAHannes Reinecke1-21/+9
2017-04-05block, scsi: move the retries field to struct scsi_requestChristoph Hellwig1-1/+1
2017-03-29Merge remote-tracking branch 'mkp-scsi/4.11/scsi-fixes' into fixesJames Bottomley1-0/+2
2017-03-28new helper: uaccess_kernel()Al Viro1-1/+1
2017-03-16scsi: sg: check length passed to SG_NEXT_CMD_LENpeter chang1-0/+2
2017-02-24mm, fs: reduce fault, page_mkwrite, and pfn_mkwrite to take only vmfDave Jiang1-1/+2
2017-02-21Merge tag 'for-4.11/linus-merge-signed' of git://git.kernel.dk/linux-blockLinus Torvalds1-15/+18
2017-02-19Fix missing sanity check in /dev/sgAl Viro1-0/+4
2017-01-31block: fold cmd_type into the REQ_OP_ spaceChristoph Hellwig1-1/+2
2017-01-27block: split scsi_request out of struct requestChristoph Hellwig1-14/+16
2016-12-22sg_write()/bsg_write() is not fit to be called under KERNEL_DSAl Viro1-0/+3
2016-08-30scsi: sg: Use mult_frac, drop MULDIV macroPaul Burton1-15/+4
2016-08-30scsi: sg: Avoid overflow when USER_HZ > HZPaul Burton1-2/+3
2016-03-09sg: fix dxferp in from_to caseDouglas Gilbert1-1/+2
2016-02-03drivers/scsi/sg.c: mark VMA as VM_IO to prevent migrationKirill A. Shutemov1-1/+1
2015-11-02sg: Fix double-free when drives detach during SG_IOCalvin Owens1-1/+7
2015-04-11sg_start_req(): use import_iovec()Al Viro1-11/+5
2015-04-11sg_start_req(): make sure that there's not too many elements in iovecAl Viro1-0/+3
2015-04-11Merge branch 'iocb' into for-nextAl Viro1-1/+1
2015-03-25fs: move struct kiocb to fs.hChristoph Hellwig1-1/+1
2015-02-21Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-7/+33
2015-02-17sg: fix EWOULDBLOCK errors with scsi-mqTony Battersby1-1/+16
2015-02-17sg: fix unkillable I/O wait deadlock with scsi-mqTony Battersby1-3/+14
2015-02-15sg: fix read() error reportingTony Battersby1-3/+3
2015-02-12Merge branch 'for-3.20/core' of git://git.kernel.dk/linux-blockLinus Torvalds1-9/+6
2015-02-05block: pass iov_iter to the BLOCK_PC mapping functionsKent Overstreet1-9/+6
2015-02-02sg: remove an unused variableBart Van Assche1-16/+1
2014-11-12scsi: split scsi_nonblockable_ioctlChristoph Hellwig1-18/+15
2014-11-12scsi: refactor scsi_reset_provider handlingChristoph Hellwig1-31/+3
2014-11-12scsi: use sdev as argument for sense code printingHannes Reinecke1-1/+1
2014-11-12scsi: introduce sdev_prefix_printk()Hannes Reinecke1-2/+2
2014-11-12scsi: add SG_SCSI_RESET_NO_ESCALATE flag to SG_SCSI_RESET ioctlDouglas Gilbert1-6/+11
2014-08-28block,scsi: fixup blk_get_request dead queue scenariosJoe Lawrence1-2/+2
2014-07-25scsi: convert device_busy to atomic_tChristoph Hellwig1-1/+1
2014-07-17scsi: Implement sg_printk()Hannes Reinecke1-68/+95
2014-07-17scsi: use 64-bit LUNsHannes Reinecke1-2/+2
2014-07-17sg: O_EXCL and other lock handlingDouglas Gilbert1-194/+230
2014-07-17sg: add SG_FLAG_Q_AT_TAIL flagDouglas Gilbert1-2/+7
2014-07-17sg: relax 16 byte cdb restrictionDouglas Gilbert1-17/+29
2014-07-17sg: prevent integer overflow when converting from sectors to bytesAkinobu Mita1-4/+13
2014-06-06block: add blk_rq_set_block_pc()Jens Axboe1-2/+1
2013-10-25[SCSI] Revert "sg: use rwsem to solve race during exclusive open"James Bottomley1-41/+38
2013-10-25[SCSI] Revert "sg: no need sg_open_exclusive_lock"James Bottomley1-5/+29
2013-10-25[SCSI] Revert "sg: checking sdp->detached isn't protected when open"James Bottomley1-9/+8
2013-10-25[SCSI] Revert "sg: push file descriptor list locking down to per-device locking"James Bottomley1-34/+28
2013-09-03[SCSI] sg: push file descriptor list locking down to per-device lockingVaughan Cao1-28/+34
2013-09-03[SCSI] sg: checking sdp->detached isn't protected when openVaughan Cao1-8/+9
2013-09-03[SCSI] sg: no need sg_open_exclusive_lockVaughan Cao1-29/+5
2013-09-03[SCSI] sg: use rwsem to solve race during exclusive openVaughan Cao1-38/+41
2013-05-07aio: don't include aio.h in sched.hKent Overstreet1-0/+1
2013-02-27scsi: convert to idr_alloc()Tejun Heo1-26/+17
2012-10-09mm: kill vma flag VM_RESERVED and mm->reserved_vm counterKonstantin Khlebnikov1-1/+1
2012-05-17[SCSI] sg: constify sg_proc_leaf_arrJörn Engel1-2/+2
2012-05-17[SCSI] sg: remove sg_mutexJörn Engel1-17/+2
2012-05-17[SCSI] sg: completely protect sfdsJörn Engel1-3/+16
2012-05-17[SCSI] sg: protect sdp->excludeJörn Engel1-7/+30
2012-05-17[SCSI] sg: prevent unwoken sleepJörn Engel1-2/+14
2012-05-17[SCSI] sg: remove closed flagJörn Engel1-7/+7
2012-05-17[SCSI] sg: use wait_event_interruptible()Jörn Engel1-12/+7
2012-05-17[SCSI] sg: remove while (1) non-loopJörn Engel1-30/+22
2012-05-17[SCSI] sg: remove unnecessary indentationJörn Engel1-29/+24
2012-01-16[SCSI] sg: convert to kstrtoul_from_user()Stephen Boyd1-14/+11
2012-01-03switch procfs to umode_t useAl Viro1-4/+3
2011-09-15scsi/sg: use printk_ratelimited instead of printk_ratelimitChristian Dietrich1-8/+10
2010-10-24Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jiko...Linus Torvalds1-1/+1
2010-10-22Merge branch 'for-2.6.37/core' of git://git.kernel.dk/linux-2.6-blockLinus Torvalds1-1/+1
2010-10-22Merge branch 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bklLinus Torvalds1-0/+1
2010-10-15llseek: automatically add .llseek fopArnd Bergmann1-0/+1
2010-09-23drivers/scsi: Remove unnecessary casts of private_dataJoe Perches1-1/+1
2010-09-16sg: fix a warning in blk_rq_aligned() callNamhyung Kim1-1/+1
2010-09-15scsi: autoconvert trivial BKL users to private mutexArnd Bergmann1-5/+7
2010-08-11drivers/scsi: use memdup_userJulia Lawall1-8/+3
2010-07-28[SCSI] implement runtime Power ManagementAlan Stern1-1/+9
2010-07-28[SCSI] sg: fix bio leak with a detached deviceFUJITA Tomonori1-0/+2
2010-05-17scsi: Push down BKL into ioctl functionsArnd Bergmann1-3/+14
2010-03-30include cleanup: Update gfp.h and slab.h includes to prepare for breaking imp...Tejun Heo1-0/+1
2010-02-26block: Consolidate phys_segment and hw_segment limitsMartin K. Petersen1-4/+2
2009-10-11Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6Linus Torvalds1-5/+5
2009-10-02[SCSI] sg: Free data buffers after calling blk_rq_unmap_userChristof Schmitt1-5/+5
2009-10-01const: constify remaining file_operationsAlexey Dobriyan1-13/+30
2009-09-27const: mark struct vm_struct_operationsAlexey Dobriyan1-1/+1
2009-09-23seq_file: constify seq_operationsJames Morris1-3/+3
2009-09-12[SCSI] sg: fix oops in the error path in sg_build_indirect()Michal Schmidt1-1/+1
2009-07-10block: fix sg SG_DXFER_TO_FROM_DEV regressionFUJITA Tomonori1-0/+4