[PATCH v7] rust: support for shadow call stack sanitizer

Conor Dooley conor at kernel.org
Sat Sep 14 15:15:27 PDT 2024


On Sat, Sep 14, 2024 at 05:46:14PM +0100, Conor Dooley wrote:
> On Sat, Sep 14, 2024 at 05:30:37PM +0100, Gary Guo wrote:
> > On Fri, 13 Sep 2024 22:17:56 +0100
> > Conor Dooley <conor at kernel.org> wrote:
> 
> > > error[E0425]: cannot find function `__mutex_init` in crate `bindings`
> > > --> /stuff/linux/rust/kernel/sync/lock/mutex.rs:104:28  
> > > |
> > > 104   |           unsafe { bindings::__mutex_init(ptr, name, key) }
> > > |                              ^^^^^^^^^^^^ help: a function with a similar name exists: `__mutex_rt_init`
> > > |
> > > ::: /stuff/brsdk/work/linux/rust/bindings/bindings_generated.rs:12907:5
> > > |
> > > 12907 | /     pub fn __mutex_rt_init(
> > > 12908 | |         lock: *mut mutex,
> > > 12909 | |         name: *const core::ffi::c_char,
> > > 12910 | |         key: *mut lock_class_key,
> > > 12911 | |     );
> > > | |_____- similarly named function `__mutex_rt_init` defined here
> > > 
> > > error: aborting due to 1 previous error
> > > 
> > 
> > Do you have PREEMPT_RT enabled?
> 
> I do indeed.


Turned it off, only to find out my board farm is non-functional! Looks
fine in QEMU however :)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20240914/065db49e/attachment.sig>


More information about the linux-riscv mailing list