Commit 822a210
committed
fix(cws): collect mount fields from
### What does this PR do?
Collects the fields of a mount syscall event from `make_visible` instead of `attach_recursive_mnt`.
### Motivation
Kernel 6.18 changed how `attach_recursive_mnt` receives its destination, and compilers usually emit it as an ISRA optimized function, so the hook either reads the wrong arguments or is not called at all. It is the only hook covering plain mounts, so CWS stops reporting them entirely: no mount event, no mount resolution, and paths on those mounts can no longer be resolved from events.
`make_visible` is reached on the same code path, takes a single argument and exposes the parent mount and the mountpoint through the new mount itself. It exists since 6.17, which covers every kernel affected by the change, and older kernels keep using the existing hook.
### Describe how you validated your changes
Existing functional tests (TestMount* and TestUmount tests) running on Ubuntu 26.04 that this PR fixes.
### Additional Notes
Co-authored-by: yoann.ghigoff <yoann.ghigoff@datadoghq.com> eb0f7c4make_visible to support kernels >= 6.18 (#54708)1 parent 0d10818 commit 822a210
64 files changed
Lines changed: 416 additions & 416 deletions
File tree
- agent-schema
- cli
- examples
- faq
- keywords
- architecture/dogstatsd/internals
- components
- common-patterns
- creating-bundles
- creating-components
- faq
- fx
- jmxfetch
- migration
- overview
- testing
- using-components
- guidelines
- contributing
- conventions/logging
- deprecated-components-documentation
- defining-apps
- defining-bundles
- purpose
- registrations
- subscriptions
- using-components
- docs
- languages
- RUST
- go
- testing/test-categories
- hostname/hostname_force_config_as_canonical
- how-to
- build
- distributions
- standalone
- debug-agents
- linux
- windows
- go/modules
- memory-profiling
- c++
- go
- python
- test
- e2e
- manual-qa
- aws-docker
- aws-ecs
- aws-eks
- aws-kind
- aws-vm
- azure-vm
- gcp-vm
- static-analysis
- unit
- reference
- builds/components
- images
- builders
- dev
- setup
- manual
- optional
- required
- tutorials/dev
- env
- lab
- kind
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4018 | 4018 | | |
4019 | 4019 | | |
4020 | 4020 | | |
4021 | | - | |
| 4021 | + | |
4022 | 4022 | | |
4023 | 4023 | | |
4024 | 4024 | | |
| |||
4027 | 4027 | | |
4028 | 4028 | | |
4029 | 4029 | | |
4030 | | - | |
| 4030 | + | |
4031 | 4031 | | |
4032 | 4032 | | |
4033 | 4033 | | |
| |||
4043 | 4043 | | |
4044 | 4044 | | |
4045 | 4045 | | |
4046 | | - | |
| 4046 | + | |
4047 | 4047 | | |
4048 | 4048 | | |
4049 | 4049 | | |
| |||
4073 | 4073 | | |
4074 | 4074 | | |
4075 | 4075 | | |
4076 | | - | |
| 4076 | + | |
4077 | 4077 | | |
4078 | 4078 | | |
4079 | 4079 | | |
| |||
4103 | 4103 | | |
4104 | 4104 | | |
4105 | 4105 | | |
4106 | | - | |
| 4106 | + | |
4107 | 4107 | | |
4108 | 4108 | | |
4109 | 4109 | | |
| |||
4147 | 4147 | | |
4148 | 4148 | | |
4149 | 4149 | | |
4150 | | - | |
| 4150 | + | |
4151 | 4151 | | |
4152 | 4152 | | |
4153 | 4153 | | |
| |||
4183 | 4183 | | |
4184 | 4184 | | |
4185 | 4185 | | |
4186 | | - | |
| 4186 | + | |
4187 | 4187 | | |
4188 | 4188 | | |
4189 | 4189 | | |
| |||
4211 | 4211 | | |
4212 | 4212 | | |
4213 | 4213 | | |
4214 | | - | |
| 4214 | + | |
4215 | 4215 | | |
4216 | 4216 | | |
4217 | 4217 | | |
| |||
4225 | 4225 | | |
4226 | 4226 | | |
4227 | 4227 | | |
4228 | | - | |
| 4228 | + | |
4229 | 4229 | | |
4230 | 4230 | | |
4231 | 4231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3908 | 3908 | | |
3909 | 3909 | | |
3910 | 3910 | | |
3911 | | - | |
| 3911 | + | |
3912 | 3912 | | |
3913 | 3913 | | |
3914 | 3914 | | |
3915 | 3915 | | |
3916 | | - | |
| 3916 | + | |
3917 | 3917 | | |
3918 | 3918 | | |
3919 | 3919 | | |
| |||
3945 | 3945 | | |
3946 | 3946 | | |
3947 | 3947 | | |
3948 | | - | |
| 3948 | + | |
3949 | 3949 | | |
3950 | 3950 | | |
3951 | 3951 | | |
| |||
4009 | 4009 | | |
4010 | 4010 | | |
4011 | 4011 | | |
4012 | | - | |
| 4012 | + | |
4013 | 4013 | | |
4014 | 4014 | | |
4015 | 4015 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3974 | 3974 | | |
3975 | 3975 | | |
3976 | 3976 | | |
3977 | | - | |
| 3977 | + | |
3978 | 3978 | | |
3979 | | - | |
| 3979 | + | |
3980 | 3980 | | |
3981 | 3981 | | |
3982 | 3982 | | |
| |||
4019 | 4019 | | |
4020 | 4020 | | |
4021 | 4021 | | |
4022 | | - | |
| 4022 | + | |
4023 | 4023 | | |
4024 | 4024 | | |
4025 | 4025 | | |
4026 | 4026 | | |
4027 | | - | |
| 4027 | + | |
4028 | 4028 | | |
4029 | 4029 | | |
4030 | 4030 | | |
| |||
4057 | 4057 | | |
4058 | 4058 | | |
4059 | 4059 | | |
4060 | | - | |
| 4060 | + | |
4061 | 4061 | | |
4062 | 4062 | | |
4063 | 4063 | | |
| |||
4082 | 4082 | | |
4083 | 4083 | | |
4084 | 4084 | | |
4085 | | - | |
| 4085 | + | |
4086 | 4086 | | |
4087 | 4087 | | |
4088 | 4088 | | |
4089 | 4089 | | |
4090 | 4090 | | |
4091 | | - | |
| 4091 | + | |
4092 | 4092 | | |
4093 | 4093 | | |
4094 | 4094 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3870 | 3870 | | |
3871 | 3871 | | |
3872 | 3872 | | |
3873 | | - | |
| 3873 | + | |
3874 | 3874 | | |
3875 | 3875 | | |
3876 | 3876 | | |
3877 | 3877 | | |
3878 | | - | |
| 3878 | + | |
3879 | 3879 | | |
3880 | 3880 | | |
3881 | 3881 | | |
3882 | 3882 | | |
3883 | 3883 | | |
3884 | 3884 | | |
3885 | | - | |
| 3885 | + | |
3886 | 3886 | | |
3887 | 3887 | | |
3888 | 3888 | | |
| |||
3896 | 3896 | | |
3897 | 3897 | | |
3898 | 3898 | | |
3899 | | - | |
| 3899 | + | |
3900 | 3900 | | |
3901 | 3901 | | |
3902 | 3902 | | |
3903 | 3903 | | |
3904 | 3904 | | |
3905 | 3905 | | |
3906 | 3906 | | |
3907 | | - | |
| 3907 | + | |
3908 | 3908 | | |
3909 | 3909 | | |
3910 | 3910 | | |
| |||
3917 | 3917 | | |
3918 | 3918 | | |
3919 | 3919 | | |
3920 | | - | |
| 3920 | + | |
3921 | 3921 | | |
3922 | 3922 | | |
3923 | 3923 | | |
| |||
3938 | 3938 | | |
3939 | 3939 | | |
3940 | 3940 | | |
3941 | | - | |
| 3941 | + | |
3942 | 3942 | | |
3943 | 3943 | | |
3944 | 3944 | | |
3945 | 3945 | | |
3946 | | - | |
| 3946 | + | |
3947 | 3947 | | |
3948 | 3948 | | |
3949 | 3949 | | |
| |||
0 commit comments