Dataset Viewer
Auto-converted to Parquet Duplicate
repo
stringclasses
1 value
test_patch
stringlengths
335
66.3k
issue_numbers
sequencelengths
1
2
version
stringclasses
9 values
base_commit
stringlengths
40
40
problem_statement
stringlengths
33
13k
instance_id
stringlengths
24
25
pull_number
int64
183
1.64k
patch
stringlengths
448
420k
hints_text
stringlengths
0
64.4k
created_at
stringlengths
20
20
environment_setup_commit
stringclasses
10 values
asterinas/asterinas
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...
[ "1587" ]
0.9
9da6af03943c15456cdfd781021820a7da78ea40
`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...
asterinas__asterinas-1642
1,642
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....
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...
2024-11-26T12:04:42Z
9da6af03943c15456cdfd781021820a7da78ea40
asterinas/asterinas
diff --git a/ostd/src/arch/x86/trap/trap.S b/ostd/src/arch/x86/trap/trap.S --- a/ostd/src/arch/x86/trap/trap.S +++ b/ostd/src/arch/x86/trap/trap.S @@ -57,6 +57,7 @@ trap_handler_table: .section .text .global trap_common trap_common: + cld # clear DF before calling/returning to any C function t...
[ "1606" ]
0.9
5f35189a51ebc54298ea2cb0e4d53afe4e4e75eb
Shift overflow in `CpuSet` (`bit_idx` out of range) ### Describe the bug A kernel panic is triggered due to a shift overflow. The `bit_idx` value is huge: `bit_idx=18446603338235158984`, which seems like an address (`0xffff8000780aa1c8`). https://github.com/asterinas/asterinas/blob/e6c613f53841983765a7b3c56ea995...
asterinas__asterinas-1637
1,637
diff --git a/ostd/src/arch/x86/trap/trap.S b/ostd/src/arch/x86/trap/trap.S --- a/ostd/src/arch/x86/trap/trap.S +++ b/ostd/src/arch/x86/trap/trap.S @@ -57,6 +57,7 @@ trap_handler_table: .section .text .global trap_common trap_common: + cld # clear DF before calling/returning to any C function t...
I did some debugging. It seems that using stack data in IRQs (like `SmallVec` in this case) might not be safe. Below is a summary of my findings to assist with further debugging. ### Create a test case to reproduce the bug reliably Test case: `test/apps/dynamic/execve.c` <details> ```c #include <stdio.h> ...
2024-11-24T15:05:40Z
9da6af03943c15456cdfd781021820a7da78ea40
asterinas/asterinas
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); + ...
[ "1554" ]
0.9
11382524d1d23cc6d41adf977a72138baa39e38d
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...
asterinas__asterinas-1559
1,559
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); + ...
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.
2024-11-05T07:28:33Z
9da6af03943c15456cdfd781021820a7da78ea40
asterinas/asterinas
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_...
[ "1291" ]
0.9
2af9916de92f8ca1e694bb6ac5e33111bbcf51fd
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...
asterinas__asterinas-1447
1,447
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 @@ -1,6 +1,6 ...
2024-10-14T14:03:58Z
9da6af03943c15456cdfd781021820a7da78ea40
asterinas/asterinas
"diff --git a/Makefile b/Makefile\n--- a/Makefile\n+++ b/Makefile\n@@ -226,6 +226,8 @@ ktest: initra(...TRUNCATED)
[ "1399", "919" ]
0.9
96efd620072a0cbdccc95b58901894111f17bb3a
"Silently failed ktest in OSTD: untracked_map_unmap\n<!-- Thank you for taking the time to report a (...TRUNCATED)
asterinas__asterinas-1372
1,372
"diff --git a/Makefile b/Makefile\n--- a/Makefile\n+++ b/Makefile\n@@ -226,6 +226,8 @@ ktest: initra(...TRUNCATED)
"\nI've already checked out your PR #918 addressing issues raised in this RFC, and find it convincin(...TRUNCATED)
2024-09-24T09:24:48Z
9da6af03943c15456cdfd781021820a7da78ea40
asterinas/asterinas
"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)
[ "919" ]
0.8
ae4ac384713e63232b74915593ebdef680049d31
"[RFC] Safety model about the page tables\n# Background\r\n\r\nThis issue discusses the internal API(...TRUNCATED)
asterinas__asterinas-1369
1,369
"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)
"I've already checked out your PR #918 addressing issues raised in this RFC, and find it convincing.(...TRUNCATED)
2024-09-23T14:17:42Z
ae4ac384713e63232b74915593ebdef680049d31
asterinas/asterinas
"diff --git a/Makefile b/Makefile\n--- a/Makefile\n+++ b/Makefile\n@@ -16,7 +17,14 @@ LOG_LEVEL ?= e(...TRUNCATED)
[ "964" ]
0.8
f7932595125a0bba8230b5f8d3b110c687d6f3b2
"[Perf Guide] Flame graph scripts on Asterinas\n[Flame graph](https://github.com/brendangregg/FlameG(...TRUNCATED)
asterinas__asterinas-1362
1,362
"diff --git a/Makefile b/Makefile\n--- a/Makefile\n+++ b/Makefile\n@@ -1,13 +1,14 @@\n # SPDX-Licens(...TRUNCATED)
2024-09-21T13:48:03Z
ae4ac384713e63232b74915593ebdef680049d31
asterinas/asterinas
"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)
[ "1244" ]
0.8
42e28763c59202486af4298d5305e5c5e5ab9b54
"Reachable unwrap panic in `read_clock()`\n### Describe the bug\r\nThere is a reachable unwrap panic(...TRUNCATED)
asterinas__asterinas-1328
1,328
"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)
2024-09-12T06:03:09Z
ae4ac384713e63232b74915593ebdef680049d31
asterinas/asterinas
"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)
[ "1274" ]
0.8
963874471284ed014b76d268d933b6d13073c2cc
"Potential mutex lock bug leading to multiple threads entering critical section\n### Describe the bu(...TRUNCATED)
asterinas__asterinas-1279
1,279
"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)
"The bug introduced in this commit: https://github.com/asterinas/asterinas/commit/d15b4d9115cf334902(...TRUNCATED)
2024-09-02T06:56:20Z
ae4ac384713e63232b74915593ebdef680049d31
asterinas/asterinas
"diff --git a/osdk/src/config/manifest.rs b/osdk/src/config/manifest.rs\n--- a/osdk/src/config/manif(...TRUNCATED)
[ "1237" ]
0.8
539984bbed414969b0c40cf181a10e9341ed2359
"OSDK should not check the options that have been overridden\n### Describe the bug\r\n\r\nOSDK will (...TRUNCATED)
asterinas__asterinas-1256
1,256
"diff --git a/osdk/Cargo.lock b/osdk/Cargo.lock\n--- a/osdk/Cargo.lock\n+++ b/osdk/Cargo.lock\n@@ -1(...TRUNCATED)
2024-08-28T11:24:08Z
ae4ac384713e63232b74915593ebdef680049d31
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
4