Steven Lamphear 56ab46e628 linux-postmarketos-allwinner: fix rtl8723cs CFI panic on PinePhone
The rtl8723cs staging driver in megi's tree [declares rtw_xmit_entry as returning int](https://codeberg.org/megi/linux/src/tag/orange-pi-6.18-20260105-0049/drivers/staging/rtl8723cs/os_dep/linux/xmit_linux.c#L513), but the kernel core's net_device_ops::ndo_start_xmit [expects netdev_tx_t](https://codeberg.org/megi/linux/src/commit/6519f78239276e5d14698135fe05aa3206947ab9/include/linux/netdevice.h#L1413). With kCFI enabled on aarch64 the indirect call from dev_hard_start_xmit traps on the type-hash mismatch, panicking the kernel as soon as wpa_supplicant sends a frame. This patch changes rtw_xmit_entry's return type to netdev_tx_t (the function already returns 0, which is NETDEV_TX_OK).

Tested on a PinePhone 1.2 with both an SD-card install and an eMMC install: wifi associates and remains stable, no CFI panic. The eMMC install had previously been connected to wifi, so it froze during boot; the SD-card install was new, but would freeze (and eventually crash) upon attempting to connect to wifi.

Closes: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/4507
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8501>
2026-05-07 08:17:51 -05:00
2026-05-05 12:48:41 +00:00
2026-04-29 09:48:53 +02:00
2019-06-26 22:36:15 +02:00
2026-01-11 18:52:28 +01:00
2018-08-23 21:44:22 +02:00

postmarketOS aports repository

This repository contains the APKBUILD files for postmarketOS-specific packages, along with the required patches and scripts, if any.

There are many more packages defined in the Alpine Linux aports on which these packages depend.

Helpful resources:

Git Hooks

You can find some useful git hooks in the .githooks directory. To use them, run the following command after cloning this repository:

git config --local core.hooksPath .githooks
S
Description
No description provided
Readme GPL-3.0
95 MiB
Languages
Shell 95.8%
Python 2.5%
C 1.2%
Batchfile 0.3%
Jinja 0.2%