aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/devio.c
AgeCommit message (Expand)AuthorFilesLines
2023-10-18usb: convert to new timestamp accessorsJeff Layton1-9/+17
2023-07-13usb: convert to ctime accessor functionsJeff Layton1-8/+8
2023-06-13usb: update the ctime as well when updating mtime after an ioctlJeff Layton1-8/+8
2023-06-05Merge 6.4-rc5 into usb-nextGreg Kroah-Hartman1-6/+14
2023-05-29usb: usbfs: Use consistent mmap functionsRuihan Li1-2/+9
2023-05-29usb: usbfs: Enforce page requirements for mmapRuihan Li1-4/+5
2023-05-29usb: hide unused usbfs_notify_suspend/resume functionsArnd Bergmann1-0/+2
2023-02-09mm: replace vma->vm_flags direct modifications with modifier callsSuren Baghdasaryan1-2/+1
2022-08-19usb: move from strlcpy with unused retval to strscpyWolfram Sang1-1/+1
2022-04-21usb: core: Don't hold the device lock while sleeping in do_proc_control()Tasos Sahanidis1-5/+9
2022-02-11USB: usbfs: Use a spinlock instead of atomic accesses to tally used memory.Ingo Rohloff1-10/+22
2021-09-14USB: core: Make do_proc_control() and do_proc_bulk() killableAlan Stern1-33/+111
2021-07-12USB: core: Fix incorrect pipe calculation in do_proc_control()Alan Stern1-1/+1
2021-05-31Merge 5.13-rc4 into usb-nextGreg Kroah-Hartman1-3/+8
2021-05-24USB: usbfs: remove double evaluation of usb_sndctrlpipe()Geoffrey D. Bennett1-1/+1
2021-05-21USB: usbfs: Don't WARN about excessively large memory allocationsAlan Stern1-3/+8
2020-11-20USB: core: Change %pK for __user pointers to %pxAlan Stern1-7/+7
2020-07-22usb: usbfs: stop using compat_alloc_user_spaceChristoph Hellwig1-57/+69
2020-06-01Merge branch 'uaccess.access_ok' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-9/+0
2020-05-29usb: get rid of pointless access_ok() callsAl Viro1-9/+0
2020-05-14USB: usbfs: fix mmap dma mismatchGreg Kroah-Hartman1-3/+13
2020-05-05usb: usbfs: correct kernel->user page attribute mismatchJeremy Linton1-3/+2
2020-01-17USB: usbfs: Always unlink URBs in reverse orderAlan Stern1-2/+2
2019-12-01Merge tag 'compat-ioctl-5.5' of git://git.kernel.org:/pub/scm/linux/kernel/gi...Linus Torvalds1-15/+1
2019-10-23compat_ioctl: move drivers to compat_ptr_ioctlArnd Bergmann1-15/+1
2019-10-15usb: usbfs: Suppress problematic bind and unbind uevents.Ingo Rohloff1-1/+14
2019-10-10usb: core: devio.c: Fix assignment of 0/1 to bool variablesSaurav Girepunje1-2/+2
2019-09-03Merge generic_lookup_helpers into usb-nextGreg Kroah-Hartman1-7/+1
2019-08-21usb: usbfs: only account once for mmap()'ed usb memory usageGavin Li1-1/+2
2019-08-14USB: usbfs: Add a capability flag for runtime suspendAlan Stern1-1/+8
2019-08-12Merge 5.3-rc4 into usb-nextGreg Kroah-Hartman1-2/+0
2019-08-09usbfs: Add ioctls for runtime power managementAlan Stern1-5/+91
2019-08-05usb: usbfs: fix double-free of usb memory upon submiturb errorGavin Li1-2/+0
2019-07-30drivers: Introduce device lookup variants by device typeSuzuki K Poulose1-7/+1
2019-07-12Merge tag 'driver-core-5.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-2/+2
2019-07-11Merge tag 'usb-5.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/greg...Linus Torvalds1-21/+50
2019-06-26USB: core: Fix compiler warnings in devio.cAlan Stern1-6/+6
2019-06-26USB: core: Remove usbfs_mutexAlan Stern1-9/+0
2019-06-24bus_find_device: Unify the match callback with class_find_deviceSuzuki K Poulose1-2/+2
2019-06-18USB: add usbfs ioctl to retrieve the connection parametersDmitry Torokhov1-1/+41
2019-05-24usb: avoid redundant allocation and free of memoryWeitao Hou1-5/+3
2019-05-22signal/usb: Replace kill_pid_info_as_cred with kill_pid_usb_asyncioEric W. Biederman1-24/+24
2019-02-20usb: core: Replace hardcoded check with inline function from usb.hKeyur Patel1-1/+1
2019-01-07usb: devio: update max count of DPs per interval for ISOCChunfeng Yun1-5/+3
2019-01-03Remove 'type' argument from access_ok() functionLinus Torvalds1-4/+3
2018-10-24Merge branch 'siginfo-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-2/+2
2018-10-16USB: fix the usbfs flag sanitization for control transfersAlan Stern1-2/+2
2018-10-03signal: Distinguish between kernel_siginfo and siginfoEric W. Biederman1-2/+2
2018-09-20USB: usbdevfs: restore warning for nonsensical flagsOliver Neukum1-0/+5
2018-09-20USB: usbdevfs: sanitize flags moreOliver Neukum1-3/+16
2018-06-28usb: usbfs: use irqsave() in USB's complete callbackSebastian Andrzej Siewior1-2/+3
2018-06-12treewide: kmalloc() -> kmalloc_array()Kees Cook1-3/+4
2018-03-07usb, signal, security: only pass the cred, not the secid, to kill_pid_info_as...Stephen Smalley1-8/+2
2018-02-11vfs: do bulk POLL* -> EPOLL* replacementLinus Torvalds1-3/+3
2018-02-01Merge tag 'usb-4.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gre...Linus Torvalds1-2/+0
2018-01-30Merge branch 'misc.poll' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-2/+2
2018-01-22signal: Replace memset(info,...) with clear_siginfo for clarityEric W. Biederman1-2/+2
2017-12-18Merge 4.15-rc4 into usb-nextGreg Kroah-Hartman1-5/+9
2017-12-12USB: remove the URB_NO_FSBR flagAlan Stern1-2/+0
2017-11-28the rest of drivers/*: annotate ->poll() instancesAl Viro1-2/+2
2017-11-28USB: usbfs: Filter flags passed in from user spaceOliver Neukum1-5/+9
2017-11-13Merge tag 'usb-4.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gre...Linus Torvalds1-14/+15
2017-11-09USB: usbfs: compute urb->actual_length for isochronousAlan Stern1-0/+14
2017-11-04USB: core: Remove redundant license textGreg Kroah-Hartman1-14/+0
2017-11-04USB: add SPDX identifiers to all remaining files in drivers/usb/Greg Kroah-Hartman1-0/+1
2017-10-25locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns ...Mark Rutland1-1/+1
2017-10-17USB: devio: Revert "USB: devio: Don't corrupt user memory"Hans de Goede1-5/+1
2017-09-25USB: devio: Don't corrupt user memoryDan Carpenter1-1/+5
2017-09-25USB: devio: Prevent integer overflow in proc_do_submiturb()Dan Carpenter1-0/+5
2017-08-28USB: core: constify vm_operations_structArvind Yadav1-1/+1
2017-08-28USB: core: Avoid race of async_completed() w/ usbdev_release()Douglas Anderson1-2/+2
2017-07-06Merge branch 'misc.compat' of git://git.kernel.org/pub/scm/linux/kernel/git/v...Linus Torvalds1-29/+19
2017-06-29usbdevfs: get rid of field-by-field copyinAl Viro1-29/+19
2017-06-13USB: add usbfs ioctl to retrieve the connection speedAlan Stern1-0/+3
2017-05-17USB: core: replace %p with %pKVamsi Krishna Samavedam1-7/+7
2017-03-02sched/headers: Prepare for new header dependencies before moving code to <lin...Ingo Molnar1-0/+1
2017-02-27scripts/spelling.txt: add "an one" pattern and fix typo instancesMasahiro Yamada1-1/+1
2017-01-10USB: Increase usbfs transfer limitMateusz Berezecki1-27/+16
2016-09-27fs: Replace CURRENT_TIME with current_time() for inode timestampsDeepa Dinamani1-9/+9
2016-08-23USB: avoid left shift by -1Alan Stern1-5/+11
2016-08-09USB: remove race condition in usbfs/libusb when using reap-after-disconnectAlan Stern1-1/+3
2016-08-09usb: devio, do not warn when allocation failsJiri Slaby1-1/+2
2016-05-03USB: usbfs: fix potential infoleak in devioKangjie Lu1-4/+5
2016-04-28usb: devio: declare usbdev_vm_ops as staticMichele Curti1-1/+1
2016-03-05usb: devio: Add ioctl to disallow detaching kernel USB drivers.Reilly Grant1-5/+58
2016-02-14USB: Add support for usbfs zerocopy.Steinar H. Gunderson1-25/+202
2016-01-24USB: core, devio: use to_usb_deviceGeliang Tang1-1/+1
2016-01-24usb: Use memdup_user to reuse the codeRahul Pathak1-5/+4
2016-01-24usb: core: devio.c: Removed unnecessary spaceChase Metzger1-1/+1
2016-01-13Merge tag 'usb-4.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/greg...Linus Torvalds1-4/+21
2015-12-23new helpers: no_seek_end_llseek{,_size}()Al Viro1-25/+1
2015-12-01USB: add usbfs snooping for REAP and DISCARDAlan Stern1-3/+13
2015-12-01USB: limit usbfs snooping of URB contentsAlan Stern1-1/+8
2015-08-08usb: devio: fix spacingKris Borer1-2/+2
2015-08-05usb: devio: remove assignment from if conditionKris Borer1-5/+10
2015-05-24USB: devio: fix a condition in async_completed()Dan Carpenter1-1/+1
2015-04-10drivers/usb/core: devio.c: Removed an uneeded space before tabChase Metzger1-1/+1
2015-02-24USB: usbfs: don't leak kernel data in siginfoAlan Stern1-0/+2
2015-01-31USB: usbfs: allow URBs to be reaped after disconnectionAlan Stern1-26/+37
2014-08-01USB: devio: fix issue with log floodingOliver Neukum1-1/+1
2014-04-01Merge tag 'usb-3.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gre...Linus Torvalds1-15/+159
2014-03-10usbcore: rename struct dev_state to struct usb_dev_stateValentina Manea1-56/+56
2014-03-04usbfs: Add support for allocating / freeing streamsHans de Goede1-0/+118
2014-03-04usbfs: Add ep_to_host_endpoint helper functionHans de Goede1-7/+11
2014-03-04usbfs: Add support for bulk stream idsHans de Goede1-0/+4
2014-03-04usbfs: proc_do_submiturb use a local variable for number_of_packetsHans de Goede1-8/+7
2014-03-04usbfs: Kill urbs on interface before doing a set_interfaceHans de Goede1-0/+3
2014-02-24USB: complain if userspace resets an active endpointAlan Stern1-0/+16
2014-01-07USB: core: correct spelling mistakes in comments and warningRahul Bedarkar1-1/+1
2013-10-16drivers: usb: core: devio.c: Spaces to tabs for proc_control_compat()Matthias Beyer1-10/+10
2013-10-16drivers: usb: core: devio.c: Spaces to tabs for proc_reapurbnonblock()Matthias Beyer1-6/+6
2013-09-29Merge 3.12-rc3 into usb-nextGreg Kroah-Hartman1-0/+16
2013-09-25usb/core/devio.c: Don't reject control message to endpoint with wrong directi...Kurt Garloff1-0/+16
2013-09-17usbcore: fix read of usbdevfs_ctrltransfer fields in proc_control()Xenia Ragiadakou1-4/+2
2013-07-25usbfs: Allow printer class 'get_device_id' without needing to claim the intfHans de Goede1-3/+3
2013-06-08Merge 3.10-rc5 into usb-nextGreg Kroah-Hartman1-3/+7
2013-05-29usbfs: Increase arbitrary limit for USB 3 isopkt lengthFederico Manzan1-3/+7
2013-05-17usb: devio: Fixed error: 'do not use assignment in if condition'Tülin İzer1-1/+2
2013-05-17usb: devio: Fixed macro parenthesis errorTülin İzer1-1/+1
2013-05-17usb: devio: Fixed warning: 'use <linux/uacces.h> instead <asm/uacces.h>'Tülin İzer1-1/+1
2013-04-17usbfs: Always allow ctrl requests with USB_RECIP_ENDPOINT on the ctrl epHans de Goede1-0/+2
2013-02-26Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-3/+3
2013-02-22new helper: file_inode(file)Al Viro1-3/+3
2013-02-06drivers/usb/core: using strlcpy instead of strncpyChen Gang1-1/+2
2012-10-17usbdevfs: Fix broken scatter-gather transferHenrik Rydberg1-0/+1
2012-09-10usbfs: Add a new disconnect-and-claim ioctl (v2)Hans de Goede1-0/+35
2012-07-06usbdevfs: Use scatter-gather lists for large bulk transfersHans de Goede1-31/+121
2012-07-06usbdevfs: Add a USBDEVFS_GET_CAPABILITIES ioctlHans de Goede1-0/+17
2012-07-06usbdevfs: Correct amount of data copied to user in processcompl_compatHans de Goede1-3/+7
2012-05-18USB: Remove races in devio.cHuajun Li1-8/+25
2012-04-29USB: remove CONFIG_USB_DEVICE_CLASSGreg Kroah-Hartman1-49/+0
2012-04-29USB: remove CONFIG_USB_DEVICEFSGreg Kroah-Hartman1-11/+0
2012-01-13module_param: make bool parameters really bool (drivers & misc)Rusty Russell1-1/+1
2011-12-22usbfs: Fix oops related to user namespace conversion.Sarah Sharp1-1/+2
2011-11-18USB: make the usbfs memory limit configurableAlan Stern1-4/+22
2011-11-18USB: change the memory limits in usbfs URB submissionAlan Stern1-19/+57
2011-11-18USB: unify some error pathways in usbfsAlan Stern1-46/+50
2011-09-29user namespace: usb: make usb urbs user namespace aware (v2)Serge Hallyn1-17/+13
2011-09-26usb/core/devio.c: Check for printer class specific requestMatthias Dellweg1-3/+18
2011-09-26USB: pid_ns: ensure pid is not freed during kill_pid_info_as_uidSerge Hallyn1-2/+4
2011-03-23USB: Do not pass negative length to snoop_urb()Michal Sojka1-1/+1
2010-11-17BKL: remove extraneous #include <smp_lock.h>Arnd Bergmann1-1/+0
2010-11-11usb: core: fix information leak to userlandVasiliy Kulikov1-3/+4
2010-08-10USB-BKL: Convert usb_driver ioctl to unlocked_ioctlAndi Kleen1-5/+2
2010-05-20USB: make hcd.h public (drivers dependency)Eric Lescouet1-2/+1
2010-03-19USB: fix usbfs regressionAlan Stern1-3/+14
2010-03-02USB: usbfs_snoop: add data logging back inChris Frey1-13/+38
2010-03-02USB: BKL removal from ioctl path of usbfsOliver Neukum1-9/+3
2010-03-02USB: Reduce scope of BKL in usb ioctl handlingOliver Neukum1-4/+10
2010-03-02USB: Remove BKL from lseek implementationsOliver Neukum1-2/+2
2010-03-02USB: Remove BKL from usbdev_open()Oliver Neukum1-4/+0
2010-03-02USB: change locking for device-level autosuspendAlan Stern1-16/+24
2010-03-02USB: check the endpoint type against the pipe typeAlan Stern1-9/+13
2010-02-16USB: usbfs: properly clean up the as structure on error pathsLinus Torvalds1-14/+26
2010-02-16USB: usbfs: only copy the actual data receivedGreg KH1-4/+4
2009-12-10usbdevfs: move compat_ioctl handling to devio.cArnd Bergmann1-11/+99
2009-09-23USB: usbfs: add USBDEVFS_URB_BULK_CONTINUATION flagAlan Stern1-1/+77
2009-09-23USB: increase usbdevfs max isoc buffer sizeMarkus Rechberger1-1/+2
2009-09-23USB: make the "usbfs_snoop" log more pertinentAlan Stern1-69/+62
2009-09-23USB: add API for userspace drivers to "claim" portsAlan Stern1-0/+35
2009-08-07USB: usbfs: fix -ENOENT error code to be -ENODEVAlan Stern1-1/+1
2009-08-07USB: devio: Properly do access_ok() checksMichael Buesch1-3/+5
2009-07-12USB: handle zero-length usbfs submissions correctlyAlan Stern1-21/+20
2009-07-12USB: fix race leading to a write after kfree in usbfsOliver Neukum1-4/+17
2009-07-12USB: fix memleak in usbfsOliver Neukum1-6/+10
2009-04-17USB: add reset endpoint operationsDavid Vrabel1-1/+1
2009-03-24USB: more u32 conversion after transfer_buffer_length and actual_lengthRoel Kluin1-3/+3
2009-03-24USB: usbfs: remove unneeded "inline" annotationsAlan Stern1-6/+6
2009-03-24USB: allow libusb to talk to unauthenticated WUSB devicesDavid Vrabel1-1/+2
2009-03-17USB: usbfs: keep async URBs until the device file is closedAlan Stern1-5/+7
2009-01-27USB: fix char-device disconnect handlingAlan Stern1-8/+12
2009-01-07USB: fix minor nit in usbfs checkingMark Lord1-1/+1
2009-01-07USB: Remove restrictions on signal numbers in devio.cPhil Endecott1-5/+0
2008-11-14CRED: Wrap current->cred and a few other accessorsDavid Howells1-4/+6
2008-11-14CRED: Wrap task credential accesses in the USB driverDavid Howells1-4/+4
2008-10-17USB: remove err() macro from usb core codeGreg Kroah-Hartman1-3/+4
2008-10-17USB: remove warn() macro from usb driversGreg Kroah-Hartman1-1/+2
2008-10-17USB: snoop processes opening usbfs device filesAlan Stern1-0/+2
2008-10-16device create: usb: convert device_create_drvdata to device_createGreg Kroah-Hartman1-3/+3
2008-07-21device create: usb: convert device_create to device_create_drvdataGreg Kroah-Hartman1-3/+3
2008-07-21sysfs: add /sys/dev/{char,block} to lookup sysfs path by major:minorDan Williams1-0/+5
2008-07-21USB: Fix pointer/int cast in USB devio codeDavid Howells1-2/+3
2008-07-21usbfs: don't store bad pointers in registrationAlan Stern1-9/+10
2008-07-21usbfs: fix race between open and unregisterAlan Stern1-5/+11
2008-07-21usbfs: simplify the lookup-by-minor routinesAlan Stern1-9/+6
2008-07-21usbfs: send disconnect signals when device is unregisteredAlan Stern1-0/+39
2008-07-21USB: fix usb_reset_device and usb_reset_composite_device(take 3)Ming Lei1-1/+1
2008-07-21USB: remove interface parameter of usb_reset_composite_deviceMing Lei1-1/+1
2008-07-21USB: remove CVS keywordsAdrian Bunk1-2/+0
2008-06-20usbdev: BKL pushdownJonathan Corbet1-0/+2
2008-04-24USB: replace remaining __FUNCTION__ occurrencesHarvey Harrison1-21/+21
2008-04-24USB: usbfs: export the URB_NO_INTERRUPT flag to userspaceAlan Stern1-4/+23
2008-04-24drivers/usb/core/devio.c: suppress warning with 64k PAGE_SIZEAndrew Morton1-1/+3
2008-02-01USB: fix codingstyle issues in drivers/usb/core/devio.cGreg Kroah-Hartman1-145/+188
2008-02-01USB: usbfs: struct async is a fixed size structurePete Zaitcev1-2/+2
2008-02-01USB: add usbfs stubs for suspend and resumeAlan Stern1-0/+15
2008-02-01USB: repair USBDEVFS_CONNECT ioctlAlan Stern1-3/+4
2007-10-19Use helpers to obtain task pid in printksPavel Emelyanov1-1/+1
2007-10-12Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6Linus Torvalds1-4/+2
2007-10-12USB: remove traces of urb->status from usbcoreAlan Stern1-3/+5