Re: [PATCH] pstore: replace spinlock_t by raw_spinlock_t

2024-08-26 Thread Kees Cook
On Mon, 19 Aug 2024 22:59:45 +0800, Wen Yang wrote: > pstore_dump() is called when both preemption and local IRQ are disabled, > and a spinlock is obtained, which is problematic for the RT kernel because > in this configuration, spinlocks are sleep locks. > > Replace the spinlock_t with raw_spinlo

Re: [PATCH] pstore: replace spinlock_t by raw_spinlock_t

2024-08-26 Thread Kees Cook
On Sat, Aug 24, 2024 at 03:25:04PM +0800, Wen Yang wrote: > > > On 2024/8/20 01:45, Greg KH wrote: > > On Mon, Aug 19, 2024 at 10:59:45PM +0800, Wen Yang wrote: > > > pstore_dump() is called when both preemption and local IRQ are disabled, > > > and a spinlock is obtained, which is problematic fo

Re: [PATCH] pstore: replace spinlock_t by raw_spinlock_t

2024-08-24 Thread Wen Yang
On 2024/8/20 01:45, Greg KH wrote: On Mon, Aug 19, 2024 at 10:59:45PM +0800, Wen Yang wrote: pstore_dump() is called when both preemption and local IRQ are disabled, and a spinlock is obtained, which is problematic for the RT kernel because in this configuration, spinlocks are sleep locks. R

Re: [PATCH] pstore: replace spinlock_t by raw_spinlock_t

2024-08-19 Thread Greg KH
On Mon, Aug 19, 2024 at 10:59:45PM +0800, Wen Yang wrote: > pstore_dump() is called when both preemption and local IRQ are disabled, > and a spinlock is obtained, which is problematic for the RT kernel because > in this configuration, spinlocks are sleep locks. > > Replace the spinlock_t with raw_