Project

General

Profile

Bug #10965

SMB: mdb "::smbreq -v" prints findstack errors

Added by Gordon Ross 5 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Start date:
2019-05-14
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

Trying to dump out SMB request information in "mdb" returns an error and does not
display all values.

> ::smbreq -v
SMB request information (ffffff01d3a517a0):

current SMB COM: 15 (smb2_change_notify)
state: 4 (WAITING_EVENT)
TID(tree): 2 (ffffff01db005060)
UID(user): 1 (ffffff01dae49a88)
FID(file): 5 (ffffff01dafe1a88)
PID: 65279
MID: 0x72
waiting time: 0
running time: 14
worker thread: ffffff00087c3c40
mdb: couldn't find ctf data for type mdb_findstack_kthread_t in mdb module smbsrv

SMB request information (ffffff01d3a60798):

current SMB COM: 15 (smb2_change_notify)
state: 4 (WAITING_EVENT)
TID(tree): 2 (ffffff01db005060)
UID(user): 1 (ffffff01dae49a88)
FID(file): 6 (ffffff01dafe1548)
PID: 65279
MID: 0x77
waiting time: 0
running time: 14
worker thread: ffffff00087c9c40
mdb: couldn't find ctf data for type mdb_findstack_kthread_t in mdb module smbsrv

History

#1

Updated by Gordon Ross 5 months ago

  • Description updated (diff)
  • Status changed from New to In Progress
#2

Updated by Gordon Ross 5 months ago

#5998 (mdb_ctf_vread fails in dcmds run via mdb_pwalk_dcmd) fixed most of what was wrong here. The remaining fix in the smbsrv mdb module is just to avoid calling findstack when the thread pointer is null.

#3

Updated by Gordon Ross 5 months ago

Testing:
Connect a Windows client having an explorer window open in an SMB share, then:
mdb -k ; ::smblist

#4

Updated by Electric Monk 5 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

git commit d8adf402a2fbabff65f152e6ce83daf074fffb33

commit  d8adf402a2fbabff65f152e6ce83daf074fffb33
Author: Gordon Ross <gwr@nexenta.com>
Date:   2019-05-18T23:46:33.000Z

    10965 SMB: mdb "::smbreq -v" prints findstack errors
    Reviewed by: Evan Layton <evan.layton@nexenta.com>
    Reviewed by: Matt Barden <matt.barden@nexenta.com>
    Approved by: Joshua M. Clulow <josh@sysmgr.org>

Also available in: Atom PDF