1. 16 Jan, 2019 4 commits
  2. 08 Jan, 2019 1 commit
  3. 04 Jan, 2019 1 commit
    • Linus Torvalds's avatar
      Remove 'type' argument from access_ok() function · 96d4f267
      Linus Torvalds authored
      Nobody has actually used the type (VERIFY_READ vs VERIFY_WRITE) argument
      of the user address range verification function since we got rid of the
      old racy i386-only code to walk page tables by hand.
      
      It existed because the original 80386 would not honor the write protect
      bit when in kernel mode, so you had to do COW by hand before doing any
      user access.  But we haven't supported that in a long time, and these
      days the 'type' argument is a purely historical artifact.
      
      A discussion about extending 'user_access_begin()' to do the range
      checking resulted this patch, because there is no way we're going to
      move the old VERIFY_xyz interface to that model.  And it's best done at
      the end of the merge window when I've done most of my merges, so let's
      just get this done once and for all.
      
      This patch was mostly done with a sed-script, with manual fix-ups for
      the cases that weren't of the trivial 'access_ok(VERIFY_xyz' form.
      
      There were a couple of notable cases:
      
       - csky still had the old "verify_area()" name as an alias.
      
       - the iter_iov code had magical hardcoded knowledge of the actual
         values of VERIFY_{READ,WRITE} (not that they mattered, since nothing
         really used it)
      
       - microblaze used the type argument for a debug printout
      
      but other than those oddities this should be a total no-op patch.
      
      I tried to fix up all architectures, did fairly extensive grepping for
      access_ok() uses, and the changes are trivial, but I may have missed
      something.  Any missed conversion should be trivially fixable, though.
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      96d4f267
  4. 28 Dec, 2018 1 commit
  5. 20 Dec, 2018 2 commits
    • Brad Love's avatar
      media: cx23885: only reset DMA on problematic CPUs · 4bd46aa0
      Brad Love authored
      It is reported that commit 95f408bb ("media: cx23885: Ryzen DMA
      related RiSC engine stall fixes") caused regresssions with other CPUs.
      
      Ensure that the quirk will be applied only for the CPUs that
      are known to cause problems.
      
      A module option is added for explicit control of the behaviour.
      
      Fixes: 95f408bb ("media: cx23885: Ryzen DMA related RiSC engine stall fixes")
      Signed-off-by: default avatarBrad Love <brad@nextdimension.cc>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      4bd46aa0
    • Nathan Chancellor's avatar
      media: ddbridge: Move asm includes after linux ones · bbb55cd7
      Nathan Chancellor authored
      Without this, cpumask_t and bool are not defined:
      
      In file included from drivers/media/pci/ddbridge/ddbridge-ci.c:19:
      In file included from drivers/media/pci/ddbridge/ddbridge.h:22:
      ./arch/arm/include/asm/irq.h:35:50: error: unknown type name 'cpumask_t'
      extern void arch_trigger_cpumask_backtrace(const cpumask_t *mask,
                                                       ^
      ./arch/arm/include/asm/irq.h:36:9: error: unknown type name 'bool'
                                                 bool exclude_self);
                                                 ^
      
      Doing a survey of the kernel tree, this appears to be expected because
      '#include <asm/irq.h>' is always after the linux includes.
      
      This also fixes warnings of this variety (with Clang):
      
      In file included from drivers/media/pci/ddbridge/ddbridge-ci.c:19:
      In file included from drivers/media/pci/ddbridge/ddbridge.h:56:
      In file included from ./include/media/dvb_net.h:22:
      In file included from ./include/linux/netdevice.h:50:
      In file included from ./include/uapi/linux/neighbour.h:6:
      In file included from ./include/linux/netlink.h:9:
      In file included from ./include/net/scm.h:11:
      In file included from ./include/linux/sched/signal.h:6:
      ./include/linux/signal.h:87:11: warning: array index 3 is past the end
      of the array (which contains 2 elements) [-Warray-bounds]
                      return (set->sig[3] | set->sig[2] |
                              ^        ~
      ./arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here
              unsigned long sig[_NSIG_WORDS];
              ^
      
      Fixes: b6973637 ("media: ddbridge: remove another duplicate of io.h and sort includes")
      Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
      Tested-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      bbb55cd7
  6. 17 Dec, 2018 1 commit
  7. 14 Dec, 2018 1 commit
  8. 12 Dec, 2018 2 commits
  9. 09 Dec, 2018 1 commit
  10. 07 Dec, 2018 19 commits
  11. 05 Dec, 2018 7 commits