--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: cgit: kernel regression breaks cgit's sendfile()
- From: Johannes Berg <johannes@sipsolutions.net>
- Date: Sat, 16 Jan 2021 17:54:43 +0100
- Message-id: <161081608252.1755628.1495632916084623908.reportbug@s3.sipsolutions.net>
Package: cgit
Version: 1.2.3+git2.25.1-1
Severity: normal
Dear Maintainer,
Having changed my virtual machine setup to run kernel 5.10.4,
I've noticed that a kernel regression breaks cgit's use of
sendfile() in e.g. fcgiwrap setups like mine, because sendfile()
to a pipe() no longer works. See also
https://lore.kernel.org/lkml/C8KER7U60WXE.25UFD8RE6QZQK@oguc/
(I reported the additional pipe() issue there, bug the list is
currently down). A simple test program I wrote is here:
https://p.sipsolutions.net/b8b30d96fd9428a8.txt
In any case - this is obviously not really a bug in cgit but
rather in the kernel, but I thought perhaps a warning might be
something you'd appreciate.
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.10.4+ (SMP w/6 CPU threads)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
Versions of packages cgit depends on:
ii libc6 2.31-6
ii liblua5.1-0 5.1.5-8.1+b3
ii zlib1g 1:1.2.11.dfsg-2
Versions of packages cgit recommends:
ii nginx-core [httpd] 1.18.0-6+b1
ii nginx-full [httpd] 1.18.0-6
Versions of packages cgit suggests:
ii python3 3.9.1-1
ii python3-docutils 0.16+dfsg-3
pn python3-markdown <none>
ii python3-pygments 2.7.1+dfsg-1
-- Configuration Files:
/etc/cgitrc changed [not included]
-- no debconf information
--- End Message ---
--- Begin Message ---
- To: Johannes Berg <johannes@sipsolutions.net>, 980248-done@bugs.debian.org
- Subject: Re: Bug#980248: cgit: kernel regression breaks cgit's sendfile()
- From: Peter Colberg <peter@colberg.org>
- Date: Mon, 8 Feb 2021 21:07:00 -0500
- Message-id: <YCHuRCLMO7oQqmK6@colberg.org>
- In-reply-to: <161081608252.1755628.1495632916084623908.reportbug@s3.sipsolutions.net>
- References: <161081608252.1755628.1495632916084623908.reportbug@s3.sipsolutions.net>
Hi Johannes,
On Sat, Jan 16, 2021 at 05:54:43PM +0100, Johannes Berg wrote:
> Having changed my virtual machine setup to run kernel 5.10.4,
> I've noticed that a kernel regression breaks cgit's use of
> sendfile() in e.g. fcgiwrap setups like mine, because sendfile()
> to a pipe() no longer works. See also
>
> https://lore.kernel.org/lkml/C8KER7U60WXE.25UFD8RE6QZQK@oguc/
>
> (I reported the additional pipe() issue there, bug the list is
> currently down). A simple test program I wrote is here:
>
> https://p.sipsolutions.net/b8b30d96fd9428a8.txt
Thank you for heads-up. I checked as we are getting close to the soft
freeze for bullseye, and the issue appears resolved in linux 5.10.11:
https://bugzilla.kernel.org/show_bug.cgi?id=211217#c2
Regards,
Peter
--- End Message ---