1. 18 3月, 2013 17 次提交
  2. 11 3月, 2013 1 次提交
  3. 07 3月, 2013 1 次提交
  4. 05 3月, 2013 1 次提交
    • N
      usb: gadget: composite: fix kernel-doc warnings · 43febb27
      Nishanth Menon 提交于
      A few trivial fixes for composite driver:
      
      Warning(include/linux/usb/composite.h:165): No description found for parameter
      	'fs_descriptors'
      Warning(include/linux/usb/composite.h:165): Excess struct/union/enum/typedef
      	member 'descriptors' description in 'usb_function'
      Warning(include/linux/usb/composite.h:321): No description found for parameter
      	'gadget_driver'
      Warning(drivers/usb/gadget/composite.c:1777): Excess function parameter 'bind'
      	description in 'usb_composite_probe'
      
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Jiri Kosina <trivial@kernel.org>
      Cc: linux-usb@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: NNishanth Menon <nm@ti.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      43febb27
  5. 04 3月, 2013 9 次提交
    • D
      usb: gadget: u_uac1: NULL dereference on error path · 29240e23
      Dan Carpenter 提交于
      We should return here with an error code instead of continuing.
      Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      29240e23
    • D
      usb: gadget: f_uac1: silence an info leak warning · fddedd83
      Dan Carpenter 提交于
      Smatch complains that "len" could be larger than the sizeof(value)
      so we could be copying garbage here.  I have changed this to match
      how things are done in composite_setup().
      
      The call tree looks like:
        composite_setup()
        --> f_audio_setup()
            --> audio_get_intf_req()
      
      composite_setup() expects the return value to be set to
      sizeof(value).
      Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      fddedd83
    • F
      usb: gadget: s3c2410: fix build breakage · 4ea34de7
      Felipe Balbi 提交于
      add missing semicolon to fix compile breakage.
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      4ea34de7
    • F
      usb: gadget: imx_udc: fix gadget->dev registration · bc530a72
      Felipe Balbi 提交于
      Whenever ->udc_start() gets called, gadget driver
      has already being bound to the udc controller, which
      means that gadget->dev had to be already initialized
      and added to driver model.
      
      This patch fixes imx_udc mistake.
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      bc530a72
    • F
      usb: gadget: pxa25x: fix gadget->dev registration · 9992a997
      Felipe Balbi 提交于
      Whenever ->udc_start() gets called, gadget driver
      has already being bound to the udc controller, which
      means that gadget->dev had to be already initialized
      and added to driver model.
      
      This patch fixes pxa25x mistake.
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      9992a997
    • F
      usb: gadget: s3c2410: fix gadget->dev registration · 7597a49b
      Felipe Balbi 提交于
      Whenever ->udc_start() gets called, gadget driver
      has already being bound to the udc controller, which
      means that gadget->dev had to be already initialized
      and added to driver model.
      
      This patch fixes s3c2410 mistake.
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      7597a49b
    • K
      usb: gadget: make usb functions to load before gadget driver · 56aa45ad
      Kishon Vijay Abraham I 提交于
      The current ordering in makefile makes gadget
      drivers be loaded before usb functions which
      causes usb_get_function_instance() to fail when
      gadget modules are statically linked to the
      kernel binary.
      
      Changed the ordering here so that USB functions
      are loaded before gadget drivers.
      
      Note that this is only a temporary solution and
      a more robust fix is needed in the long run.
      Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      56aa45ad
    • F
      usb: gadget: pxa27x: fix gadget->dev registration · fe2a4297
      Felipe Balbi 提交于
      Whenever ->udc_start() gets called, gadget driver
      has already being bound to the udc controller, which
      means that gadget->dev had to be already initialized
      and added to driver model.
      
      This patch fixes pxa27x mistake.
      Tested-by: NRobert Jarzmik <robert.jarzmik@free.fr>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      fe2a4297
    • E
      fs: Limit sys_mount to only request filesystem modules. · 7f78e035
      Eric W. Biederman 提交于
      Modify the request_module to prefix the file system type with "fs-"
      and add aliases to all of the filesystems that can be built as modules
      to match.
      
      A common practice is to build all of the kernel code and leave code
      that is not commonly needed as modules, with the result that many
      users are exposed to any bug anywhere in the kernel.
      
      Looking for filesystems with a fs- prefix limits the pool of possible
      modules that can be loaded by mount to just filesystems trivially
      making things safer with no real cost.
      
      Using aliases means user space can control the policy of which
      filesystem modules are auto-loaded by editing /etc/modprobe.d/*.conf
      with blacklist and alias directives.  Allowing simple, safe,
      well understood work-arounds to known problematic software.
      
      This also addresses a rare but unfortunate problem where the filesystem
      name is not the same as it's module name and module auto-loading
      would not work.  While writing this patch I saw a handful of such
      cases.  The most significant being autofs that lives in the module
      autofs4.
      
      This is relevant to user namespaces because we can reach the request
      module in get_fs_type() without having any special permissions, and
      people get uncomfortable when a user specified string (in this case
      the filesystem type) goes all of the way to request_module.
      
      After having looked at this issue I don't think there is any
      particular reason to perform any filtering or permission checks beyond
      making it clear in the module request that we want a filesystem
      module.  The common pattern in the kernel is to call request_module()
      without regards to the users permissions.  In general all a filesystem
      module does once loaded is call register_filesystem() and go to sleep.
      Which means there is not much attack surface exposed by loading a
      filesytem module unless the filesystem is mounted.  In a user
      namespace filesystems are not mounted unless .fs_flags = FS_USERNS_MOUNT,
      which most filesystems do not set today.
      Acked-by: NSerge Hallyn <serge.hallyn@canonical.com>
      Acked-by: NKees Cook <keescook@chromium.org>
      Reported-by: NKees Cook <keescook@google.com>
      Signed-off-by: N"Eric W. Biederman" <ebiederm@xmission.com>
      7f78e035
  6. 23 2月, 2013 1 次提交
  7. 09 2月, 2013 1 次提交
  8. 07 2月, 2013 2 次提交
  9. 31 1月, 2013 1 次提交
  10. 25 1月, 2013 6 次提交