lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <0A1C2108-75F2-46B7-8712-616FE6464294@abv.bg>
Date:   Thu, 11 May 2023 12:47:56 +0300
From:   Georgi Valkov <gvalkov@....bg>
To:     Greg KH <gregkh@...uxfoundation.org>,
        Foster Snowhill <forst@....gy>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        Jan Kiszka <jan.kiszka@...mens.com>,
        Jakub Kicinski <kuba@...nel.org>
Cc:     Георги Георгиев Вълков 
        <gvalkov@....bg>
Subject: net: usb: ipheth: add CDC NCM support

Can you please review, and accept the following patch. I’ve been using it for one year.
I added the author Foster Snowhill to this mail, as well as a link to his Github [1].
If needed, we can ask him to add the tag Signed-off-by:


From 257d843a7f90e4e519635f82fe5b73fba918ec33 Mon Sep 17 00:00:00 2001
From: Foster Snowhill <Forst@...rs.noreply.github.com>
Date: Fri, 22 Apr 2022 23:50:09 +0200
Subject: [PATCH] net: usb: ipheth: add CDC NCM support (PoC)

Recent iOS releases support CDC NCM encapsulation on RX. This mode is
the default on macOS and Windows.

When reconnecting a device from a macOS/Windows machine to a Linux
machine, the device stays in NCM mode. Therefore to correctly support
such a device, the driver has to either support the NCM mode too, or
somehow put the device back into legacy mode.

To match the behaviour of the macOS/Windows driver, and since there
are no documented control commands to revert to legacy mode, I chose
to implement basic NCM support.

With this change, the device is attempted to be put into NCM mode by
default, and falls back to legacy mode if said attempt failed.

Tested-by: Georgi Valkov <gvalkov@....bg>



[1] https://github.com/Forst/linux-stable/commit/257d843a7f90e4e519635f82fe5b73fba918ec33#diff-d13f85b8acc1204f31e7abc538e9fdb1faa07b94cd928800b6b976561d32f6e3

This can be applied directly to Linux master, as well as 5.10 and 5.15 stable.

Download attachment "0001-net-usb-ipheth-add-CDC-NCM-support-PoC.patch" of type "application/octet-stream" (10185 bytes)






Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