Commit Graph
9 Commits
Author SHA1 Message Date
Adin ScannellandgVisor bot 2911d8c3b8 Add default_applicable_licenses rules to packages.
PiperOrigin-RevId: 513581243
2023-03-02 10:50:04 -08:00
Andrei VaginandgVisor bot 0fabd74e57 lockdep: fix the TOCTTOU issue
The problem is that it checkes circular dependencies and one then adds the
target lock to the graph.

Reported-by: [email protected]
PiperOrigin-RevId: 512637945
2023-02-27 08:49:01 -08:00
Etienne PerotandgVisor bot 5f9231cd71 Lockdep: Print more info in the "unbalanced unlock" case.
This CL does the following:

- Add the ability for nested locks to have names.
- Give names to all current uses of nested locks in the codebase.
- Truncate `lockdep` debug stack traces to avoid the clutter from the
  `lockdep` code itself
- Simplify `lockdep` to not longer require `classMap`.

PiperOrigin-RevId: 491486620
2022-11-28 17:53:09 -08:00
Andrei VaginandgVisor bot 19b3b8c1a0 lockdep: print more info for the unbalance unlock case
* print a lock type
* print a list of taken locks

PiperOrigin-RevId: 454310284
2022-06-11 00:22:29 -07:00
Nicolas LacasseandgVisor bot b22b562a3b Typo fix: unknow -> unknown
PiperOrigin-RevId: 454205194
2022-06-10 11:25:45 -07:00
Andrei Vagin b8e74b4e44 sync/lockdep: use RangeRepeatable instead of Range
It is lockless and so it guarantes to avoid nested locks (deadlocks).

Reported-by: [email protected]
2022-06-09 12:00:42 -07:00
Ayush RanjanandgVisor bot 2987d9cb0a Simplify codebase.
Ran gofmt -w -s ./

PiperOrigin-RevId: 449415155
2022-05-18 00:56:31 -07:00
Ayush RanjanandgVisor bot 2026e1f078 Reformat codebase.
PiperOrigin-RevId: 449358041
2022-05-17 17:48:35 -07:00
Andrei VaginandgVisor bot 3b36067c81 Add new locks with the correctness validator
All locks are separated into classes. The validator builds a dependency
graph and checks that it doesn't have cycles.

PiperOrigin-RevId: 447812244
2022-05-10 13:24:51 -07:00