You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

MacOS Monterey upgrade: Immediate kernel panic trying to browse an SMB server share

Description

I use the "Go > Connect to Server" feature of MacOS Finder to connect to our corporate file server (a Microsoft Windows Server 2019 file server) at my work place.


Example path: smb://servername.ourdomainname.net


Prior to macOS Monterey, this worked like a champ for years.


Problem

After I upgraded to MacOS Monterey 12.0 (shortly after its release date), my iMac began suddenly rebooting when trying to browse the folder structure of the connected SMB share.


To be perfectly clear, the SMB share mounts successfully without issue, but the second I attempt to browse its folder structure, an immediate kernel panic occurs.


Other details

  • The macOS Monterey 12.2 update did not solve the issue.
  • My AppleCare+ has expired, so here I am posting in the forums.
  • The only devices plugged into my iMac are a Logitech M510 wireless mouse (it has a USB bluetooth adapter), and a SeaGate SRD00F1 Backup Plus 4TB USB drive
  • My iMac has a wired Ethernet cable for network connectivity to our corporate network via Cisco Catalyst switch. I don't use Wifi. The cabling, etc has all been certified as good using a Fluke certifier.


Here's the panic report after my iMac is suddenly rebooted:




Here's the full text contained in the panic report:




Any advise would be much appreciated, this one has me stumped.

Posted on Feb 9, 2022 10:50 AM

Reply

Similar questions

9 replies

Feb 10, 2022 2:21 PM in response to merlinapple

Yes, I've already reviewed that article, unfortunately it points me at nothing conclusive.


The following details are what I've concluded so far (based on the answer posted by Barney-15E in this discussion (and many similar ones out there): https://discussions.apple.com/thread/251609637




  • Kernel panics are predominately caused by third-party kernel extensions or hardware faults. Since you don't have any third-party kernel extensions loaded, it is likely hardware.


-My iMac doesn't have any 3rd party kernel extensions (Kexts), since all those listed in my Problem Report start with "com.apple":

Kernel Extensions in backtrace:

com.apple.filesystems.smbfs

com.apple.kec.corecrypto

com.apple.kext.triggers


-My Problem Report specifically says "type 14=page fault" (which is memory related) so that eliminates some other hardware issue




-My Problem Report specifically says "type 14=page fault", and from what I've read, page faults are cause when CPU can't locate a specific memory address called by code. My intuition is we have a bug in MacOS Monterey.


-I've tested my RAM several times, with no issues found.




-I've tried nvram reset, no positive change.



  • If you have any external hardware connected to the Mac, that could also cause a panic. If you have anything other than keyboard/mouse/printer connected, disconnect them and see if the panics stop.


-Once again, the co-incidental timing that my mouse and external USB drive going bad exactly when I installed MacOS Monterey, seem a little far-fetched.




Feb 10, 2022 10:52 AM in response to playdohsniffer

Hi, I was running Monterey on my MacBook then the touchpad stopped working, it went to get fixed, came back and then started crashing around 8-10 times per day with the same details as you "kernel panic" , it was then sent away by Apple and went to Czech Republic last week, I got it back yesterday and said they could not reproduce the issue I reported. it has come back with Catalina installed on it, not the latest Monterey. Why would they not have installed the latest software? its now asking me to install. I'm confused. My MacBook was 13 months old when it first started playing up and I'm not impressed!

Feb 10, 2022 2:00 PM in response to playdohsniffer

      Kernel Extensions in backtrace:
         com.apple.filesystems.smbfs
            dependency: com.apple.kec.corecrypto
            dependency: com.apple.kext.triggers


The panic is happening in the SMB drivers, so it is possible your SMB server is generating a protocol message that is not being handled correctly by the macOS SMB drivers.


If you have more than 1 kernel panic, check to see if they are all in the com.apple.filesystems.smbfs driver? If they are, then I'm thinking you have found a bug in the macOS driver.


If they are in random places, then I would ask if you have 3rd party RAM in your iMac? 3rd party RAM is a frequent cause of kernel traps page faults.


HOWEVER, the fact that you said this happens when you attempt to connect with your Windows SMB server, strong suggests this is NOT a RAM issue, but rather you have found a bug in the macOS SMB code. You should contact Get Support and keep escalating this issue until you get as high as you can go in the food chain.


You could also get a free macOS https://Developer.apple.com account, and file a bug report.


Feb 10, 2022 2:01 PM in response to JillyB73

JillyB73 wrote:

Hi, I was running Monterey on my MacBook then the touchpad stopped working, it went to get fixed, came back and then started crashing around 8-10 times per day with the same details as you "kernel panic" , it was then sent away by Apple and went to Czech Republic last week, I got it back yesterday and said they could not reproduce the issue I reported. it has come back with Catalina installed on it, not the latest Monterey. Why would they not have installed the latest software? its now asking me to install. I'm confused. My MacBook was 13 months old when it first started playing up and I'm not impressed!

I do not think your system panic is related to what 'playdohsniffer' is experiencing.

Feb 10, 2022 2:38 PM in response to BobHarris

The panic is happening in the SMB drivers, so it is possible your SMB server is generating a protocol message that is not being handled correctly by the macOS SMB drivers.


-This is exactly what I'm suspecting.



