git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: disabling sha1dc unaligned access, was Re: One failed self test on Fedora 29

From
Jeff King <peff@peff.net>
Date
Mar 12, 2019, 21:01 UTC
Message-ID
<20190312210124.GA5025@sigill.intra.peff.net>
In-Reply-To
<87y35kb8ft.fsf@evledraar.gmail.com>
On Tue, Mar 12, 2019 at 01:09:42PM +0100, Ævar Arnfjörð Bjarmason wrote:
Show 26 quoted lines
> > To be clear, I do sympathize with the notion that not pulling things
> > in-tree keeps our relationship with upstream more disciplined, and that
> > has value. I'm just not altogether clear how much it's really hurt us
> > overall to be undisciplined.
> 
> I agree that say the compat/regex divergence hasn't hurt us much if at
> all. Just that we have a few conflicting desires:
> 
>  A. Make sure you can "make" git by default without pulling down a bunch
>     of libraries, especially if they're not ubiquitous. Thus shipping
>     the likes of sha1dc.
> 
>  B. Being able to hotfix those libraries.
> 
>  C. Upstreaming those hotfixes when they happen.
> 
>  D. Updating the library we pulled in due to "A" from upstream.
> 
> In practice because we've wanted "A" we've felt the need to do "B", but
> then also not "C" without ever having the discussion that skipping that
> part was a good idea, and as a result "D" is hard.
> 
> Do we urgently need "D"? No. I'm just pointing out that in addition to
> optimzing for "B" being easy we should also weigh being good free
> software citizens and coordinate fixes with upstream, which also makes a
> future "D" easier.
Yeah, I think your mental model there makes some sense.
> Also, while I don't know of any bugs in compat/regex. I think it's a bit
> concerning that we're carrying 2010-era code for something like the
> regex engine that we expose e.g. over gitweb.

TBH, I think it's probably a bad idea to open any version of that code to untrusted people, because it's easy to write a DoS regex against it. There are libraries (like re2) that would be a better fit (I seem to recall that there may be some DFA-only support in pcre, too, but I haven't looked at it in a long time; if there is, it might be a sane gitweb feature to only expose that engine).

-Peff
Previous: Ævar Arnfjörð BjarmasonNext: Jeff King
Message 21 of 25 in “One failed self test on Fedora 29”
  1. Jeffrey WaltonMar 8, 2019
  2. Todd ZullingerMar 8, 2019
  3. Jeffrey WaltonMar 9, 2019
  4. Jeffrey WaltonMar 9, 2019
  5. Junio C HamanoMar 11, 2019
  6. Jeffrey WaltonMar 11, 2019
  7. disabling sha1dc unaligned access, was Re: One failed self test on Fedora 29Jeff King, Mar 11, 2019
  8. Jeffrey WaltonMar 11, 2019
  9. Jeff KingMar 11, 2019
  10. Duy NguyenMar 11, 2019
  11. Thomas BraunMar 11, 2019
  12. Jeff KingMar 11, 2019
  13. Junio C HamanoMar 12, 2019
  14. Jeff KingMar 12, 2019
  15. Thomas BraunMar 13, 2019
  16. Jeff KingMar 13, 2019
  17. Ævar Arnfjörð BjarmasonMar 13, 2019
  18. Ævar Arnfjörð BjarmasonMar 12, 2019
  19. Jeff KingMar 12, 2019
  20. Ævar Arnfjörð BjarmasonMar 12, 2019
  21. Jeff KingMar 12, 2019
  22. Makefile: fix unaligned loads in sha1dc with UBSanJeff King, Mar 12, 2019
  23. Ævar Arnfjörð BjarmasonMar 12, 2019
  24. Jeff KingMar 12, 2019
  25. Jeff KingMar 11, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.