~canonical-kernel/ubuntu/+source/linux-azure/+git/jammy:master-next

Last commit made on 2024-05-30
Get this branch:
git clone -b master-next https://git.launchpad.net/~canonical-kernel/ubuntu/+source/linux-azure/+git/jammy
Members of Canonical Kernel can upload to this branch. Log in for directions.

Branch merges

Branch information

Recent commits

afd49a6... by Tim Gardner

UBUNTU: Ubuntu-azure-5.15.0-1066.75

Signed-off-by: Tim Gardner <email address hidden>

19300ca... by Tim Gardner

UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/2067485
Properties: no-test-build
Signed-off-by: Tim Gardner <email address hidden>

8d13895... by Tim Gardner

UBUNTU: SAUCE: Restore CIFS to 5.15-backport-8-16-23

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

The backport of git://git.samba.org/sfrench/cifs-2.6.git 5.15-backport-1-24-24 (CIFS) has caused some regressions. See LP: #2064514

Revert backport and restore CIFS to 5.15-backport-8-16-23

Signed-off-by: Tim Gardner <email address hidden>

ea977ad... by Tim Gardner

UBUNTU: Start new release

Ignore: yes
Signed-off-by: Tim Gardner <email address hidden>

ada0900... by Tim Gardner

UBUNTU: Ubuntu-azure-5.15.0-1065.74

Signed-off-by: Tim Gardner <email address hidden>

cac2a84... by Tim Gardner

UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/2063717
Properties: no-test-build
Signed-off-by: Tim Gardner <email address hidden>

2fa754b... by Tim Gardner

UBUNTU: Start new release

Ignore: yes
Signed-off-by: Tim Gardner <email address hidden>

acc63a2... by Steve French <email address hidden>

smb: Work around Clang __bdos() type confusion

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

Recent versions of Clang gets confused about the possible size of the
"user" allocation, and CONFIG_FORTIFY_SOURCE ends up emitting a
warning[1]:

repro.c:126:4: warning: call to '__write_overflow_field' declared with 'warning' attribute: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Wattribute-warning]
  126 | __write_overflow_field(p_size_field, size);
      | ^

for this memset():

        int len;
        __le16 *user;
        ...
        len = ses->user_name ? strlen(ses->user_name) : 0;
        user = kmalloc(2 + (len * 2), GFP_KERNEL);
        ...
        if (len) {
                ...
        } else {
                memset(user, '\0', 2);
        }

While Clang works on this bug[2], switch to using a direct assignment,
which avoids memset() entirely which both simplifies the code and silences
the false positive warning. (Making "len" size_t also silences the
warning, but the direct assignment seems better.)

Reported-by: Nathan Chancellor <email address hidden>
Closes: https://github.com/ClangBuiltLinux/linux/issues/1966 [1]
Link: https://github.com/llvm/llvm-project/issues/77813 [2]
Cc: Steve French <email address hidden>
Cc: Paulo Alcantara <email address hidden>
Cc: Ronnie Sahlberg <email address hidden>
Cc: Shyam Prasad N <email address hidden>
Cc: Tom Talpey <email address hidden>
Cc: <email address hidden>
Cc: <email address hidden>
Signed-off-by: Kees Cook <email address hidden>
Signed-off-by: Steve French <email address hidden>
(backported from commit 8deb05c84b63b4fdb8549e08942867a68924a5b8)
Signed-off-by: Tim Gardner <email address hidden>
Acked-by: John Cabaj <email address hidden>
Acked-by: Philip Cox <email address hidden>
Signed-off-by: Tim Gardner <email address hidden>

f584fe4... by Steve French <email address hidden>

smb: client: delete "true", "false" defines

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

Kernel has its own official true/false definitions.

The defines aren't even used in this file.

Signed-off-by: Alexey Dobriyan <email address hidden>
Signed-off-by: Steve French <email address hidden>
(backported from commit 5d390df3bdd13d178eb2e02e60e9a480f7103f7b)
Signed-off-by: Tim Gardner <email address hidden>
Acked-by: John Cabaj <email address hidden>
Acked-by: Philip Cox <email address hidden>
Signed-off-by: Tim Gardner <email address hidden>

0704d2e... by Steve French <email address hidden>

cifs: update iface_last_update on each query-and-update

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

iface_last_update was an unused field when it was introduced.
Later, when we had periodic update of server interface list,
this field was used regularly to decide when to update next.

However, with the new logic of updating the interfaces, it
becomes crucial that this field be updated whenever
parse_server_interfaces runs successfully.

This change updates this field when either the server does
not support query of interfaces; so that we do not query
the interfaces repeatedly. It also updates the field when
the function reaches the end.

Fixes: aa45dadd34e4 ("cifs: change iface_list from array to sorted linked list")
Signed-off-by: Shyam Prasad N <email address hidden>
Signed-off-by: Steve French <email address hidden>
(backported from commit 78e727e58e54efca4c23863fbd9e16e9d2d83f81)
Signed-off-by: Tim Gardner <email address hidden>
Acked-by: John Cabaj <email address hidden>
Acked-by: Philip Cox <email address hidden>
Signed-off-by: Tim Gardner <email address hidden>