Commit 68d3f57
committed
mm: slub: call WARN() when detecting a slab corruption
commit 3f6f32b
Author: Hyesoo Yu <[email protected]>
Date: Wed Feb 26 17:12:01 2025 +0900
mm: slub: call WARN() when detecting a slab corruption
If a slab object is corrupted or an error occurs in its internal
validation, continuing after restoration may cause other side effects.
At this point, it is difficult to debug because the problem occurred in
the past. It is useful to use WARN() to catch errors at the point of
issue because WARN() could trigger panic for system debugging when
panic_on_warn is enabled. WARN() is added where to detect the error on
slab_err and object_err.
It makes sense to only do the WARN() after printing the logs. slab_err
is splited to __slab_err that calls the WARN() and it is called after
printing logs.
Signed-off-by: Hyesoo Yu <[email protected]>
Reviewed-by: Harry Yoo <[email protected]>
Signed-off-by: Vlastimil Babka <[email protected]>
JIRA: https://issues.redhat.com/browse/RHEL-77742
Signed-off-by: Nico Pache <[email protected]>1 parent 3d08084 commit 68d3f57
1 file changed
+29
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1026 | 1026 | | |
1027 | 1027 | | |
1028 | 1028 | | |
1029 | | - | |
| 1029 | + | |
1030 | 1030 | | |
1031 | 1031 | | |
1032 | 1032 | | |
| |||
1085 | 1085 | | |
1086 | 1086 | | |
1087 | 1087 | | |
1088 | | - | |
1089 | | - | |
1090 | 1088 | | |
1091 | 1089 | | |
1092 | 1090 | | |
| |||
1098 | 1096 | | |
1099 | 1097 | | |
1100 | 1098 | | |
| 1099 | + | |
| 1100 | + | |
1101 | 1101 | | |
1102 | 1102 | | |
1103 | 1103 | | |
| |||
1114 | 1114 | | |
1115 | 1115 | | |
1116 | 1116 | | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
1117 | 1128 | | |
1118 | 1129 | | |
1119 | 1130 | | |
| |||
1127 | 1138 | | |
1128 | 1139 | | |
1129 | 1140 | | |
1130 | | - | |
1131 | | - | |
1132 | | - | |
| 1141 | + | |
1133 | 1142 | | |
1134 | 1143 | | |
1135 | 1144 | | |
| |||
1302 | 1311 | | |
1303 | 1312 | | |
1304 | 1313 | | |
1305 | | - | |
1306 | | - | |
| 1314 | + | |
| 1315 | + | |
1307 | 1316 | | |
| 1317 | + | |
1308 | 1318 | | |
1309 | 1319 | | |
1310 | 1320 | | |
| |||
1620 | 1630 | | |
1621 | 1631 | | |
1622 | 1632 | | |
1623 | | - | |
1624 | | - | |
1625 | | - | |
1626 | | - | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
1627 | 1636 | | |
1628 | | - | |
| 1637 | + | |
| 1638 | + | |
1629 | 1639 | | |
1630 | 1640 | | |
1631 | 1641 | | |
| |||
5570 | 5580 | | |
5571 | 5581 | | |
5572 | 5582 | | |
5573 | | - | |
5574 | | - | |
| 5583 | + | |
5575 | 5584 | | |
5576 | 5585 | | |
5577 | 5586 | | |
5578 | 5587 | | |
5579 | 5588 | | |
5580 | | - | |
| 5589 | + | |
| 5590 | + | |
5581 | 5591 | | |
5582 | 5592 | | |
5583 | 5593 | | |
| |||
5592 | 5602 | | |
5593 | 5603 | | |
5594 | 5604 | | |
| 5605 | + | |
| 5606 | + | |
5595 | 5607 | | |
5596 | 5608 | | |
5597 | 5609 | | |
| |||
5612 | 5624 | | |
5613 | 5625 | | |
5614 | 5626 | | |
5615 | | - | |
5616 | | - | |
| 5627 | + | |
5617 | 5628 | | |
5618 | 5629 | | |
5619 | 5630 | | |
| |||
0 commit comments