Zhang Junyang
02a2cad397
Unify some panic message and add `should_panic =` tests
2026-01-29 19:40:59 +08:00
Zhang Junyang
272f385cf6
Panic if map on a mapped page
2026-01-29 19:40:59 +08:00
Zhang Junyang
77069654d0
Query the page table item reference
...
This commit adds a page table item reference type at the `PageTableConfig`
trait. Therefore it allows `Cursor::query` to return a reference to the
mapped item, reducing copies.
Also, it removes the `Iterator` implementation of the `Cursor` since the
yielded item cannot be a reference type.
2026-01-29 19:40:58 +08:00
Zhang Junyang
5b6b1b80d3
Add a panic guard at huge mapping splitting
2026-01-29 19:40:51 +08:00
Zhang Junyang
09afd46e33
Rename `Child` to `PteState`
2026-01-29 10:35:06 +08:00
Xinyi Yu
01cf00a4c6
Trim whitespace from input string before parsing in `OomScoreAdhFileOps::write_at` method
2026-01-28 16:19:03 -08:00
Ruihan Li
a599a2c563
Disable BAR decoding when sizing PCI BARs
2026-01-27 23:05:02 -08:00
Ruihan Li
eefdaf4de9
Fix minor problems in PCI
2026-01-27 23:05:02 -08:00
Ruihan Li
b11fcdcf0b
Remove unused code in PCI
2026-01-27 23:05:02 -08:00
Wang Siyuan
08d54ec6ad
Add entries other than `[stack]` in `/proc/[pid]/maps`
2026-01-27 23:01:17 -08:00
Wang Siyuan
fb8c9e0c27
Revert "`ProgramToLoad` only needs a `elf_inode: Arc<dyn Inode>` instead of a `Path`"
...
This reverts commit 71632a51b5 .
2026-01-27 23:01:17 -08:00
Marsman1996
66ac28c4c2
Add test for permission validation of mprotect and mmap
2026-01-27 21:24:35 -08:00
Marsman1996
ea142155fb
Fix permission validation in mprotect and mmap
2026-01-27 21:24:35 -08:00
li041
306cc714ae
Align `PidFile` semantics with POSIX standards
2026-01-28 11:20:50 +08:00
Ruihan Li
425cc2d1cf
Fix some style issues
2026-01-28 11:07:28 +08:00
Ruihan Li
b1071b6b92
Remove old gVsior workaround
2026-01-28 11:07:28 +08:00
Ruihan Li
22dd288b07
Support `make run_kernel CONSOLE=ttyS0`
2026-01-27 17:44:41 -08:00
Ruihan Li
3c959bf0a0
Support `/dev/ttyS0` and `console=ttyS0`
2026-01-27 17:44:41 -08:00
Ruihan Li
000ad53c9f
Support UART console
2026-01-27 17:44:41 -08:00
Ruihan Li
81c2f8d4bd
Move NS16650A UART driver outside `arch`
2026-01-27 17:44:41 -08:00
root
dee39e21d1
x86/tdx: integrate fatal error reporting and improve initialization
2026-01-27 16:32:36 -08:00
Ruihan Li
a82d185154
Use PCI ECAM in x86 if possible
2026-01-27 16:24:07 -08:00
Ruihan Li
a09de99c1d
Ensure PCI access atomicity
2026-01-27 16:24:07 -08:00
Ruihan Li
f055a387a7
Get the PCI bus number range
2026-01-27 16:24:07 -08:00
Ruihan Li
5499436807
Add regression tests for recent issues
2026-01-27 10:02:21 +08:00
Ruihan Li
a3314c6432
Ignore high bits in PCI BAR sizes
2026-01-26 17:19:10 -08:00
Xinyi Yu
459a634e4a
fmt
2026-01-26 15:22:23 -08:00
Xinyi Yu
76586dd6fb
Update the book
2026-01-26 15:22:23 -08:00
Xinyi Yu
b2ea514556
Impl BLKGETSIZE64 ioctl
2026-01-26 15:22:23 -08:00
Chaoqun Zheng
e4ebd821de
Fix error setting bid in `InodeImpl::free_indirect_blocks_required_by`
2026-01-26 15:17:07 -08:00
Tate, Hongliang Tian
e44d7e2b12
Update the intro section of README
2026-01-25 20:52:55 -08:00
Wang Siyuan
b7ae738310
Cleanup: Only maintain children for directory dentries
2026-01-22 11:39:09 +08:00
Marsman1996
5792b49722
Fix error handling in OverlayFsType by propagating lookup errors
2026-01-21 00:30:23 -08:00
Ruihan Li
6a61aa39b0
Handle the listener in `State::set_pass_cred`
2026-01-21 10:11:19 +08:00
Marsman1996
43f570730c
Fix new_fd validation to use resource limits in `do_dup3`
2026-01-20 16:02:40 +08:00
Ruihan Li
6520682360
Inherit `SO_PEERCRED` for accepted sockets
2026-01-20 14:51:23 +08:00
Ruihan Li
98529bdbf0
Support `SO_PEERCRED` for UNIX datagrams
2026-01-20 14:51:23 +08:00
Ruihan Li
db6292a310
Triage some gvisor tests
2026-01-20 14:49:34 +08:00
Zhang Junyang
77f0b0e746
Add missing safety comments in `boot_pt`
2026-01-19 23:41:42 +08:00
Zhang Junyang
c77c2686d8
Revise `PageTableEntryTrait`
2026-01-19 23:41:42 +08:00
Ruihan Li
f62ae40188
Allow empty UNIX control messages
2026-01-19 16:18:26 +08:00
Ruihan Li
bdc1c79770
Fix overflow behavior and control flags
2026-01-18 18:39:32 -08:00
Ruihan Li
e082d4eaa6
Respect `InotifyControls::ONESHOT`
2026-01-18 18:39:32 -08:00
Ruihan Li
b5518ccd64
Remove unnecessary atomic loads
2026-01-18 18:39:32 -08:00
Ruihan Li
43b8838d6a
Reject new watches on deleted inodes
2026-01-18 18:39:32 -08:00
li041
d23d25c552
Add `pidfd_getfd` syscall
2026-01-18 14:58:18 -08:00
li041
f58fb66cba
Refactor `PidFile` to use `Weak<Process>`
2026-01-18 14:58:18 -08:00
Marsman1996
2219e83f8e
Fix invalid mapping in mremap fast path
2026-01-16 17:22:18 +08:00
Qingsong Chen
b2b6499466
Add disk space cleanup step for test_riscv/x86 workflows
2026-01-15 23:33:22 -08:00
Chen Chengjun
8e6406ae35
Add regression tests
2026-01-15 19:04:51 -08:00