400 Commits

Author SHA1 Message Date
Fabing Li
6ce25dc38b Fix lock releasing of fcntl 2024-08-29 17:06:01 +08:00
Fabing Li
be8cc24544 Fix infinite waiting of range locks 2024-08-29 17:06:01 +08:00
Shaowei Song
5bc696a85a Make the allocated segment uninitialized in the ring buffer 2024-08-29 12:30:04 +08:00
Shaowei Song
e6f465b553 Replace all the ring buffers with the new one 2024-08-29 00:33:47 +08:00
Shaowei Song
923b3704d7 Add a new ring buffer backed by a Segment 2024-08-29 00:33:47 +08:00
jellllly420
59b7a9397f Fix deadlock while acquiring lock on local runqueue 2024-08-29 00:32:12 +08:00
Ruihan Li
65aa156e92 Implement UNIX abstract address namespace 2024-08-28 19:54:36 +08:00
Shaowei Song
aae9fdb331 Add assembly memset for fast filling zeros 2024-08-28 18:06:04 +08:00
Jianfeng Jiang
a72c7dadf3 Optimize the latency of lmbench-signal-prot 2024-08-28 14:27:41 +08:00
Yuke Peng
434f143e30 Pass can reuse to bind_socket 2024-08-28 14:01:18 +08:00
Yuke Peng
dc4df47007 Implement UDP getsockopt and setsockopt 2024-08-28 14:01:18 +08:00
Chen Chengjun
ffc717f00b Enable handling page fault around 2024-08-28 11:04:03 +08:00
Yuke Peng
a5e6c11d1a Correct FcntlCmd 2024-08-27 22:14:40 +08:00
Zhang Junyang
47be0a909b Schedule tasks to APs in aster-nix 2024-08-27 17:22:47 +08:00
Zhang Junyang
ed82c11dd3 Use a SpinLock for the thread table instead of Mutex 2024-08-27 17:22:47 +08:00
Cautreoxit
86f09eef75 Fix all spelling mistakes in history by typos tool 2024-08-27 12:19:48 +08:00
Jianfeng Jiang
aa77747f94 Make mprotect&munmap return fast when len is zero 2024-08-26 12:06:31 +08:00
Jianfeng Jiang
212440dbb1 Fix: mmap len cannot be zero 2024-08-26 12:06:31 +08:00
jellllly420
32a1a53ee7 Enable check of atomic mode 2024-08-26 10:23:25 +08:00
Zhang Junyang
54cbacb2ff Replace the CpuLocal's borrow* APIs with get_with 2024-08-25 20:14:06 +08:00
Zhang Junyang
f7a9510be0 Refactor the this_cpu API with PinCurrentCpu 2024-08-25 20:14:06 +08:00
Zhang Junyang
9a94ba23aa Replace the Deref implementation of CpuLocal with get_on_cpu 2024-08-25 20:14:06 +08:00
Yuke Peng
3cac1b2a03 Use AtomicU32 to read/write latest modified pid 2024-08-25 20:13:05 +08:00
Yuke Peng
ccdf2dc54f Drop the MutexGuard of semaphore earlier 2024-08-25 20:13:05 +08:00
Yuke Peng
547e6430ee Pass the reference of sem_buf to semop 2024-08-25 20:13:05 +08:00
Yuke Peng
83a4366a72 Remove check_sem in semop 2024-08-25 20:13:05 +08:00
Yuke Peng
4b1f2f720e Avoid using current in semop 2024-08-25 20:13:05 +08:00
Chen Chengjun
6bde87d33a Fix a bug of InitStack during doing fork+exec 2024-08-25 15:14:11 +08:00
Zhang Junyang
1e24911198 Upgrade the version of bytemuck since it's yanked 2024-08-24 17:18:24 +08:00
Zhang Junyang
dafd16075f Remove the shim kernel crate 2024-08-23 23:37:50 +08:00
Zhang Junyang
d76c7a5b1e OSDK check and clippy with cfg(ktest) 2024-08-23 23:37:50 +08:00
Zhang Junyang
be3492d7f0 Extract the OSTD test runner as a kernel 2024-08-23 23:37:50 +08:00
Yuke Peng
715733f551 Implement dummy NamedPipe 2024-08-23 19:56:36 +08:00
Yuke Peng
ea64ddfde5 Change the API of mknod 2024-08-23 19:56:36 +08:00
Yuke Peng
95f67b3d67 Remove duplicate FileType enumerate 2024-08-23 19:56:36 +08:00
Yuke Peng
069cd7932b Block when incoming_conns reaches backlog 2024-08-23 19:55:25 +08:00
Ruihan Li
2d6da11d92 Add comments about two polling loops 2024-08-23 19:27:12 +08:00
Yuke Peng
42f70fd779 Fix reachable unwrap panic in check_sem() 2024-08-23 19:24:17 +08:00
Yuke Peng
bb4751741a Bump smoltcp to newest git version 2024-08-22 22:58:36 +08:00
Shaowei Song
dce796cdde Refactor all io APIs of vfs based on VmReader/VmWriter 2024-08-22 22:54:30 +08:00
Marsman1996
ef9e600c9d Fix panic in sys_waitid() by options 2024-08-22 09:56:10 +08:00
Marsman1996
ec7391468c Fix panic in from_which_and_id() 2024-08-22 09:56:10 +08:00
Marsman1996
90688286aa Improve readability 2024-08-22 09:50:47 +08:00
Marsman1996
95aaef9aa1 Check the length of timers before delete 2024-08-22 09:50:47 +08:00
Marsman1996
c38907374a Check the length of timers before access 2024-08-22 09:50:47 +08:00
Shaowei Song
2102107be1 Refactor VmReader&VmWriter as given fallibility marker 2024-08-21 22:24:15 +08:00
Marsman1996
fda0fa0512 Align len in madvise 2024-08-20 13:10:00 +08:00
Marsman1996
22f9c072f3 Move the check location following Linux behaviors 2024-08-20 13:10:00 +08:00
Marsman1996
18607c33ea Fix panic in madv_free() 2024-08-20 13:10:00 +08:00
Ruihan Li
e3307a6945 Use Connected to replace Endpoint 2024-08-18 23:57:56 +08:00