Skip to content

Commit 6e6b215

Browse files
committed
Update for rust-next, fix incorrect count decrease with low buffer size
Signed-off-by: Lux Amelia Phifollen <[email protected]>
1 parent 6f8a969 commit 6e6b215

File tree

3 files changed

+199
-229
lines changed

3 files changed

+199
-229
lines changed

Diff for: README.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ It is originally based on the [Rust for Linux out-of-tree-module template](https
88

99
Because the `rust` branch is no longer maintained on RFL's tree, the abstractions this driver relied on are not yet present.
1010

11-
In order to add them, apply [`missing-abstractions.diff`](./missing-abstractions.diff) over RFL's `rust-next`.
11+
In order to add them, apply [`missing-abstractions.patch`](./missing-abstractions.patch) over RFL's `rust-next`.
1212

1313
It is very likely that the patch will not apply, especially as further abstractions are added.
1414

@@ -26,3 +26,14 @@ make[1]: Entering directory '.../linux-with-rust-support'
2626
LD [M] .../rust-foxes-module/rust_foxes.ko
2727
make[1]: Leaving directory '.../linux-with-rust-support'
2828
```
29+
30+
## Changelog
31+
32+
- 2024-09-04
33+
- Update abstraction patch for split rust helpers
34+
- Update abstraction patch to use `kernel::uaccess` in place of legacy `kernel::user_ptr`
35+
- Update `kernel::file` abstractions consequently
36+
- Up-to-date with `rust-next`
37+
- Fixed a bug where having a block size below 4 incorrectly decreased the remaining fox count even if a fox could not be entirely written
38+
- Add a global count of foxes, the module has to be unloaded and reloaded for it to be reset
39+
- Turn the diff file into a proper patch of the abstraction commit

0 commit comments

Comments
 (0)