ioctl callchain cut short
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 52/100
Research direction
Start by reproducing the two semcode queries for kvm_vcpu_ioctl and vfs_ioctl, using the call sites and function-pointer locations listed in the issue as the expected trace. Compare why caller discovery reaches vfs_ioctl indirectly while callee discovery reports no calls; done means the ioctl call chain can be followed in both directions consistently.
Written by the indexing model from the issue text.
Description
The ioctl call chain can be followed in only one direction, not in the other.
semcode> callers kvm_vcpu_ioctl
Finding all functions that call: kvm_vcpu_ioctl
=== Direct Callers ===
1 functions directly call 'kvm_vcpu_ioctl':
- kvm_vcpu_compat_ioctl
=== Indirect Callers ===
4 call sites can reach it through a function pointer:
- compat_ptr_ioctl at fs/ioctl.c:634 [member_arrow]
installed in file_operations::unlocked_ioctl at virt/kvm/kvm_main.c:4101 (receiver type matches) - ecryptfs_unlocked_ioctl at fs/ecryptfs/file.c:379 [member_arrow]
installed in file_operations::unlocked_ioctl at virt/kvm/kvm_main.c:4101 (receiver type matches) - v4l2_compat_ioctl32 at drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1197 [member_arrow]
installed in file_operations::unlocked_ioctl at virt/kvm/kvm_main.c:4101 (receiver type matches) - vfs_ioctl at fs/ioctl.c:51 [member_arrow]
installed in file_operations::unlocked_ioctl at virt/kvm/kvm_main.c:4101 (receiver type matches)
semcode> calls vfs_ioctl
Finding all functions called by: vfs_ioctl
Info: Function 'vfs_ioctl' doesn't call any other functions
- Dominant language
- Rust
- Stars
- 171
- Forks
- 40
- Avg merge
- 4h 24m
- Merged PRs (30d)
- 24
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from facebookexperimental/semcode
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
facebookexperimental/semcode#61 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
facebookexperimental/semcode#56 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
All issues in facebookexperimental/semcode
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100