SMB 1 broken in kernel linux-generic-hwe-22.04 (version 6.2.0-31)

Bug #2033732 reported by R. Diez
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux-hwe-6.2 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I was running Ubuntu 22.04.3 on kernel version 5.15.0-82-generic, and I installed package linux-generic-hwe-22.04 in order to upgrade to kernel version 6.2.0-31.

That upgrade broke the SMB version 1 protocol. I know that it is an old, deprecated protocol, but I still have to access some legacy systems and devices in a local network.

This breakage has been discussed on the Internet. It is a Linux kernel regression.

This is the commit that fixes it. It is a very small change:

2f6f19c7aaad "cifs: fix regression in very old smb1 mounts"

https://github.com/torvalds/linux/commit/2f6f19c7aaad5005dc75298a413eb0243c5d312d

I am no Linux kernel expert. Could you please backport that fix to the kernel versions that linux-generic-hwe-22.04 installs?

Tags: jammy
Paul White (paulw2u)
affects: ubuntu → linux-hwe-6.2 (Ubuntu)
tags: added: jammy
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-hwe-6.2 (Ubuntu):
status: New → Confirmed
Revision history for this message
R. Diez (rdiezmail-ubuntu) wrote :

This problem seems fixed now, or at least I am no longer having problems with this Linux Kernel version:

6.2.0-34-generic #34~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 13:12:03 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

Can somebody else confirm this?

I don't know yet how to check whether that patch mentioned above is included in the latest Ubuntu Kernel version.

Revision history for this message
Matthew Ruffell (mruffell) wrote :

Hi rdiez,

Yes, this was fixed in 6.2.0-32-generic, as it included the commit you mentioned in your description.

commit e5e1411ee7e612335d8e9d6fd7379401dee54f28
Author: Paulo Alcantara <email address hidden>
Date: Tue May 23 17:38:38 2023 -0300

    cifs: fix smb1 mount regression

    BugLink: https://bugs.launchpad.net/bugs/2028979

    commit 72a7804a667eeac98888610521179f0418883158 upstream.

    cifs.ko maps NT_STATUS_NOT_FOUND to -EIO when SMB1 servers couldn't
    resolve referral paths. Proceed to tree connect when we get -EIO from
    dfs_get_referral() as well.

    Reported-by: Kris Karas (Bug Reporting) <email address hidden>
    Tested-by: Woody Suwalski <email address hidden>
    Fixes: 8e3554150d6c ("cifs: fix sharing of DFS connections")
    Cc: <email address hidden> # v6.2+
    Signed-off-by: Paulo Alcantara (SUSE) <email address hidden>
    Signed-off-by: Steve French <email address hidden>
    Signed-off-by: Greg Kroah-Hartman <email address hidden>
    Signed-off-by: Kamal Mostafa <email address hidden>
    Signed-off-by: Stefan Bader <email address hidden>

$ git describe --contains e5e1411ee7e612335d8e9d6fd7379401dee54f28
Ubuntu-hwe-6.2-6.2.0-32.32_22.04.1~173

I'll take a look at your 6.5 issues now.

Thanks,
Matthew

Changed in linux-hwe-6.2 (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.