RCU and function pointers
RCU and function pointers
Posted Jun 11, 2025 22:30 UTC (Wed) by neilbrown (subscriber, #359)Parent article: Finding locking bugs with Smatch
A question for Dan, who I'm sure is following...
Does your current code track RCU read locking as well as the more normal locks? And does it follow flow across function pointers in operations structs?
So could you, for example, query the database to see what inode_operations are called without rcu_read_lock held, and then which implementations of those functions use rcu_dereference as though the lock were held?
Does your current code track RCU read locking as well as the more normal locks? And does it follow flow across function pointers in operations structs?
So could you, for example, query the database to see what inode_operations are called without rcu_read_lock held, and then which implementations of those functions use rcu_dereference as though the lock were held?