aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/function/f_fs.c
AgeCommit message (Expand)AuthorFilesLines
13 daysMerge 6.9-rc7 into usb-nextGreg Kroah-Hartman1-2/+7
2024-04-23usb: gadget: f_fs: Fix a race condition when processing setup packets.Chris Wulff1-1/+1
2024-04-23usb: gadget: f_fs: Fix race between aio_cancel() and AIO request completeWesley Cheng1-1/+6
2024-04-23Merge 6.9-rc5 into usb-nextGreg Kroah-Hartman1-13/+16
2024-04-04usb: gadget: functionfs: Wait for fences before enqueueing DMABUFPaul Cercueil1-11/+12
2024-04-04usb: gadget: functionfs: Fix inverted DMA fence directionPaul Cercueil1-2/+4
2024-03-26usb: gadget: f_fs: Add the missing get_alt callbackHardik Gajjar1-1/+19
2024-02-17usb: gadget: functionfs: Add DMABUF import interfacePaul Cercueil1-0/+467
2024-02-17usb: gadget: functionfs: Factorize wait-for-endpoint codePaul Cercueil1-21/+27
2024-01-27usb: gadget: f_fs: expose ready state in configfsPeter Korsgaard1-0/+20
2024-01-18Merge tag 'usb-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/greg...Linus Torvalds1-3/+2
2023-12-15usb: gadget: f_fs: fix fortify warningDmitry Antipov1-3/+2
2023-11-28eventfd: simplify eventfd_signal()Christian Brauner1-2/+2
2023-10-30Merge tag 'hardening-v6.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-1/+1
2023-10-18function: convert to new timestamp accessorsJeff Layton1-2/+2
2023-10-02usb: gadget: f_fs: Annotate struct ffs_buffer with __counted_byKees Cook1-1/+1
2023-07-13usb: convert to ctime accessor functionsJeff Layton1-2/+1
2023-05-29usb: gadget: f_fs: Add unbind event before functionfs_unbindUttkarsh Aggarwal1-1/+1
2023-04-10Merge 6.3-rc6 into usb-nextGreg Kroah-Hartman1-1/+1
2023-04-05usb: gadget: f_fs: Fix ffs_epfile_read_iter to handle ITER_UBUFSandeep Dhavale1-1/+1
2023-03-29usb: gadget: ffs: remove ENTER() macroLinyu Yuan1-94/+0
2023-03-09usb: gadget: f_fs: Fix incorrect version checking of OS descsYuta Hayama1-2/+5
2023-02-06Merge 6.2-rc7 into usb-nextGreg Kroah-Hartman1-1/+3
2023-01-24usb: gadget: f_fs: Fix unbalanced spinlock in __ffs_ep0_queue_waitUdipto Goswami1-1/+3
2023-01-23Merge 6.2-rc5 into usb-nextGreg Kroah-Hartman1-0/+7
2023-01-17usb: gadget: f_fs: Ensure ep0req is dequeued before free_requestUdipto Goswami1-0/+2
2023-01-17usb: gadget: f_fs: Prevent race during ffs_ep0_queue_waitUdipto Goswami1-0/+5
2023-01-06usb: gadget: f_fs: use io_data->status consistentlyJohn Keeping1-4/+4
2022-09-07usb: gadget: f_fs: stricter integer overflow checksDan Carpenter1-2/+2
2022-08-19usb: move from strlcpy with unused retval to strscpyWolfram Sang1-1/+1
2022-06-10usb: gadget: f_fs: change ep->ep safe in ffs_epfile_io()Linyu Yuan1-0/+6
2022-06-10usb: gadget: f_fs: change ep->status safe in ffs_epfile_io()Linyu Yuan1-15/+19
2022-02-14Merge 5.17-rc4 into usb-nextGreg Kroah-Hartman1-14/+42
2022-01-31usb: f_fs: Fix use-after-free for epfileUdipto Goswami1-14/+42
2022-01-26usb: gadget: f_fs: Use struct_size() and flex_array_size() helpersGustavo A. R. Silva1-2/+2
2022-01-03Merge 5.16-rc8 into usb-nextGreg Kroah-Hartman1-3/+6
2021-12-21usb: gadget: f_fs: Clear ffs_eventfd in ffs_data_clear.Vincent Pelletier1-3/+6
2021-11-17usb: gadget: f_fs: Use stream_open() for endpoint filesPavankumar Kondeti1-2/+2
2021-10-25fs: get rid of the res2 iocb->ki_complete argumentJens Axboe1-1/+1
2021-10-25usb: remove res2 argument from gadget code completionsJens Axboe1-1/+1
2021-08-05usb: gadget: remove useless castSalah Triki1-1/+1
2021-08-05usb: gadget: Fix inconsistent indentWei Ming Chen1-1/+1
2021-06-14Merge tag 'v5.13-rc6' into usb-nextGreg Kroah-Hartman1-0/+3
2021-06-09usb: gadget: f_fs: Fix setting of device and driver data cross-referencesAndrew Gabbasov1-33/+32
2021-06-04usb: gadget: f_fs: Ensure io_completion_wq is idle during unbindWesley Cheng1-0/+3
2021-03-23USB: gadget: f_fs: fix memdup_user.cocci warningskernel test robot1-8/+3
2021-03-23usb: gadget/function/f_fs string table fix for multiple languagesDean Anderson1-1/+2
2020-12-10USB: gadget: f_fs: remove likely/unlikelyGreg Kroah-Hartman1-89/+88
2020-12-10usb: gadget: f_fs: Re-use SS descriptors for SuperSpeedPlusJack Pham1-1/+4
2020-12-07Merge 5.10-rc7 into usb-nextGreg Kroah-Hartman1-2/+4
2020-12-04usb: gadget: f_fs: Use local copy of descriptors for userspace copyVamsi Krishna Samavedam1-2/+4
2020-11-23usb: Fix fall-through warnings for ClangGustavo A. R. Silva1-0/+2
2020-07-10usb: gadget: Use fallthrough pseudo-keywordGustavo A. R. Silva1-1/+1
2020-07-09usb: gadget: function: f_fs: Demote function header which is clearly not kern...Lee Jones1-1/+1
2020-06-10kernel: set USER_DS in kthread_use_mmChristoph Hellwig1-4/+0
2020-06-10kernel: better document the use_mm/unuse_mm API contractChristoph Hellwig1-2/+2
2020-06-10kernel: move use_mm/unuse_mm to kthread.cChristoph Hellwig1-1/+1
2020-05-25usb: gadget: f_fs: remove unneeded semicolon in __ffs_data_got_descs()Jason Yan1-1/+1
2020-04-16usb: f_fs: Clear OS Extended descriptor counts to zero in ffs_data_reset()Udipto Goswami1-0/+4
2020-03-30Merge branch 'locking-core-for-linus' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-1/+1
2020-03-26usb: gadget: f_fs: Fix use after free issue as part of queue failureSriharsha Allenki1-0/+1
2020-03-21completion: Use simple wait queuesThomas Gleixner1-1/+1
2020-02-11usb: gadget: ffs: ffs_aio_cancel(): Save/restore IRQ flagsLars-Peter Clausen1-2/+3
2020-02-08Merge branch 'merge.nfs-fs_parse.1' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-8/+3
2020-02-07fs_parse: fold fs_parameter_desc/fs_parameter_specAl Viro1-7/+3
2020-02-07fs_parser: remove fs_parameter_description name fieldEric Sandeen1-1/+0
2020-01-15usb: gadget: f_fs: set req->num_sgs as 0 for non-sg transferPeter Chen1-0/+2
2019-12-09treewide: Use sizeof_field() macroPankaj Bharadiya1-1/+1
2019-10-23compat_ioctl: use correct compat_ptr() translation in driversArnd Bergmann1-11/+1
2019-09-18vfs: Convert functionfs to use the new mount APIDavid Howells1-113/+120
2019-06-18usb: gadget: Zero ffs_io_dataAndrzej Pietrasiewicz1-2/+4
2019-06-18usb: gadget: f_fs: data_len used before properly setFei Yang1-1/+2
2019-05-03usb: gadget: f_fs: don't free buffer prematurelyFei Yang1-1/+2
2019-02-11usb: f_fs: Avoid crash due to out-of-scope stack ptr accessJohn Stultz1-0/+1
2019-02-07usb: gadget: f_fs: preserve wMaxPacketSize across usb_ep_autoconfig() callAndrzej Pietrasiewicz1-0/+11
2018-11-26usb: gadget: f_fs: Allow scatter-gather buffersAndrzej Pietrasiewicz1-7/+86
2018-11-26usb: gadget: f_fs: Add support for CCID descriptors.Vincent Pelletier1-7/+22
2018-11-14Revert "usb: gadget: ffs: Fix BUG when userland exits with submitted AIO tran...Shen Jing1-18/+8
2018-07-20usb: gadget: f_fs: Only return delayed status when len is 0Jerry Zhang1-1/+1
2018-06-18usb: gadget: ffs: Fix BUG when userland exits with submitted AIO transfersVincent Pelletier1-8/+18
2018-06-15Merge tag 'vfs-timespec64' of git://git.kernel.org/pub/scm/linux/kernel/git/a...Linus Torvalds1-1/+1
2018-06-05vfs: change inode times to use struct timespec64Deepa Dinamani1-1/+1
2018-05-15usb: gadget: f_fs: Add compat_ioctl to epfilesJerry Zhang1-0/+11
2018-03-23Merge tag 'usb-for-v4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/ba...Greg Kroah-Hartman1-1/+5
2018-03-13usb: gadget: ffs: Let setup() return USB_GADGET_DELAYED_STATUSLars-Peter Clausen1-1/+1
2018-03-13usb: gadget: ffs: Execute copy_to_user() with USER_DS setLars-Peter Clausen1-0/+4
2018-03-05usb: gadget: f_fs: Fix use-after-free in ffs_fs_kill_sb()Xinyong1-1/+0
2018-02-12usb: gadget: f_fs: Use config_ep_by_speed()Jack Pham1-31/+7
2018-02-12usb: gadget: f_fs: Process all descriptors during bindJack Pham1-4/+2
2018-02-11vfs: do bulk POLL* -> EPOLL* replacementLinus Torvalds1-4/+4
2018-02-01Merge tag 'usb-4.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gre...Linus Torvalds1-4/+8
2018-01-30Merge branch 'misc.poll' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-2/+2
2018-01-09usb: f_fs: Prevent gadget unbind if it is already unboundHemant Kumar1-1/+2
2017-12-11usb: gadget: ffs: Make sparse happierVincent Pelletier1-3/+6
2017-11-28the rest of drivers/*: annotate ->poll() instancesAl Viro1-2/+2
2017-11-28usb: f_fs: Force Reserved1=1 in OS_DESC_EXT_COMPATJohn Keeping1-2/+11
2017-11-27usb: gadget: ffs: Forbid usb_ep_alloc_request from sleepingVincent Pelletier1-1/+1
2017-11-14Merge tag 'configfs-for-4.15' of git://git.infradead.org/users/hch/configfsLinus Torvalds1-1/+1
2017-11-09usb: gadget: f_fs: Fix use-after-free in ffs_free_instAndrew Gabbasov1-0/+1
2017-11-07USB: gadget: function: Remove redundant license textGreg Kroah-Hartman1-5/+0
2017-11-04USB: add SPDX identifiers to all remaining files in drivers/usb/Greg Kroah-Hartman1-0/+1
2017-10-19usb: gadget: make config_item_type structures constBhumika Goyal1-1/+1
2017-09-28usb: gadget: ffs: handle I/O completion in-orderJohn Keeping1-4/+13
2017-08-15usb: gadget: f_fs: Pass along set_halt errors.Jerry Zhang1-4/+3
2017-06-20Merge tag 'usb-for-v4.13' of git://git.kernel.org/pub/scm/linux/kernel/git/ba...Greg Kroah-Hartman1-47/+63
2017-06-02usb: gadget: function: f_fs: Move epfile waitqueue to ffs_data.Jerry Zhang1-9/+10
2017-06-02usb: gadget: function: f_fs: Let ffs_epfile_ioctl wait for enable.Jerry Zhang1-39/+54
2017-05-16usb: gadget: f_fs: avoid out of bounds access on comp_descWilliam Wu1-5/+5
2017-04-11Merge tag 'usb-for-v4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/ba...Greg Kroah-Hartman1-59/+13
2017-04-11usb: gadget: f_fs: simplify ffs_dev name handlingMichal Nazarewicz1-59/+13
2017-03-17drivers, usb: convert ffs_data.ref from atomic_t to refcount_tElena Reshetova1-4/+4
2017-03-06Revert "usb: gadget: f_fs: Fix ExtCompat descriptor validation"Janusz Dziedzic1-1/+1
2017-03-06usb: gadget: function: f_fs: pass companion descriptor alongFelipe Balbi1-2/+13
2017-03-02sched/headers: Prepare to move signal wakeup & sigpending methods from <linux...Ingo Molnar1-0/+1
2017-02-22Merge tag 'usb-4.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gre...Linus Torvalds1-2/+2
2017-02-20Merge branch 'locking-core-for-linus' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-1/+1
2017-02-06Merge 4.10-rc7 into usb-nextGreg Kroah-Hartman1-1/+12
2017-01-26Merge tag 'usb-for-v4.11' of git://git.kernel.org/pub/scm/linux/kernel/git/ba...Greg Kroah-Hartman1-2/+2
2017-01-25usb: gadget: f_fs: Assorted buffer overflow checks.Vincent Pelletier1-1/+12
2017-01-24usb: gadget: f_fs: Accept up to 30 endpoints.Vincent Pelletier1-1/+1
2017-01-24usb: gadger: f_fs: Do not copy past descriptor end.Vincent Pelletier1-1/+1
2017-01-14locking/atomic, kref: Add kref_read()Peter Zijlstra1-1/+1
2017-01-12usb: gadget: f_fs: Fix iterations on endpoints.Vincent Pelletier1-6/+6
2017-01-02usb: gadget: f_fs: Fix possibe deadlockBaolin Wang1-2/+6
2017-01-02usb: gadget: f_fs: Fix ExtCompat descriptor validationVincent Pelletier1-1/+1
2017-01-02usb: gadget: f_fs: Document eventfd effect on descriptor format.Vincent Pelletier1-2/+2
2016-12-16Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+1
2016-12-05[iov_iter] new primitives - copy_from_iter_full() and friendsAl Viro1-1/+1
2016-11-28Merge 4.9-rc7 into usb-nextGreg Kroah-Hartman1-4/+4
2016-11-18usb: gadget: f_fs: fix wrong parenthesis in ffs_func_req_match()Felix Hädicke1-4/+4
2016-11-03usb: gadget: f_fs: use complete() instead complete_all()Daniel Wagner1-1/+1
2016-10-17usb: gadget: f_fs: stop sleeping in ffs_func_eps_disableMichal Nazarewicz1-16/+93
2016-10-17usb: gadget: f_fs: edit epfile->ep under lockMichal Nazarewicz1-3/+3
2016-10-10Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-4/+4
2016-09-27fs: Replace CURRENT_TIME with current_time() for inode timestampsDeepa Dinamani1-4/+4
2016-09-08usb: gadget: f_fs: Stop ffs_closed NULL pointer dereferenceJim Baxter1-0/+5
2016-08-25usb: gadget: f_fs: handle control requests in config 0Felix Hädicke1-2/+3
2016-08-25usb: gadget: composite: let USB functions process ctrl reqs in cfg0Felix Hädicke1-2/+7
2016-08-25usb: gadget: f_fs: handle control requests not directed to interface or endpointFelix Hädicke1-4/+30
2016-06-29usb: gadget: f_fs: check for allocation failureDan Carpenter1-0/+2
2016-06-21usb: gadget: f_fs: buffer data from ‘oversized’ OUT requestsMichal Nazarewicz1-21/+109
2016-06-21usb: gadget: f_fs: printk error when excess data is dropped on readMichal Nazarewicz1-15/+46
2016-06-21usb: gadget: fix unused-but-set-variale warningsMichal Nazarewicz1-2/+1
2016-05-31usb: gadget: f_fs: Fix kernel panic if use_os_string not setJim Lin1-8/+10
2016-05-31usb: gadget: f_fs: Fix wrong check on reserved1 of OS_DESC_EXT_COMPATJim Lin1-1/+1
2016-05-31usb: f_fs: off by one bug in _ffs_func_bind()Dan Carpenter1-6/+4
2016-04-28Merge tag 'usb-for-v4.7' of git://git.kernel.org/pub/scm/linux/kernel/git/bal...Greg Kroah-Hartman1-1/+1
2016-04-20usb: gadget: f_fs: Fix use-after-freeLars-Peter Clausen1-3/+2
2016-04-19usb: gadget: f_fs: Fix EFAULT generation for async read operationsLars-Peter Clausen1-1/+1
2016-04-04mm, fs: get rid of PAGE_CACHE_* and page_cache_{get,release} macrosKirill A. Shutemov1-2/+2
2016-03-04usb: f_fs: avoid race condition with ffs_epfile_io_completeDu, Changbin1-3/+9
2016-03-04usb: f_fs: refactor ffs_epfile_ioMichal Nazarewicz1-69/+58
2016-03-04usb: f_fs: replace unnecessary goto with a returnMichal Nazarewicz1-16/+8
2016-03-04usb: f_fs: fix ffs_epfile_io returning success on req alloc failureMichal Nazarewicz1-1/+3
2016-03-04usb: f_fs: fix memory leak when ep changes during transferMichal Nazarewicz1-1/+1
2015-11-18usb: gadget: functionfs: fix missing access_ok checksDaniel Walter1-3/+3
2015-07-31usb: gadget: ffs: call functionfs_unbind() if _ffs_func_bind() failsRobert Baldyga1-1/+7
2015-07-06usb: gadget: f_fs: do not set cancel function on synchronous {read,write}Rui Miguel Silva1-2/+4
2015-06-08Merge 4.1-rc7 into usb-nextGreg Kroah-Hartman1-6/+9
2015-05-26usb: gadget: f_fs: add extra check before unregister_gadget_itemRui Miguel Silva1-2/+8
2015-05-26usb: gadget: f_fs: fix check in read operationRui Miguel Silva1-1/+1
2015-05-26usb: gadget: ffs: fix: Always call ffs_closed() in ffs_data_clear()Krzysztof Opasiak1-5/+8
2015-04-11make new_sync_{read,write}() staticAl Viro1-2/+0
2015-03-25fs: move struct kiocb to fs.hChristoph Hellwig1-0/+1
2015-03-13fs: split generic and aio kiocbChristoph Hellwig1-2/+3
2015-02-17gadget/function/f_fs.c: switch to ->{read,write}_iter()Al Viro1-78/+58
2015-02-17gadget/function/f_fs.c: use put iov_iter into io_dataAl Viro1-61/+25
2015-02-17gadget/function/f_fs.c: close leaksAl Viro1-2/+12
2015-01-27usb: gadget: ffs: add eventfd notification about ffs eventsRobert Baldyga1-1/+28
2015-01-27usb: gadget: f_fs: Fix loop variableMario Schuknecht1-3/+3
2015-01-15usb: gadget: f_fs: add "no_disconnect" modeRobert Baldyga1-5/+51
2015-01-12usb: gadget: f_fs: refactor and document __ffs_ep0_read_events betterMichal Nazarewicz1-11/+17
2014-10-23usb: ffs: fix regression when quirk_ep_out_aligned_size flag is setDavid Cohen1-6/+34
2014-10-23usb: gadget: f_fs: remove redundant ffs_data_get()Robert Baldyga1-2/+0
2014-10-13Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-14/+10
2014-10-09f_fs: saner API for ffs_sb_create_file()Al Viro1-14/+10
2014-09-16usb: gadget: f_fs: virtual endpoint address mappingRobert Baldyga1-2/+21
2014-09-16Merge tag 'v3.17-rc5' into nextFelipe Balbi1-11/+55
2014-09-11usb: f_fs: replace BUG in dead-code with less serious WARN_ONMichal Nazarewicz1-1/+2
2014-09-09usb: gadget: f_fs: add ioctl returning ep descriptorRobert Baldyga1-0/+23
2014-09-09usb: gadget: f_fs: signedness bug in __ffs_func_bind_do_descs()Dan Carpenter1-1/+2
2014-09-03usb: gadget: f_fs: fix the redundant ep files problemRobert Baldyga1-11/+55
2014-07-21Merge tag 'usb-for-v3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/ba...Greg Kroah-Hartman1-0/+3349
2014-07-16usb: gadget: Gadget directory cleanup - group usb functionsAndrzej Pietrasiewicz1-0/+3347