Re: [PATCH v2 03/19] fbcon: Introduce wrapper for console->fb_info lookup

2022-02-10 Thread Thomas Zimmermann
Am 08.02.22 um 22:08 schrieb Daniel Vetter: Half of it is protected by console_lock, but the other half is a lot more awkward: Registration/deregistration of fbdev are serialized, but we don't really clear out anything in con2fb_map and so there's potential for use-after free mixups. First

[PATCH v2 03/19] fbcon: Introduce wrapper for console->fb_info lookup

2022-02-08 Thread Daniel Vetter
Half of it is protected by console_lock, but the other half is a lot more awkward: Registration/deregistration of fbdev are serialized, but we don't really clear out anything in con2fb_map and so there's potential for use-after free mixups. First step is to encapsulate the lookup. Acked-by: Sam