mbox series

[v4,0/2] Reproducer for the landlock houdini bug

Message ID 20240822-landlock_houdini-v4-0-9ca736afae30@suse.com
Headers show
Series Reproducer for the landlock houdini bug | expand

Message

Andrea Cervesato Aug. 22, 2024, 10:17 a.m. UTC
More information at:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-42318

Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
Changes in v4:
- fix compilation errors
- Link to v3: https://patchwork.ozlabs.org/project/ltp/list/?series=420318

Changes in v3:
- verify return value of keyctl() according with manual
- Link to v2: https://lore.kernel.org/r/20240821-landlock_houdini-v2-0-b46211ca64f9@suse.com

Changes in v2:
- add SAFE_KEYCTL macro
- verify in setup that landlock is activated
- Link to v1: https://lore.kernel.org/r/20240820-landlock_houdini-v1-1-ff3bffc93eaa@suse.com

Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>

---
Andrea Cervesato (2):
      Add SAFE_KEYCTL macro
      Add landlock07 test

 include/lapi/keyctl.h                           |  73 ++++++++++++++++
 runtest/syscalls                                |   1 +
 testcases/kernel/syscalls/landlock/.gitignore   |   1 +
 testcases/kernel/syscalls/landlock/Makefile     |   3 +
 testcases/kernel/syscalls/landlock/landlock07.c | 108 ++++++++++++++++++++++++
 5 files changed, 186 insertions(+)
---
base-commit: 3e8fd5de333bb437b35a00d7557bbf367f5da344
change-id: 20240822-landlock_houdini-7df576807e3f

Best regards,

Comments

Andrea Cervesato Aug. 22, 2024, 10:26 a.m. UTC | #1
This version fixes the compile errors, so I will submit it:

https://github.com/acerv/ltp/actions/runs/10506068964


Andrea

On 8/22/24 12:17, Andrea Cervesato wrote:
> More information at:
> https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-42318
>
> Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
> ---
> Changes in v4:
> - fix compilation errors
> - Link to v3: https://patchwork.ozlabs.org/project/ltp/list/?series=420318
>
> Changes in v3:
> - verify return value of keyctl() according with manual
> - Link to v2: https://lore.kernel.org/r/20240821-landlock_houdini-v2-0-b46211ca64f9@suse.com
>
> Changes in v2:
> - add SAFE_KEYCTL macro
> - verify in setup that landlock is activated
> - Link to v1: https://lore.kernel.org/r/20240820-landlock_houdini-v1-1-ff3bffc93eaa@suse.com
>
> Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
>
> ---
> Andrea Cervesato (2):
>        Add SAFE_KEYCTL macro
>        Add landlock07 test
>
>   include/lapi/keyctl.h                           |  73 ++++++++++++++++
>   runtest/syscalls                                |   1 +
>   testcases/kernel/syscalls/landlock/.gitignore   |   1 +
>   testcases/kernel/syscalls/landlock/Makefile     |   3 +
>   testcases/kernel/syscalls/landlock/landlock07.c | 108 ++++++++++++++++++++++++
>   5 files changed, 186 insertions(+)
> ---
> base-commit: 3e8fd5de333bb437b35a00d7557bbf367f5da344
> change-id: 20240822-landlock_houdini-7df576807e3f
>
> Best regards,