Commit 06fc3b0
s390/vmem: do not silently ignore mapping limit
The only interface that allows drivers establishing
liner mappings is vmem_add_mapping(). It does check
a requested range against allowed limits and a call
to modify_pagetable() with an invalid mapping range
is impossible.
Hence, an attempt to map an address range outside of
the identity mapping or vmemmap array could only be
kernel bug.
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>1 parent f59ec04 commit 06fc3b0
1 file changed
Lines changed: 3 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
294 | 293 | | |
295 | 294 | | |
296 | 295 | | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | 296 | | |
302 | 297 | | |
303 | 298 | | |
| |||
362 | 357 | | |
363 | 358 | | |
364 | 359 | | |
365 | | - | |
366 | 360 | | |
367 | 361 | | |
368 | 362 | | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | 363 | | |
374 | 364 | | |
375 | 365 | | |
| |||
412 | 402 | | |
413 | 403 | | |
414 | 404 | | |
415 | | - | |
416 | 405 | | |
417 | 406 | | |
418 | 407 | | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | 408 | | |
424 | 409 | | |
425 | 410 | | |
| |||
439 | 424 | | |
440 | 425 | | |
441 | 426 | | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
442 | 430 | | |
443 | 431 | | |
444 | 432 | | |
| |||
0 commit comments