summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorSuresh Jayaraman <sjayaraman@suse.de>2009-08-20 13:03:34 +0530
committerSteve French <sfrench@us.ibm.com>2009-09-01 17:08:48 +0000
commitbdb97adcdf0993adbd2eef44b4533620d43792de (patch)
tree5d2a120233c93d6a372d26d5ce3fc6cb6525fa6e /tools/perf/scripts/python/bin/stackcollapse-report
parent1b3859bc9e20d764316346665fc93ecea2d2b176 (diff)
downloadkernel-bdb97adcdf0993adbd2eef44b4533620d43792de.tar.gz
PATCH] cifs: fix broken mounts when a SSH tunnel is used (try #4)
One more try.. It seems there is a regression that got introduced while Jeff fixed all the mount/umount races. While attempting to find whether a tcp session is already existing, we were not checking whether the "port" used are the same. When a second mount is attempted with a different "port=" option, it is being ignored. Because of this the cifs mounts that uses a SSH tunnel appears to be broken. Steps to reproduce: 1. create 2 shares # SSH Tunnel a SMB session 2. ssh -f -L 6111:127.0.0.1:445 root@localhost "sleep 86400" 3. ssh -f -L 6222:127.0.0.1:445 root@localhost "sleep 86400" 4. tcpdump -i lo 6111 & 5. mkdir -p /mnt/mnt1 6. mkdir -p /mnt/mnt2 7. mount.cifs //localhost/a /mnt/mnt1 -o username=guest,ip=127.0.0.1,port=6111 #(shows tcpdump activity on port 6111) 8. mount.cifs //localhost/b /mnt/mnt2 -o username=guest,ip=127.0.0.1,port=6222 #(shows tcpdump activity only on port 6111 and not on 6222 Fix by adding a check to compare the port _only_ if the user tries to override the tcp port with "port=" option, before deciding that an existing tcp session is found. Also, clean up a bit by replacing if-else if by a switch statment while at it as suggested by Jeff. Reviewed-by: Jeff Layton <jlayton@redhat.com> Reviewed-by: Shirish Pargaonkar <shirishp@us.ibm.com> Signed-off-by: Suresh Jayaraman <sjayaraman@suse.de> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
(Google) 2023-07-11fprobe: add unlock to match a succeeded ftrace_test_recursion_trylockZe Gao 2023-06-27fprobe: Release rethook after the ftrace_ops is unregisteredJiri Olsa 2023-06-06tracing/probes: Add fprobe events for tracing function entry and exit.Masami Hiramatsu (Google) 2023-06-06fprobe: Pass return address to the handlersMasami Hiramatsu (Google) 2023-05-18fprobe: add recursion detection in fprobe_exit_handlerZe Gao 2023-05-18fprobe: make fprobe_kprobe_handler recursion freeZe Gao 2023-05-17tracing: fprobe: Initialize ret valiable to fix smatch errorMasami Hiramatsu (Google) 2023-03-28fprobe: Skip exit_handler if entry_handler returns !0Masami Hiramatsu (Google) 2023-03-28fprobe: Add nr_maxactive to specify rethook_node pool sizeMasami Hiramatsu (Google) 2023-03-28fprobe: Pass entry_data to handlersMasami Hiramatsu (Google) 2022-11-04tracing/fprobe: Fix to check whether fprobe is registered correctlyMasami Hiramatsu (Google) 2022-11-04fprobe: Check rethook_alloc() return in rethook initializationRafael Mendonca 2022-05-10fprobe: Resolve symbols with ftrace_lookup_symbolsJiri Olsa 2022-03-28fprobe: Fix sparse warning for acccessing __rcu ftrace_hashMasami Hiramatsu 2022-03-28fprobe: Fix smatch type mismatch warningMasami Hiramatsu 2022-03-17fprobe: Introduce FPROBE_FL_KPROBE_SHARED flag for fprobeMasami Hiramatsu 2022-03-17fprobe: Add exit_handler supportMasami Hiramatsu 2022-03-17fprobe: Add ftrace based probe APIsMasami Hiramatsu