You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bindings_generated.rs does not implement init_completion but only
provide Default trait with writing 0.
So I adds init_swait_queue_head implementation for myself.
Now it generated dead-lock as below.
1. read locks inner to get the mutable reference to completion
2. write also should locks the inner to get the mutable reference to
completion as well
3. dead-lock
I MUST find out how to get the mutable reference to a object
which is inside of an object wrapped by ArcBorrow.
/ # insmod share/rust_ldd06.ko
[ 466.173709] rust_ldd06: module verification failed: signature and/or required key missing - tainting kernel
[ 466.176106] rust_completion: rust_ldd06 is loaded
[ 466.177064] rust_completion: completion_dev created
/ # mknod /dev/rust_ldd06 c 10 124
/ # cat /dev/rust_ldd06 &
/ # [ 489.911819] rust_completion: open is invoked
[ 489.913171] rust_completion: read is invoked
[ 489.913932] rust_completion: read:dummy=1
/ # echo "asdf" > /dev/rust_ldd06
[ 500.059213] rust_completion: open is invoked
[ 500.060580] rust_completion: write is invoked
Signed-off-by: Gioh Kim <gurugio@gmail.com>
0 commit comments