Forums before death by AOL, social media and spammers... "We can't have nice things"
|    linux.debian.kernel    |    Debian kernel discussions    |    2,884 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 2,155 of 2,884    |
|    Ben Hutchings to All    |
|    Bug#1123750: [5.10] regression: virtual     |
|    02 Jan 26 17:30:01    |
   
   XPost: linux.debian.bugs.dist   
   From: ben@decadent.org.uk   
      
   Hello stable maintainers,   
      
   Several Debian users reported a regression after updating to kernel   
   version 5.10.247.   
      
   Commit f0982400648a ("fbdev: Add bounds checking in bit_putcs to fix   
   vmalloc-out-of-bounds"), a backport of upstream commit 3637d34b35b2,   
   depends on vc_data::vc_font.charcount being initialised correctly.   
      
   However, before commit a1ac250a82a5 ("fbcon: Avoid using FNTCHARCNT()   
   and hard-coded built-in font charcount") in 5.11, this member was set   
   to 256 for VTs initially created with a built-in font and 0 for VTs   
   initially created with a user font.   
      
   Since Debian normally sets a user font before creating VTs 2 and up,   
   those additional VTs became unusable. VT 1 also doesn't work correctly   
   if the user font has > 256 characters, and the bounds check is   
   ineffective if it has < 256 characters.   
      
   This can be fixed by backporting the following commits from 5.11:   
      
   7a089ec7d77f console: Delete unused con_font_copy() callback implementations   
   259a252c1f4e console: Delete dummy con_font_set() and con_font_default()   
   callback implementations   
   4ee573086bd8 Fonts: Add charcount field to font_desc   
   4497364e5f61 parisc/sticore: Avoid hard-coding built-in font charcount   
   a1ac250a82a5 fbcon: Avoid using FNTCHARCNT() and hard-coded built-in font   
   charcount   
      
   These all apply without fuzz and builds cleanly for x86_64 and parisc64.   
      
   I tested on x86_64 that:   
      
   - VT 2 works again   
   - bit_putcs_aligned() is setting charcnt = 256   
   - After loading a font with 512 characters, bit_putcs_aligned() sets   
    charcnt = 512 and is able to display characters at positions >= 256   
      
   Ben.   
      
   --    
   Ben Hutchings   
   Man invented language to satisfy his deep need to complain.   
    - Lily Tomlin   
      
   -----BEGIN PGP SIGNATURE-----   
      
   iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAmlX8a4ACgkQ57/I7JWG   
   EQkVOBAAubthm7EVxjj9GT4KlGJO+GZAepcDv/Lq11rAec72wFMwWPKxWxjN9yB1   
   Ep57YYpbq+YwjWzSXK2Z7iLPkCAcVSsQI3VST/kl7cdJaTqDQhojGValWKyi07qa   
   06k7nI/4h50s6poBphLljm98dmPMibiKoBZQW3dcxdt49nvjNT8+D1WVL2cAjfdd   
   vOBrFwhzzXBNMvP0wJz68b2eNAUUZA6KcpkW69+qWGmk5vLxzjU7VZumNZROE/RI   
   DzEsgqCJkWabHgHJRAkM4mAmRWNX5U05620BTRfJG5LZlGWCUFR4nVhLIxg792s5   
   w6k+WzmilDdokPV8Ep2DhaCRBGr0wGCNiP3iK6YMYP+Dnhbg8cKWnlEg+qTNXSvS   
   LEoBCxNYEvImsqzcpqN188PWMVYbabI3yjl9/0CUbwBxejvNQABVcCvJaKnuA3Y9   
   bYRQ6YaWbMW6ArDP81byiOHn0JIlsQMwYOUU1JkwYOdYNQ5W/AmumVAhcYrudnAP   
   fPD7Z3kgkhyvuU+LsZb8JNa5SuGjIdzg+4SeMDR581YqGb7kZHFaFu10NiBhkpL6   
   2G/0vMApE/LUINaFy4SyWqxpb33ifmnTiq31rwyNHjcXG5LCKOyTVUP7KVSI9Ew3   
   GQG5ldD6OFP7o4h3lDyEhqt4BKIPupVsUnejYbKrKaywP9+oZzw=   
   =gjyh   
   -----END PGP SIGNATURE-----   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca