Home
last modified time | relevance | path

Searched refs:leak (Results 1 - 15 of 15) sorted by relevance

/kernel/linux/linux-5.10/samples/livepatch/
H A Dlivepatch-shadow-fix1.c12 * Fixes the memory leak introduced in livepatch-shadow-mod through the
56 int **leak = ctor_data; in shadow_leak_ctor() local
61 *shadow_leak = *leak; in shadow_leak_ctor()
68 int *leak; in livepatch_fix1_dummy_alloc() local
83 leak = kzalloc(sizeof(*leak), GFP_KERNEL); in livepatch_fix1_dummy_alloc()
84 if (!leak) in livepatch_fix1_dummy_alloc()
87 shadow_leak = klp_shadow_alloc(d, SV_LEAK, sizeof(leak), GFP_KERNEL, in livepatch_fix1_dummy_alloc()
88 shadow_leak_ctor, &leak); in livepatch_fix1_dummy_alloc()
90 pr_err("%s: failed to allocate shadow variable for the leaking pointer: dummy @ %p, leak in livepatch_fix1_dummy_alloc()
[all...]
H A Dlivepatch-shadow-mod.c13 * introduces memory leak behavior that livepatch modules
18 * memory leak, please load these modules at your own risk -- some
98 int *leak; in dummy_alloc() local
107 /* Oops, forgot to save leak! */ in dummy_alloc()
108 leak = kzalloc(sizeof(*leak), GFP_KERNEL); in dummy_alloc()
109 if (!leak) { in dummy_alloc()
136 * memory, aptly named "leak", but doesn't keep
161 * "leak", it leaks the additional memory that
/kernel/linux/linux-6.6/samples/livepatch/
H A Dlivepatch-shadow-fix1.c12 * Fixes the memory leak introduced in livepatch-shadow-mod through the
56 int **leak = ctor_data; in shadow_leak_ctor() local
61 *shadow_leak = *leak; in shadow_leak_ctor()
68 int *leak; in livepatch_fix1_dummy_alloc() local
83 leak = kzalloc(sizeof(*leak), GFP_KERNEL); in livepatch_fix1_dummy_alloc()
84 if (!leak) in livepatch_fix1_dummy_alloc()
87 shadow_leak = klp_shadow_alloc(d, SV_LEAK, sizeof(leak), GFP_KERNEL, in livepatch_fix1_dummy_alloc()
88 shadow_leak_ctor, &leak); in livepatch_fix1_dummy_alloc()
90 pr_err("%s: failed to allocate shadow variable for the leaking pointer: dummy @ %p, leak in livepatch_fix1_dummy_alloc()
[all...]
H A Dlivepatch-shadow-mod.c13 * introduces memory leak behavior that livepatch modules
18 * memory leak, please load these modules at your own risk -- some
98 int *leak; in dummy_alloc() local
107 /* Oops, forgot to save leak! */ in dummy_alloc()
108 leak = kzalloc(sizeof(*leak), GFP_KERNEL); in dummy_alloc()
109 if (!leak) { in dummy_alloc()
136 * memory, aptly named "leak", but doesn't keep
161 * "leak", it leaks the additional memory that
/kernel/linux/linux-6.6/lib/
H A Dref_tracker.c161 bool leak = false; in ref_tracker_dir_exit() local
172 leak = true; in ref_tracker_dir_exit()
179 WARN_ON_ONCE(leak); in ref_tracker_dir_exit()
/kernel/linux/linux-6.6/tools/net/ynl/samples/
H A DMakefile9 CFLAGS += -g -fsanitize=address -fsanitize=leak -static-libasan
/kernel/linux/linux-6.6/tools/net/ynl/lib/
H A DMakefile6 CFLAGS += -g -fsanitize=address -fsanitize=leak -static-libasan
/kernel/linux/linux-6.6/tools/net/ynl/generated/
H A DMakefile7 CFLAGS += -g -fsanitize=address -fsanitize=leak -static-libasan
/kernel/linux/linux-5.10/net/rxrpc/
H A Dconn_object.c462 bool leak = false; in rxrpc_destroy_all_connections() local
477 leak = true; in rxrpc_destroy_all_connections()
480 BUG_ON(leak); in rxrpc_destroy_all_connections()
/kernel/linux/linux-6.6/net/rxrpc/
H A Dconn_object.c463 bool leak = false; in rxrpc_destroy_all_connections() local
477 leak = true; in rxrpc_destroy_all_connections()
480 BUG_ON(leak); in rxrpc_destroy_all_connections()
/kernel/linux/linux-6.6/rust/kernel/sync/
H A Darc.rs177 Ok(unsafe { Self::from_inner(Box::leak(inner).into()) }) in try_new()
304 // SAFETY: The pointer was initialised from the result of `Box::leak`. in drop()
537 inner: unsafe { Arc::from_inner(Box::leak(inner).into()) }, in try_new_uninit()
/kernel/linux/linux-5.10/drivers/infiniband/core/
H A Dcache.c797 bool leak = false; in release_gid_table() local
808 "GID entry ref leak for index %d ref=%d\n", i, in release_gid_table()
810 leak = true; in release_gid_table()
813 if (leak) in release_gid_table()
/kernel/linux/linux-6.6/drivers/infiniband/core/
H A Dcache.c797 bool leak = false; in release_gid_table() local
808 "GID entry ref leak for index %d ref=%u\n", i, in release_gid_table()
810 leak = true; in release_gid_table()
813 if (leak) in release_gid_table()
/kernel/linux/linux-6.6/rust/alloc/
H A Dboxed.rs1115 reason = "use `Box::leak(b).into()` or `Unique::from(Box::leak(b))` instead"
1123 // so all raw pointer methods have to go through `Box::leak`. Turning *that* to a raw pointer in into_unique()
1126 (Unique::from(Box::leak(b)), alloc) in into_unique()
1148 /// leak. If this is not acceptable, the reference should first be wrapped
1154 /// to call it as `Box::leak(b)` instead of `b.leak()`. This
1163 /// let static_ref: &'static mut usize = Box::leak(x);
1172 /// let static_ref = Box::leak(x);
1178 pub fn leak<' functions
[all...]
/kernel/linux/linux-6.6/rust/alloc/vec/
H A Dmod.rs1462 /// While the following example is sound, there is a memory leak since
1478 /// the contents and thus not leak memory.
2330 /// leak.
2338 /// let static_ref: &'static mut [usize] = x.leak();
2344 pub fn leak<'a>(self) -> &'a mut [T] in leak() functions
3249 // Guard against us getting leaked (leak amplification) in extract_if()

Completed in 15 milliseconds