Home
last modified time | relevance | path

Searched refs:unsafe (Results 1 – 25 of 64) sorted by relevance

123

/linux-6.15/mm/kasan/
H A Dkasan_test_c.c735 int *i_unsafe = unsafe; in kasan_atomics_helper()
742 KUNIT_EXPECT_KASAN_FAIL(test, atomic_read(unsafe)); in kasan_atomics_helper()
743 KUNIT_EXPECT_KASAN_FAIL(test, atomic_set(unsafe, 42)); in kasan_atomics_helper()
744 KUNIT_EXPECT_KASAN_FAIL(test, atomic_add(42, unsafe)); in kasan_atomics_helper()
745 KUNIT_EXPECT_KASAN_FAIL(test, atomic_sub(42, unsafe)); in kasan_atomics_helper()
746 KUNIT_EXPECT_KASAN_FAIL(test, atomic_inc(unsafe)); in kasan_atomics_helper()
747 KUNIT_EXPECT_KASAN_FAIL(test, atomic_dec(unsafe)); in kasan_atomics_helper()
748 KUNIT_EXPECT_KASAN_FAIL(test, atomic_and(42, unsafe)); in kasan_atomics_helper()
750 KUNIT_EXPECT_KASAN_FAIL(test, atomic_or(42, unsafe)); in kasan_atomics_helper()
751 KUNIT_EXPECT_KASAN_FAIL(test, atomic_xor(42, unsafe)); in kasan_atomics_helper()
[all …]
/linux-6.15/Documentation/translations/zh_CN/rust/
H A Dcoding-guidelines.rst80 一种特殊的注释是 ``// SAFETY:`` 注释。这些注释必须出现在每个 ``unsafe`` 块之前,它们
86 unsafe { *p = 0; }
121 /// assert_eq!(unsafe { x.unwrap_unchecked() }, "air");
123 pub unsafe fn unwrap_unchecked(self) -> T {
128 None => unsafe { hint::unreachable_unchecked() },
150 - 任何 ``unsafe`` 的代码块都必须在前面加上一个 ``// SAFETY:`` 的注释,描述里面
/linux-6.15/arch/x86/boot/
H A Dvideo-mode.c31 void probe_cards(int unsafe) in probe_cards() argument
36 if (probed[unsafe]) in probe_cards()
39 probed[unsafe] = 1; in probe_cards()
42 if (card->unsafe == unsafe) { in probe_cards()
H A Dvideo.h76 int unsafe; /* Probing is unsafe, only do after "scan" */ member
H A Dvideo-bios.c123 .unsafe = 1,
/linux-6.15/kernel/printk/
H A Dnbcon.c258 if (cur->unsafe) in nbcon_context_try_acquire_direct()
270 new.unsafe = cur->unsafe_takeover; in nbcon_context_try_acquire_direct()
361 WARN_ON_ONCE(cur->unsafe); in nbcon_context_try_acquire_requested()
366 new.unsafe = cur->unsafe_takeover; in nbcon_context_try_acquire_requested()
432 WARN_ON_ONCE(!cur->unsafe); in nbcon_context_try_acquire_handover()
543 WARN_ON_ONCE(cur->unsafe != true); in nbcon_context_try_acquire_hostile()
550 new.unsafe_takeover |= cur->unsafe; in nbcon_context_try_acquire_hostile()
671 new.unsafe |= cur.unsafe_takeover; in nbcon_context_release()
722 if (cur->unsafe) in nbcon_context_can_proceed()
819 if (!unsafe && cur.unsafe_takeover) in __nbcon_context_update_unsafe()
[all …]
/linux-6.15/drivers/ntb/test/
H A Dntb_pingpong.c91 static unsigned int unsafe; variable
92 module_param(unsafe, uint, 0644);
93 MODULE_PARM_DESC(unsafe, "Run even though ntb operations may be unsafe");
248 if (!unsafe) in pp_check_ntb()
254 if (!unsafe) in pp_check_ntb()
/linux-6.15/security/apparmor/
H A Ddomain.c817 bool *unsafe) in handle_onexec() argument
831 bprm, buffer, cond, unsafe)); in handle_onexec()
840 buffer, cond, unsafe)); in handle_onexec()
871 bool unsafe = false; in apparmor_bprm_creds_for_exec() local
893 if ((bprm->unsafe & LSM_UNSAFE_NO_NEW_PRIVS) && !unconfined(label) && in apparmor_bprm_creds_for_exec()
907 bprm, buffer, &cond, &unsafe); in apparmor_bprm_creds_for_exec()
912 &cond, &unsafe)); in apparmor_bprm_creds_for_exec()
931 if ((bprm->unsafe & LSM_UNSAFE_NO_NEW_PRIVS) && in apparmor_bprm_creds_for_exec()
939 if (bprm->unsafe & LSM_UNSAFE_SHARE) { in apparmor_bprm_creds_for_exec()
944 if (bprm->unsafe & (LSM_UNSAFE_PTRACE)) { in apparmor_bprm_creds_for_exec()
[all …]
/linux-6.15/tools/testing/selftests/
H A Dlib.mk132 …rsync -aq --copy-unsafe-links $(TEST_PROGS) $(TEST_PROGS_EXTENDED) $(TEST_FILES) $(TEST_GEN_MODS_D…
153 $(if $(INSTALL_LIST),rsync -a --copy-unsafe-links $(INSTALL_LIST) $(INSTALL_PATH)/)
158 …$(if $(INSTALL_LIST),rsync -a --copy-unsafe-links $(INSTALL_LIST)/*.ko $(INSTALL_PATH)/$(INSTALL_L…
/linux-6.15/Documentation/locking/
H A Dlockdep-design.rst118 is irq-unsafe means it was ever acquired with irq enabled.
120 A softirq-unsafe lock-class is automatically hardirq-unsafe as well. The
124 <hardirq-safe> or <hardirq-unsafe>
125 <softirq-safe> or <softirq-unsafe>
159 <hardirq-safe> -> <hardirq-unsafe>
160 <softirq-safe> -> <softirq-unsafe>
176 took any hardirq-unsafe lock in the past.
179 any softirq-unsafe lock in the past.
181 - if a new hardirq-unsafe lock is discovered, we check whether any
184 - if a new softirq-unsafe lock is discovered, we check whether any
[all …]
/linux-6.15/Documentation/gpu/nova/
H A Dguidelines.rst21 - Unless technically necessary, unsafe Rust code must be avoided. In case of
22 technical necessity, unsafe code should be isolated in a separate component
/linux-6.15/Documentation/rust/
H A Dgeneral-information.rst110 #. Any ``unsafe`` blocks respect the safety contract necessary to call the
111 operations inside the block. Similarly, any ``unsafe impl``\ s respect the
131 are located in ``rust/kernel/`` and their role is to encapsulate the unsafe
H A Dcoding-guidelines.rst89 before every ``unsafe`` block, and they explain why the code inside the block is
95 unsafe { *p = 0; }
134 /// assert_eq!(unsafe { x.unwrap_unchecked() }, "air");
136 pub unsafe fn unwrap_unchecked(self) -> T {
141 None => unsafe { hint::unreachable_unchecked() },
167 - Any ``unsafe`` block must be preceded by a ``// SAFETY:`` comment
/linux-6.15/drivers/accel/ivpu/
H A DKconfig27 - Enable unsafe module params.
/linux-6.15/tools/lib/perf/Documentation/
H A DMakefile38 ASCIIDOC_EXTRA = --unsafe -f asciidoc.conf
/linux-6.15/include/linux/
H A Dbinfmts.h57 int unsafe; /* how unsafe this exec is (mask of LSM_UNSAFE_*) */ member
H A Dconsole.h225 unsigned int unsafe : 1; member
/linux-6.15/rust/pin-init/
H A DREADME.md53 - using the unsafe function [`pin_init_from_closure()`] to manually create an initializer.
131 [`pin_init_from_closure()`] comes in. This `unsafe` function allows you to create a
181 unsafe {
209 unsafe { bindings::destroy_foo(self.foo.get().cast::<bindings::foo>()) };
/linux-6.15/drivers/memstick/core/
H A DKconfig9 bool "Allow unsafe resume (DANGEROUS)"
/linux-6.15/Documentation/devicetree/bindings/cpufreq/
H A Dcpufreq-st.txt40 Example [unsafe]
/linux-6.15/lib/
H A DKconfig.kgdb28 bool "KGDB: use kprobe blocklist to prohibit unsafe breakpoints"
35 identify symbols where it is unsafe to set breakpoints.
H A DKconfig.kasan152 bool "Stack instrumentation (unsafe)" if CC_IS_CLANG && !COMPILE_TEST
162 with Clang, this option is deemed unsafe.
/linux-6.15/tools/testing/selftests/coredump/
H A DREADME.rst20 While a thread is active, the stack pointer is unsafe to read and therefore the `kstkesp` field
/linux-6.15/scripts/
H A DMakefile.extrawarn51 KBUILD_CFLAGS += $(call cc-disable-warning, default-const-init-unsafe)
/linux-6.15/arch/arm64/boot/dts/allwinner/
H A Dsun50i-h6-orangepi.dtsi258 * Using it as anything but a USB host is unsafe.

123