Bug 217476

Summary: Reconsider pthread_kill() use
Product: Tools Reporter: Andrew G. Morgan (morgan)
Component: libcapAssignee: Andrew G. Morgan (morgan)
Status: NEW ---    
Severity: normal CC: bagasdotme
Priority: P3    
Hardware: All   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:

Description Andrew G. Morgan 2023-05-24 03:41:38 UTC
The audit performed on libcap

https://drive.google.com/file/d/1lsuC_tQbQ5pCE2Sy_skw0a7hTzQyQh2C/view


Identified an issue (see LCAP-CR-23-102) regarding the use of [lib]psx:pthread_kill() and the potential for segfaulting. I didn't view this as a blocking issue for releasing libcap-2.69 so I'm filing this bug to investigate it.

I need to understand how to reproduce the stated failure mode and then I can investigate a modified implementation.
Comment 1 Bagas Sanjaya 2023-05-24 11:26:36 UTC
(In reply to Andrew G. Morgan from comment #0)
> The audit performed on libcap
> 
> https://drive.google.com/file/d/1lsuC_tQbQ5pCE2Sy_skw0a7hTzQyQh2C/view
> 
> 
> Identified an issue (see LCAP-CR-23-102) regarding the use of
> [lib]psx:pthread_kill() and the potential for segfaulting. I didn't view
> this as a blocking issue for releasing libcap-2.69 so I'm filing this bug to
> investigate it.
> 
> I need to understand how to reproduce the stated failure mode and then I can
> investigate a modified implementation.

Seems like not Linux kernel issue, but rather libcap one. Please report to support channels for libcap[2].
Comment 2 Bagas Sanjaya 2023-05-24 11:29:00 UTC
(In reply to Bagas Sanjaya from comment #1)
> (In reply to Andrew G. Morgan from comment #0)
> > The audit performed on libcap
> > 
> > https://drive.google.com/file/d/1lsuC_tQbQ5pCE2Sy_skw0a7hTzQyQh2C/view
> > 
> > 
> > Identified an issue (see LCAP-CR-23-102) regarding the use of
> > [lib]psx:pthread_kill() and the potential for segfaulting. I didn't view
> > this as a blocking issue for releasing libcap-2.69 so I'm filing this bug
> to
> > investigate it.
> > 
> > I need to understand how to reproduce the stated failure mode and then I
> can
> > investigate a modified implementation.
> 
> Seems like not Linux kernel issue, but rather libcap one. Please report to
> support channels for libcap[2].

Oops, what I mean was "What have Linux kernel to do with this userspace library issue?".
Comment 3 Andrew G. Morgan 2023-05-24 12:05:11 UTC
Nothing. This bug component is for libcap