static_analyzer stringclasses 2
values | cve_id stringlengths 13 16 | dataset stringclasses 5
values | environment_id stringlengths 16 67 | group stringclasses 5
values | language stringclasses 5
values | project_id stringlengths 9 54 | task_id stringlengths 9 30 | task_path stringlengths 22 73 | task_prompt stringlengths 4.92k 22.9k | patch stringlengths 318 241k | before_context stringlengths 220 2.06M | after_context stringlengths 113 2.08M | task_metadata_json stringlengths 765 8.94k | checker_template stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
csa | CVE-2020-23312 | csa159 | csa159/pair_137377 | CSA | c/c++ | jerryscript-project_jerryscript | pair_137377 | csa159/tasks/pair_137377 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/jerry-core/parser/js/js-lexer.c b/jerry-core/parser/js/js-lexer.c
index 2655d711..d0c00a71 100644
--- a/jerry-core/parser/js/js-lexer.c
+++ b/jerry-core/parser/js/js-lexer.c
@@ -3048,6 +3048,16 @@ lexer_expect_object_literal_id (parser_context_t *context_p, /**< context */
return;
}
... | ### File: jerry-core/parser/js/js-lexer.c
```c
void
lexer_expect_object_literal_id (parser_context_t *context_p, /**< context */
uint32_t ident_opts) /**< lexer_obj_ident_opts_t option bits */
{
lexer_skip_spaces (context_p);
if (context_p->source_p >= context_p->source_end_p)
{
... | ### File: jerry-core/parser/js/js-lexer.c
```c
void
lexer_expect_object_literal_id (parser_context_t *context_p, /**< context */
uint32_t ident_opts) /**< lexer_obj_ident_opts_t option bits */
{
lexer_skip_spaces (context_p);
if (context_p->source_p >= context_p->source_end_p)
{
... | {
"project_id": "jerryscript-project_jerryscript",
"before_commit": "ab2e8217778b95977821ccbcd9a11346f5749fc2",
"after_commit": "1230d4532c215abe8679a3c6ecda6152c502ae60",
"repo_path": "/workspace/repo/jerryscript-project/jerryscript",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/be... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2021-46350 | csa159 | csa159/pair_137389 | CSA | c/c++ | jerryscript-project_jerryscript | pair_137389 | csa159/tasks/pair_137389 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/jerry-core/ecma/operations/ecma-atomics-object.c b/jerry-core/ecma/operations/ecma-atomics-object.c
index 6e2cfd0e..c42ad875 100644
--- a/jerry-core/ecma/operations/ecma-atomics-object.c
+++ b/jerry-core/ecma/operations/ecma-atomics-object.c
@@ -192,6 +192,8 @@ ecma_atomic_read_modify_write (ecma_value_t t... | ### File: jerry-core/ecma/operations/ecma-atomics-object.c
```c
ecma_value_t
ecma_atomic_read_modify_write (ecma_value_t typedarray, /**< typedArray argument */
ecma_value_t index, /**< index argument */
ecma_value_t value, /**< value argument */
... | ### File: jerry-core/ecma/operations/ecma-atomics-object.c
```c
ecma_value_t
ecma_atomic_read_modify_write (ecma_value_t typedarray, /**< typedArray argument */
ecma_value_t index, /**< index argument */
ecma_value_t value, /**< value argument */
... | {
"project_id": "jerryscript-project_jerryscript",
"before_commit": "d681f201c259b092f1aa5736d30785a43cdbca1e",
"after_commit": "8fa7819c1f79c7c28aba7ed8ceb4d00cc007e839",
"repo_path": "/workspace/repo/jerryscript-project/jerryscript",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/be... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2019-19795 | csa159 | csa159/pair_137518 | CSA | c/c++ | michaelforney_samurai | pair_137518 | csa159/tasks/pair_137518 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/env.c b/env.c
index 5916355..51cece8 100644
--- a/env.c
+++ b/env.c
@@ -204,6 +204,9 @@ edgevar(struct edge *e, char *var, bool escape)
str = treefind(e->rule->bindings, var);
if (!str)
return envvar(e->env->parent, var);
+ if (str->visited)
+ fatal("cycle in rule variable involving '%s'", var);
+ ... | ### File: env.c
```c
struct string *
edgevar(struct edge *e, char *var, bool escape)
{
struct string *val;
struct evalstring *str;
struct evalstringpart *p;
size_t n;
if (strcmp(var, "in") == 0)
return pathlist(e->in, e->inimpidx, ' ', escape);
if (strcmp(var, "in_newline") == 0)
return pathlist(e->in, e->in... | ### File: env.c
```c
struct string *
edgevar(struct edge *e, char *var, bool escape)
{
struct string *val;
struct evalstring *str;
struct evalstringpart *p;
size_t n;
if (strcmp(var, "in") == 0)
return pathlist(e->in, e->inimpidx, ' ', escape);
if (strcmp(var, "in_newline") == 0)
return pathlist(e->in, e->in... | {
"project_id": "michaelforney_samurai",
"before_commit": "309c9d26cb9f5d0e64ab7c7ea6f73a94af221dd3",
"after_commit": "8b069471005e6c242795b68ad91c3b9000dad40e",
"repo_path": "/workspace/repo/michaelforney/samurai",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipelin... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2014-0146 | csa159 | csa159/pair_137750 | CSA | c/c++ | qemu_qemu | pair_137750 | csa159/tasks/pair_137750 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/block/qcow2.c b/block/qcow2.c
index b64564d171..be48a27afa 100644
--- a/block/qcow2.c
+++ b/block/qcow2.c
@@ -637,9 +637,6 @@ static int qcow2_open(BlockDriverState *bs, QDict *options, int flags,
goto fail;
}
- s->snapshots_offset = header.snapshots_offset;
- s->nb_snapshots = header... | ### File: block/qcow2.c
```c
static int qcow2_open(BlockDriverState *bs, QDict *options, int flags,
Error **errp)
{
BDRVQcowState *s = bs->opaque;
unsigned int len, i;
int ret = 0;
QCowHeader header;
QemuOpts *opts;
Error *local_err = NULL;
uint64_t ext_end;
uint64_... | ### File: block/qcow2.c
```c
static int qcow2_open(BlockDriverState *bs, QDict *options, int flags,
Error **errp)
{
BDRVQcowState *s = bs->opaque;
unsigned int len, i;
int ret = 0;
QCowHeader header;
QemuOpts *opts;
Error *local_err = NULL;
uint64_t ext_end;
uint64_... | {
"project_id": "qemu_qemu",
"before_commit": "6b7d4c55586a849aa8313282d79432917eade3bf",
"after_commit": "11b128f4062dd7f89b14abc8877ff20d41b28be9",
"repo_path": "/workspace/repo/qemu/qemu",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/qemu_qemu/f4... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2018-16847 | csa159 | csa159/pair_137751 | CSA | c/c++ | qemu_qemu | pair_137751 | csa159/tasks/pair_137751 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/hw/block/nvme.c b/hw/block/nvme.c
index 28d284346d..8c35cab2b4 100644
--- a/hw/block/nvme.c
+++ b/hw/block/nvme.c
@@ -1201,7 +1201,7 @@ static const MemoryRegionOps nvme_cmb_ops = {
.write = nvme_cmb_write,
.endianness = DEVICE_LITTLE_ENDIAN,
.impl = {
- .min_access_size = 2,
+ ... | ### File: hw/block/nvme.c
```c
static void nvme_realize(PCIDevice *pci_dev, Error **errp)
{
NvmeCtrl *n = NVME(pci_dev);
NvmeIdCtrl *id = &n->id_ctrl;
int i;
int64_t bs_size;
uint8_t *pci_conf;
if (!n->conf.blk) {
error_setg(errp, "drive property not set");
return;
}
b... | ### File: hw/block/nvme.c
```c
static void nvme_realize(PCIDevice *pci_dev, Error **errp)
{
NvmeCtrl *n = NVME(pci_dev);
NvmeIdCtrl *id = &n->id_ctrl;
int i;
int64_t bs_size;
uint8_t *pci_conf;
if (!n->conf.blk) {
error_setg(errp, "drive property not set");
return;
}
b... | {
"project_id": "qemu_qemu",
"before_commit": "6bf7463615752934d7221e5be9820d9da45ab2de",
"after_commit": "87ad860c622cc8f8916b5232bd8728c08f938fce",
"repo_path": "/workspace/repo/qemu/qemu",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/qemu_qemu/65... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2018-17963 | csa159 | csa159/pair_137769 | CSA | c/c++ | qemu_qemu | pair_137769 | csa159/tasks/pair_137769 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/include/net/net.h b/include/net/net.h
index 7936d53d2f..ec13702dbf 100644
--- a/include/net/net.h
+++ b/include/net/net.h
@@ -169,12 +169,6 @@ void qemu_check_nic_model(NICInfo *nd, const char *model);
int qemu_find_nic_model(NICInfo *nd, const char * const *models,
const char *de... | ### File: net/net.c
```c
static char *assign_name(NetClientState *nc1, const char *model)
{
NetClientState *nc;
int id = 0;
QTAILQ_FOREACH(nc, &net_clients, next) {
if (nc == nc1) {
continue;
}
if (strcmp(nc->model, model) == 0) {
id++;
}
}
r... | ### File: net/net.c
```c
static char *assign_name(NetClientState *nc1, const char *model)
{
NetClientState *nc;
int id = 0;
QTAILQ_FOREACH(nc, &net_clients, next) {
if (nc == nc1) {
continue;
}
if (strcmp(nc->model, model) == 0) {
id++;
}
}
r... | {
"project_id": "qemu_qemu",
"before_commit": "933cc4bb3469b82be2a2095523df400973aa4790",
"after_commit": "25c01bd19d0e4b66f357618aeefda1ef7a41e21a",
"repo_path": "/workspace/repo/qemu/qemu",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/qemu_qemu/65... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2019-20396 | csa159 | csa159/pair_138126 | CSA | c/c++ | CESNET_libyang | pair_138126 | csa159/tasks/pair_138126 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/src/parser_yang_bis.c b/src/parser_yang_bis.c
index 42f285821..495917aee 100644
--- a/src/parser_yang_bis.c
+++ b/src/parser_yang_bis.c
@@ -4623,6 +4623,9 @@ yyreduce:
!(data_node && data_node->nodetype != LYS_GROUPING && lys_ingr... | ### File: src/parser_yang_bis.c
```c
int
yyparse (void *scanner, struct yang_parameter *param)
{
/* The lookahead symbol. */
int yychar;
char *s = NULL, *tmp_s = NULL, *ext_name = NULL;
struct lys_module *trg = NULL;
struct lys_node *tpdf_parent = NULL, *data_node = NULL;
struct lys_ext_instance_complex *ext_instance ... | ### File: src/parser_yang_bis.c
```c
int
yyparse (void *scanner, struct yang_parameter *param)
{
/* The lookahead symbol. */
int yychar;
char *s = NULL, *tmp_s = NULL, *ext_name = NULL;
struct lys_module *trg = NULL;
struct lys_node *tpdf_parent = NULL, *data_node = NULL;
struct lys_ext_instance_complex *ext_instance ... | {
"project_id": "CESNET_libyang",
"before_commit": "19a0d6778999a2fea68db2fd7407cba1f954d895",
"after_commit": "a1f17693904ed6fecc8902c747fc50a8f20e6af8",
"repo_path": "/workspace/repo/CESNET/libyang",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/CE... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2026-32854 | csa159 | csa159/pair_138203 | CSA | c/c++ | LibVNC_libvncserver | pair_138203 | csa159/tasks/pair_138203 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/src/libvncserver/httpd.c b/src/libvncserver/httpd.c
index f4fe51c..7cefadc 100644
--- a/src/libvncserver/httpd.c
+++ b/src/libvncserver/httpd.c
@@ -353,10 +353,11 @@ httpProcessInput(rfbScreenInfoPtr rfbScreen)
/* Process the request. */
- if(rfbScreen->httpEnableProxyConnect) {
+if(rfbScreen->... | ### File: src/libvncserver/httpd.c
```c
static void
httpProcessInput(rfbScreenInfoPtr rfbScreen)
{
#ifdef LIBVNCSERVER_IPv6
struct sockaddr_storage addr;
#else
struct sockaddr_in addr;
#endif
socklen_t addrlen = sizeof(addr);
char fullFname[512];
char params[1024];
char *ptr;
char *fname;
... | ### File: src/libvncserver/httpd.c
```c
static void
httpProcessInput(rfbScreenInfoPtr rfbScreen)
{
#ifdef LIBVNCSERVER_IPv6
struct sockaddr_storage addr;
#else
struct sockaddr_in addr;
#endif
socklen_t addrlen = sizeof(addr);
char fullFname[512];
char params[1024];
char *ptr;
char *fname;
... | {
"project_id": "LibVNC_libvncserver",
"before_commit": "9664466442a63afd3fe51b63d6eded64bdde031b",
"after_commit": "dc78dee51a7e270e537a541a17befdf2073f5314",
"repo_path": "/workspace/repo/LibVNC/libvncserver",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/sn... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2020-6611 | csa159 | csa159/pair_138249 | CSA | c/c++ | LibreDWG_libredwg | pair_138249 | csa159/tasks/pair_138249 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/src/decode_r2007.c b/src/decode_r2007.c
index 9e821d3f..5a7449d8 100644
--- a/src/decode_r2007.c
+++ b/src/decode_r2007.c
@@ -1010,6 +1010,13 @@ read_pages_map (Bit_Chain *dat, int64_t size_comp, int64_t size_uncomp,
pages_destroy (pages);
return NULL;
}
+ if (ptr + 16 >... | ### File: src/decode_r2007.c
```c
static r2007_page *
read_pages_map (Bit_Chain *dat, int64_t size_comp, int64_t size_uncomp,
int64_t correction)
{
BITCODE_RC *data, *ptr, *ptr_end;
r2007_page *pages = NULL, *last_page = NULL, *page;
int64_t offset = 0x480; // dat->byte;
// int64_t index;
dat... | ### File: src/decode_r2007.c
```c
static r2007_page *
read_pages_map (Bit_Chain *dat, int64_t size_comp, int64_t size_uncomp,
int64_t correction)
{
BITCODE_RC *data, *ptr, *ptr_end;
r2007_page *pages = NULL, *last_page = NULL, *page;
int64_t offset = 0x480; // dat->byte;
// int64_t index;
dat... | {
"project_id": "LibreDWG_libredwg",
"before_commit": "5c19f597ca87363be1bcaf5d7fa06942120a8280",
"after_commit": "fc8c16ccf36dd4d7168231a66489a904a142059c",
"repo_path": "/workspace/repo/LibreDWG/libredwg",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapsh... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2021-36080 | csa159 | csa159/pair_138280 | CSA | c/c++ | LibreDWG_libredwg | pair_138280 | csa159/tasks/pair_138280 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/src/encode.c b/src/encode.c
index c555c8aa..4af17c62 100644
--- a/src/encode.c
+++ b/src/encode.c
@@ -731,6 +731,7 @@ static bool env_var_checked_p;
obj_flush_hdlstream (obj, dat, &dat1); /* special accumulated */ \
bit_chain_free (&dat1); ... | ### File: src/encode.c
```c
/*****************************************************************************/
/* LibreDWG - free implementation of the DWG file format */
/* */
/* Copyright (C) 2009-2010,2018-2021 Free Software ... | ### File: src/encode.c
```c
/*****************************************************************************/
/* LibreDWG - free implementation of the DWG file format */
/* */
/* Copyright (C) 2009-2010,2018-2021 Free Software ... | {
"project_id": "LibreDWG_libredwg",
"before_commit": "cc9f02ac405fe8d53666984c87ac038e51c53285",
"after_commit": "9b6e0ff9ef02818df034fc42c3bd149a5ff89342",
"repo_path": "/workspace/repo/LibreDWG/libredwg",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapsh... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2019-13115 | csa159 | csa159/pair_138328 | CSA | c/c++ | libssh2_libssh2 | pair_138328 | csa159/tasks/pair_138328 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/src/misc.c b/src/misc.c
index 8d80456c..76644a3c 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -811,10 +811,9 @@ int _libssh2_get_bignum_bytes(struct string_buf *buf, unsigned char **outbuf)
int _libssh2_check_length(struct string_buf *buf, size_t len)
{
- if(len > buf->len)
- return 0;
-
- ... | ### File: src/misc.c
```c
int _libssh2_get_bignum_bytes(struct string_buf *buf, unsigned char **outbuf)
{
uint32_t data_len;
uint32_t bn_len;
unsigned char *bnptr;
if(_libssh2_get_u32(buf, &data_len) != 0) {
return -1;
}
if(!_libssh2_check_length(buf, data_len)) {
return -1;
... | ### File: src/misc.c
```c
int _libssh2_get_bignum_bytes(struct string_buf *buf, unsigned char **outbuf)
{
uint32_t data_len;
uint32_t bn_len;
unsigned char *bnptr;
if(_libssh2_get_u32(buf, &data_len) != 0) {
return -1;
}
if(!_libssh2_check_length(buf, data_len)) {
return -1;
... | {
"project_id": "libssh2_libssh2",
"before_commit": "c07bc647f2b181199561bbccc1a0695caba8822c",
"after_commit": "ff1b155731ff8f790f12d980911d9fd84d0e1598",
"repo_path": "/workspace/repo/libssh2/libssh2",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2024-28319 | csa159 | csa159/pair_138462 | CSA | c/c++ | gpac_gpac | pair_138462 | csa159/tasks/pair_138462 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/src/media_tools/dash_client.c b/src/media_tools/dash_client.c
index 1d3e3996b..5abbdd067 100644
--- a/src/media_tools/dash_client.c
+++ b/src/media_tools/dash_client.c
@@ -6368,7 +6368,7 @@ static GF_Err gf_dash_setup_period(GF_DashClient *dash)
disabled = 1;
break;
}
- if (!strcmp(mpd_desc... | ### File: src/media_tools/dash_client.c
```c
static GF_Err gf_dash_setup_period(GF_DashClient *dash)
{
GF_MPD_Period *period;
u32 rep_i, as_i, group_i, j, nb_groups_ok;
u32 retry = 10;
//solve xlink - if
while (retry) {
period = gf_list_get(dash->mpd->periods, dash->active_period_index);
if (!period) return G... | ### File: src/media_tools/dash_client.c
```c
static GF_Err gf_dash_setup_period(GF_DashClient *dash)
{
GF_MPD_Period *period;
u32 rep_i, as_i, group_i, j, nb_groups_ok;
u32 retry = 10;
//solve xlink - if
while (retry) {
period = gf_list_get(dash->mpd->periods, dash->active_period_index);
if (!period) return G... | {
"project_id": "gpac_gpac",
"before_commit": "422b78ecf79ceeee97104d219cc4f184b1348cec",
"after_commit": "cb3c29809bddfa32686e3deb231a76af67b68e1e",
"repo_path": "/workspace/repo/gpac/gpac",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/gpac_gpac/4f... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2018-21232 | csa159 | csa159/pair_138485 | CSA | c/c++ | skvadrik_re2c | pair_138485 | csa159/tasks/pair_138485 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/src/regexp/nullable.cc b/src/regexp/nullable.cc
index 8156b47ef..40bbca79f 100644
--- a/src/regexp/nullable.cc
+++ b/src/regexp/nullable.cc
@@ -11,43 +11,100 @@
namespace re2c {
+namespace {
-static bool nullable(const RESpec &spec, const RE *re, bool &trail)
+struct StackItem {
+ const RE *re; ... | ### File: src/regexp/nullable.cc
```c
namespace re2c {
static bool nullable(const RESpec &spec, const RE *re, bool &trail)
{
if (trail) return true;
switch (re->type) {
case RE::NIL: return true;
case RE::SYM: return false;
case RE::ITER:
return nullable(spec, re->iter.re, ... | ### File: src/regexp/nullable.cc
```c
namespace re2c {
namespace {
struct StackItem {
const RE *re; // current sub-RE
uint8_t succ; // index of the next sucessor to be visited
};
static bool nullable(const RESpec &spec, std::vector<StackItem> &stack, const RE *re0)
{
// the "nullable" status of the la... | {
"project_id": "skvadrik_re2c",
"before_commit": "7b5643476bd99c994c4f51b8143f942982d85521",
"after_commit": "4d9c809355b574f2a58eac119f5e076c48e4d1e2",
"repo_path": "/workspace/repo/skvadrik/re2c",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/skva... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2016-1924 | csa159 | csa159/pair_138650 | CSA | c/c++ | uclouvain_openjpeg | pair_138650 | csa159/tasks/pair_138650 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/src/lib/openjp2/j2k.c b/src/lib/openjp2/j2k.c
index 8086b004..9eaa155e 100644
--- a/src/lib/openjp2/j2k.c
+++ b/src/lib/openjp2/j2k.c
@@ -8889,6 +8889,10 @@ static OPJ_BOOL opj_j2k_read_SPCod_SPCoc( opj_j2k_t *p_j2k,
opj_read_bytes(l_current_ptr,&l_tccp->cblksty ,1); /* SPcoc (G) *... | ### File: src/lib/openjp2/j2k.c
```c
static OPJ_BOOL opj_j2k_read_SPCod_SPCoc( opj_j2k_t *p_j2k,
OPJ_UINT32 compno,
OPJ_BYTE * p_header_data,
... | ### File: src/lib/openjp2/j2k.c
```c
static OPJ_BOOL opj_j2k_read_SPCod_SPCoc( opj_j2k_t *p_j2k,
OPJ_UINT32 compno,
OPJ_BYTE * p_header_data,
... | {
"project_id": "uclouvain_openjpeg",
"before_commit": "162f6199c0cd3ec1c6c6dc65e41b2faab92b2d91",
"after_commit": "1a8318f6c24623189ecb65e049267c6f2e005c0e",
"repo_path": "/workspace/repo/uclouvain/openjpeg",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snap... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2026-40169 | csa159 | csa159/pair_138728 | CSA | c/c++ | ImageMagick_ImageMagick | pair_138728 | csa159/tasks/pair_138728 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/coders/json.c b/coders/json.c
index b6bf9f424..1621b2a1c 100644
--- a/coders/json.c
+++ b/coders/json.c
@@ -1541,15 +1541,16 @@ static MagickBooleanType EncodeImageAttributes(Image *image,FILE *file,
image_info=AcquireImageInfo();
(void) CloneString(&image_info->size,"64x64");
(void) F... | ### File: coders/json.c
```c
static MagickBooleanType EncodeImageAttributes(Image *image,FILE *file,
ExceptionInfo *exception)
{
char
color[MagickPathExtent],
format[MagickPathExtent],
key[MagickPathExtent];
ChannelFeatures
*channel_features;
ChannelMoments
*channel_moments;
ChannelPerc... | ### File: coders/json.c
```c
static MagickBooleanType EncodeImageAttributes(Image *image,FILE *file,
ExceptionInfo *exception)
{
char
color[MagickPathExtent],
format[MagickPathExtent],
key[MagickPathExtent];
ChannelFeatures
*channel_features;
ChannelMoments
*channel_moments;
ChannelPerc... | {
"project_id": "ImageMagick_ImageMagick",
"before_commit": "8cb2a8ebbe3a8cc6dc4e5475ca54fa23e495c091",
"after_commit": "f86452a8aea37bf2b4bd36127f836dcc5f138b38",
"repo_path": "/workspace/repo/ImageMagick/ImageMagick",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pip... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2025-46393 | csa159 | csa159/pair_138746 | CSA | c/c++ | ImageMagick_ImageMagick | pair_138746 | csa159/tasks/pair_138746 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/coders/miff.c b/coders/miff.c
index 355455bc5..398f66d0b 100644
--- a/coders/miff.c
+++ b/coders/miff.c
@@ -1347,10 +1347,10 @@ static Image *ReadMIFFImage(const ImageInfo *image_info,
packet_size+=image->depth/8;
if (image->colorspace == CMYKColorspace)
packet_size+=image->depth/8;
+ ... | ### File: coders/miff.c
```c
static Image *ReadMIFFImage(const ImageInfo *image_info,
ExceptionInfo *exception)
{
#define BZipMaxExtent(x) ((x)+((x)/100)+600)
#define LZMAMaxExtent(x) ((x)+((x)/3)+128)
#define ThrowMIFFException(exception,message) \
{ \
if (quantum_info != (QuantumInfo *) NULL) \
quantum_info... | ### File: coders/miff.c
```c
static Image *ReadMIFFImage(const ImageInfo *image_info,
ExceptionInfo *exception)
{
#define BZipMaxExtent(x) ((x)+((x)/100)+600)
#define LZMAMaxExtent(x) ((x)+((x)/3)+128)
#define ThrowMIFFException(exception,message) \
{ \
if (quantum_info != (QuantumInfo *) NULL) \
quantum_info... | {
"project_id": "ImageMagick_ImageMagick",
"before_commit": "bc0bbec029e2d6e8dcc4294653907b0dd28fe465",
"after_commit": "81ac8a0d2eb21739842ed18c48c7646b7eef65b8",
"repo_path": "/workspace/repo/ImageMagick/ImageMagick",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pip... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2026-33905 | csa159 | csa159/pair_138756 | CSA | c/c++ | ImageMagick_ImageMagick | pair_138756 | csa159/tasks/pair_138756 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/MagickCore/resize.c b/MagickCore/resize.c
index ddb6a16cf..29a66c636 100644
--- a/MagickCore/resize.c
+++ b/MagickCore/resize.c
@@ -3929,8 +3929,6 @@ MagickExport Image *SampleImage(const Image *image,const size_t columns,
sample_offset;
ssize_t
- j,
- *x_offset,
y;
/*
@@ -3974,19... | ### File: MagickCore/resize.c
```c
MagickExport Image *SampleImage(const Image *image,const size_t columns,
const size_t rows,ExceptionInfo *exception)
{
#define SampleImageTag "Sample/Image"
CacheView
*image_view,
*sample_view;
Image
*sample_image;
MagickBooleanType
status;
MagickOffsetT... | ### File: MagickCore/resize.c
```c
MagickExport Image *SampleImage(const Image *image,const size_t columns,
const size_t rows,ExceptionInfo *exception)
{
#define SampleImageTag "Sample/Image"
CacheView
*image_view,
*sample_view;
Image
*sample_image;
MagickBooleanType
status;
MagickOffsetT... | {
"project_id": "ImageMagick_ImageMagick",
"before_commit": "ccdc01180276aa2cb3d4a32a611aa4f417061cd8",
"after_commit": "cca607366fb38c2dde019a9088b8415ffba3a835",
"repo_path": "/workspace/repo/ImageMagick/ImageMagick",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pip... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2011-2161 | csa159 | csa159/pair_138800 | CSA | c/c++ | FFmpeg_FFmpeg | pair_138800 | csa159/tasks/pair_138800 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/libavformat/ape.c b/libavformat/ape.c
index 6c269849fd..dd2aeb9ff3 100644
--- a/libavformat/ape.c
+++ b/libavformat/ape.c
@@ -242,6 +242,10 @@ static int ape_read_header(AVFormatContext * s, AVFormatParameters * ap)
avio_seek(pb, ape->wavheaderlength, SEEK_CUR);
}
+ if(!ape->totalfra... | ### File: libavformat/ape.c
```c
static int ape_read_header(AVFormatContext * s, AVFormatParameters * ap)
{
AVIOContext *pb = s->pb;
APEContext *ape = s->priv_data;
AVStream *st;
uint32_t tag;
int i;
int total_blocks;
int64_t pts;
/* TODO: Skip any leading junk such as id3v2 tags */
... | ### File: libavformat/ape.c
```c
static int ape_read_header(AVFormatContext * s, AVFormatParameters * ap)
{
AVIOContext *pb = s->pb;
APEContext *ape = s->priv_data;
AVStream *st;
uint32_t tag;
int i;
int total_blocks;
int64_t pts;
/* TODO: Skip any leading junk such as id3v2 tags */
... | {
"project_id": "FFmpeg_FFmpeg",
"before_commit": "1dac4d554734b16757b36a0adc71642c5ef2c4e6",
"after_commit": "8312e3fc9041027a33c8bc667bb99740fdf41dd5",
"repo_path": "/workspace/repo/FFmpeg/FFmpeg",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/FFmp... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2021-47583 | csa159 | csa159/pair_139579 | CSA | c/c++ | torvalds_linux | pair_139579 | csa159/tasks/pair_139579 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/media/usb/dvb-usb-v2/mxl111sf.c b/drivers/media/usb/dvb-usb-v2/mxl111sf.c
index 7865fa0a8295..cd5861a30b6f 100644
--- a/drivers/media/usb/dvb-usb-v2/mxl111sf.c
+++ b/drivers/media/usb/dvb-usb-v2/mxl111sf.c
@@ -931,8 +931,6 @@ static int mxl111sf_init(struct dvb_usb_device *d)
.len = sizeof(eep... | ### File: drivers/media/usb/dvb-usb-v2/mxl111sf.c
```c
static int mxl111sf_init(struct dvb_usb_device *d)
{
struct mxl111sf_state *state = d_to_priv(d);
int ret;
static u8 eeprom[256];
u8 reg = 0;
struct i2c_msg msg[2] = {
{ .addr = 0xa0 >> 1, .len = 1, .buf = ® },
{ .addr = 0xa0 >> 1, .flags = I2C_M_RD,
... | ### File: drivers/media/usb/dvb-usb-v2/mxl111sf.c
```c
static int mxl111sf_init(struct dvb_usb_device *d)
{
struct mxl111sf_state *state = d_to_priv(d);
int ret;
static u8 eeprom[256];
u8 reg = 0;
struct i2c_msg msg[2] = {
{ .addr = 0xa0 >> 1, .len = 1, .buf = ® },
{ .addr = 0xa0 >> 1, .flags = I2C_M_RD,
... | {
"project_id": "torvalds_linux",
"before_commit": "dccdd92b7b08ddbb7a8dbc1d6daba1f4fbd6bba2",
"after_commit": "44870a9e7a3c24acbb3f888b2a7cc22c9bdf7e7f",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2022-49563 | csa159 | csa159/pair_140531 | CSA | c/c++ | torvalds_linux | pair_140531 | csa159/tasks/pair_140531 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/crypto/qat/qat_common/qat_asym_algs.c b/drivers/crypto/qat/qat_common/qat_asym_algs.c
index 25bbd22085c3..947eeff181b4 100644
--- a/drivers/crypto/qat/qat_common/qat_asym_algs.c
+++ b/drivers/crypto/qat/qat_common/qat_asym_algs.c
@@ -656,6 +656,10 @@ static int qat_rsa_enc(struct akcipher_request *... | ### File: drivers/crypto/qat/qat_common/qat_asym_algs.c
```c
static int qat_rsa_enc(struct akcipher_request *req)
{
struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req);
struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm);
struct qat_crypto_instance *inst = ctx->inst;
struct device *dev = &GET_DEV(inst->accel_dev)... | ### File: drivers/crypto/qat/qat_common/qat_asym_algs.c
```c
static int qat_rsa_enc(struct akcipher_request *req)
{
struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req);
struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm);
struct qat_crypto_instance *inst = ctx->inst;
struct device *dev = &GET_DEV(inst->accel_dev)... | {
"project_id": "torvalds_linux",
"before_commit": "029aa4624a7fe35233bdd3d1354dc7be260380bf",
"after_commit": "9714061423b8b24b8afb31b8eb4df977c63f19c4",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2022-49727 | csa159 | csa159/pair_140691 | CSA | c/c++ | torvalds_linux | pair_140691 | csa159/tasks/pair_140691 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/net/l2tp/l2tp_ip6.c b/net/l2tp/l2tp_ip6.c
index c6ff8bf9b55f..9dbd801ddb98 100644
--- a/net/l2tp/l2tp_ip6.c
+++ b/net/l2tp/l2tp_ip6.c
@@ -504,14 +504,15 @@ static int l2tp_ip6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
struct ipcm6_cookie ipc6;
int addr_len = msg->msg_namelen;
int trans... | ### File: net/l2tp/l2tp_ip6.c
```c
static int l2tp_ip6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
{
struct ipv6_txoptions opt_space;
DECLARE_SOCKADDR(struct sockaddr_l2tpip6 *, lsa, msg->msg_name);
struct in6_addr *daddr, *final_p, final;
struct ipv6_pinfo *np = inet6_sk(sk);
struct ipv6_txoptions *o... | ### File: net/l2tp/l2tp_ip6.c
```c
static int l2tp_ip6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
{
struct ipv6_txoptions opt_space;
DECLARE_SOCKADDR(struct sockaddr_l2tpip6 *, lsa, msg->msg_name);
struct in6_addr *daddr, *final_p, final;
struct ipv6_pinfo *np = inet6_sk(sk);
struct ipv6_txoptions *o... | {
"project_id": "torvalds_linux",
"before_commit": "f93431c86b631bbca5614c66f966bf3ddb3c2803",
"after_commit": "f638a84afef3dfe10554c51820c16e39a278c915",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2022-50138 | csa159 | csa159/pair_141072 | CSA | c/c++ | torvalds_linux | pair_141072 | csa159/tasks/pair_141072 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/infiniband/hw/qedr/verbs.c b/drivers/infiniband/hw/qedr/verbs.c
index f0f43b6db89e..3ecb472c9217 100644
--- a/drivers/infiniband/hw/qedr/verbs.c
+++ b/drivers/infiniband/hw/qedr/verbs.c
@@ -3082,7 +3082,7 @@ static struct qedr_mr *__qedr_alloc_mr(struct ib_pd *ibpd,
else
DP_ERR(dev, "roce al... | ### File: drivers/infiniband/hw/qedr/verbs.c
```c
static struct qedr_mr *__qedr_alloc_mr(struct ib_pd *ibpd,
int max_page_list_len)
{
struct qedr_pd *pd = get_qedr_pd(ibpd);
struct qedr_dev *dev = get_qedr_dev(ibpd->device);
struct qedr_mr *mr;
int rc = -ENOMEM;
DP_DEBUG(dev, QEDR_MSG_MR,
"qedr_allo... | ### File: drivers/infiniband/hw/qedr/verbs.c
```c
static struct qedr_mr *__qedr_alloc_mr(struct ib_pd *ibpd,
int max_page_list_len)
{
struct qedr_pd *pd = get_qedr_pd(ibpd);
struct qedr_dev *dev = get_qedr_dev(ibpd->device);
struct qedr_mr *mr;
int rc = -ENOMEM;
DP_DEBUG(dev, QEDR_MSG_MR,
"qedr_allo... | {
"project_id": "torvalds_linux",
"before_commit": "e39c600049d0822284da2cef3bd7ced40dc3524f",
"after_commit": "b3236a64ddd125a455ef5b5316c1b9051b732974",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2022-50374 | csa159 | csa159/pair_141289 | CSA | c/c++ | torvalds_linux | pair_141289 | csa159/tasks/pair_141289 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c
index f537673ede17..865112e96ff9 100644
--- a/drivers/bluetooth/hci_ldisc.c
+++ b/drivers/bluetooth/hci_ldisc.c
@@ -493,6 +493,11 @@ static int hci_uart_tty_open(struct tty_struct *tty)
BT_ERR("Can't allocate control structure");
return -E... | ### File: drivers/bluetooth/hci_ldisc.c
```c
static int hci_uart_tty_open(struct tty_struct *tty)
{
struct hci_uart *hu;
BT_DBG("tty %p", tty);
if (!capable(CAP_NET_ADMIN))
return -EPERM;
/* Error if the tty has no write op instead of leaving an exploitable
* hole
*/
if (tty->ops->write == NULL)
return ... | ### File: drivers/bluetooth/hci_ldisc.c
```c
static int hci_uart_tty_open(struct tty_struct *tty)
{
struct hci_uart *hu;
BT_DBG("tty %p", tty);
if (!capable(CAP_NET_ADMIN))
return -EPERM;
/* Error if the tty has no write op instead of leaving an exploitable
* hole
*/
if (tty->ops->write == NULL)
return ... | {
"project_id": "torvalds_linux",
"before_commit": "deee93d13d385103205879a8a0915036ecd83261",
"after_commit": "3124d320c22f3f4388d9ac5c8f37eaad0cefd6b1",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2022-50459 | csa159 | csa159/pair_141364 | CSA | c/c++ | torvalds_linux | pair_141364 | csa159/tasks/pair_141364 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c
index 29b1bd755afe..5fb1f364e815 100644
--- a/drivers/scsi/iscsi_tcp.c
+++ b/drivers/scsi/iscsi_tcp.c
@@ -595,6 +595,8 @@ iscsi_sw_tcp_conn_create(struct iscsi_cls_session *cls_session,
INIT_WORK(&conn->recvwork, iscsi_sw_tcp_recv_data_work);
tcp_sw_c... | ### File: drivers/scsi/iscsi_tcp.c
```c
static struct iscsi_cls_conn *
iscsi_sw_tcp_conn_create(struct iscsi_cls_session *cls_session,
uint32_t conn_idx)
{
struct iscsi_conn *conn;
struct iscsi_cls_conn *cls_conn;
struct iscsi_tcp_conn *tcp_conn;
struct iscsi_sw_tcp_conn *tcp_sw_conn;
struct crypto_ahash *tfm;... | ### File: drivers/scsi/iscsi_tcp.c
```c
static struct iscsi_cls_conn *
iscsi_sw_tcp_conn_create(struct iscsi_cls_session *cls_session,
uint32_t conn_idx)
{
struct iscsi_conn *conn;
struct iscsi_cls_conn *cls_conn;
struct iscsi_tcp_conn *tcp_conn;
struct iscsi_sw_tcp_conn *tcp_sw_conn;
struct crypto_ahash *tfm;... | {
"project_id": "torvalds_linux",
"before_commit": "c863a2dcb9b0894d9ac6030c4d1ab2e7867dabcb",
"after_commit": "57569c37f0add1b6489e1a1563c71519daf732cf",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2023-52471 | csa159 | csa159/pair_141754 | CSA | c/c++ | torvalds_linux | pair_141754 | csa159/tasks/pair_141754 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/net/ethernet/intel/ice/ice_ptp.c b/drivers/net/ethernet/intel/ice/ice_ptp.c
index c4fe28017b8d..3b6605c8585e 100644
--- a/drivers/net/ethernet/intel/ice/ice_ptp.c
+++ b/drivers/net/ethernet/intel/ice/ice_ptp.c
@@ -2863,6 +2863,8 @@ static int ice_ptp_register_auxbus_driver(struct ice_pf *pf)
name... | ### File: drivers/net/ethernet/intel/ice/ice_ptp.c
```c
static int ice_ptp_register_auxbus_driver(struct ice_pf *pf)
{
struct auxiliary_driver *aux_driver;
struct ice_ptp *ptp;
struct device *dev;
char *name;
int err;
ptp = &pf->ptp;
dev = ice_pf_to_dev(pf);
aux_driver = &ptp->ports_owner.aux_driver;
INIT_LIS... | ### File: drivers/net/ethernet/intel/ice/ice_ptp.c
```c
static int ice_ptp_register_auxbus_driver(struct ice_pf *pf)
{
struct auxiliary_driver *aux_driver;
struct ice_ptp *ptp;
struct device *dev;
char *name;
int err;
ptp = &pf->ptp;
dev = ice_pf_to_dev(pf);
aux_driver = &ptp->ports_owner.aux_driver;
INIT_LIS... | {
"project_id": "torvalds_linux",
"before_commit": "b8ab8858190a1bba5f4b35ca37b1e4d7577b3a75",
"after_commit": "3027e7b15b02d2d37e3f82d6b8404f6d37e3b8cf",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2023-52609 | csa159 | csa159/pair_141857 | CSA | c/c++ | torvalds_linux | pair_141857 | csa159/tasks/pair_141857 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/android/binder_alloc.c b/drivers/android/binder_alloc.c
index 9d2eff70c3ba..adcec5ec0959 100644
--- a/drivers/android/binder_alloc.c
+++ b/drivers/android/binder_alloc.c
@@ -271,7 +271,7 @@ static int binder_update_page_range(struct binder_alloc *alloc, int allocate,
}
if (mm) {
mmap_write_u... | ### File: drivers/android/binder_alloc.c
```c
static int binder_update_page_range(struct binder_alloc *alloc, int allocate,
void __user *start, void __user *end)
{
void __user *page_addr;
unsigned long user_page_addr;
struct binder_lru_page *page;
struct vm_area_struct *vma = NULL;
struct mm_struct *mm = N... | ### File: drivers/android/binder_alloc.c
```c
static int binder_update_page_range(struct binder_alloc *alloc, int allocate,
void __user *start, void __user *end)
{
void __user *page_addr;
unsigned long user_page_addr;
struct binder_lru_page *page;
struct vm_area_struct *vma = NULL;
struct mm_struct *mm = N... | {
"project_id": "torvalds_linux",
"before_commit": "3f489c2067c5824528212b0fc18b28d51332d906",
"after_commit": "9a9ab0d963621d9d12199df9817e66982582d5a5",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2023-53250 | csa159 | csa159/pair_142376 | CSA | c/c++ | torvalds_linux | pair_142376 | csa159/tasks/pair_142376 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/firmware/dmi-sysfs.c b/drivers/firmware/dmi-sysfs.c
index 9b6ce172175c..ed5aff0a4204 100644
--- a/drivers/firmware/dmi-sysfs.c
+++ b/drivers/firmware/dmi-sysfs.c
@@ -603,16 +603,16 @@ static void __init dmi_sysfs_register_handle(const struct dmi_header *dh,
*ret = kobject_init_and_add(&entry->kob... | ### File: drivers/firmware/dmi-sysfs.c
```c
static void __init dmi_sysfs_register_handle(const struct dmi_header *dh,
void *_ret)
{
struct dmi_sysfs_entry *entry;
int *ret = _ret;
/* If a previous entry saw an error, short circuit */
if (*ret)
return;
/* Allocate and register a new entry into the ent... | ### File: drivers/firmware/dmi-sysfs.c
```c
static void __init dmi_sysfs_register_handle(const struct dmi_header *dh,
void *_ret)
{
struct dmi_sysfs_entry *entry;
int *ret = _ret;
/* If a previous entry saw an error, short circuit */
if (*ret)
return;
/* Allocate and register a new entry into the ent... | {
"project_id": "torvalds_linux",
"before_commit": "96b45776995653a4971329c7f62ff6aa324027a2",
"after_commit": "18e126e97c961f7a93823795c879d7c085fe5098",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2023-53679 | csa159 | csa159/pair_142793 | CSA | c/c++ | torvalds_linux | pair_142793 | csa159/tasks/pair_142793 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/net/wireless/mediatek/mt7601u/dma.c b/drivers/net/wireless/mediatek/mt7601u/dma.c
index 457147394edc..773a1cc2f852 100644
--- a/drivers/net/wireless/mediatek/mt7601u/dma.c
+++ b/drivers/net/wireless/mediatek/mt7601u/dma.c
@@ -123,7 +123,8 @@ static u16 mt7601u_rx_next_seg_len(u8 *data, u32 data_len... | ### File: drivers/net/wireless/mediatek/mt7601u/dma.c
```c
static u16 mt7601u_rx_next_seg_len(u8 *data, u32 data_len)
{
u32 min_seg_len = MT_DMA_HDR_LEN + MT_RX_INFO_LEN +
sizeof(struct mt7601u_rxwi) + MT_FCE_INFO_LEN;
u16 dma_len = get_unaligned_le16(data);
if (data_len < min_seg_len ||
WARN_ON_ONCE(!dma_le... | ### File: drivers/net/wireless/mediatek/mt7601u/dma.c
```c
static u16 mt7601u_rx_next_seg_len(u8 *data, u32 data_len)
{
u32 min_seg_len = MT_DMA_HDR_LEN + MT_RX_INFO_LEN +
sizeof(struct mt7601u_rxwi) + MT_FCE_INFO_LEN;
u16 dma_len = get_unaligned_le16(data);
if (data_len < min_seg_len ||
WARN_ON_ONCE(!dma_le... | {
"project_id": "torvalds_linux",
"before_commit": "1e346cbb096a5351a637ec1992beffbf330547f0",
"after_commit": "803f3176c5df3b5582c27ea690f204abb60b19b9",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2024-26927 | csa159 | csa159/pair_143586 | CSA | c/c++ | torvalds_linux | pair_143586 | csa159/tasks/pair_143586 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/sound/soc/sof/ipc3-loader.c b/sound/soc/sof/ipc3-loader.c
index 28218766d211..6e3ef0672110 100644
--- a/sound/soc/sof/ipc3-loader.c
+++ b/sound/soc/sof/ipc3-loader.c
@@ -148,6 +148,8 @@ static size_t sof_ipc3_fw_parse_ext_man(struct snd_sof_dev *sdev)
head = (struct sof_ext_man_header *)fw->data;
rem... | ### File: sound/soc/sof/ipc3-loader.c
```c
static size_t sof_ipc3_fw_parse_ext_man(struct snd_sof_dev *sdev)
{
const struct firmware *fw = sdev->basefw.fw;
const struct sof_ext_man_elem_header *elem_hdr;
const struct sof_ext_man_header *head;
ssize_t ext_man_size;
ssize_t remaining;
uintptr_t iptr;
int ret = 0;
... | ### File: sound/soc/sof/ipc3-loader.c
```c
static size_t sof_ipc3_fw_parse_ext_man(struct snd_sof_dev *sdev)
{
const struct firmware *fw = sdev->basefw.fw;
const struct sof_ext_man_elem_header *elem_hdr;
const struct sof_ext_man_header *head;
ssize_t ext_man_size;
ssize_t remaining;
uintptr_t iptr;
int ret = 0;
... | {
"project_id": "torvalds_linux",
"before_commit": "81ff296a8163ed791fd05a3dba1a826c598a3c84",
"after_commit": "98f681b0f84cfc3a1d83287b77697679e0398306",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2024-38628 | csa159 | csa159/pair_144169 | CSA | c/c++ | torvalds_linux | pair_144169 | csa159/tasks/pair_144169 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/usb/gadget/function/u_audio.c b/drivers/usb/gadget/function/u_audio.c
index 1a634646bd24..efa3e3100333 100644
--- a/drivers/usb/gadget/function/u_audio.c
+++ b/drivers/usb/gadget/function/u_audio.c
@@ -57,13 +57,13 @@ struct uac_rtd_params {
/* Volume/Mute controls and their state */
int fu... | ### File: drivers/usb/gadget/function/u_audio.c
```c
static inline void free_ep_fback(struct uac_rtd_params *prm, struct usb_ep *ep)
{
struct snd_uac_chip *uac = prm->uac;
if (!prm->fb_ep_enabled)
return;
if (prm->req_fback) {
if (usb_ep_dequeue(ep, prm->req_fback)) {
kfree(prm->req_fback->buf);
usb_ep_f... | ### File: drivers/usb/gadget/function/u_audio.c
```c
static inline void free_ep_fback(struct uac_rtd_params *prm, struct usb_ep *ep)
{
struct snd_uac_chip *uac = prm->uac;
if (!prm->fb_ep_enabled)
return;
if (prm->req_fback) {
if (usb_ep_dequeue(ep, prm->req_fback)) {
kfree(prm->req_fback->buf);
usb_ep_f... | {
"project_id": "torvalds_linux",
"before_commit": "c5b324b1a7628c393f99058d2464592791617cc9",
"after_commit": "1b739388aa3f8dfb63a9fca777e6dfa6912d0464",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2024-53117 | csa159 | csa159/pair_145442 | CSA | c/c++ | torvalds_linux | pair_145442 | csa159/tasks/pair_145442 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/net/vmw_vsock/virtio_transport_common.c b/net/vmw_vsock/virtio_transport_common.c
index cd075f608d4f..e2e6a30b759b 100644
--- a/net/vmw_vsock/virtio_transport_common.c
+++ b/net/vmw_vsock/virtio_transport_common.c
@@ -400,6 +400,7 @@ static int virtio_transport_send_pkt_info(struct vsock_sock *vsk,
if ... | ### File: net/vmw_vsock/virtio_transport_common.c
```c
static int virtio_transport_send_pkt_info(struct vsock_sock *vsk,
struct virtio_vsock_pkt_info *info)
{
u32 max_skb_len = VIRTIO_VSOCK_MAX_PKT_BUF_SIZE;
u32 src_cid, src_port, dst_cid, dst_port;
const struct virtio_transport *t_ops;
struct virtio_vsock_s... | ### File: net/vmw_vsock/virtio_transport_common.c
```c
static int virtio_transport_send_pkt_info(struct vsock_sock *vsk,
struct virtio_vsock_pkt_info *info)
{
u32 max_skb_len = VIRTIO_VSOCK_MAX_PKT_BUF_SIZE;
u32 src_cid, src_port, dst_cid, dst_port;
const struct virtio_transport *t_ops;
struct virtio_vsock_s... | {
"project_id": "torvalds_linux",
"before_commit": "fbf7085b3ad1c7cc0677834c90f985f1b4f77a33",
"after_commit": "60cf6206a1f513512f5d73fa4d3dbbcad2e7dcd6",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2024-53203 | csa159 | csa159/pair_145527 | CSA | c/c++ | torvalds_linux | pair_145527 | csa159/tasks/pair_145527 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/usb/typec/ucsi/ucsi_ccg.c b/drivers/usb/typec/ucsi/ucsi_ccg.c
index ba58d11907bc..ec813eb908a7 100644
--- a/drivers/usb/typec/ucsi/ucsi_ccg.c
+++ b/drivers/usb/typec/ucsi/ucsi_ccg.c
@@ -642,6 +642,10 @@ static int ucsi_ccg_sync_control(struct ucsi *ucsi, u64 command)
uc->has_multiple_dp) {
... | ### File: drivers/usb/typec/ucsi/ucsi_ccg.c
```c
static int ucsi_ccg_sync_control(struct ucsi *ucsi, u64 command)
{
struct ucsi_ccg *uc = ucsi_get_drvdata(ucsi);
struct ucsi_connector *con;
int con_index;
int ret;
mutex_lock(&uc->lock);
pm_runtime_get_sync(uc->dev);
uc->last_cmd_sent = command;
if (UCSI_COMM... | ### File: drivers/usb/typec/ucsi/ucsi_ccg.c
```c
static int ucsi_ccg_sync_control(struct ucsi *ucsi, u64 command)
{
struct ucsi_ccg *uc = ucsi_get_drvdata(ucsi);
struct ucsi_connector *con;
int con_index;
int ret;
mutex_lock(&uc->lock);
pm_runtime_get_sync(uc->dev);
uc->last_cmd_sent = command;
if (UCSI_COMM... | {
"project_id": "torvalds_linux",
"before_commit": "2481af79671a6603fce201cbbc48f31e488e9fae",
"after_commit": "e56aac6e5a25630645607b6856d4b2a17b2311a5",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2024-56605 | csa159 | csa159/pair_145663 | CSA | c/c++ | torvalds_linux | pair_145663 | csa159/tasks/pair_145663 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/net/bluetooth/l2cap_sock.c b/net/bluetooth/l2cap_sock.c
index ba437c6f6ee5..18e89e764f3b 100644
--- a/net/bluetooth/l2cap_sock.c
+++ b/net/bluetooth/l2cap_sock.c
@@ -1886,6 +1886,7 @@ static struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock,
chan = l2cap_chan_create();
if (!chan) {
... | ### File: net/bluetooth/l2cap_sock.c
```c
static struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock,
int proto, gfp_t prio, int kern)
{
struct sock *sk;
struct l2cap_chan *chan;
sk = bt_sock_alloc(net, sock, &l2cap_proto, proto, prio, kern);
if (!sk)
return NULL;
sk->sk_destruct = l2ca... | ### File: net/bluetooth/l2cap_sock.c
```c
static struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock,
int proto, gfp_t prio, int kern)
{
struct sock *sk;
struct l2cap_chan *chan;
sk = bt_sock_alloc(net, sock, &l2cap_proto, proto, prio, kern);
if (!sk)
return NULL;
sk->sk_destruct = l2ca... | {
"project_id": "torvalds_linux",
"before_commit": "46f2a11cb82b657fd15bab1c47821b635e03838b",
"after_commit": "7c4f78cdb8e7501e9f92d291a7d956591bf73be9",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2024-57953 | csa159 | csa159/pair_145933 | CSA | c/c++ | torvalds_linux | pair_145933 | csa159/tasks/pair_145933 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/rtc/rtc-tps6594.c b/drivers/rtc/rtc-tps6594.c
index e69667634137..7c6246e3f029 100644
--- a/drivers/rtc/rtc-tps6594.c
+++ b/drivers/rtc/rtc-tps6594.c
@@ -37,7 +37,7 @@
#define MAX_OFFSET (277774)
// Number of ticks per hour
-#define TICKS_PER_HOUR (32768 * 3600)
+#define TICKS_PER_HOUR (32768 *... | ### File: drivers/rtc/rtc-tps6594.c
```c
// SPDX-License-Identifier: GPL-2.0
/*
* RTC driver for tps6594 PMIC
*
* Copyright (C) 2023 BayLibre Incorporated - https://www.baylibre.com/
*/
#include <linux/bcd.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#i... | ### File: drivers/rtc/rtc-tps6594.c
```c
// SPDX-License-Identifier: GPL-2.0
/*
* RTC driver for tps6594 PMIC
*
* Copyright (C) 2023 BayLibre Incorporated - https://www.baylibre.com/
*/
#include <linux/bcd.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#i... | {
"project_id": "torvalds_linux",
"before_commit": "8c28c4993f117e03130a51160229bde7ad388240",
"after_commit": "09c4a610153286cef54d4f0c85398f4e32fc227e",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2024-57996 | csa159 | csa159/pair_145957 | CSA | c/c++ | torvalds_linux | pair_145957 | csa159/tasks/pair_145957 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/net/sched/sch_sfq.c b/net/sched/sch_sfq.c
index a4b8296a2fa1..65d5b59da583 100644
--- a/net/sched/sch_sfq.c
+++ b/net/sched/sch_sfq.c
@@ -652,6 +652,10 @@ static int sfq_change(struct Qdisc *sch, struct nlattr *opt,
if (!p)
return -ENOMEM;
}
+ if (ctl->limit == 1) {
+ NL_SET_ERR_MSG_MOD(extack, "... | ### File: net/sched/sch_sfq.c
```c
static int sfq_change(struct Qdisc *sch, struct nlattr *opt,
struct netlink_ext_ack *extack)
{
struct sfq_sched_data *q = qdisc_priv(sch);
struct tc_sfq_qopt *ctl = nla_data(opt);
struct tc_sfq_qopt_v1 *ctl_v1 = NULL;
unsigned int qlen, dropped = 0;
struct red_parms *p = ... | ### File: net/sched/sch_sfq.c
```c
static int sfq_change(struct Qdisc *sch, struct nlattr *opt,
struct netlink_ext_ack *extack)
{
struct sfq_sched_data *q = qdisc_priv(sch);
struct tc_sfq_qopt *ctl = nla_data(opt);
struct tc_sfq_qopt_v1 *ctl_v1 = NULL;
unsigned int qlen, dropped = 0;
struct red_parms *p = ... | {
"project_id": "torvalds_linux",
"before_commit": "5765c7f6e3173eb894889a29963a497aeb721c5e",
"after_commit": "10685681bafce6febb39770f3387621bf5d67d0b",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2024-58065 | csa159 | csa159/pair_146000 | CSA | c/c++ | torvalds_linux | pair_146000 | csa159/tasks/pair_146000 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/clk/mmp/clk-pxa1908-apbc.c b/drivers/clk/mmp/clk-pxa1908-apbc.c
index b93d08466198..3fd7b5e644f3 100644
--- a/drivers/clk/mmp/clk-pxa1908-apbc.c
+++ b/drivers/clk/mmp/clk-pxa1908-apbc.c
@@ -96,8 +96,8 @@ static int pxa1908_apbc_probe(struct platform_device *pdev)
struct pxa1908_clk_unit *pxa_unit... | ### File: drivers/clk/mmp/clk-pxa1908-apbc.c
```c
static int pxa1908_apbc_probe(struct platform_device *pdev)
{
struct pxa1908_clk_unit *pxa_unit;
pxa_unit = devm_kzalloc(&pdev->dev, sizeof(*pxa_unit), GFP_KERNEL);
if (IS_ERR(pxa_unit))
return PTR_ERR(pxa_unit);
pxa_unit->base = devm_platform_ioremap_resource(p... | ### File: drivers/clk/mmp/clk-pxa1908-apbc.c
```c
static int pxa1908_apbc_probe(struct platform_device *pdev)
{
struct pxa1908_clk_unit *pxa_unit;
pxa_unit = devm_kzalloc(&pdev->dev, sizeof(*pxa_unit), GFP_KERNEL);
if (!pxa_unit)
return -ENOMEM;
pxa_unit->base = devm_platform_ioremap_resource(pdev, 0);
if (IS_... | {
"project_id": "torvalds_linux",
"before_commit": "3acea81be689b77b3ceac6ff345ff0366734d967",
"after_commit": "e5ca5d7b4d7c29246d957dc45d63610584ae3a54",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2025-21986 | csa159 | csa159/pair_146389 | CSA | c/c++ | torvalds_linux | pair_146389 | csa159/tasks/pair_146389 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/net/switchdev/switchdev.c b/net/switchdev/switchdev.c
index 6488ead9e464..4d5fbacef496 100644
--- a/net/switchdev/switchdev.c
+++ b/net/switchdev/switchdev.c
@@ -472,7 +472,7 @@ bool switchdev_port_obj_act_is_deferred(struct net_device *dev,
EXPORT_SYMBOL_GPL(switchdev_port_obj_act_is_deferred);
static... | ### File: net/switchdev/switchdev.c
```c
bool switchdev_port_obj_act_is_deferred(struct net_device *dev,
enum switchdev_notifier_type nt,
const struct switchdev_obj *obj)
{
struct switchdev_deferred_item *dfitem;
bool found = false;
ASSERT_RTNL();
spin_lock_bh(&deferred_lock);
list_for_each_entry(dfit... | ### File: net/switchdev/switchdev.c
```c
bool switchdev_port_obj_act_is_deferred(struct net_device *dev,
enum switchdev_notifier_type nt,
const struct switchdev_obj *obj)
{
struct switchdev_deferred_item *dfitem;
bool found = false;
ASSERT_RTNL();
spin_lock_bh(&deferred_lock);
list_for_each_entry(dfit... | {
"project_id": "torvalds_linux",
"before_commit": "77b2ab31fc65c595ca0a339f6c5b8ef3adfae5c6",
"after_commit": "62531a1effa87bdab12d5104015af72e60d926ff",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2025-38415 | csa159 | csa159/pair_147222 | CSA | c/c++ | torvalds_linux | pair_147222 | csa159/tasks/pair_147222 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/fs/squashfs/super.c b/fs/squashfs/super.c
index 67c55fe32ce8..992ea0e37257 100644
--- a/fs/squashfs/super.c
+++ b/fs/squashfs/super.c
@@ -202,6 +202,11 @@ static int squashfs_fill_super(struct super_block *sb, struct fs_context *fc)
msblk->panic_on_errors = (opts->errors == Opt_errors_panic);
msblk->... | ### File: fs/squashfs/super.c
```c
static int squashfs_fill_super(struct super_block *sb, struct fs_context *fc)
{
struct squashfs_mount_opts *opts = fc->fs_private;
struct squashfs_sb_info *msblk;
struct squashfs_super_block *sblk = NULL;
struct inode *root;
long long root_inode;
unsigned short flags;
unsigned ... | ### File: fs/squashfs/super.c
```c
static int squashfs_fill_super(struct super_block *sb, struct fs_context *fc)
{
struct squashfs_mount_opts *opts = fc->fs_private;
struct squashfs_sb_info *msblk;
struct squashfs_super_block *sblk = NULL;
struct inode *root;
long long root_inode;
unsigned short flags;
unsigned ... | {
"project_id": "torvalds_linux",
"before_commit": "fe6f600c43e0931f4fb5e1debb2311b7a6ebabd8",
"after_commit": "734aa85390ea693bb7eaf2240623d41b03705c84",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2025-38459 | csa159 | csa159/pair_147266 | CSA | c/c++ | torvalds_linux | pair_147266 | csa159/tasks/pair_147266 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/net/atm/clip.c b/net/atm/clip.c
index 9c9c6c3d9886..a30c5a270545 100644
--- a/net/atm/clip.c
+++ b/net/atm/clip.c
@@ -429,6 +429,8 @@ static int clip_mkip(struct atm_vcc *vcc, int timeout)
if (!vcc->push)
return -EBADFD;
+ if (vcc->user_back)
+ return -EINVAL;
clip_vcc = kmalloc(sizeof(struct cli... | ### File: net/atm/clip.c
```c
static int clip_mkip(struct atm_vcc *vcc, int timeout)
{
struct clip_vcc *clip_vcc;
if (!vcc->push)
return -EBADFD;
clip_vcc = kmalloc(sizeof(struct clip_vcc), GFP_KERNEL);
if (!clip_vcc)
return -ENOMEM;
pr_debug("%p vcc %p\n", clip_vcc, vcc);
clip_vcc->vcc = vcc;
vcc->user_bac... | ### File: net/atm/clip.c
```c
static int clip_mkip(struct atm_vcc *vcc, int timeout)
{
struct clip_vcc *clip_vcc;
if (!vcc->push)
return -EBADFD;
if (vcc->user_back)
return -EINVAL;
clip_vcc = kmalloc(sizeof(struct clip_vcc), GFP_KERNEL);
if (!clip_vcc)
return -ENOMEM;
pr_debug("%p vcc %p\n", clip_vcc, vcc... | {
"project_id": "torvalds_linux",
"before_commit": "62dba28275a9a3104d4e33595c7b3328d4032d8d",
"after_commit": "c489f3283dbfc0f3c00c312149cae90d27552c45",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2025-40313 | csa159 | csa159/pair_148175 | CSA | c/c++ | torvalds_linux | pair_148175 | csa159/tasks/pair_148175 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/fs/ntfs3/inode.c b/fs/ntfs3/inode.c
index 37cbbee7fa58..b08b00912165 100644
--- a/fs/ntfs3/inode.c
+++ b/fs/ntfs3/inode.c
@@ -471,6 +471,7 @@ static struct inode *ntfs_read_mft(struct inode *inode,
fname->home.seq == cpu_to_le16(MFT_REC_EXTEND)) {
/* Records in $Extend are not a files or general d... | ### File: fs/ntfs3/inode.c
```c
static struct inode *ntfs_read_mft(struct inode *inode,
const struct cpu_str *name,
const struct MFT_REF *ref)
{
int err = 0;
struct ntfs_inode *ni = ntfs_i(inode);
struct super_block *sb = inode->i_sb;
struct ntfs_sb_info *sbi = sb->s_fs_info;
mode_t mode = 0;
struct... | ### File: fs/ntfs3/inode.c
```c
static struct inode *ntfs_read_mft(struct inode *inode,
const struct cpu_str *name,
const struct MFT_REF *ref)
{
int err = 0;
struct ntfs_inode *ni = ntfs_i(inode);
struct super_block *sb = inode->i_sb;
struct ntfs_sb_info *sbi = sb->s_fs_info;
mode_t mode = 0;
struct... | {
"project_id": "torvalds_linux",
"before_commit": "21dc07ac9c25f01ab2023e3e8605861d8fd6e00c",
"after_commit": "4e8011ffec79717e5fdac43a7e79faf811a384b7",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2026-43160 | csa159 | csa159/pair_149745 | CSA | c/c++ | torvalds_linux | pair_149745 | csa159/tasks/pair_149745 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/mfd/macsmc.c b/drivers/mfd/macsmc.c
index 85410f357603..1b7e7b3e785f 100644
--- a/drivers/mfd/macsmc.c
+++ b/drivers/mfd/macsmc.c
@@ -416,6 +416,7 @@ static int apple_smc_probe(struct platform_device *pdev)
if (!smc)
return -ENOMEM;
+ mutex_init(&smc->mutex);
smc->dev = &pdev->dev;
smc->... | ### File: drivers/mfd/macsmc.c
```c
static int apple_smc_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
struct apple_smc *smc;
u32 count;
int ret;
smc = devm_kzalloc(dev, sizeof(*smc), GFP_KERNEL);
if (!smc)
return -ENOMEM;
smc->dev = &pdev->dev;
smc->sram_base = devm_platform_get_an... | ### File: drivers/mfd/macsmc.c
```c
static int apple_smc_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
struct apple_smc *smc;
u32 count;
int ret;
smc = devm_kzalloc(dev, sizeof(*smc), GFP_KERNEL);
if (!smc)
return -ENOMEM;
mutex_init(&smc->mutex);
smc->dev = &pdev->dev;
smc->sram_b... | {
"project_id": "torvalds_linux",
"before_commit": "e46de99c91de2eb1c6517a9be6934086cefb85b8",
"after_commit": "414f65d6736342c77d4ec5e7373039f4a09250dd",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2026-43249 | csa159 | csa159/pair_149834 | CSA | c/c++ | torvalds_linux | pair_149834 | csa159/tasks/pair_149834 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/net/9p/trans_xen.c b/net/9p/trans_xen.c
index d57965e6aab0..dde9cbf1426c 100644
--- a/net/9p/trans_xen.c
+++ b/net/9p/trans_xen.c
@@ -277,45 +277,52 @@ static void xen_9pfs_front_free(struct xen_9pfs_front_priv *priv)
{
int i, j;
- write_lock(&xen_9pfs_lock);
- list_del(&priv->list);
- write_unlock(&x... | ### File: net/9p/trans_xen.c
```c
static void xen_9pfs_front_free(struct xen_9pfs_front_priv *priv)
{
int i, j;
write_lock(&xen_9pfs_lock);
list_del(&priv->list);
write_unlock(&xen_9pfs_lock);
for (i = 0; i < XEN_9PFS_NUM_RINGS; i++) {
struct xen_9pfs_dataring *ring = &priv->rings[i];
cancel_work_sync(&ring... | ### File: net/9p/trans_xen.c
```c
static void xen_9pfs_front_free(struct xen_9pfs_front_priv *priv)
{
int i, j;
if (priv->rings) {
for (i = 0; i < XEN_9PFS_NUM_RINGS; i++) {
struct xen_9pfs_dataring *ring = &priv->rings[i];
cancel_work_sync(&ring->work);
if (!priv->rings[i].intf)
break;
if (priv-... | {
"project_id": "torvalds_linux",
"before_commit": "51ffeabe836bc45ea2f794f8ea5855fc0be8b9fb",
"after_commit": "ce8ded2e61f47747e31eeefb44dc24a2160a7e32",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2026-43376 | csa159 | csa159/pair_149959 | CSA | c/c++ | torvalds_linux | pair_149959 | csa159/tasks/pair_149959 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/fs/smb/server/oplock.c b/fs/smb/server/oplock.c
index 09d9878db9cb..8c9aa17384f3 100644
--- a/fs/smb/server/oplock.c
+++ b/fs/smb/server/oplock.c
@@ -120,7 +120,7 @@ static void free_lease(struct oplock_info *opinfo)
kfree(lease);
}
-static void free_opinfo(struct oplock_info *opinfo)
+static void __f... | ### File: fs/smb/server/oplock.c
```c
static void free_lease(struct oplock_info *opinfo)
{
struct lease *lease;
lease = opinfo->o_lease;
kfree(lease);
}
static void free_opinfo(struct oplock_info *opinfo)
{
if (opinfo->is_lease)
free_lease(opinfo);
if (opinfo->conn && atomic_dec_and_test(&opinfo->conn->refcnt)... | ### File: fs/smb/server/oplock.c
```c
static void free_lease(struct oplock_info *opinfo)
{
struct lease *lease;
lease = opinfo->o_lease;
kfree(lease);
}
static void __free_opinfo(struct oplock_info *opinfo)
{
if (opinfo->is_lease)
free_lease(opinfo);
if (opinfo->conn && atomic_dec_and_test(&opinfo->conn->refcn... | {
"project_id": "torvalds_linux",
"before_commit": "40955015fae4908157ac6c959ea696d05e6e9b31",
"after_commit": "1dfd062caa165ec9d7ee0823087930f3ab8a6294",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2026-46045 | csa159 | csa159/pair_150291 | CSA | c/c++ | torvalds_linux | pair_150291 | csa159/tasks/pair_150291 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/md/md-llbitmap.c b/drivers/md/md-llbitmap.c
index bf398d7476b3..6b2d27de1528 100644
--- a/drivers/md/md-llbitmap.c
+++ b/drivers/md/md-llbitmap.c
@@ -459,7 +459,8 @@ static struct page *llbitmap_read_page(struct llbitmap *llbitmap, int idx)
rdev_for_each(rdev, mddev) {
sector_t sector;
- if... | ### File: drivers/md/md-llbitmap.c
```c
static struct page *llbitmap_read_page(struct llbitmap *llbitmap, int idx)
{
struct mddev *mddev = llbitmap->mddev;
struct page *page = NULL;
struct md_rdev *rdev;
if (llbitmap->pctl && llbitmap->pctl[idx])
page = llbitmap->pctl[idx]->page;
if (page)
return page;
page... | ### File: drivers/md/md-llbitmap.c
```c
static struct page *llbitmap_read_page(struct llbitmap *llbitmap, int idx)
{
struct mddev *mddev = llbitmap->mddev;
struct page *page = NULL;
struct md_rdev *rdev;
if (llbitmap->pctl && llbitmap->pctl[idx])
page = llbitmap->pctl[idx]->page;
if (page)
return page;
page... | {
"project_id": "torvalds_linux",
"before_commit": "d51e1668fad6d7d34feea5735264929aabb95975",
"after_commit": "7701e68b5072faa03a8f30b4081dc16df9092381",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2026-46090 | csa159 | csa159/pair_150336 | CSA | c/c++ | torvalds_linux | pair_150336 | csa159/tasks/pair_150336 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/sound/drivers/aloop.c b/sound/drivers/aloop.c
index aa0d2fcb1a18..a37a1695f51c 100644
--- a/sound/drivers/aloop.c
+++ b/sound/drivers/aloop.c
@@ -99,6 +99,9 @@ struct loopback_ops {
struct loopback_cable {
spinlock_t lock;
struct loopback_pcm *streams[2];
+ /* in-flight peer stops running outside cabl... | ### File: sound/drivers/aloop.c
```c
static int loopback_check_format(struct loopback_cable *cable, int stream)
{
struct loopback_pcm *dpcm_play, *dpcm_capt;
struct snd_pcm_runtime *runtime, *cruntime;
struct loopback_setup *setup;
struct snd_card *card;
bool stop_capture = false;
int check;
scoped_guard(spinlo... | ### File: sound/drivers/aloop.c
```c
static int loopback_check_format(struct loopback_cable *cable, int stream)
{
struct loopback_pcm *dpcm_play, *dpcm_capt;
struct snd_pcm_runtime *runtime, *cruntime;
struct loopback_setup *setup;
struct snd_card *card;
bool stop_capture = false;
int check;
scoped_guard(spinlo... | {
"project_id": "torvalds_linux",
"before_commit": "901ac0ff15edf9503162e2cf6579bd11a30f1ed4",
"after_commit": "e5c33cdc6f402eab8abd36ecf436b22c9d3a8aff",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2022-49007 | csa159 | csa159/pair_156097 | CSA | c/c++ | torvalds_linux | pair_156097 | csa159/tasks/pair_156097 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/fs/nilfs2/dat.c b/fs/nilfs2/dat.c
index 3b55e239705f..9930fa901039 100644
--- a/fs/nilfs2/dat.c
+++ b/fs/nilfs2/dat.c
@@ -111,6 +111,13 @@ static void nilfs_dat_commit_free(struct inode *dat,
kunmap_atomic(kaddr);
nilfs_dat_commit_entry(dat, req);
+
+ if (unlikely(req->pr_desc_bh == NULL || req->pr_b... | ### File: fs/nilfs2/dat.c
```c
static void nilfs_dat_commit_free(struct inode *dat,
struct nilfs_palloc_req *req)
{
struct nilfs_dat_entry *entry;
void *kaddr;
kaddr = kmap_atomic(req->pr_entry_bh->b_page);
entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr,
req->pr_entry_bh, kaddr);
entry... | ### File: fs/nilfs2/dat.c
```c
static void nilfs_dat_commit_free(struct inode *dat,
struct nilfs_palloc_req *req)
{
struct nilfs_dat_entry *entry;
void *kaddr;
kaddr = kmap_atomic(req->pr_entry_bh->b_page);
entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr,
req->pr_entry_bh, kaddr);
entry... | {
"project_id": "torvalds_linux",
"before_commit": "04ada095dcfc4ae359418053c0be94453bdf1e84",
"after_commit": "f0a0ccda18d6fd826d7c7e7ad48a6ed61c20f8b4",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2024-42272 | csa159 | csa159/pair_156217 | CSA | c/c++ | torvalds_linux | pair_156217 | csa159/tasks/pair_156217 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/net/sched/act_ct.c b/net/sched/act_ct.c
index 113b907da0f7..3ba8e7e739b5 100644
--- a/net/sched/act_ct.c
+++ b/net/sched/act_ct.c
@@ -44,6 +44,8 @@ static DEFINE_MUTEX(zones_mutex);
struct zones_ht_key {
struct net *net;
u16 zone;
+ /* Note : pad[] must be the last field. */
+ u8 pad[];
};
struct... | ### File: net/sched/act_ct.c
```c
static struct flow_action_entry *
tcf_ct_flow_table_flow_action_get_next(struct flow_action *flow_action)
{
int i = flow_action->num_entries++;
return &flow_action->entries[i];
}
```
| ### File: net/sched/act_ct.c
```c
static struct flow_action_entry *
tcf_ct_flow_table_flow_action_get_next(struct flow_action *flow_action)
{
int i = flow_action->num_entries++;
return &flow_action->entries[i];
}
```
| {
"project_id": "torvalds_linux",
"before_commit": "08f3a5c38087d1569e982a121aad1e6acbf145ce",
"after_commit": "2191a54f63225b548fd8346be3611c3219a24738",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2023-52505 | csa159 | csa159/pair_156267 | CSA | c/c++ | torvalds_linux | pair_156267 | csa159/tasks/pair_156267 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/phy/freescale/phy-fsl-lynx-28g.c b/drivers/phy/freescale/phy-fsl-lynx-28g.c
index d5385d36735d..e2187767ce00 100644
--- a/drivers/phy/freescale/phy-fsl-lynx-28g.c
+++ b/drivers/phy/freescale/phy-fsl-lynx-28g.c
@@ -127,6 +127,10 @@ struct lynx_28g_lane {
struct lynx_28g_priv {
void __iomem *base;... | ### File: drivers/phy/freescale/phy-fsl-lynx-28g.c
```c
static int lynx_28g_set_mode(struct phy *phy, enum phy_mode mode, int submode)
{
struct lynx_28g_lane *lane = phy_get_drvdata(phy);
struct lynx_28g_priv *priv = lane->priv;
int powered_up = lane->powered_up;
int err = 0;
if (mode != PHY_MODE_ETHERNET)
retu... | ### File: drivers/phy/freescale/phy-fsl-lynx-28g.c
```c
static int lynx_28g_set_mode(struct phy *phy, enum phy_mode mode, int submode)
{
struct lynx_28g_lane *lane = phy_get_drvdata(phy);
struct lynx_28g_priv *priv = lane->priv;
int powered_up = lane->powered_up;
int err = 0;
if (mode != PHY_MODE_ETHERNET)
retu... | {
"project_id": "torvalds_linux",
"before_commit": "0ac87fe54a171d18c5fb5345e3ee8d14e1b06f4b",
"after_commit": "139ad1143151a07be93bf741d4ea7c89e59f89ce",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2024-26664 | csa159 | csa159/pair_156473 | CSA | c/c++ | torvalds_linux | pair_156473 | csa159/tasks/pair_156473 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c
index ba82d1e79c13..e78c76919111 100644
--- a/drivers/hwmon/coretemp.c
+++ b/drivers/hwmon/coretemp.c
@@ -509,18 +509,14 @@ static int create_core_data(struct platform_device *pdev, unsigned int cpu,
if (pkg_flag) {
attr_no = PKG_SYSFS_ATTR_NO;
} e... | ### File: drivers/hwmon/coretemp.c
```c
static int create_core_data(struct platform_device *pdev, unsigned int cpu,
int pkg_flag)
{
struct temp_data *tdata;
struct platform_data *pdata = platform_get_drvdata(pdev);
struct cpuinfo_x86 *c = &cpu_data(cpu);
u32 eax, edx;
int err, index, attr_no;
if (!houseke... | ### File: drivers/hwmon/coretemp.c
```c
static int create_core_data(struct platform_device *pdev, unsigned int cpu,
int pkg_flag)
{
struct temp_data *tdata;
struct platform_data *pdata = platform_get_drvdata(pdev);
struct cpuinfo_x86 *c = &cpu_data(cpu);
u32 eax, edx;
int err, index, attr_no;
if (!houseke... | {
"project_id": "torvalds_linux",
"before_commit": "1168491e7f53581ba7b6014a39a49cfbbb722feb",
"after_commit": "4e440abc894585a34c2904a32cd54af1742311b3",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2025-38568 | csa159 | csa159/pair_156640 | CSA | c/c++ | torvalds_linux | pair_156640 | csa159/tasks/pair_156640 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/net/sched/sch_mqprio.c b/net/sched/sch_mqprio.c
index 51d4013b6121..f3e5ef9a9592 100644
--- a/net/sched/sch_mqprio.c
+++ b/net/sched/sch_mqprio.c
@@ -152,7 +152,7 @@ static int mqprio_parse_opt(struct net_device *dev, struct tc_mqprio_qopt *qopt,
static const struct
nla_policy mqprio_tc_entry_policy[TCA_... | ### File: net/sched/sch_mqprio.c
```c
static int mqprio_parse_opt(struct net_device *dev, struct tc_mqprio_qopt *qopt,
const struct tc_mqprio_caps *caps,
struct netlink_ext_ack *extack)
{
int err;
/* Limit qopt->hw to maximum supported offload value. Drivers have
* the option of overriding this late... | ### File: net/sched/sch_mqprio.c
```c
static int mqprio_parse_opt(struct net_device *dev, struct tc_mqprio_qopt *qopt,
const struct tc_mqprio_caps *caps,
struct netlink_ext_ack *extack)
{
int err;
/* Limit qopt->hw to maximum supported offload value. Drivers have
* the option of overriding this late... | {
"project_id": "torvalds_linux",
"before_commit": "175811b8f05f0da3e19b7d3124666649ddde3802",
"after_commit": "ffd2dc4c6c49ff4f1e5d34e454a6a55608104c17",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2023-53057 | csa159 | csa159/pair_156704 | CSA | c/c++ | torvalds_linux | pair_156704 | csa159/tasks/pair_156704 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c
index 5b8dc8fb2e27..5a6aa1627791 100644
--- a/net/bluetooth/hci_sync.c
+++ b/net/bluetooth/hci_sync.c
@@ -3360,6 +3360,7 @@ static const struct hci_init_stage amp_init1[] = {
HCI_INIT(hci_read_flow_control_mode_sync),
/* HCI_OP_READ_LOCATION_DATA */
... | ### File: net/bluetooth/hci_sync.c
```c
static int hci_init1_sync(struct hci_dev *hdev)
{
int err;
bt_dev_dbg(hdev, "");
/* Reset */
if (!test_bit(HCI_QUIRK_RESET_ON_CLOSE, &hdev->quirks)) {
err = hci_reset_sync(hdev);
if (err)
return err;
}
switch (hdev->dev_type) {
case HCI_PRIMARY:
hdev->flow_ctl_... | ### File: net/bluetooth/hci_sync.c
```c
static int hci_init1_sync(struct hci_dev *hdev)
{
int err;
bt_dev_dbg(hdev, "");
/* Reset */
if (!test_bit(HCI_QUIRK_RESET_ON_CLOSE, &hdev->quirks)) {
err = hci_reset_sync(hdev);
if (err)
return err;
}
switch (hdev->dev_type) {
case HCI_PRIMARY:
hdev->flow_ctl_... | {
"project_id": "torvalds_linux",
"before_commit": "1a0291f81529e8044fb29845a0196ba47af894ce",
"after_commit": "bce56405201111807cc8e4f47c6de3e10b17c1ac",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2023-52865 | csa159 | csa159/pair_156860 | CSA | c/c++ | torvalds_linux | pair_156860 | csa159/tasks/pair_156860 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/clk/mediatek/clk-mt6797.c b/drivers/clk/mediatek/clk-mt6797.c
index 2ebd25f0ce71..f12d4e9ff0bb 100644
--- a/drivers/clk/mediatek/clk-mt6797.c
+++ b/drivers/clk/mediatek/clk-mt6797.c
@@ -390,6 +390,8 @@ static int mtk_topckgen_init(struct platform_device *pdev)
return PTR_ERR(base);
clk_data ... | ### File: drivers/clk/mediatek/clk-mt6797.c
```c
static int mtk_topckgen_init(struct platform_device *pdev)
{
struct clk_hw_onecell_data *clk_data;
void __iomem *base;
struct device_node *node = pdev->dev.of_node;
base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(base))
return PTR_ERR(base);
clk_data... | ### File: drivers/clk/mediatek/clk-mt6797.c
```c
static int mtk_topckgen_init(struct platform_device *pdev)
{
struct clk_hw_onecell_data *clk_data;
void __iomem *base;
struct device_node *node = pdev->dev.of_node;
base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(base))
return PTR_ERR(base);
clk_data... | {
"project_id": "torvalds_linux",
"before_commit": "1f57f78fbacf630430bf954e5a84caafdfea30c0",
"after_commit": "606f6366a35a3329545e38129804d65ef26ed7d2",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2022-48818 | csa159 | csa159/pair_156981 | CSA | c/c++ | torvalds_linux | pair_156981 | csa159/tasks/pair_156981 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c
index 58ca684d73f7..659f29582406 100644
--- a/drivers/net/dsa/mv88e6xxx/chip.c
+++ b/drivers/net/dsa/mv88e6xxx/chip.c
@@ -3399,7 +3399,7 @@ static int mv88e6xxx_mdio_register(struct mv88e6xxx_chip *chip,
return err;
}
- bus = devm_... | ### File: drivers/net/dsa/mv88e6xxx/chip.c
```c
static int mv88e6xxx_mdio_register(struct mv88e6xxx_chip *chip,
struct device_node *np,
bool external)
{
static int index;
struct mv88e6xxx_mdio_bus *mdio_bus;
struct mii_bus *bus;
int err;
if (external) {
mv88e6xxx_reg_lock(chip);
err = mv88e6xxx_... | ### File: drivers/net/dsa/mv88e6xxx/chip.c
```c
static int mv88e6xxx_mdio_register(struct mv88e6xxx_chip *chip,
struct device_node *np,
bool external)
{
static int index;
struct mv88e6xxx_mdio_bus *mdio_bus;
struct mii_bus *bus;
int err;
if (external) {
mv88e6xxx_reg_lock(chip);
err = mv88e6xxx_... | {
"project_id": "torvalds_linux",
"before_commit": "23de0d7b6f0e3f9a6283a882594c479949da1120",
"after_commit": "f53a2ce893b2c7884ef94471f170839170a4eba0",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2022-49519 | csa159 | csa159/pair_157153 | CSA | c/c++ | torvalds_linux | pair_157153 | csa159/tasks/pair_157153 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index a46f56a1efca..75d7a004a115 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -5338,13 +5338,29 @@ static int ath10k_start(struct ieee80211_hw *hw)
static void ath10k_stop(str... | ### File: drivers/net/wireless/ath/ath10k/mac.c
```c
static int ath10k_start(struct ieee80211_hw *hw)
{
struct ath10k *ar = hw->priv;
u32 param;
int ret = 0;
struct wmi_bb_timing_cfg_arg bb_timing = {0};
/*
* This makes sense only when restarting hw. It is harmless to call
* unconditionally. This is necessary... | ### File: drivers/net/wireless/ath/ath10k/mac.c
```c
static int ath10k_start(struct ieee80211_hw *hw)
{
struct ath10k *ar = hw->priv;
u32 param;
int ret = 0;
struct wmi_bb_timing_cfg_arg bb_timing = {0};
/*
* This makes sense only when restarting hw. It is harmless to call
* unconditionally. This is necessary... | {
"project_id": "torvalds_linux",
"before_commit": "2950833f10cfa601813262e1d9c8473f9415681b",
"after_commit": "b72a4aff947ba807177bdabb43debaf2c66bee05",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2022-48665 | csa159 | csa159/pair_158138 | CSA | c/c++ | torvalds_linux | pair_158138 | csa159/tasks/pair_158138 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/fs/exfat/fatent.c b/fs/exfat/fatent.c
index ee0b7cf51157..41ae4cce1f42 100644
--- a/fs/exfat/fatent.c
+++ b/fs/exfat/fatent.c
@@ -270,8 +270,7 @@ int exfat_zeroed_cluster(struct inode *dir, unsigned int clu)
struct super_block *sb = dir->i_sb;
struct exfat_sb_info *sbi = EXFAT_SB(sb);
struct buffer_h... | ### File: fs/exfat/fatent.c
```c
int exfat_zeroed_cluster(struct inode *dir, unsigned int clu)
{
struct super_block *sb = dir->i_sb;
struct exfat_sb_info *sbi = EXFAT_SB(sb);
struct buffer_head *bh;
sector_t blknr, last_blknr;
int i;
blknr = exfat_cluster_to_sector(sbi, clu);
last_blknr = blknr + sbi->sect_per_... | ### File: fs/exfat/fatent.c
```c
int exfat_zeroed_cluster(struct inode *dir, unsigned int clu)
{
struct super_block *sb = dir->i_sb;
struct exfat_sb_info *sbi = EXFAT_SB(sb);
struct buffer_head *bh;
sector_t blknr, last_blknr, i;
blknr = exfat_cluster_to_sector(sbi, clu);
last_blknr = blknr + sbi->sect_per_clus;... | {
"project_id": "torvalds_linux",
"before_commit": "4c612826bec1441214816827979b62f84a097e91",
"after_commit": "2e9ceb6728f1dc2fa4b5d08f37d88cbc49a20a62",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2026-53322 | csa159 | csa159/pair_158217 | CSA | c/c++ | torvalds_linux | pair_158217 | csa159/tasks/pair_158217 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/vfio/pci/vfio_pci_core.c b/drivers/vfio/pci/vfio_pci_core.c
index ad52abc46c04..3f8d093aacf8 100644
--- a/drivers/vfio/pci/vfio_pci_core.c
+++ b/drivers/vfio/pci/vfio_pci_core.c
@@ -734,10 +734,10 @@ void vfio_pci_core_close_device(struct vfio_device *core_vdev)
#if IS_ENABLED(CONFIG_EEH)
eeh_de... | ### File: drivers/vfio/pci/vfio_pci_core.c
```c
void vfio_pci_core_close_device(struct vfio_device *core_vdev)
{
struct vfio_pci_core_device *vdev =
container_of(core_vdev, struct vfio_pci_core_device, vdev);
if (vdev->sriov_pf_core_dev) {
mutex_lock(&vdev->sriov_pf_core_dev->vf_token->lock);
WARN_ON(!vdev->sr... | ### File: drivers/vfio/pci/vfio_pci_core.c
```c
void vfio_pci_core_close_device(struct vfio_device *core_vdev)
{
struct vfio_pci_core_device *vdev =
container_of(core_vdev, struct vfio_pci_core_device, vdev);
if (vdev->sriov_pf_core_dev) {
mutex_lock(&vdev->sriov_pf_core_dev->vf_token->lock);
WARN_ON(!vdev->sr... | {
"project_id": "torvalds_linux",
"before_commit": "4ee64205ffaa587e8114d84a67ac721399ccb369",
"after_commit": "d97708701434ce72968e771976aaf9d3438fcafd",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2022-50131 | csa159 | csa159/pair_158385 | CSA | c/c++ | torvalds_linux | pair_158385 | csa159/tasks/pair_158385 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/hid/hid-mcp2221.c b/drivers/hid/hid-mcp2221.c
index 4211b9839209..de52e9f7bb8c 100644
--- a/drivers/hid/hid-mcp2221.c
+++ b/drivers/hid/hid-mcp2221.c
@@ -385,6 +385,9 @@ static int mcp_smbus_write(struct mcp2221 *mcp, u16 addr,
data_len = 7;
break;
default:
+ if (len > I2C_SMBUS_BLOCK_MAX)... | ### File: drivers/hid/hid-mcp2221.c
```c
static int mcp_smbus_write(struct mcp2221 *mcp, u16 addr,
u8 command, u8 *buf, u8 len, int type,
u8 last_status)
{
int data_len, ret;
mcp->txbuf[0] = type;
mcp->txbuf[1] = len + 1; /* 1 is due to command byte itself */
mcp->txbuf[2] = 0;
mcp->txbuf[3] = (u8)(addr <... | ### File: drivers/hid/hid-mcp2221.c
```c
static int mcp_smbus_write(struct mcp2221 *mcp, u16 addr,
u8 command, u8 *buf, u8 len, int type,
u8 last_status)
{
int data_len, ret;
mcp->txbuf[0] = type;
mcp->txbuf[1] = len + 1; /* 1 is due to command byte itself */
mcp->txbuf[2] = 0;
mcp->txbuf[3] = (u8)(addr <... | {
"project_id": "torvalds_linux",
"before_commit": "54eed5c7b938dc4ef6b14d4ee048bbdafdbce352",
"after_commit": "62ac2473553a00229e67bdf3cb023b62cf7f5a9a",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2023-1078 | csa159 | csa159/pair_158831 | CSA | c/c++ | torvalds_linux | pair_158831 | csa159/tasks/pair_158831 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/net/rds/message.c b/net/rds/message.c
index b47e4f0a1639..c19c93561227 100644
--- a/net/rds/message.c
+++ b/net/rds/message.c
@@ -104,9 +104,9 @@ static void rds_rm_zerocopy_callback(struct rds_sock *rs,
spin_lock_irqsave(&q->lock, flags);
head = &q->zcookie_head;
if (!list_empty(head)) {
- info = l... | ### File: net/rds/message.c
```c
static void rds_rm_zerocopy_callback(struct rds_sock *rs,
struct rds_znotifier *znotif)
{
struct rds_msg_zcopy_info *info;
struct rds_msg_zcopy_queue *q;
u32 cookie = znotif->z_cookie;
struct rds_zcopy_cookies *ck;
struct list_head *head;
unsigned long flags;
mm_unaccou... | ### File: net/rds/message.c
```c
static void rds_rm_zerocopy_callback(struct rds_sock *rs,
struct rds_znotifier *znotif)
{
struct rds_msg_zcopy_info *info;
struct rds_msg_zcopy_queue *q;
u32 cookie = znotif->z_cookie;
struct rds_zcopy_cookies *ck;
struct list_head *head;
unsigned long flags;
mm_unaccou... | {
"project_id": "torvalds_linux",
"before_commit": "646be03ec46cc736d78ca4db2e0b00fa84446d77",
"after_commit": "f753a68980cf4b59a80fe677619da2b1804f526d",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2022-49208 | csa159 | csa159/pair_159264 | CSA | c/c++ | torvalds_linux | pair_159264 | csa159/tasks/pair_159264 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/infiniband/hw/irdma/ctrl.c b/drivers/infiniband/hw/irdma/ctrl.c
index 01cf75e9fd48..58c0e181ca2b 100644
--- a/drivers/infiniband/hw/irdma/ctrl.c
+++ b/drivers/infiniband/hw/irdma/ctrl.c
@@ -454,7 +454,7 @@ int irdma_sc_qp_create(struct irdma_sc_qp *qp, struct irdma_create_qp_info *info
cqp = qp... | ### File: drivers/infiniband/hw/irdma/ctrl.c
```c
int irdma_sc_qp_create(struct irdma_sc_qp *qp, struct irdma_create_qp_info *info,
u64 scratch, bool post_sq)
{
struct irdma_sc_cqp *cqp;
__le64 *wqe;
u64 hdr;
cqp = qp->dev->cqp;
if (qp->qp_uk.qp_id < cqp->dev->hw_attrs.min_hw_qp_id ||
qp->qp_uk.qp_i... | ### File: drivers/infiniband/hw/irdma/ctrl.c
```c
int irdma_sc_qp_create(struct irdma_sc_qp *qp, struct irdma_create_qp_info *info,
u64 scratch, bool post_sq)
{
struct irdma_sc_cqp *cqp;
__le64 *wqe;
u64 hdr;
cqp = qp->dev->cqp;
if (qp->qp_uk.qp_id < cqp->dev->hw_attrs.min_hw_qp_id ||
qp->qp_uk.qp_i... | {
"project_id": "torvalds_linux",
"before_commit": "73f7e05609ece4030f2745c4c0c01e0be6889590",
"after_commit": "6f6dbb819dfc1a35bcb8b709b5c83a3ea8beff75",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2024-36899 | csa159 | csa159/pair_159377 | CSA | c/c++ | torvalds_linux | pair_159377 | csa159/tasks/pair_159377 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c
index fea149ae7774..46a45093d4d0 100644
--- a/drivers/gpio/gpiolib-cdev.c
+++ b/drivers/gpio/gpiolib-cdev.c
@@ -2799,11 +2799,11 @@ static int gpio_chrdev_release(struct inode *inode, struct file *file)
struct gpio_chardev_data *cdev = file->priva... | ### File: drivers/gpio/gpiolib-cdev.c
```c
static int gpio_chrdev_release(struct inode *inode, struct file *file)
{
struct gpio_chardev_data *cdev = file->private_data;
struct gpio_device *gdev = cdev->gdev;
bitmap_free(cdev->watched_lines);
blocking_notifier_chain_unregister(&gdev->device_notifier,
&cdev-... | ### File: drivers/gpio/gpiolib-cdev.c
```c
static int gpio_chrdev_release(struct inode *inode, struct file *file)
{
struct gpio_chardev_data *cdev = file->private_data;
struct gpio_device *gdev = cdev->gdev;
blocking_notifier_chain_unregister(&gdev->device_notifier,
&cdev->device_unregistered_nb);
blocking... | {
"project_id": "torvalds_linux",
"before_commit": "7765ffed533d4a9f0291a0edc660496d104396ec",
"after_commit": "02f6b0e1ec7e0e7d059dddc893645816552039da",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2025-37812 | csa159 | csa159/pair_160021 | CSA | c/c++ | torvalds_linux | pair_160021 | csa159/tasks/pair_160021 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/usb/cdns3/cdns3-gadget.c b/drivers/usb/cdns3/cdns3-gadget.c
index 694aa1457739..d9d8dc05b235 100644
--- a/drivers/usb/cdns3/cdns3-gadget.c
+++ b/drivers/usb/cdns3/cdns3-gadget.c
@@ -1963,6 +1963,7 @@ static irqreturn_t cdns3_device_thread_irq_handler(int irq, void *data)
unsigned int bit;
unsig... | ### File: drivers/usb/cdns3/cdns3-gadget.c
```c
static irqreturn_t cdns3_device_thread_irq_handler(int irq, void *data)
{
struct cdns3_device *priv_dev = data;
irqreturn_t ret = IRQ_NONE;
unsigned long flags;
unsigned int bit;
unsigned long reg;
spin_lock_irqsave(&priv_dev->lock, flags);
reg = readl(&priv_dev-... | ### File: drivers/usb/cdns3/cdns3-gadget.c
```c
static irqreturn_t cdns3_device_thread_irq_handler(int irq, void *data)
{
struct cdns3_device *priv_dev = data;
irqreturn_t ret = IRQ_NONE;
unsigned long flags;
unsigned int bit;
unsigned long reg;
local_bh_disable();
spin_lock_irqsave(&priv_dev->lock, flags);
r... | {
"project_id": "torvalds_linux",
"before_commit": "8c531e0a8c2d82509ad97c6d3a1e6217c7ed136d",
"after_commit": "a1059896f2bfdcebcdc7153c3be2307ea319501f",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2023-52569 | csa159 | csa159/pair_160187 | CSA | c/c++ | torvalds_linux | pair_160187 | csa159/tasks/pair_160187 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/fs/btrfs/delayed-inode.c b/fs/btrfs/delayed-inode.c
index bb9908cbabfe..6e779bc16340 100644
--- a/fs/btrfs/delayed-inode.c
+++ b/fs/btrfs/delayed-inode.c
@@ -1426,7 +1426,29 @@ void btrfs_balance_delayed_items(struct btrfs_fs_info *fs_info)
btrfs_wq_run_delayed_node(delayed_root, fs_info, BTRFS_DELAYED_B... | ### File: fs/btrfs/delayed-inode.c
```c
void btrfs_balance_delayed_items(struct btrfs_fs_info *fs_info)
{
struct btrfs_delayed_root *delayed_root = fs_info->delayed_root;
if ((atomic_read(&delayed_root->items) < BTRFS_DELAYED_BACKGROUND) ||
btrfs_workqueue_normal_congested(fs_info->delayed_workers))
return;
if... | ### File: fs/btrfs/delayed-inode.c
```c
void btrfs_balance_delayed_items(struct btrfs_fs_info *fs_info)
{
struct btrfs_delayed_root *delayed_root = fs_info->delayed_root;
if ((atomic_read(&delayed_root->items) < BTRFS_DELAYED_BACKGROUND) ||
btrfs_workqueue_normal_congested(fs_info->delayed_workers))
return;
if... | {
"project_id": "torvalds_linux",
"before_commit": "91bfe3104b8db0310f76f2dcb6aacef24c889366",
"after_commit": "2c58c3931ede7cd08cbecf1f1a4acaf0a04a41a9",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2023-52603 | csa159 | csa159/pair_160364 | CSA | c/c++ | torvalds_linux | pair_160364 | csa159/tasks/pair_160364 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/fs/jfs/jfs_dtree.c b/fs/jfs/jfs_dtree.c
index 92b7c533407c..f3d3e8b3f50c 100644
--- a/fs/jfs/jfs_dtree.c
+++ b/fs/jfs/jfs_dtree.c
@@ -1970,7 +1970,7 @@ static int dtSplitRoot(tid_t tid,
do {
f = &rp->slot[fsi];
fsi = f->next;
- } while (fsi != -1);
+ } while (fsi >= 0);
f->next = n;
} | ### File: fs/jfs/jfs_dtree.c
```c
static int dtSplitRoot(tid_t tid,
struct inode *ip, struct dtsplit * split, struct metapage ** rmpp)
{
struct super_block *sb = ip->i_sb;
struct metapage *smp;
dtroot_t *sp;
struct metapage *rmp;
dtpage_t *rp;
s64 rbn;
int xlen;
int xsize;
struct dtslot *f;
s8 *stbl;
in... | ### File: fs/jfs/jfs_dtree.c
```c
static int dtSplitRoot(tid_t tid,
struct inode *ip, struct dtsplit * split, struct metapage ** rmpp)
{
struct super_block *sb = ip->i_sb;
struct metapage *smp;
dtroot_t *sp;
struct metapage *rmp;
dtpage_t *rp;
s64 rbn;
int xlen;
int xsize;
struct dtslot *f;
s8 *stbl;
in... | {
"project_id": "torvalds_linux",
"before_commit": "9862ec7ac1cbc6eb5ee4a045b5d5b8edbb2f7e68",
"after_commit": "27e56f59bab5ddafbcfe69ad7a4a6ea1279c1b16",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2023-28464 | csa159 | csa159/pair_160434 | CSA | c/c++ | torvalds_linux | pair_160434 | csa159/tasks/pair_160434 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/net/bluetooth/sco.c b/net/bluetooth/sco.c
index f3a5ab9e4fa4..cd1a27ac555d 100644
--- a/net/bluetooth/sco.c
+++ b/net/bluetooth/sco.c
@@ -1140,6 +1140,8 @@ static int sco_sock_getsockopt(struct socket *sock, int level, int optname,
break;
}
+ release_sock(sk);
+
/* find total buffer size requi... | ### File: net/bluetooth/sco.c
```c
static int sco_sock_getsockopt(struct socket *sock, int level, int optname,
char __user *optval, int __user *optlen)
{
struct sock *sk = sock->sk;
int len, err = 0;
struct bt_voice voice;
u32 phys;
int pkt_status;
int buf_len;
struct codec_list *c;
u8 num_codecs, i, ... | ### File: net/bluetooth/sco.c
```c
static int sco_sock_getsockopt(struct socket *sock, int level, int optname,
char __user *optval, int __user *optlen)
{
struct sock *sk = sock->sk;
int len, err = 0;
struct bt_voice voice;
u32 phys;
int pkt_status;
int buf_len;
struct codec_list *c;
u8 num_codecs, i, ... | {
"project_id": "torvalds_linux",
"before_commit": "9a8ec9e8ebb5a7c0cfbce2d6b4a6b67b2b78e8f3",
"after_commit": "975abc0c90fc485ff9b4a6afa475c3b1398d5d47",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2025-38129 | csa159 | csa159/pair_160451 | CSA | c/c++ | torvalds_linux | pair_160451 | csa159/tasks/pair_160451 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/net/core/page_pool.c b/net/core/page_pool.c
index 4011eb305cee..ba7cf3e3c32f 100644
--- a/net/core/page_pool.c
+++ b/net/core/page_pool.c
@@ -153,9 +153,9 @@ u64 *page_pool_ethtool_stats_get(u64 *data, const void *stats)
EXPORT_SYMBOL(page_pool_ethtool_stats_get);
#else
-#define alloc_stat_inc(pool, __... | ### File: net/core/page_pool.c
```c
u64 *page_pool_ethtool_stats_get(u64 *data, const void *stats)
{
const struct page_pool_stats *pool_stats = stats;
*data++ = pool_stats->alloc_stats.fast;
*data++ = pool_stats->alloc_stats.slow;
*data++ = pool_stats->alloc_stats.slow_high_order;
*data++ = pool_stats->alloc_stat... | ### File: net/core/page_pool.c
```c
u64 *page_pool_ethtool_stats_get(u64 *data, const void *stats)
{
const struct page_pool_stats *pool_stats = stats;
*data++ = pool_stats->alloc_stats.fast;
*data++ = pool_stats->alloc_stats.slow;
*data++ = pool_stats->alloc_stats.slow_high_order;
*data++ = pool_stats->alloc_stat... | {
"project_id": "torvalds_linux",
"before_commit": "9ad0452c0277b816a435433cca601304cfac7c21",
"after_commit": "271683bb2cf32e5126c592b5d5e6a756fa374fd9",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2024-45017 | csa159 | csa159/pair_160603 | CSA | c/c++ | torvalds_linux | pair_160603 | csa159/tasks/pair_160603 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/net/ethernet/mellanox/mlx5/core/lib/ipsec_fs_roce.c b/drivers/net/ethernet/mellanox/mlx5/core/lib/ipsec_fs_roce.c
index 234cd00f71a1..b7d4b1a2baf2 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/lib/ipsec_fs_roce.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/lib/ipsec_fs_roce.c
@@ -386,7 +38... | ### File: drivers/net/ethernet/mellanox/mlx5/core/lib/ipsec_fs_roce.c
```c
static int ipsec_fs_roce_tx_mpv_create(struct mlx5_core_dev *mdev,
struct mlx5_ipsec_fs *ipsec_roce,
struct mlx5_flow_table *pol_ft,
u32 *in, bool from_event)
{
struct mlx5_devcom_comp_dev *tmp = NULL;
struct m... | ### File: drivers/net/ethernet/mellanox/mlx5/core/lib/ipsec_fs_roce.c
```c
static int ipsec_fs_roce_tx_mpv_create(struct mlx5_core_dev *mdev,
struct mlx5_ipsec_fs *ipsec_roce,
struct mlx5_flow_table *pol_ft,
u32 *in, bool from_event)
{
struct mlx5_devcom_comp_dev *tmp = NULL;
struct m... | {
"project_id": "torvalds_linux",
"before_commit": "a07e953dafe5ebd88942dc861dfb06eaf055fb07",
"after_commit": "607e1df7bd47fe91cab85a97f57870a26d066137",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2022-49123 | csa159 | csa159/pair_160628 | CSA | c/c++ | torvalds_linux | pair_160628 | csa159/tasks/pair_160628 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c
index 68754e9914b3..0b3b6f3ae4aa 100644
--- a/drivers/net/wireless/ath/ath11k/mac.c
+++ b/drivers/net/wireless/ath/ath11k/mac.c
@@ -5579,7 +5579,7 @@ static int ath11k_mac_mgmt_tx(struct ath11k *ar, struct sk_buff *skb,
skb_q... | ### File: drivers/net/wireless/ath/ath11k/mac.c
```c
static int ath11k_mac_mgmt_tx(struct ath11k *ar, struct sk_buff *skb,
bool is_prb_rsp)
{
struct sk_buff_head *q = &ar->wmi_mgmt_tx_queue;
if (test_bit(ATH11K_FLAG_CRASH_FLUSH, &ar->ab->dev_flags))
return -ESHUTDOWN;
/* Drop probe response packets when... | ### File: drivers/net/wireless/ath/ath11k/mac.c
```c
static int ath11k_mac_mgmt_tx(struct ath11k *ar, struct sk_buff *skb,
bool is_prb_rsp)
{
struct sk_buff_head *q = &ar->wmi_mgmt_tx_queue;
if (test_bit(ATH11K_FLAG_CRASH_FLUSH, &ar->ab->dev_flags))
return -ESHUTDOWN;
/* Drop probe response packets when... | {
"project_id": "torvalds_linux",
"before_commit": "a19c0e104db95f78540982c64d78217cd9830d72",
"after_commit": "261b07519518bd14cb168b287b17e1d195f8d0c8",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2024-41059 | csa159 | csa159/pair_160904 | CSA | c/c++ | torvalds_linux | pair_160904 | csa159/tasks/pair_160904 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/fs/hfsplus/xattr.c b/fs/hfsplus/xattr.c
index 5a400259ae74..9a1a93e3888b 100644
--- a/fs/hfsplus/xattr.c
+++ b/fs/hfsplus/xattr.c
@@ -696,7 +696,7 @@ ssize_t hfsplus_listxattr(struct dentry *dentry, char *buffer, size_t size)
return err;
}
- strbuf = kmalloc(NLS_MAX_CHARSET_SIZE * HFSPLUS_ATTR_MAX_S... | ### File: fs/hfsplus/xattr.c
```c
ssize_t hfsplus_listxattr(struct dentry *dentry, char *buffer, size_t size)
{
ssize_t err;
ssize_t res;
struct inode *inode = d_inode(dentry);
struct hfs_find_data fd;
struct hfsplus_attr_key attr_key;
char *strbuf;
int xattr_name_len;
if ((!S_ISREG(inode->i_mode) &&
!S_ISD... | ### File: fs/hfsplus/xattr.c
```c
ssize_t hfsplus_listxattr(struct dentry *dentry, char *buffer, size_t size)
{
ssize_t err;
ssize_t res;
struct inode *inode = d_inode(dentry);
struct hfs_find_data fd;
struct hfsplus_attr_key attr_key;
char *strbuf;
int xattr_name_len;
if ((!S_ISREG(inode->i_mode) &&
!S_ISD... | {
"project_id": "torvalds_linux",
"before_commit": "aabfe57ebaa75841db47ea59091ec3c5a06d2f52",
"after_commit": "0570730c16307a72f8241df12363f76600baf57d",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2024-42242 | csa159 | csa159/pair_160912 | CSA | c/c++ | torvalds_linux | pair_160912 | csa159/tasks/pair_160912 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 112584aa0772..fbf7a91bed35 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -4727,6 +4727,21 @@ int sdhci_setup_host(struct sdhci_host *host)
if (host->quirks & SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC) {
host->max_adma = 6... | ### File: drivers/mmc/host/sdhci.c
```c
int sdhci_setup_host(struct sdhci_host *host)
{
struct mmc_host *mmc;
u32 max_current_caps;
unsigned int ocr_avail;
unsigned int override_timeout_clk;
u32 max_clk;
int ret = 0;
bool enable_vqmmc = false;
WARN_ON(host == NULL);
if (host == NULL)
return -EINVAL;
mmc =... | ### File: drivers/mmc/host/sdhci.c
```c
int sdhci_setup_host(struct sdhci_host *host)
{
struct mmc_host *mmc;
u32 max_current_caps;
unsigned int ocr_avail;
unsigned int override_timeout_clk;
u32 max_clk;
int ret = 0;
bool enable_vqmmc = false;
WARN_ON(host == NULL);
if (host == NULL)
return -EINVAL;
mmc =... | {
"project_id": "torvalds_linux",
"before_commit": "ab069ce125965a5e282f7b53b86aee76ab32975c",
"after_commit": "63d20a94f24fc1cbaf44d0e7c0e0a8077fde0aef",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2024-26585 | csa159 | csa159/pair_161027 | CSA | c/c++ | torvalds_linux | pair_161027 | csa159/tasks/pair_161027 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/net/tls/tls_sw.c b/net/tls/tls_sw.c
index 635305bebfef..9374a61cef00 100644
--- a/net/tls/tls_sw.c
+++ b/net/tls/tls_sw.c
@@ -447,7 +447,6 @@ static void tls_encrypt_done(void *data, int err)
struct tls_rec *rec = data;
struct scatterlist *sge;
struct sk_msg *msg_en;
- bool ready = false;
struct so... | ### File: net/tls/tls_sw.c
```c
static void tls_encrypt_done(void *data, int err)
{
struct tls_sw_context_tx *ctx;
struct tls_context *tls_ctx;
struct tls_prot_info *prot;
struct tls_rec *rec = data;
struct scatterlist *sge;
struct sk_msg *msg_en;
bool ready = false;
struct sock *sk;
msg_en = &rec->msg_encryp... | ### File: net/tls/tls_sw.c
```c
static void tls_encrypt_done(void *data, int err)
{
struct tls_sw_context_tx *ctx;
struct tls_context *tls_ctx;
struct tls_prot_info *prot;
struct tls_rec *rec = data;
struct scatterlist *sge;
struct sk_msg *msg_en;
struct sock *sk;
msg_en = &rec->msg_encrypted;
sk = rec->sk;
... | {
"project_id": "torvalds_linux",
"before_commit": "aec7961916f3f9e88766e2688992da6980f11b8d",
"after_commit": "e01e3934a1b2d122919f73bc6ddbe1cdafc4bbdb",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2024-38593 | csa159 | csa159/pair_161598 | CSA | c/c++ | torvalds_linux | pair_161598 | csa159/tasks/pair_161598 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c
index ddb50a0e2bc8..87780465cd0d 100644
--- a/drivers/net/phy/micrel.c
+++ b/drivers/net/phy/micrel.c
@@ -4676,7 +4676,8 @@ static int lan8841_suspend(struct phy_device *phydev)
struct kszphy_priv *priv = phydev->priv;
struct kszphy_ptp_priv *ptp_priv... | ### File: drivers/net/phy/micrel.c
```c
static int lan8841_suspend(struct phy_device *phydev)
{
struct kszphy_priv *priv = phydev->priv;
struct kszphy_ptp_priv *ptp_priv = &priv->ptp_priv;
ptp_cancel_worker_sync(ptp_priv->ptp_clock);
return genphy_suspend(phydev);
}
```
| ### File: drivers/net/phy/micrel.c
```c
static int lan8841_suspend(struct phy_device *phydev)
{
struct kszphy_priv *priv = phydev->priv;
struct kszphy_ptp_priv *ptp_priv = &priv->ptp_priv;
if (ptp_priv->ptp_clock)
ptp_cancel_worker_sync(ptp_priv->ptp_clock);
return genphy_suspend(phydev);
}
```
| {
"project_id": "torvalds_linux",
"before_commit": "c2e0c58b25a0a0c37ec643255558c5af4450c9f5",
"after_commit": "aea27a92a41dae14843f92c79e9e42d8f570105c",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2024-26583 | csa159 | csa159/pair_161667 | CSA | c/c++ | torvalds_linux | pair_161667 | csa159/tasks/pair_161667 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/include/net/tls.h b/include/net/tls.h
index 962f0c501111..340ad43971e4 100644
--- a/include/net/tls.h
+++ b/include/net/tls.h
@@ -97,9 +97,6 @@ struct tls_sw_context_tx {
struct tls_rec *open_rec;
struct list_head tx_list;
atomic_t encrypt_pending;
- /* protect crypto_wait with encrypt_pending */
- s... | ### File: net/tls/tls_sw.c
```c
static void tls_decrypt_done(void *data, int err)
{
struct aead_request *aead_req = data;
struct crypto_aead *aead = crypto_aead_reqtfm(aead_req);
struct scatterlist *sgout = aead_req->dst;
struct scatterlist *sgin = aead_req->src;
struct tls_sw_context_rx *ctx;
struct tls_decrypt_... | ### File: net/tls/tls_sw.c
```c
static void tls_decrypt_done(void *data, int err)
{
struct aead_request *aead_req = data;
struct crypto_aead *aead = crypto_aead_reqtfm(aead_req);
struct scatterlist *sgout = aead_req->dst;
struct scatterlist *sgin = aead_req->src;
struct tls_sw_context_rx *ctx;
struct tls_decrypt_... | {
"project_id": "torvalds_linux",
"before_commit": "c57ca512f3b68ddcd62bda9cc24a8f5584ab01b1",
"after_commit": "aec7961916f3f9e88766e2688992da6980f11b8d",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2025-21811 | csa159 | csa159/pair_161782 | CSA | c/c++ | torvalds_linux | pair_161782 | csa159/tasks/pair_161782 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/fs/nilfs2/segment.c b/fs/nilfs2/segment.c
index 587251830897..58a598b548fa 100644
--- a/fs/nilfs2/segment.c
+++ b/fs/nilfs2/segment.c
@@ -734,7 +734,6 @@ static size_t nilfs_lookup_dirty_data_buffers(struct inode *inode,
if (!head)
head = create_empty_buffers(folio,
i_blocksize(inode), 0);
- ... | ### File: fs/nilfs2/segment.c
```c
static size_t nilfs_lookup_dirty_data_buffers(struct inode *inode,
struct list_head *listp,
size_t nlimit,
loff_t start, loff_t end)
{
struct address_space *mapping = inode->i_mapping;
struct folio_batch fbatch;
pgoff_t index = 0, last = ULONG_MAX;
... | ### File: fs/nilfs2/segment.c
```c
static size_t nilfs_lookup_dirty_data_buffers(struct inode *inode,
struct list_head *listp,
size_t nlimit,
loff_t start, loff_t end)
{
struct address_space *mapping = inode->i_mapping;
struct folio_batch fbatch;
pgoff_t index = 0, last = ULONG_MAX;
... | {
"project_id": "torvalds_linux",
"before_commit": "ca76bb226bf47ff04c782cacbd299f12ddee1ec1",
"after_commit": "367a9bffabe08c04f6d725032cce3d891b2b9e1a",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2023-52843 | csa159 | csa159/pair_161997 | CSA | c/c++ | torvalds_linux | pair_161997 | csa159/tasks/pair_161997 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/net/llc/llc_input.c b/net/llc/llc_input.c
index 7cac441862e2..51bccfb00a9c 100644
--- a/net/llc/llc_input.c
+++ b/net/llc/llc_input.c
@@ -127,8 +127,14 @@ static inline int llc_fixup_skb(struct sk_buff *skb)
skb->transport_header += llc_len;
skb_pull(skb, llc_len);
if (skb->protocol == htons(ETH_P_80... | ### File: net/llc/llc_input.c
```c
static inline int llc_fixup_skb(struct sk_buff *skb)
{
u8 llc_len = 2;
struct llc_pdu_un *pdu;
if (unlikely(!pskb_may_pull(skb, sizeof(*pdu))))
return 0;
pdu = (struct llc_pdu_un *)skb->data;
if ((pdu->ctrl_1 & LLC_PDU_TYPE_MASK) == LLC_PDU_TYPE_U)
llc_len = 1;
llc_len += ... | ### File: net/llc/llc_input.c
```c
static inline int llc_fixup_skb(struct sk_buff *skb)
{
u8 llc_len = 2;
struct llc_pdu_un *pdu;
if (unlikely(!pskb_may_pull(skb, sizeof(*pdu))))
return 0;
pdu = (struct llc_pdu_un *)skb->data;
if ((pdu->ctrl_1 & LLC_PDU_TYPE_MASK) == LLC_PDU_TYPE_U)
llc_len = 1;
llc_len += ... | {
"project_id": "torvalds_linux",
"before_commit": "d280783c3ad9ae31c01c1b3bdd2e8353a223599b",
"after_commit": "7b3ba18703a63f6fd487183b9262b08e5632da1b",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2023-53827 | csa159 | csa159/pair_162003 | CSA | c/c++ | torvalds_linux | pair_162003 | csa159/tasks/pair_162003 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index 49926f59cc12..55a7226233f9 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -4652,33 +4652,27 @@ static inline int l2cap_disconnect_req(struct l2cap_conn *conn,
BT_DBG("scid 0x%4.4x dcid 0x%4.4x", scid, dcid);
- ... | ### File: net/bluetooth/l2cap_core.c
```c
static inline int l2cap_disconnect_req(struct l2cap_conn *conn,
struct l2cap_cmd_hdr *cmd, u16 cmd_len,
u8 *data)
{
struct l2cap_disconn_req *req = (struct l2cap_disconn_req *) data;
struct l2cap_disconn_rsp rsp;
u16 dcid, scid;
struct l2cap_chan *chan... | ### File: net/bluetooth/l2cap_core.c
```c
static inline int l2cap_disconnect_req(struct l2cap_conn *conn,
struct l2cap_cmd_hdr *cmd, u16 cmd_len,
u8 *data)
{
struct l2cap_disconn_req *req = (struct l2cap_disconn_req *) data;
struct l2cap_disconn_rsp rsp;
u16 dcid, scid;
struct l2cap_chan *chan... | {
"project_id": "torvalds_linux",
"before_commit": "d2e4f1b1cba8742db66aaf77374cab7c0c7c8656",
"after_commit": "a2a9339e1c9deb7e1e079e12e27a0265aea8421a",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2022-4095 | csa159 | csa159/pair_162331 | CSA | c/c++ | torvalds_linux | pair_162331 | csa159/tasks/pair_162331 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/staging/rtl8712/rtl8712_cmd.c b/drivers/staging/rtl8712/rtl8712_cmd.c
index 2326aae6709e..bb7db96ed821 100644
--- a/drivers/staging/rtl8712/rtl8712_cmd.c
+++ b/drivers/staging/rtl8712/rtl8712_cmd.c
@@ -117,34 +117,6 @@ static void r871x_internal_cmd_hdl(struct _adapter *padapter, u8 *pbuf)
kfree(... | ### File: drivers/staging/rtl8712/rtl8712_cmd.c
```c
static void r871x_internal_cmd_hdl(struct _adapter *padapter, u8 *pbuf)
{
struct drvint_cmd_parm *pdrvcmd;
if (!pbuf)
return;
pdrvcmd = (struct drvint_cmd_parm *)pbuf;
switch (pdrvcmd->i_cid) {
case WDG_WK_CID:
StatusWatchdogCallback(padapter);
break;
de... | ### File: drivers/staging/rtl8712/rtl8712_cmd.c
```c
static void r871x_internal_cmd_hdl(struct _adapter *padapter, u8 *pbuf)
{
struct drvint_cmd_parm *pdrvcmd;
if (!pbuf)
return;
pdrvcmd = (struct drvint_cmd_parm *)pbuf;
switch (pdrvcmd->i_cid) {
case WDG_WK_CID:
StatusWatchdogCallback(padapter);
break;
de... | {
"project_id": "torvalds_linux",
"before_commit": "e01f5c8d6af231b3b09e23c1fe8a4057cdcc4e42",
"after_commit": "e230a4455ac3e9b112f0367d1b8e255e141afae0",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2022-48735 | csa159 | csa159/pair_162535 | CSA | c/c++ | torvalds_linux | pair_162535 | csa159/tasks/pair_162535 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c
index 3bf5e3410703..fc114e522480 100644
--- a/sound/pci/hda/hda_generic.c
+++ b/sound/pci/hda/hda_generic.c
@@ -91,6 +91,12 @@ static void snd_hda_gen_spec_free(struct hda_gen_spec *spec)
free_kctls(spec);
snd_array_free(&spec->paths);
snd_arr... | ### File: sound/pci/hda/hda_generic.c
```c
static void snd_hda_gen_spec_free(struct hda_gen_spec *spec)
{
if (!spec)
return;
free_kctls(spec);
snd_array_free(&spec->paths);
snd_array_free(&spec->loopback_list);
}
static void parse_user_hints(struct hda_codec *codec)
{
struct hda_gen_spec *spec = codec->spec;
i... | ### File: sound/pci/hda/hda_generic.c
```c
static void snd_hda_gen_spec_free(struct hda_gen_spec *spec)
{
if (!spec)
return;
free_kctls(spec);
snd_array_free(&spec->paths);
snd_array_free(&spec->loopback_list);
#ifdef CONFIG_SND_HDA_GENERIC_LEDS
if (spec->led_cdevs[LED_AUDIO_MUTE])
led_classdev_unregister(spec... | {
"project_id": "torvalds_linux",
"before_commit": "e783362eb54cd99b2cac8b3a9aeac942e6f6ac07",
"after_commit": "549f8ffc7b2f7561bea7f90930b6c5104318e87b",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2021-47032 | csa159 | csa159/pair_162672 | CSA | c/c++ | torvalds_linux | pair_162672 | csa159/tasks/pair_162672 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c
index 1a7291caf099..b5a41cb7fbda 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c
@@ -1136,7 +1136,7 @@ void mt7915_txp_skb_unmap(struct mt76_d... | ### File: drivers/net/wireless/mediatek/mt76/mt7915/mac.c
```c
void mt7915_txp_skb_unmap(struct mt76_dev *dev,
struct mt76_txwi_cache *t)
{
struct mt7915_txp *txp;
int i;
txp = mt7915_txwi_to_txp(dev, t);
for (i = 1; i < txp->nbuf; i++)
dma_unmap_single(dev->dev, le32_to_cpu(txp->buf[i]),
le16_to_cpu(t... | ### File: drivers/net/wireless/mediatek/mt76/mt7915/mac.c
```c
void mt7915_txp_skb_unmap(struct mt76_dev *dev,
struct mt76_txwi_cache *t)
{
struct mt7915_txp *txp;
int i;
txp = mt7915_txwi_to_txp(dev, t);
for (i = 0; i < txp->nbuf; i++)
dma_unmap_single(dev->dev, le32_to_cpu(txp->buf[i]),
le16_to_cpu(t... | {
"project_id": "torvalds_linux",
"before_commit": "ebee7885bb12a8fe2c2f9bac87dbd87a05b645f9",
"after_commit": "7dcf3c04f0aca746517a77433b33d40868ca4749",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2024-36016 | csa159 | csa159/pair_162700 | CSA | c/c++ | torvalds_linux | pair_162700 | csa159/tasks/pair_162700 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c
index 4036566febcb..72b82bf1c280 100644
--- a/drivers/tty/n_gsm.c
+++ b/drivers/tty/n_gsm.c
@@ -2913,7 +2913,10 @@ static void gsm0_receive(struct gsm_mux *gsm, u8 c)
break;
case GSM_DATA: /* Data */
gsm->buf[gsm->count++] = c;
- if (gsm->count == gsm->le... | ### File: drivers/tty/n_gsm.c
```c
static void gsm0_receive(struct gsm_mux *gsm, u8 c)
{
unsigned int len;
switch (gsm->state) {
case GSM_SEARCH: /* SOF marker */
if (c == GSM0_SOF) {
gsm->state = GSM_ADDRESS;
gsm->address = 0;
gsm->len = 0;
gsm->fcs = INIT_FCS;
}
break;
case GSM_ADDRESS: /* Addr... | ### File: drivers/tty/n_gsm.c
```c
static void gsm0_receive(struct gsm_mux *gsm, u8 c)
{
unsigned int len;
switch (gsm->state) {
case GSM_SEARCH: /* SOF marker */
if (c == GSM0_SOF) {
gsm->state = GSM_ADDRESS;
gsm->address = 0;
gsm->len = 0;
gsm->fcs = INIT_FCS;
}
break;
case GSM_ADDRESS: /* Addr... | {
"project_id": "torvalds_linux",
"before_commit": "ed30a4a51bb196781c8058073ea720133a65596f",
"after_commit": "47388e807f85948eefc403a8a5fdc5b406a65d5a",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2024-39509 | csa159 | csa159/pair_163294 | CSA | c/c++ | torvalds_linux | pair_163294 | csa159/tasks/pair_163294 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index b1fa0378e8f4..74efda212c55 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -1448,7 +1448,6 @@ static void implement(const struct hid_device *hid, u8 *report,
hid_warn(hid,
"%s() called with too large value %d (n: %d)! (%s)\... | ### File: drivers/hid/hid-core.c
```c
static void implement(const struct hid_device *hid, u8 *report,
unsigned offset, unsigned n, u32 value)
{
if (unlikely(n > 32)) {
hid_warn(hid, "%s() called with n (%d) > 32! (%s)\n",
__func__, n, current->comm);
n = 32;
} else if (n < 32) {
u32 m = (1U << n) - ... | ### File: drivers/hid/hid-core.c
```c
static void implement(const struct hid_device *hid, u8 *report,
unsigned offset, unsigned n, u32 value)
{
if (unlikely(n > 32)) {
hid_warn(hid, "%s() called with n (%d) > 32! (%s)\n",
__func__, n, current->comm);
n = 32;
} else if (n < 32) {
u32 m = (1U << n) - ... | {
"project_id": "torvalds_linux",
"before_commit": "0a3f9f7fc59feb8a91a2793b8b60977895c72365",
"after_commit": "4aa2dcfbad538adf7becd0034a3754e1bd01b2b5",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2025-38150 | csa159 | csa159/pair_163698 | CSA | c/c++ | torvalds_linux | pair_163698 | csa159/tasks/pair_163698 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index d4dba06297c3..20be2c47cf41 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -3713,15 +3713,15 @@ static int packet_dev_mc(struct net_device *dev, struct packet_mclist *i,
}
static void packet_dev_mclist_delete(struct net_device *d... | ### File: net/packet/af_packet.c
```c
static int packet_dev_mc(struct net_device *dev, struct packet_mclist *i,
int what)
{
switch (i->type) {
case PACKET_MR_MULTICAST:
if (i->alen != dev->addr_len)
return -EINVAL;
if (what > 0)
return dev_mc_add(dev, i->addr);
else
return dev_mc_del(dev, i->addr);... | ### File: net/packet/af_packet.c
```c
static int packet_dev_mc(struct net_device *dev, struct packet_mclist *i,
int what)
{
switch (i->type) {
case PACKET_MR_MULTICAST:
if (i->alen != dev->addr_len)
return -EINVAL;
if (what > 0)
return dev_mc_add(dev, i->addr);
else
return dev_mc_del(dev, i->addr);... | {
"project_id": "torvalds_linux",
"before_commit": "32374234ab0101881e7d0c6a8ef7ebce566c46c9",
"after_commit": "d8d85ef0a631df9127f202e6371bb33a0b589952",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2024-36484 | csa159 | csa159/pair_163737 | CSA | c/c++ | torvalds_linux | pair_163737 | csa159/tasks/pair_163737 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index 44564d009e95..86cce7e9c2d1 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -758,7 +758,9 @@ void __inet_accept(struct socket *sock, struct socket *newsock, struct sock *new
sock_rps_record_flow(newsk);
WARN_ON(!((1 << newsk->sk_state) &
(TC... | ### File: net/ipv4/af_inet.c
```c
void __inet_accept(struct socket *sock, struct socket *newsock, struct sock *newsk)
{
sock_rps_record_flow(newsk);
WARN_ON(!((1 << newsk->sk_state) &
(TCPF_ESTABLISHED | TCPF_SYN_RECV |
TCPF_CLOSE_WAIT | TCPF_CLOSE)));
if (test_bit(SOCK_SUPPORT_ZC, &sock->flags))
set_bit(... | ### File: net/ipv4/af_inet.c
```c
void __inet_accept(struct socket *sock, struct socket *newsock, struct sock *newsk)
{
sock_rps_record_flow(newsk);
WARN_ON(!((1 << newsk->sk_state) &
(TCPF_ESTABLISHED | TCPF_SYN_RECV |
TCPF_FIN_WAIT1 | TCPF_FIN_WAIT2 |
TCPF_CLOSING | TCPF_CLOSE_WAIT |
TCPF_CLOSE))... | {
"project_id": "torvalds_linux",
"before_commit": "378979e94e953c2070acb4f0e0c98d29260bd09d",
"after_commit": "26afda78cda3da974fd4c287962c169e9462c495",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2023-39194 | csa159 | csa159/pair_163761 | CSA | c/c++ | torvalds_linux | pair_163761 | csa159/tasks/pair_163761 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c
index c34a2a06ca94..7c91deadc36e 100644
--- a/net/xfrm/xfrm_user.c
+++ b/net/xfrm/xfrm_user.c
@@ -1267,6 +1267,15 @@ static int xfrm_dump_sa(struct sk_buff *skb, struct netlink_callback *cb)
sizeof(*filter), GFP_KERNEL);
if (filter == NULL)
return... | ### File: net/xfrm/xfrm_user.c
```c
static int xfrm_dump_sa(struct sk_buff *skb, struct netlink_callback *cb)
{
struct net *net = sock_net(skb->sk);
struct xfrm_state_walk *walk = (struct xfrm_state_walk *) &cb->args[1];
struct xfrm_dump_info info;
BUILD_BUG_ON(sizeof(struct xfrm_state_walk) >
sizeof(cb->ar... | ### File: net/xfrm/xfrm_user.c
```c
static int xfrm_dump_sa(struct sk_buff *skb, struct netlink_callback *cb)
{
struct net *net = sock_net(skb->sk);
struct xfrm_state_walk *walk = (struct xfrm_state_walk *) &cb->args[1];
struct xfrm_dump_info info;
BUILD_BUG_ON(sizeof(struct xfrm_state_walk) >
sizeof(cb->ar... | {
"project_id": "torvalds_linux",
"before_commit": "3a8a670eeeaa40d87bd38a587438952741980c18",
"after_commit": "dfa73c17d55b921e1d4e154976de35317e43a93a",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2025-68337 | csa159 | csa159/pair_163824 | CSA | c/c++ | torvalds_linux | pair_163824 | csa159/tasks/pair_163824 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c
index 3a866fc87e7a..653ee540c4a1 100644
--- a/fs/jbd2/transaction.c
+++ b/fs/jbd2/transaction.c
@@ -1284,14 +1284,23 @@ int jbd2_journal_get_create_access(handle_t *handle, struct buffer_head *bh)
* committing transaction's lists, but it HAS to be in Forget ... | ### File: fs/jbd2/transaction.c
```c
int jbd2_journal_get_create_access(handle_t *handle, struct buffer_head *bh)
{
transaction_t *transaction = handle->h_transaction;
journal_t *journal;
struct journal_head *jh = jbd2_journal_add_journal_head(bh);
int err;
jbd2_debug(5, "journal_head %p\n", jh);
err = -EROFS;
... | ### File: fs/jbd2/transaction.c
```c
int jbd2_journal_get_create_access(handle_t *handle, struct buffer_head *bh)
{
transaction_t *transaction = handle->h_transaction;
journal_t *journal;
struct journal_head *jh = jbd2_journal_add_journal_head(bh);
int err;
jbd2_debug(5, "journal_head %p\n", jh);
err = -EROFS;
... | {
"project_id": "torvalds_linux",
"before_commit": "40a71b53d5a6d4ea17e4d54b99b2ac03a7f5e783",
"after_commit": "986835bf4d11032bba4ab8414d18fce038c61bb4",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2024-56584 | csa159 | csa159/pair_163861 | CSA | c/c++ | torvalds_linux | pair_163861 | csa159/tasks/pair_163861 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/io_uring/tctx.c b/io_uring/tctx.c
index 503f3ff8bc4f..adc6e42c14df 100644
--- a/io_uring/tctx.c
+++ b/io_uring/tctx.c
@@ -47,8 +47,19 @@ static struct io_wq *io_init_wq_offload(struct io_ring_ctx *ctx,
void __io_uring_free(struct task_struct *tsk)
{
struct io_uring_task *tctx = tsk->io_uring;
+ struct ... | ### File: io_uring/tctx.c
```c
static struct io_wq *io_init_wq_offload(struct io_ring_ctx *ctx,
struct task_struct *task)
{
struct io_wq_hash *hash;
struct io_wq_data data;
unsigned int concurrency;
mutex_lock(&ctx->uring_lock);
hash = ctx->hash_map;
if (!hash) {
hash = kzalloc(sizeof(*hash), GFP_KERNEL);... | ### File: io_uring/tctx.c
```c
static struct io_wq *io_init_wq_offload(struct io_ring_ctx *ctx,
struct task_struct *task)
{
struct io_wq_hash *hash;
struct io_wq_data data;
unsigned int concurrency;
mutex_lock(&ctx->uring_lock);
hash = ctx->hash_map;
if (!hash) {
hash = kzalloc(sizeof(*hash), GFP_KERNEL);... | {
"project_id": "torvalds_linux",
"before_commit": "43eef70e7e2ac74e7767731dd806720c7fb5e010",
"after_commit": "7eb75ce7527129d7f1fee6951566af409a37a1c4",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2023-45863 | csa159 | csa159/pair_163978 | CSA | c/c++ | torvalds_linux | pair_163978 | csa159/tasks/pair_163978 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/lib/kobject.c b/lib/kobject.c
index 985ee1c4f2c6..d20ce15eec2d 100644
--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -112,7 +112,7 @@ static int get_kobj_path_length(const struct kobject *kobj)
return length;
}
-static void fill_kobj_path(const struct kobject *kobj, char *path, int length)
+static int fil... | ### File: lib/kobject.c
```c
static int get_kobj_path_length(const struct kobject *kobj)
{
int length = 1;
const struct kobject *parent = kobj;
/* walk up the ancestors until we hit the one pointing to the
* root.
* Add 1 to strlen for leading '/' of each level.
*/
do {
if (kobject_name(parent) == NULL)
... | ### File: lib/kobject.c
```c
static int get_kobj_path_length(const struct kobject *kobj)
{
int length = 1;
const struct kobject *parent = kobj;
/* walk up the ancestors until we hit the one pointing to the
* root.
* Add 1 to strlen for leading '/' of each level.
*/
do {
if (kobject_name(parent) == NULL)
... | {
"project_id": "torvalds_linux",
"before_commit": "504fa212d7030fb1c042290dc2eb92b21515573a",
"after_commit": "3bb2a01caa813d3a1845d378bbe4169ef280d394",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2023-52435 | csa159 | csa159/pair_164140 | CSA | c/c++ | torvalds_linux | pair_164140 | csa159/tasks/pair_164140 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index b157efea5dea..83af8aaeb893 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -4522,8 +4522,9 @@ struct sk_buff *skb_segment(struct sk_buff *head_skb,
/* GSO partial only requires that we trim off any excess that
* doesn't fit into an MSS sized bloc... | ### File: net/core/skbuff.c
```c
struct sk_buff *skb_segment(struct sk_buff *head_skb,
netdev_features_t features)
{
struct sk_buff *segs = NULL;
struct sk_buff *tail = NULL;
struct sk_buff *list_skb = skb_shinfo(head_skb)->frag_list;
unsigned int mss = skb_shinfo(head_skb)->gso_size;
unsigned int doffset =... | ### File: net/core/skbuff.c
```c
struct sk_buff *skb_segment(struct sk_buff *head_skb,
netdev_features_t features)
{
struct sk_buff *segs = NULL;
struct sk_buff *tail = NULL;
struct sk_buff *list_skb = skb_shinfo(head_skb)->frag_list;
unsigned int mss = skb_shinfo(head_skb)->gso_size;
unsigned int doffset =... | {
"project_id": "torvalds_linux",
"before_commit": "60316d7f10b17a7ebb1ead0642fee8710e1560e0",
"after_commit": "23d05d563b7e7b0314e65c8e882bc27eac2da8e7",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2022-48893 | csa159 | csa159/pair_164624 | CSA | c/c++ | torvalds_linux | pair_164624 | csa159/tasks/pair_164624 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/gpu/drm/i915/gt/intel_engine_cs.c b/drivers/gpu/drm/i915/gt/intel_engine_cs.c
index 1f7188129cd1..2ddcad497fa3 100644
--- a/drivers/gpu/drm/i915/gt/intel_engine_cs.c
+++ b/drivers/gpu/drm/i915/gt/intel_engine_cs.c
@@ -1274,8 +1274,13 @@ int intel_engines_init(struct intel_gt *gt)
return err;
... | ### File: drivers/gpu/drm/i915/gt/intel_engine_cs.c
```c
int intel_engines_init(struct intel_gt *gt)
{
int (*setup)(struct intel_engine_cs *engine);
struct intel_engine_cs *engine;
enum intel_engine_id id;
int err;
if (intel_uc_uses_guc_submission(>->uc)) {
gt->submission_method = INTEL_SUBMISSION_GUC;
setu... | ### File: drivers/gpu/drm/i915/gt/intel_engine_cs.c
```c
int intel_engines_init(struct intel_gt *gt)
{
int (*setup)(struct intel_engine_cs *engine);
struct intel_engine_cs *engine;
enum intel_engine_id id;
int err;
if (intel_uc_uses_guc_submission(>->uc)) {
gt->submission_method = INTEL_SUBMISSION_GUC;
setu... | {
"project_id": "torvalds_linux",
"before_commit": "8adc718881e0a70127f8843dd70e69a80de39352",
"after_commit": "78a033433a5ae4fee85511ee075bc9a48312c79e",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2021-47109 | csa159 | csa159/pair_164920 | CSA | c/c++ | torvalds_linux | pair_164920 | csa159/tasks/pair_164920 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index 98f20efbfadf..bf774575ad71 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
@@ -238,6 +238,7 @@ static int neigh_forced_gc(struct neigh_table *tbl)
write_lock(&n->lock);
if ((n->nud_state == NUD_FAILED) ||
+ (n->nud_state == NUD_... | ### File: net/core/neighbour.c
```c
static int neigh_forced_gc(struct neigh_table *tbl)
{
int max_clean = atomic_read(&tbl->gc_entries) - tbl->gc_thresh2;
unsigned long tref = jiffies - 5 * HZ;
struct neighbour *n, *tmp;
int shrunk = 0;
NEIGH_CACHE_STAT_INC(tbl, forced_gc_runs);
write_lock_bh(&tbl->lock);
lis... | ### File: net/core/neighbour.c
```c
static int neigh_forced_gc(struct neigh_table *tbl)
{
int max_clean = atomic_read(&tbl->gc_entries) - tbl->gc_thresh2;
unsigned long tref = jiffies - 5 * HZ;
struct neighbour *n, *tmp;
int shrunk = 0;
NEIGH_CACHE_STAT_INC(tbl, forced_gc_runs);
write_lock_bh(&tbl->lock);
lis... | {
"project_id": "torvalds_linux",
"before_commit": "a47c397bb29fce1751dc755246a2c8deeca5e38f",
"after_commit": "7a6b1ab7475fd6478eeaf5c9d1163e7a18125c8f",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2023-52623 | csa159 | csa159/pair_164974 | CSA | c/c++ | torvalds_linux | pair_164974 | csa159/tasks/pair_164974 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/net/sunrpc/xprtmultipath.c b/net/sunrpc/xprtmultipath.c
index 701250b305db..0706575d9392 100644
--- a/net/sunrpc/xprtmultipath.c
+++ b/net/sunrpc/xprtmultipath.c
@@ -336,8 +336,9 @@ struct rpc_xprt *xprt_iter_current_entry_offline(struct rpc_xprt_iter *xpi)
xprt_switch_find_current_entry_offline);
}
... | ### File: net/sunrpc/xprtmultipath.c
```c
static
struct rpc_xprt *xprt_iter_current_entry_offline(struct rpc_xprt_iter *xpi)
{
return _xprt_iter_current_entry(xpi,
xprt_switch_find_first_entry_offline,
xprt_switch_find_current_entry_offline);
}
bool rpc_xprt_switch_has_addr(struct rpc_xprt_switch *xps,
... | ### File: net/sunrpc/xprtmultipath.c
```c
static
struct rpc_xprt *xprt_iter_current_entry_offline(struct rpc_xprt_iter *xpi)
{
return _xprt_iter_current_entry(xpi,
xprt_switch_find_first_entry_offline,
xprt_switch_find_current_entry_offline);
}
static
bool __rpc_xprt_switch_has_addr(struct rpc_xprt_switch *xps,... | {
"project_id": "torvalds_linux",
"before_commit": "a902f3dec70a46332a8c99604de384fbabd734e5",
"after_commit": "31b62908693c90d4d07db597e685d9f25a120073",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2022-28796 | csa159 | csa159/pair_165542 | CSA | c/c++ | torvalds_linux | pair_165542 | csa159/tasks/pair_165542 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c
index 8e2f8275a253..259e00046a8b 100644
--- a/fs/jbd2/transaction.c
+++ b/fs/jbd2/transaction.c
@@ -842,27 +842,38 @@ EXPORT_SYMBOL(jbd2_journal_restart);
*/
void jbd2_journal_wait_updates(journal_t *journal)
{
- transaction_t *commit_transaction = journal-... | ### File: fs/jbd2/transaction.c
```c
void jbd2_journal_wait_updates(journal_t *journal)
{
transaction_t *commit_transaction = journal->j_running_transaction;
if (!commit_transaction)
return;
spin_lock(&commit_transaction->t_handle_lock);
while (atomic_read(&commit_transaction->t_updates)) {
DEFINE_WAIT(wait);... | ### File: fs/jbd2/transaction.c
```c
void jbd2_journal_wait_updates(journal_t *journal)
{
DEFINE_WAIT(wait);
while (1) {
/*
* Note that the running transaction can get freed under us if
* this transaction is getting committed in
* jbd2_journal_commit_transaction() ->
* jbd2_journal_free_transaction(). ... | {
"project_id": "torvalds_linux",
"before_commit": "e3952fcce1aad934f1322843b564ff86256444b2",
"after_commit": "cc16eecae687912238ee6efbff71ad31e2bc414e",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2022-49580 | csa159 | csa159/pair_165655 | CSA | c/c++ | torvalds_linux | pair_165655 | csa159/tasks/pair_165655 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c
index d9fdcbae16ee..db7b2503f068 100644
--- a/net/ipv4/fib_semantics.c
+++ b/net/ipv4/fib_semantics.c
@@ -2216,7 +2216,7 @@ void fib_select_multipath(struct fib_result *res, int hash)
}
change_nexthops(fi) {
- if (net->ipv4.sysctl_fib_multipath_use... | ### File: net/ipv4/fib_semantics.c
```c
void fib_select_multipath(struct fib_result *res, int hash)
{
struct fib_info *fi = res->fi;
struct net *net = fi->fib_net;
bool first = false;
if (unlikely(res->fi->nh)) {
nexthop_path_fib_result(res, hash);
return;
}
change_nexthops(fi) {
if (net->ipv4.sysctl_fib_... | ### File: net/ipv4/fib_semantics.c
```c
void fib_select_multipath(struct fib_result *res, int hash)
{
struct fib_info *fi = res->fi;
struct net *net = fi->fib_net;
bool first = false;
if (unlikely(res->fi->nh)) {
nexthop_path_fib_result(res, hash);
return;
}
change_nexthops(fi) {
if (READ_ONCE(net->ipv4.s... | {
"project_id": "torvalds_linux",
"before_commit": "ef5621758a02fe8178de9d0df414ffb79463ff86",
"after_commit": "87507bcb4f5de16bb419e9509d874f4db6c0ad0f",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2023-45863 | csa159 | csa159/pair_165738 | CSA | c/c++ | torvalds_linux | pair_165738 | csa159/tasks/pair_165738 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/drivers/base/dd.c b/drivers/base/dd.c
index e9b2f9c25efe..69daf9d414eb 100644
--- a/drivers/base/dd.c
+++ b/drivers/base/dd.c
@@ -257,13 +257,11 @@ static int deferred_devs_show(struct seq_file *s, void *data)
DEFINE_SHOW_ATTRIBUTE(deferred_devs);
#ifdef CONFIG_MODULES
-int driver_deferred_probe_timeou... | ### File: drivers/base/dd.c
```c
static int deferred_devs_show(struct seq_file *s, void *data)
{
struct device_private *curr;
mutex_lock(&deferred_probe_mutex);
list_for_each_entry(curr, &deferred_probe_pending_list, deferred_probe)
seq_printf(s, "%s\t%s", dev_name(curr->device),
curr->device->p->deferred_... | ### File: drivers/base/dd.c
```c
static int deferred_devs_show(struct seq_file *s, void *data)
{
struct device_private *curr;
mutex_lock(&deferred_probe_mutex);
list_for_each_entry(curr, &deferred_probe_pending_list, deferred_probe)
seq_printf(s, "%s\t%s", dev_name(curr->device),
curr->device->p->deferred_... | {
"project_id": "torvalds_linux",
"before_commit": "f6837f34a34973ef6600c08195ed300e24e97317",
"after_commit": "504fa212d7030fb1c042290dc2eb92b21515573a",
"repo_path": "/workspace/repo/torvalds/linux",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/to... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2021-40572 | csa159 | csa159/pair_3538 | CSA | c/c++ | gpac_gpac | pair_3538 | csa159/tasks/pair_3538 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/src/media_tools/av_parsers.c b/src/media_tools/av_parsers.c
index 3ce9a9015..4ea0db8a9 100644
--- a/src/media_tools/av_parsers.c
+++ b/src/media_tools/av_parsers.c
@@ -3980,10 +3980,8 @@ void gf_av1_reset_state(AV1State *state, Bool is_destroy)
gf_list_del(l1);
gf_list_del(l2);
if (state->bs) {
- ... | ### File: src/media_tools/av_parsers.c
```c
GF_EXPORT
void gf_av1_reset_state(AV1State *state, Bool is_destroy)
{
GF_List *l1, *l2;
if (state->frame_state.header_obus) {
while (gf_list_count(state->frame_state.header_obus)) {
GF_AV1_OBUArrayEntry *a = (GF_AV1_OBUArrayEntry*)gf_list_pop_back(state->frame_state.h... | ### File: src/media_tools/av_parsers.c
```c
GF_EXPORT
void gf_av1_reset_state(AV1State *state, Bool is_destroy)
{
GF_List *l1, *l2;
if (state->frame_state.header_obus) {
while (gf_list_count(state->frame_state.header_obus)) {
GF_AV1_OBUArrayEntry *a = (GF_AV1_OBUArrayEntry*)gf_list_pop_back(state->frame_state.h... | {
"project_id": "gpac_gpac",
"before_commit": "5ce0c906ed8599d218036b18b78e8126a496f137",
"after_commit": "7bb1b4a4dd23c885f9db9f577dfe79ecc5433109",
"repo_path": "/workspace/repo/gpac/gpac",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/gpac_gpac/91... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2020-36138 | csa159 | csa159/pair_4701 | CSA | c/c++ | FFmpeg_FFmpeg | pair_4701 | csa159/tasks/pair_4701 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index fa1f44ce1d..f68f9818ad 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -1923,14 +1923,17 @@ again:
has_strip_bits = s->strippos || s->strips || s->stripoff || s->rps || s->sot || s->sstype || s->stripsize || s->stripsizesoff;
if (has_tile_bi... | ### File: libavcodec/tiff.c
```c
static int decode_frame(AVCodecContext *avctx,
void *data, int *got_frame, AVPacket *avpkt)
{
TiffContext *const s = avctx->priv_data;
AVFrame *const p = data;
ThreadFrame frame = { .f = data };
unsigned off, last_off;
int le, ret, plane, plan... | ### File: libavcodec/tiff.c
```c
static int decode_frame(AVCodecContext *avctx,
void *data, int *got_frame, AVPacket *avpkt)
{
TiffContext *const s = avctx->priv_data;
AVFrame *const p = data;
ThreadFrame frame = { .f = data };
unsigned off, last_off;
int le, ret, plane, plan... | {
"project_id": "FFmpeg_FFmpeg",
"before_commit": "654b21ef176a807bf4e8359a4ed52c629d766100",
"after_commit": "292e41ce650a7b5ca5de4ae87fff0d6a90d9fc97",
"repo_path": "/workspace/repo/FFmpeg/FFmpeg",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/FFmp... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2020-11096 | csa159 | csa159/pair_6060 | CSA | c/c++ | FreeRDP_FreeRDP | pair_6060 | csa159/tasks/pair_6060 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/libfreerdp/core/orders.c b/libfreerdp/core/orders.c
index 90d79f54d..744bf3cd6 100644
--- a/libfreerdp/core/orders.c
+++ b/libfreerdp/core/orders.c
@@ -113,20 +113,74 @@ BYTE get_primary_drawing_order_field_bytes(UINT32 orderType, BOOL* pValid)
}
}
-static const BYTE CBR2_BPP[] = { 0, 0, 0, 8, 16, 24,... | ### File: libfreerdp/core/orders.c
```c
BYTE get_primary_drawing_order_field_bytes(UINT32 orderType, BOOL* pValid)
{
if (pValid)
*pValid = TRUE;
switch (orderType)
{
case 0:
return DSTBLT_ORDER_FIELD_BYTES;
case 1:
return PATBLT_ORDER_FIELD_BYTES;
case 2:
return SCRBLT_ORDER_FIELD_BYTES;
case 3:
... | ### File: libfreerdp/core/orders.c
```c
BYTE get_primary_drawing_order_field_bytes(UINT32 orderType, BOOL* pValid)
{
if (pValid)
*pValid = TRUE;
switch (orderType)
{
case 0:
return DSTBLT_ORDER_FIELD_BYTES;
case 1:
return PATBLT_ORDER_FIELD_BYTES;
case 2:
return SCRBLT_ORDER_FIELD_BYTES;
case 3:
... | {
"project_id": "FreeRDP_FreeRDP",
"before_commit": "733ee3208306b1ea32697b356c0215180fc3f049",
"after_commit": "b8beb55913471952f92770c90c372139d78c16c0",
"repo_path": "/workspace/repo/FreeRDP/FreeRDP",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2018-8784 | csa159 | csa159/pair_6105 | CSA | c/c++ | FreeRDP_FreeRDP | pair_6105 | csa159/tasks/pair_6105 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/libfreerdp/codec/zgfx.c b/libfreerdp/codec/zgfx.c
index f94c41b20..551fffc83 100644
--- a/libfreerdp/codec/zgfx.c
+++ b/libfreerdp/codec/zgfx.c
@@ -137,6 +137,7 @@ static INLINE BOOL zgfx_GetBits(ZGFX_CONTEXT* _zgfx, UINT32 _nbits)
_zgfx->cBitsCurrent -= _nbits;
_zgfx->bits = _zgfx->BitsCurrent >> _zgf... | ### File: libfreerdp/codec/zgfx.c
```c
static INLINE BOOL zgfx_GetBits(ZGFX_CONTEXT* _zgfx, UINT32 _nbits)
{
if (!_zgfx)
return FALSE;
while (_zgfx->cBitsCurrent < _nbits)
{
_zgfx->BitsCurrent <<= 8;
if (_zgfx->pbInputCurrent < _zgfx->pbInputEnd)
_zgfx->BitsCurrent += *(_zgfx->pbInputCurrent)++;
_zgfx-... | ### File: libfreerdp/codec/zgfx.c
```c
static INLINE BOOL zgfx_GetBits(ZGFX_CONTEXT* _zgfx, UINT32 _nbits)
{
if (!_zgfx)
return FALSE;
while (_zgfx->cBitsCurrent < _nbits)
{
_zgfx->BitsCurrent <<= 8;
if (_zgfx->pbInputCurrent < _zgfx->pbInputEnd)
_zgfx->BitsCurrent += *(_zgfx->pbInputCurrent)++;
_zgfx-... | {
"project_id": "FreeRDP_FreeRDP",
"before_commit": "d1112c279bd1a327e8e4d0b5f371458bf2579659",
"after_commit": "17c363a5162fd4dc77b1df54e48d7bd9bf6b3be7",
"repo_path": "/workspace/repo/FreeRDP/FreeRDP",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2020-11038 | csa159 | csa159/pair_6132 | CSA | c/c++ | FreeRDP_FreeRDP | pair_6132 | csa159/tasks/pair_6132 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/channels/video/client/video_main.c b/channels/video/client/video_main.c
index a161a1143..1efadb399 100644
--- a/channels/video/client/video_main.c
+++ b/channels/video/client/video_main.c
@@ -220,8 +220,14 @@ error_frames:
static PresentationContext* PresentationContext_new(VideoClientContext* video, BYTE... | ### File: channels/video/client/video_main.c
```c
static VideoClientContextPriv* VideoClientContextPriv_new(VideoClientContext* video)
{
VideoClientContextPriv* ret = calloc(1, sizeof(*ret));
if (!ret)
return NULL;
ret->frames = Queue_New(TRUE, 10, 2);
if (!ret->frames)
{
WLog_ERR(TAG, "unable to allocate fra... | ### File: channels/video/client/video_main.c
```c
static VideoClientContextPriv* VideoClientContextPriv_new(VideoClientContext* video)
{
VideoClientContextPriv* ret = calloc(1, sizeof(*ret));
if (!ret)
return NULL;
ret->frames = Queue_New(TRUE, 10, 2);
if (!ret->frames)
{
WLog_ERR(TAG, "unable to allocate fra... | {
"project_id": "FreeRDP_FreeRDP",
"before_commit": "dffd893dc5874b63c99777d7df147e37c770fc92",
"after_commit": "06c32f170093a6ecde93e3bc07fed6a706bfbeb3",
"repo_path": "/workspace/repo/FreeRDP/FreeRDP",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipeline/snapshots/... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2016-5418 | csa159 | csa159/pair_7278 | CSA | c/c++ | libarchive_libarchive | pair_7278 | csa159/tasks/pair_7278 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/libarchive/archive_write_disk_posix.c b/libarchive/archive_write_disk_posix.c
index 8f0421e7..abe1a86d 100644
--- a/libarchive/archive_write_disk_posix.c
+++ b/libarchive/archive_write_disk_posix.c
@@ -326,12 +326,14 @@ struct archive_write_disk {
#define HFS_BLOCKS(s) ((s) >> 12)
+static int check_sy... | ### File: libarchive/archive_write_disk_posix.c
```c
static int
create_filesystem_object(struct archive_write_disk *a)
{
/* Create the entry. */
const char *linkname;
mode_t final_mode, mode;
int r;
/* We identify hard/symlinks according to the link names. */
/* Since link(2) and symlink(2) don't handle modes, w... | ### File: libarchive/archive_write_disk_posix.c
```c
static int
create_filesystem_object(struct archive_write_disk *a)
{
/* Create the entry. */
const char *linkname;
mode_t final_mode, mode;
int r;
/* these for check_symlinks_fsobj */
char *linkname_copy; /* non-const copy of linkname */
struct archive_string e... | {
"project_id": "libarchive_libarchive",
"before_commit": "50952acd22df3326c49771f5e5ba48630899468c",
"after_commit": "dfd6b54ce33960e420fb206d8872fb759b577ad9",
"repo_path": "/workspace/repo/libarchive/libarchive",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipelin... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
csa | CVE-2013-0211 | csa159 | csa159/pair_7287 | CSA | c/c++ | libarchive_libarchive | pair_7287 | csa159/tasks/pair_7287 | # Task: Synthesize a CSA Checker from a CVE Patch
## Your Role
You are a static analysis expert. Synthesize a Clang Static Analyzer (CSA) checker
that detects the bug pattern fixed by the CVE patch in this working directory.
You have full filesystem and bash access — use them.
### Skills
Many skills are available ... | diff --git a/libarchive/archive_write.c b/libarchive/archive_write.c
index eede5e05..be856215 100644
--- a/libarchive/archive_write.c
+++ b/libarchive/archive_write.c
@@ -673,8 +673,13 @@ static ssize_t
_archive_write_data(struct archive *_a, const void *buff, size_t s)
{
struct archive_write *a = (struct archive_w... | ### File: libarchive/archive_write.c
```c
static ssize_t
_archive_write_data(struct archive *_a, const void *buff, size_t s)
{
struct archive_write *a = (struct archive_write *)_a;
archive_check_magic(&a->archive, ARCHIVE_WRITE_MAGIC,
ARCHIVE_STATE_DATA, "archive_write_data");
archive_clear_error(&a->archive);
... | ### File: libarchive/archive_write.c
```c
static ssize_t
_archive_write_data(struct archive *_a, const void *buff, size_t s)
{
struct archive_write *a = (struct archive_write *)_a;
const size_t max_write = INT_MAX;
archive_check_magic(&a->archive, ARCHIVE_WRITE_MAGIC,
ARCHIVE_STATE_DATA, "archive_write_data");... | {
"project_id": "libarchive_libarchive",
"before_commit": "d767d7904781794442938df6b0dd29c8da325e03",
"after_commit": "22531545514043e04633e1c015c7540b9de9dbe4",
"repo_path": "/workspace/repo/libarchive/libarchive",
"llvm_build_dir": "/opt/llvm",
"before_compile_commands": "/workspace/benchmark/data-pipelin... | // ============================================================================
// CSA Checker Template
// ============================================================================
// Fill in the sections marked with TODO to implement your checker.
// The checker is compiled with -fno-rtti to match the LLVM 18 build... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.