If you have more than 1 kernel panic, check to see if they are all in the com.apple.filesystems.smbfs driver? If they are, then I'm thinking you have found a bug in the macOS driver.


-Yes, its always com.apple.filesystems.smbfs (the Problem Report is identical every time).

-Agreed, I smell a bug introduced by updated Monterey driver.



If they are in random places, then I would ask if you have 3rd party RAM in your iMac? 3rd party RAM is a frequent cause of kernel traps page faults.


-Yes, I do have 3rd party (G.Skill Apple-certified) RAM installed. I've never had any page fault-related kernel panic (2017 iMac).

-The co-incidental timing that my memory went bad exactly when I installed MacOS Monterey seems a little far-fetched.



HOWEVER, the fact that you said this happens when you attempt to connect with your Windows SMB server, strong suggests this is NOT a RAM issue, but rather you have found a bug in the macOS SMB code. You should contact Get Support and keep escalating this issue until you get as high as you can go in the food chain.


-I agree, I've opened a Support Case with Apple (I didn't realize you can get software-only support with a valid AppleCare plan). It's a little slow going, hopefully they will get this escalated to development for bug investigation.



You could also get a free macOS https://Developer.apple.com account, and file a bug report.


-Thanks, I didn't know this...if the Support Case goes nowhere fast, I'll be taking this route next.

Feb 10, 2022 3:01 PM in response to playdohsniffer

I still think it is a bug in the Monterey SMB drivers, but


-Yes, I do have 3rd party (G.Skill Apple-certified) RAM installed. I've never had any page fault-related kernel panic (2017 iMac).
-The co-incidental timing that my memory went bad exactly when I installed MacOS Monterey seems a little far-fetched.

Technically, many years ago, a new Mac OS X release started causing all kinds of memory panics (random locations) because the operating system optimized some code that hammered away at some locations in memory a lot harder than previous releases, and the "marginal" memory some 3rd party vendors were shipping started to see failures.


It has been a lot of years since that occurred, but as I said technically, it is possible for an operating system release to cause memory problems.


But your problem seems to be 1-for-1 with accessing your Windows SMB server, and my 50 years of being a paid programmer (starting at UNIVAC in 1972, while still a college student) says this is an an SMB driver issue.


Apple switched away from Samba because it became GPLv3 licensed, which is poison to proprietary software vendors like Apple. However, I think you can still install it. Homebrew <https://brew.sh> says it has a package

brew install samba


I do not know much about how you would set it up and configure it, so just consider this a suggestion/maybe workaround until Apple fixes their bug.

Feb 10, 2022 3:57 PM in response to BobHarris

BobHarris,


I appreciate you wonderful insight...so hats offs to you sir.


Given your information, yes it certainly could be a 3rd party RAM issue, so I'll report back once I have a final outcome.


Good news on my Apple support case; the issue has been escalated to "Engineering" and was told it takes a week or so for them to investigate and respond.


What's odd also, is that after reproducing the issue half a dozen times (yesterday and today) for the Apple case, I'm now finding that occasionally I'm able to browse the SMB folder structure for varying minutes/hours before a kernel panic occurs. On Monterey 12.0 and 12.1 it always occurred immediately, and also at first when I upgraded to 12.2.


Speaking specifically about interoperability with Microsoft Windows Server file servers in a corporate environment, Apple's SMB support in my 20 years experience has been awful (buggy and slow discovery & throughput) for as long as I can remember. Prior to Big Sur, I remember constantly needing to modify MacOS's default SMB settings to optimize throughput and force SMBv3, multichannel, etc).

I will say, that browsing Windows Server SMB shares via Monterey now has very snappy/responsive SMB discovery and throughput, so maybe they have finally gotten their drivers right.


Thanks for the Samba tip, that might warrant some more investigation if it's possible to replace the default Monterey driver if this drags on for a while. (My current workaround is to access the Windows SMB shares via a Windows 10 VM (running in VMware Fusion) and copy them back and forth, painful but works).




Feb 10, 2022 5:20 PM in response to playdohsniffer

For years, Apple used the open source Samba code. But once it went GPLv3, they either had to give up on SMB or write their own. They chose to write there own.


But writing a network file sharing protocol is non-trivial, and there are a lot of "Unwritten" expectations that are not in the specifications. Back in the '90's I worked on a project to make an AppleShare Filing Protocol server on a VAX/VMS system. Apple even had a hardback book published with the specifications, and I read that thing front and back and over again. It was non-trivial getting that server to work. And then Apple would release new protocol messages as an addendum which you would have to printout and study.


NOTE: I did not write the server alone, and the original project actually purchased someone else's server which we then enhanced. But it was still a lot of work, and some things you could only learn by studying the protocol messages as they were exchanged to actually understand what was expected. And you would see to bits set that did not make sense, but if you did not handle them, things did not work the same for your server as they did for the Apple provided servers.


So I can imaging that the specs for the SMB protocol do not tell you everything, and that even if you think you understand the protocol, until you actually sniff the packets going between 2 Windows machines, and compare them against the packets between your machine and Windows, you will have a difficult time getting everything just right. And then Microsoft will change how they do things, and you are in a panic trying to figure out what changed.


Been there, done that, it is not fun. But they pay you on time and I did have fun a lot of fun along the way.

MacOS Monterey upgrade: Immediate kernel panic trying to browse an SMB server share

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.