instance_id stringlengths 24 25 | issue_numbers sequencelengths 1 2 | patch stringlengths 134 202k | problem_statement stringlengths 33 10.8k | created_at stringlengths 20 20 | pull_number int64 183 1.64k | repo stringclasses 1
value | hints_text stringlengths 0 24.3k | version stringclasses 9
values | base_commit stringlengths 40 40 | test_patch stringlengths 335 66.3k | environment_setup_commit stringclasses 10
values |
|---|---|---|---|---|---|---|---|---|---|---|---|
asterinas__asterinas-1642 | [
"1587"
] | diff --git a/kernel/src/process/posix_thread/futex.rs b/kernel/src/process/posix_thread/futex.rs
--- a/kernel/src/process/posix_thread/futex.rs
+++ b/kernel/src/process/posix_thread/futex.rs
@@ -253,7 +253,9 @@ impl FutexBucket {
}
let item = item_cursor.remove().unwrap();
- item.... | `futex_wait_bitset()` should remove `futex_item` when `pause_timeout()` fails
### Describe the bug
1. When signaled or timeout, the `futex_item` is not removed from the `futex_bucket`, which can lead to lost-wakeup.
2. `waiter.pause_timeout()` returns `Ok(())` upon waking up from a signal, which can lead to incorre... | 2024-11-26T12:04:42Z | 1,642 | asterinas/asterinas | The [wakeup test](https://github.com/torvalds/linux/blob/2d5404caa8c7bb5c4e0435f94b28834ae5456623/kernel/futex/waitwake.c#L671-L673) must take precedence over the [pending signals test](https://github.com/torvalds/linux/blob/2d5404caa8c7bb5c4e0435f94b28834ae5456623/kernel/futex/waitwake.c#L678-L683).
This is the rea... | 0.9 | 9da6af03943c15456cdfd781021820a7da78ea40 | diff --git /dev/null b/test/apps/pthread/pthread_signal_test.c
new file mode 100644
--- /dev/null
+++ b/test/apps/pthread/pthread_signal_test.c
@@ -0,0 +1,109 @@
+// SPDX-License-Identifier: MPL-2.0
+// A regression test for the futex lost wakeup bug fixed in https://github.com/asterinas/asterinas/pull/1642
+
+#include... | 9da6af03943c15456cdfd781021820a7da78ea40 |
asterinas__asterinas-1559 | [
"1554"
] | diff --git a/kernel/src/fs/utils/channel.rs b/kernel/src/fs/utils/channel.rs
--- a/kernel/src/fs/utils/channel.rs
+++ b/kernel/src/fs/utils/channel.rs
@@ -114,7 +127,7 @@ impl<T> Producer<T> {
}
fn update_pollee(&self) {
- // In theory, `rb.is_full()`/`rb.is_empty()`, where the `rb` is taken from eit... | PIPE implementation does not guarantee atomic writes for up to PIPE_BUF bytes
### Describe the bug
The current implementation of the PIPE in Asterinas does not ensure that writes of up to PIPE_BUF bytes are atomic.
### To Reproduce
Apply the following patch and run `test/pipe/pipe_atomicity`
<details><summ... | 2024-11-05T07:28:33Z | 1,559 | asterinas/asterinas | This one is easy to fix. Just check if the remaining space in the internal buffer of a pipe is no less than `PIPE_BUF` before actually writing the data. | 0.9 | 11382524d1d23cc6d41adf977a72138baa39e38d | diff --git a/kernel/src/fs/pipe.rs b/kernel/src/fs/pipe.rs
--- a/kernel/src/fs/pipe.rs
+++ b/kernel/src/fs/pipe.rs
@@ -247,7 +247,7 @@ mod test {
W: Fn(Arc<PipeWriter>) + Sync + Send + 'static,
R: Fn(Arc<PipeReader>) + Sync + Send + 'static,
{
- let channel = Channel::with_capacity(1);
+ ... | 9da6af03943c15456cdfd781021820a7da78ea40 |
asterinas__asterinas-1447 | [
"1291"
] | diff --git a/Cargo.lock b/Cargo.lock
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,6 +1,6 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
-version = 3
+version = 4
[[package]]
name = "acpi"
diff --git a/Cargo.lock b/Cargo.lock
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -875,9 +87... | Invalid opcode after relocation for Linux EFI-handover boot
<!-- Thank you for taking the time to report a bug. Your input is valuable to us.
Please replace all the <angle brackets> below with your own information. -->
### Describe the bug
<!-- A clear and concise description of what the bug is. -->
Sometimes... | 2024-10-14T14:03:58Z | 1,447 | asterinas/asterinas | 0.9 | 2af9916de92f8ca1e694bb6ac5e33111bbcf51fd | diff --git a/tools/bump_version.sh b/tools/bump_version.sh
--- a/tools/bump_version.sh
+++ b/tools/bump_version.sh
@@ -106,6 +106,9 @@ DOCS_DIR=${ASTER_SRC_DIR}/docs
OSTD_CARGO_TOML_PATH=${ASTER_SRC_DIR}/ostd/Cargo.toml
OSTD_TEST_CARGO_TOML_PATH=${ASTER_SRC_DIR}/ostd/libs/ostd-test/Cargo.toml
OSTD_MACROS_CARGO_TOML_... | 9da6af03943c15456cdfd781021820a7da78ea40 | |
asterinas__asterinas-1372 | [
"1399",
"919"
] | diff --git a/ostd/src/mm/kspace.rs b/ostd/src/mm/kspace.rs
--- a/ostd/src/mm/kspace.rs
+++ b/ostd/src/mm/kspace.rs
@@ -13,13 +13,13 @@
//!
//! ```text
//! +-+ <- the highest used address (0xffff_ffff_ffff_0000)
-//! | | For the kernel code, 1 GiB. Mapped frames are untracked.
+//! | | For the kernel ... | Silently failed ktest in OSTD: untracked_map_unmap
<!-- Thank you for taking the time to report a bug. Your input is valuable to us.
Please replace all the <angle brackets> below with your own information. -->
### Describe the bug
<!-- A clear and concise description of what the bug is. -->
https://github.com... | 2024-09-24T09:24:48Z | 1,372 | asterinas/asterinas |
I've already checked out your PR #918 addressing issues raised in this RFC, and find it convincing.
To sum up, the current inner API designs do have the 2 following major weaknesses:
- The "tracked" and "untracked" ranges are all managed by the page table, but the node is agnostic to it to some extent;
- The ... | 0.9 | 96efd620072a0cbdccc95b58901894111f17bb3a | diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -226,6 +226,8 @@ ktest: initramfs $(CARGO_OSDK)
@for dir in $(OSDK_CRATES); do \
[ $$dir = "ostd/libs/linux-bzimage/setup" ] && continue; \
(cd $$dir && cargo osdk test) || exit 1; \
+ tail --lines 10 qemu.log | grep -q "^\\[ktest runner\\] All ... | 9da6af03943c15456cdfd781021820a7da78ea40 |
asterinas__asterinas-1369 | [
"919"
] | "diff --git a/kernel/src/vm/vmar/mod.rs b/kernel/src/vm/vmar/mod.rs\n--- a/kernel/src/vm/vmar/mod.rs(...TRUNCATED) | "[RFC] Safety model about the page tables\n# Background\r\n\r\nThis issue discusses the internal API(...TRUNCATED) | 2024-09-23T14:17:42Z | 1,369 | asterinas/asterinas | "I've already checked out your PR #918 addressing issues raised in this RFC, and find it convincing.(...TRUNCATED) | 0.8 | ae4ac384713e63232b74915593ebdef680049d31 | "diff --git a/ostd/src/mm/page_table/test.rs b/ostd/src/mm/page_table/test.rs\n--- a/ostd/src/mm/pag(...TRUNCATED) | ae4ac384713e63232b74915593ebdef680049d31 |
asterinas__asterinas-1362 | [
"964"
] | "diff --git a/Makefile b/Makefile\n--- a/Makefile\n+++ b/Makefile\n@@ -1,13 +1,14 @@\n # SPDX-Licens(...TRUNCATED) | "[Perf Guide] Flame graph scripts on Asterinas\n[Flame graph](https://github.com/brendangregg/FlameG(...TRUNCATED) | 2024-09-21T13:48:03Z | 1,362 | asterinas/asterinas | 0.8 | f7932595125a0bba8230b5f8d3b110c687d6f3b2 | "diff --git a/Makefile b/Makefile\n--- a/Makefile\n+++ b/Makefile\n@@ -16,7 +17,14 @@ LOG_LEVEL ?= e(...TRUNCATED) | ae4ac384713e63232b74915593ebdef680049d31 | |
asterinas__asterinas-1328 | [
"1244"
] | "diff --git a/kernel/src/lib.rs b/kernel/src/lib.rs\n--- a/kernel/src/lib.rs\n+++ b/kernel/src/lib.r(...TRUNCATED) | "Reachable unwrap panic in `read_clock()`\n### Describe the bug\r\nThere is a reachable unwrap panic(...TRUNCATED) | 2024-09-12T06:03:09Z | 1,328 | asterinas/asterinas | 0.8 | 42e28763c59202486af4298d5305e5c5e5ab9b54 | "diff --git a/kernel/src/lib.rs b/kernel/src/lib.rs\n--- a/kernel/src/lib.rs\n+++ b/kernel/src/lib.r(...TRUNCATED) | ae4ac384713e63232b74915593ebdef680049d31 | |
asterinas__asterinas-1279 | [
"1274"
] | "diff --git a/ostd/src/sync/mutex.rs b/ostd/src/sync/mutex.rs\n--- a/ostd/src/sync/mutex.rs\n+++ b/o(...TRUNCATED) | "Potential mutex lock bug leading to multiple threads entering critical section\n### Describe the bu(...TRUNCATED) | 2024-09-02T06:56:20Z | 1,279 | asterinas/asterinas | "The bug introduced in this commit: https://github.com/asterinas/asterinas/commit/d15b4d9115cf334902(...TRUNCATED) | 0.8 | 963874471284ed014b76d268d933b6d13073c2cc | "diff --git a/ostd/src/sync/mutex.rs b/ostd/src/sync/mutex.rs\n--- a/ostd/src/sync/mutex.rs\n+++ b/o(...TRUNCATED) | ae4ac384713e63232b74915593ebdef680049d31 |
asterinas__asterinas-1256 | [
"1237"
] | "diff --git a/osdk/Cargo.lock b/osdk/Cargo.lock\n--- a/osdk/Cargo.lock\n+++ b/osdk/Cargo.lock\n@@ -1(...TRUNCATED) | "OSDK should not check the options that have been overridden\n### Describe the bug\r\n\r\nOSDK will (...TRUNCATED) | 2024-08-28T11:24:08Z | 1,256 | asterinas/asterinas | 0.8 | 539984bbed414969b0c40cf181a10e9341ed2359 | "diff --git a/osdk/src/config/manifest.rs b/osdk/src/config/manifest.rs\n--- a/osdk/src/config/manif(...TRUNCATED) | ae4ac384713e63232b74915593ebdef680049d31 | |
asterinas__asterinas-1215 | [
"1197"
] | "diff --git a/kernel/aster-nix/src/syscall/waitid.rs b/kernel/aster-nix/src/syscall/waitid.rs\n--- a(...TRUNCATED) | "Reachable unwrap panic in `ProcessFilter::from_which_and_id()`\n### Describe the bug\r\nThere is a (...TRUNCATED) | 2024-08-21T12:44:17Z | 1,215 | asterinas/asterinas | 0.6 | 562e64437584279783f244edba10b512beddc81d | "diff --git a/kernel/aster-nix/src/process/process_filter.rs b/kernel/aster-nix/src/process/process_(...TRUNCATED) | 562e64437584279783f244edba10b512beddc81d |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 3