528 Commits

Author SHA1 Message Date
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
Ruihan Li
639eedb2e1 Remove unused error code 2024-08-18 23:57:56 +08:00
Ruihan Li
47857fc10f Fix remote addresses in connected UNIX sockets 2024-08-18 23:57:56 +08:00
Ruihan Li
a3d4748d6b Fix behavior in UNIX socket listen() 2024-08-18 23:57:56 +08:00
Ruihan Li
ac19a7e0e7 Fix race conditions in UNIX socket listen() 2024-08-18 23:57:56 +08:00
Ruihan Li
a2d94675eb Move impl Drop to UNIX listeners 2024-08-18 23:57:56 +08:00
Ruihan Li
98e2a99195 Store Arc<Backlog> in UNIX listeners 2024-08-18 23:57:56 +08:00
Yuke Peng
994f3727d8 Introduce somaxconn to restrict backlog 2024-08-18 23:56:40 +08:00
Yuke Peng
46d45de37a Change the log level of page fault handler failed 2024-08-18 23:20:57 +08:00
Cautreoxit
c44447d54b Refactor the API of spinlocks 2024-08-18 21:06:40 +08:00
Yuke Peng
60ef523aaf Implement semctl syscall 2024-08-18 16:37:39 +08:00
Yuke Peng
9d83e76931 Implement semop and semtimedop syscall 2024-08-18 16:37:39 +08:00
Yuke Peng
4530253a99 Implement semget syscall 2024-08-18 16:37:39 +08:00
Yuke Peng
b7a5f797de Add System V semaphore basic support 2024-08-18 16:37:39 +08:00
Fabing Li
ce2af1eb05 Add flock and sys_flock 2024-08-17 18:18:23 +08:00
Fabing Li
cbd8879243 Add range lock and sys_fcntl 2024-08-17 18:18:23 +08:00
Fabing Li
4a2da992a6 Add Extension implementation on inode for lock storing 2024-08-17 18:18:23 +08:00
Chen Chengjun
9c7fd8fef5 Add dummy msync 2024-08-17 18:07:09 +08:00
Marsman1996
cf30599729 Propagate errors of futex operations when used in futex syscall instead of panic on them
by @jellllly420
2024-08-17 18:01:32 +08:00
Marsman1996
4c1f6a4e32 Fix panic in futex and rt_sigprocmask 2024-08-17 18:01:32 +08:00
Chen Chengjun
364ef48e2f Fix a concurrency bug in clocksource 2024-08-17 17:57:26 +08:00
Jianfeng Jiang
0291b5dc6b Optimize the latency of lmbench-select-file 2024-08-16 11:19:29 +08:00
Marsman1996
5b5f9cffd1 Fix panic when transfer how to enum in sys_rt_sigprocmask() 2024-08-16 11:14:11 +08:00