aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-05-01ipc: refactor msg list search into separate functionPeter Hurley1-22/+26
[[email protected]: find_msg can be static] Signed-off-by: Peter Hurley <[email protected]> Cc: Fengguang Wu <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2013-05-01ipc: simplify msg list searchPeter Hurley1-6/+2
Signed-off-by: Peter Hurley <[email protected]> Acked-by: Stanislav Kinsbursky <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2013-05-01ipc: implement MSG_COPY as a new receive modePeter Hurley1-13/+9
Teach the helper routines about MSG_COPY so that msgtyp is preserved as the message number to copy. The security functions affected by this change were audited and no additional changes are necessary. Signed-off-by: Peter Hurley <[email protected]> Acked-by: Stanislav Kinsbursky <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2013-05-01ipc: remove msg handling from queue scanPeter Hurley1-10/+4
In preparation for refactoring the queue scan into a separate function, relocate msg copying. Signed-off-by: Peter Hurley <[email protected]> Acked-by: Stanislav Kinsbursky <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2013-05-01ipc: set EFAULT as default error in load_msg()Peter Hurley1-7/+3
Signed-off-by: Peter Hurley <[email protected]> Acked-by: Stanislav Kinsbursky <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2013-05-01ipc: tighten msg copy loopsPeter Hurley1-21/+11
Signed-off-by: Peter Hurley <[email protected]> Acked-by: Stanislav Kinsbursky <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2013-05-01ipc: separate msg allocation from userspace copyPeter Hurley1-14/+38
Separating msg allocation enables single-block vmalloc allocation instead. Signed-off-by: Peter Hurley <[email protected]> Acked-by: Stanislav Kinsbursky <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2013-05-01ipc: clamp with min()Peter Hurley1-22/+8
Signed-off-by: Peter Hurley <[email protected]> Acked-by: Stanislav Kinsbursky <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2013-05-01Merge tag 'ext4_for_linus' of ↵Linus Torvalds34-1419/+1900
git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 Pull ext4 updates from Ted Ts'o: "Mostly performance and bug fixes, plus some cleanups. The one new feature this merge window is a new ioctl EXT4_IOC_SWAP_BOOT which allows installation of a hidden inode designed for boot loaders." * tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4: (50 commits) ext4: fix type-widening bug in inode table readahead code ext4: add check for inodes_count overflow in new resize ioctl ext4: fix Kconfig documentation for CONFIG_EXT4_DEBUG ext4: fix online resizing for ext3-compat file systems jbd2: trace when lock_buffer in do_get_write_access takes a long time ext4: mark metadata blocks using bh flags buffer: add BH_Prio and BH_Meta flags ext4: mark all metadata I/O with REQ_META ext4: fix readdir error in case inline_data+^dir_index. ext4: fix readdir error in the case of inline_data+dir_index jbd2: use kmem_cache_zalloc instead of kmem_cache_alloc/memset ext4: mext_insert_extents should update extent block checksum ext4: move quota initialization out of inode allocation transaction ext4: reserve xattr index for Rich ACL support jbd2: reduce journal_head size ext4: clear buffer_uninit flag when submitting IO ext4: use io_end for multiple bios ext4: make ext4_bio_write_page() use BH_Async_Write flags ext4: Use kstrtoul() instead of parse_strtoul() ext4: defragmentation code cleanup ...
2013-05-01Merge tag 'tag-for-linus-3.10' of ↵Linus Torvalds3-9/+189
git://git.linaro.org/people/sumitsemwal/linux-dma-buf Pull dma-buf updates from Sumit Semwal: "Added debugfs support to dma-buf" * tag 'tag-for-linus-3.10' of git://git.linaro.org/people/sumitsemwal/linux-dma-buf: dma-buf: Add debugfs support dma-buf: replace dma_buf_export() with dma_buf_export_named()
2013-05-01Merge branch 'for-linus' of ↵Linus Torvalds34-346/+659
git://git.kernel.org/pub/scm/linux/kernel/git/rkuo/linux-hexagon-kernel Pull Hexagon fixes from Richard Kuo: "Changes for the Hexagon architecture (and one touching OpenRISC). They include various fixes to make use of additional arch features and cleanups. The largest functional change is a cleanup of the signal and event return paths" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rkuo/linux-hexagon-kernel: (32 commits) Hexagon: add v4 CS regs to core copyout macro Hexagon: use correct translation for VMALLOC_START Hexagon: use correct translations for DMA mappings Hexagon: fix return value for notify_resume case in do_work_pending Hexagon: fix signal number for user mem faults Hexagon: remove two Kconfig entries arch: remove CONFIG_GENERIC_FIND_NEXT_BIT again Hexagon: update copyright dates Hexagon: add translation types for __vmnewmap Hexagon: fix signal.c compile error Hexagon: break up user fn/arg register setting Hexagon: use generic sys_fork, sys_vfork, and sys_clone Hexagon: fix psp/sp macro Hexagon: fix up int enable/disable at ret_from_fork Hexagon: add IOMEM and _relaxed IO macros Hexagon: switch to using the device type for IO mappings Hexagon: don't print info for offline CPU's Hexagon: add support for single-stepping (v4+) Hexagon: use correct work mask when checking for more work Hexagon: add support for additional exceptions ...
2013-05-01tty: fix up atime/mtime mess, take threeLinus Torvalds2-2/+5
We first tried to avoid updating atime/mtime entirely (commit b0de59b5733d: "TTY: do not update atime/mtime on read/write"), and then limited it to only update it occasionally (commit 37b7f3c76595: "TTY: fix atime/mtime regression"), but it turns out that this was both insufficient and overkill. It was insufficient because we let people attach to the shared ptmx node to see activity without even reading atime/mtime, and it was overkill because the "only once a minute" means that you can't really tell an idle person from an active one with 'w'. So this tries to fix the problem properly. It marks the shared ptmx node as un-notifiable, and it lowers the "only once a minute" to a few seconds instead - still long enough that you can't time individual keystrokes, but short enough that you can tell whether somebody is active or not. Reported-by: Simon Kirby <[email protected]> Acked-by: Jiri Slaby <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: [email protected] Signed-off-by: Linus Torvalds <[email protected]>
2013-05-01Merge branch 'for-linus' of ↵Linus Torvalds87-1489/+539
git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal Pull compat cleanup from Al Viro: "Mostly about syscall wrappers this time; there will be another pile with patches in the same general area from various people, but I'd rather push those after both that and vfs.git pile are in." * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal: syscalls.h: slightly reduce the jungles of macros get rid of union semop in sys_semctl(2) arguments make do_mremap() static sparc: no need to sign-extend in sync_file_range() wrapper ppc compat wrappers for add_key(2) and request_key(2) are pointless x86: trim sys_ia32.h x86: sys32_kill and sys32_mprotect are pointless get rid of compat_sys_semctl() and friends in case of ARCH_WANT_OLD_COMPAT_IPC merge compat sys_ipc instances consolidate compat lookup_dcookie() convert vmsplice to COMPAT_SYSCALL_DEFINE switch getrusage() to COMPAT_SYSCALL_DEFINE switch epoll_pwait to COMPAT_SYSCALL_DEFINE convert sendfile{,64} to COMPAT_SYSCALL_DEFINE switch signalfd{,4}() to COMPAT_SYSCALL_DEFINE make SYSCALL_DEFINE<n>-generated wrappers do asmlinkage_protect make HAVE_SYSCALL_WRAPPERS unconditional consolidate cond_syscall and SYSCALL_ALIAS declarations teach SYSCALL_DEFINE<n> how to deal with long long/unsigned long long get rid of duplicate logics in __SC_....[1-6] definitions
2013-05-01dma-buf: Add debugfs supportSumit Semwal2-1/+162
Add debugfs support to make it easier to print debug information about the dma-buf buffers. Cc: Dave Airlie <[email protected]> [minor fixes on init and warning fix] Cc: Dan Carpenter <[email protected]> [remove double unlock in fail case] Signed-off-by: Sumit Semwal <[email protected]>
2013-05-01dma-buf: replace dma_buf_export() with dma_buf_export_named()Sumit Semwal3-8/+27
For debugging purposes, it is useful to have a name-string added while exporting buffers. Hence, dma_buf_export() is replaced with dma_buf_export_named(), which additionally takes 'exp_name' as a parameter. For backward compatibility, and for lazy exporters who don't wish to name themselves, a #define dma_buf_export() is also made available, which adds a __FILE__ instead of 'exp_name'. Cc: Daniel Vetter <[email protected]> [Thanks for the idea!] Reviewed-by: Daniel Vetter <[email protected]> Signed-off-by: Sumit Semwal <[email protected]>
2013-05-01vhost: fix error handling in RESET_OWNER ioctlMichael S. Tsirkin4-12/+24
RESET_OWNER ioctl would leave the fd in a bad state if memory allocation failed: device is stopped but owner is not reset. Make state changes after allocating memory, such that a failed ioctl has no effect. Signed-off-by: Michael S. Tsirkin <[email protected]>
2013-05-01tcm_vhost: remove virtio-net.h dependencyMichael S. Tsirkin1-1/+0
vhost.h only has generic bits now, so we can drop it virtio-net.h in tcm_vhost. Signed-off-by: Michael S. Tsirkin <[email protected]>
2013-05-01vhost: move per-vq net specific fields out to netMichael S. Tsirkin3-21/+27
This will remove the need for vhost scsi to pull in virtio-net.h. Signed-off-by: Michael S. Tsirkin <[email protected]>
2013-05-01tcm_vhost: document inflight ref-counting useMichael S. Tsirkin1-2/+10
Add more comments so we remember not to break it next time we change things. Signed-off-by: Michael S. Tsirkin <[email protected]>
2013-05-01vhost: move vhost-net zerocopy fields to net.cAsias He3-101/+142
On top of 'vhost: Allow device specific fields per vq', we can move device specific fields to device virt queue from vhost virt queue. Signed-off-by: Asias He <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
2013-05-01tcm_vhost: Wait for pending requests in vhost_scsi_flush()Asias He2-1/+92
Unlike tcm_vhost_evt requests, tcm_vhost_cmd requests are passed to the target core system, we can not make sure all the pending requests will be finished by flushing the virt queue. In this patch, we do refcount for every tcm_vhost_cmd requests to make vhost_scsi_flush() wait for all the pending requests issued before the flush operation to be finished. This is useful when we call vhost_scsi_clear_endpoint() to stop tcm_vhost. No new requests will be passed to target core system because we clear the endpoint by setting vs_tpg to NULL. And we wait for all the old requests. These guarantee no requests will be leaked and existing requests will be completed. Signed-off-by: Asias He <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
2013-05-01vhost: Allow device specific fields per vqAsias He4-87/+124
This is useful for any device who wants device specific fields per vq. For example, tcm_vhost wants a per vq field to track requests which are in flight on the vq. Also, on top of this we can add patches to move things like ubufs from vhost.h out to net.c. Signed-off-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Asias He <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
2013-05-01Merge branch 'for-next-merge' of ↵Michael S. Tsirkin39-1001/+4469
git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending into vhost-net-next
2013-05-01drm/i915: fix dmabuf vmap supportDave Airlie1-1/+1
Sometimes that extra semicolon can really be hard to spot. Acked-by: Imre Deak <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
2013-05-01drm/prime: warn for non-empty handle lookup list during drm file releaseImre Deak1-5/+2
drm_gem_release should release all handles connected to the drm file and so should also release the prime lookup entries of these handles. So just WARN if this isn't the case. Signed-off-by: Imre Deak <[email protected]> Reviewed-by: Daniel Vetter <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
2013-05-01caif_virtio: Remove bouncing email addressesSjur Brændeland1-5/+5
Remove our (soon to be) bouncing email addresses, and update Dmitri's address. Dmitry will take over as maintainer for CAIF from now on. Cc: Vikram Arv <[email protected]> Cc: Dmitry Tarnyagin <[email protected]> Cc: Dmitry Tarnyagin <[email protected]> Signed-off-by: Sjur Brændeland <[email protected]> Signed-off-by: Rusty Russell <[email protected]> Acked-by: Dmity Tarnyagin <[email protected]>
2013-04-30Hexagon: add v4 CS regs to core copyout macroRichard Kuo1-3/+12
Signed-off-by: Richard Kuo <[email protected]>
2013-04-30Hexagon: use correct translation for VMALLOC_STARTRichard Kuo1-2/+1
Signed-off-by: Richard Kuo <[email protected]>
2013-04-30Hexagon: use correct translations for DMA mappingsRichard Kuo2-10/+22
With physical offsets, pa<->va translations aren't just based on PAGE_OFFSET anymore. Signed-off-by: Richard Kuo <[email protected]>
2013-04-30Hexagon: fix return value for notify_resume case in do_work_pendingRichard Kuo1-0/+1
Signed-off-by: Richard Kuo <[email protected]>
2013-04-30Hexagon: fix signal number for user mem faultsRichard Kuo1-2/+2
Signed-off-by: Richard Kuo <[email protected]>
2013-04-30Hexagon: remove two Kconfig entriesPaul Bolle1-9/+0
The Kconfig entries for HEXAGON_VM and HEXAGON_ANGEL_TRAPS were added, together with the configuration and makefiles for the Hexagon architecture, in v3.2. They have never been used. They can safely be removed. Signed-off-by: Paul Bolle <[email protected]> [[email protected]: adjust for line changes in Kconfig] Signed-off-by: Richard Kuo <[email protected]>
2013-04-30arch: remove CONFIG_GENERIC_FIND_NEXT_BIT againPaul Bolle2-6/+0
CONFIG_GENERIC_FIND_NEXT_BIT was removed in v3.0, but reappeared in two architectures. Remove it again. Signed-off-by: Paul Bolle <[email protected]> Acked-by: Jonas Bonn <[email protected]> Signed-off-by: Richard Kuo <[email protected]>
2013-04-30Hexagon: update copyright datesRichard Kuo20-20/+20
Signed-off-by: Richard Kuo <[email protected]>
2013-04-30Hexagon: add translation types for __vmnewmapRichard Kuo1-0/+7
Signed-off-by: Richard Kuo <[email protected]>
2013-04-30Hexagon: fix signal.c compile errorRichard Kuo1-0/+2
Signed-off-by: Richard Kuo <[email protected]>
2013-04-30Hexagon: break up user fn/arg register settingRichard Kuo1-1/+2
Signed-off-by: Richard Kuo <[email protected]>
2013-04-30Hexagon: use generic sys_fork, sys_vfork, and sys_cloneRichard Kuo2-0/+5
Signed-off-by: Richard Kuo <[email protected]>
2013-04-30Hexagon: fix psp/sp macroRichard Kuo1-2/+1
Based on feedback from Al Viro; previous-stack-pointer and user reg for same should always be kept consistent. Signed-off-by: Richard Kuo <[email protected]>
2013-04-30Hexagon: fix up int enable/disable at ret_from_forkRichard Kuo1-2/+11
Check return coming out of check_work_pending, and if copy_thread passed us a function in r24, call it. Based on feedback from Al Viro. Signed-off-by: Richard Kuo <[email protected]>
2013-04-30Hexagon: add IOMEM and _relaxed IO macrosRichard Kuo1-0/+14
Signed-off-by: Richard Kuo <[email protected]>
2013-04-30Hexagon: switch to using the device type for IO mappingsRichard Kuo1-5/+4
Uncached on our architecture can still have side effects such as canceled/replayed transactions; device type prevents this. Signed-off-by: Richard Kuo <[email protected]>
2013-04-30Hexagon: don't print info for offline CPU'sRichard Kuo1-0/+5
Signed-off-by: Richard Kuo <[email protected]>
2013-04-30Hexagon: add support for single-stepping (v4+)Richard Kuo6-1/+38
Hardware single-step is only available on v4 and later architectures. Signed-off-by: Richard Kuo <[email protected]>
2013-04-30Hexagon: use correct work mask when checking for more workRichard Kuo1-1/+1
Signed-off-by: Richard Kuo <[email protected]>
2013-04-30Hexagon: add support for additional exceptionsRichard Kuo1-0/+10
Add multi-reg-write and unaligned-PC exceptions. Signed-off-by: Richard Kuo <[email protected]>
2013-04-30Hexagon: fix initial page table setup prior to jump to VARichard Kuo1-12/+73
Use the exact number of pages needed to be mapped pre-VA-jump, then map 896MB afterwards, which the arch mem init will fix up. Signed-off-by: Richard Kuo <[email protected]>
2013-04-30Hexagon: remove keyring related callRichard Kuo1-3/+0
Signed-off-by: Richard Kuo <[email protected]>
2013-04-30Hexagon: check to if we will overflow the signal stackRichard Kuo1-0/+4
Signed-off-by: Richard Kuo <[email protected]>
2013-04-30Hexagon: Signal and return path fixesRichard Kuo5-88/+84
This fixes the return value of sigreturn and moves the work pending check into a c routine for readability and fixes the loop for multiple pending signals. Based on feedback from Al Viro. Signed-off-by: Richard Kuo <[email protected]>