summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorPete Zaitcev <zaitcev@redhat.com>2019-12-04 20:39:41 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-10 11:41:20 +0100
commit19e6317d24c25ee737c65d1ffb7483bdda4bb54a (patch)
treea57715f97ba4168660e2a24672fe3968cf56a7ca /tools/perf/scripts/python/bin/stackcollapse-report
parent59120962e4be4f72be537adb17da6881c4b3797c (diff)
downloadkernel-19e6317d24c25ee737c65d1ffb7483bdda4bb54a.tar.gz
usb: mon: Fix a deadlock in usbmon between mmap and read
The problem arises because our read() function grabs a lock of the circular buffer, finds something of interest, then invokes copy_to_user() straight from the buffer, which in turn takes mm->mmap_sem. In the same time, the callback mon_bin_vma_fault() is invoked under mm->mmap_sem. It attempts to take the fetch lock and deadlocks. This patch does away with protecting of our page list with any semaphores, and instead relies on the kernel not close the device while mmap is active in a process. In addition, we prohibit re-sizing of a buffer while mmap is active. This way, when (now unlocked) fault is processed, it works with the page that is intended to be mapped-in, and not some other random page. Note that this may have an ABI impact, but hopefully no legitimate program is this wrong. Signed-off-by: Pete Zaitcev <zaitcev@redhat.com> Reported-by: syzbot+56f9673bb4cdcbeb0e92@syzkaller.appspotmail.com Reviewed-by: Alan Stern <stern@rowland.harvard.edu> Fixes: 46eb14a6e158 ("USB: fix usbmon BUG trigger") Cc: <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20191204203941.3503452b@suzdal.zaitcev.lan Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
deb79e4a939bfc05ee45aeb5'>staging: fsl-mc: move mc-cmd.h contents in the public headerLaurentiu Tudor mc-cmd.h contains some low level functions used to encode and decode commands to the MC. They are used by the drivers so move them to the public headers and get rid of the mc-cmd.h header. Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2017-06-23staging: fsl-mc: move mc-sys.h contents in the public headerLaurentiu Tudor mc-sys.h contains the API to send commands to the MC and is used by drivers. Move it to the public headers and get rid of the mc-sys.h header. Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2017-06-23staging: fsl-mc: fix a few implicit includesLaurentiu Tudor Few files using byte order macros but did not explicitly included the required kernel header, so add it. Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2017-03-14bus: fsl-mc: dpio: add APIs for DPIO objectsIoana Radulescu Add the command build/parse APIs for operating on DPIO objects through the DPAA2 Management Complex. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com> Signed-off-by: Roy Pledge <roy.pledge@nxp.com> Signed-off-by: Stuart Yoder <stuart.yoder@nxp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> /linux/kernel/git...Linus Torvalds 2017-04-27KVM: PPC: Book3S HV: Native usage of the XIVE interrupt controllerBenjamin Herrenschmidt 2017-04-18cma: Store a name in the cma structureLaura Abbott 2017-04-10powerpc: Consolidate variants of real-mode MMIOsBenjamin Herrenschmidt 2017-04-10powerpc/xive: Native exploitation of the XIVE interrupt controllerBenjamin Herrenschmidt 2017-02-24mm: cma_alloc: allow to specify GFP maskLucas Stach 2017-02-08Merge remote-tracking branch 'remotes/powerpc/topic/ppc-kvm' into kvm-ppc-nextPaul Mackerras 2017-02-07powerpc/powernv: Remove separate entry for OPAL real mode callsBenjamin Herrenschmidt 2017-01-31KVM: PPC: Book3S HV: Rename kvm_alloc_hpt() for clarityDavid Gibson 2017-01-31KVM: PPC: Book3S HV: Allow guest exit path to have MMU onPaul Mackerras 2016-12-01KVM: PPC: Book3S: Move prototypes for KVM functions into kvm_ppc.hPaul Mackerras 2016-11-24KVM: PPC: Book3S HV: Fix compilation with unusual configurationsPaul Mackerras 2016-11-24KVM: PPC: Book3S HV: Use OPAL XICS emulation on POWER9Paul Mackerras 2016-11-24KVM: PPC: Book3S HV: Use msgsnd for IPIs to other cores on POWER9Paul Mackerras 2016-11-21KVM: PPC: Book3S HV: sparse: prototypes for functions called from assemblerDaniel Axtens 2016-09-12KVM: PPC: Book3S HV: Complete passthrough interrupt in hostSuresh Warrier 2016-09-12KVM: PPC: Book3S HV: Handle passthrough interrupts in guestSuresh Warrier 2016-09-09KVM: PPC: Book3S HV: Convert kvmppc_read_intr to a C functionSuresh Warrier