Commit cfb4be1
committed
Merge tag 'gpio-fixes-for-v6.9' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux
Pull gpio fixes from Bartosz Golaszewski:
"Some last-minute fixes for this release from the GPIO subsystem.
The first two address a regression in performance reported to me after
the conversion to using SRCU in GPIOLIB that was merged during the
v6.9 merge window. The second patch is not technically a fix but since
after the first one we no longer need to use a per-descriptor SRCU
struct, I think it's worth to simplify the code before it gets
released on Sunday.
The next two commits fix two memory issues: one use-after-free bug and
one instance of possibly leaking kernel stack memory to user-space.
Summary:
- fix a performance regression in GPIO requesting and releasing after
the conversion to SRCU
- fix a use-after-free bug due to a race-condition
- fix leaking stack memory to user-space in a GPIO uABI corner case"
* tag 'gpio-fixes-for-v6.9' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
gpiolib: cdev: fix uninitialised kfifo
gpiolib: cdev: Fix use after free in lineinfo_changed_notify
gpiolib: use a single SRCU struct for all GPIO descriptors
gpiolib: fix the speed of descriptor label setting with SRCU3 files changed
+63
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1193 | 1193 | | |
1194 | 1194 | | |
1195 | 1195 | | |
| 1196 | + | |
| 1197 | + | |
1196 | 1198 | | |
1197 | 1199 | | |
1198 | 1200 | | |
| |||
1204 | 1206 | | |
1205 | 1207 | | |
1206 | 1208 | | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
1207 | 1221 | | |
1208 | 1222 | | |
1209 | 1223 | | |
| |||
2351 | 2365 | | |
2352 | 2366 | | |
2353 | 2367 | | |
2354 | | - | |
| 2368 | + | |
2355 | 2369 | | |
2356 | 2370 | | |
2357 | 2371 | | |
| |||
2799 | 2813 | | |
2800 | 2814 | | |
2801 | 2815 | | |
2802 | | - | |
2803 | 2816 | | |
2804 | 2817 | | |
2805 | 2818 | | |
2806 | 2819 | | |
| 2820 | + | |
2807 | 2821 | | |
2808 | 2822 | | |
2809 | 2823 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
111 | | - | |
112 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
113 | 124 | | |
114 | 125 | | |
115 | 126 | | |
116 | 127 | | |
117 | | - | |
| 128 | + | |
118 | 129 | | |
119 | 130 | | |
120 | | - | |
| 131 | + | |
| 132 | + | |
121 | 133 | | |
122 | 134 | | |
| 135 | + | |
| 136 | + | |
123 | 137 | | |
124 | 138 | | |
125 | 139 | | |
126 | | - | |
127 | | - | |
| 140 | + | |
| 141 | + | |
128 | 142 | | |
129 | 143 | | |
130 | 144 | | |
| |||
695 | 709 | | |
696 | 710 | | |
697 | 711 | | |
698 | | - | |
699 | 712 | | |
700 | | - | |
701 | | - | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
702 | 716 | | |
703 | 717 | | |
704 | 718 | | |
| |||
975 | 989 | | |
976 | 990 | | |
977 | 991 | | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
978 | 996 | | |
979 | 997 | | |
980 | 998 | | |
981 | 999 | | |
982 | 1000 | | |
983 | 1001 | | |
984 | 1002 | | |
985 | | - | |
| 1003 | + | |
986 | 1004 | | |
987 | 1005 | | |
988 | 1006 | | |
989 | | - | |
| 1007 | + | |
990 | 1008 | | |
991 | 1009 | | |
992 | 1010 | | |
993 | | - | |
| 1011 | + | |
994 | 1012 | | |
995 | 1013 | | |
996 | 1014 | | |
997 | 1015 | | |
998 | | - | |
999 | | - | |
1000 | | - | |
1001 | | - | |
1002 | 1016 | | |
1003 | 1017 | | |
1004 | 1018 | | |
| |||
1010 | 1024 | | |
1011 | 1025 | | |
1012 | 1026 | | |
1013 | | - | |
| 1027 | + | |
1014 | 1028 | | |
1015 | 1029 | | |
1016 | 1030 | | |
| |||
1057 | 1071 | | |
1058 | 1072 | | |
1059 | 1073 | | |
1060 | | - | |
1061 | | - | |
1062 | | - | |
| 1074 | + | |
1063 | 1075 | | |
| 1076 | + | |
| 1077 | + | |
1064 | 1078 | | |
1065 | 1079 | | |
1066 | 1080 | | |
| |||
2390 | 2404 | | |
2391 | 2405 | | |
2392 | 2406 | | |
2393 | | - | |
| 2407 | + | |
2394 | 2408 | | |
2395 | 2409 | | |
2396 | 2410 | | |
| |||
4781 | 4795 | | |
4782 | 4796 | | |
4783 | 4797 | | |
4784 | | - | |
| 4798 | + | |
4785 | 4799 | | |
4786 | 4800 | | |
4787 | 4801 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| 65 | + | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| |||
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
140 | 147 | | |
141 | 148 | | |
142 | 149 | | |
| |||
145 | 152 | | |
146 | 153 | | |
147 | 154 | | |
148 | | - | |
149 | 155 | | |
150 | 156 | | |
151 | 157 | | |
| |||
177 | 183 | | |
178 | 184 | | |
179 | 185 | | |
180 | | - | |
| 186 | + | |
181 | 187 | | |
182 | 188 | | |
183 | 189 | | |
184 | 190 | | |
185 | 191 | | |
186 | | - | |
187 | 192 | | |
188 | 193 | | |
189 | 194 | | |
| |||
251 | 256 | | |
252 | 257 | | |
253 | 258 | | |
254 | | - | |
| 259 | + | |
255 | 260 | | |
256 | 261 | | |
257 | 262 | | |
258 | 263 | | |
259 | 264 | | |
260 | 265 | | |
261 | 266 | | |
262 | | - | |
| 267 | + | |
263 | 268 | | |
264 | 269 | | |
265 | 270 | | |
266 | 271 | | |
267 | 272 | | |
268 | 273 | | |
269 | 274 | | |
270 | | - | |
| 275 | + | |
271 | 276 | | |
272 | 277 | | |
273 | 278 | | |
| |||
0 commit comments