Linux filesystem development
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
To: Scott Tringali <stringal@mathworks.com>, 1137107-quiet@bugs.debian.org
Cc: David Howells <dhowells@redhat.com>, linux-fsdevel@vger.kernel.org
Subject: Re: Bug#1137107: netfs local_bh_enable in hard IRQ via cachefiles read completion
Date: Wed, 27 May 2026 15:22:50 +0200	[thread overview]
Message-ID: <ahbuh46O8ncqe6Ob@monoceros> (raw)
In-Reply-To: <177921663299.22800.4367803780230080606.reportbug@ah-stringal-l.dhcp.mathworks.com>

[-- Attachment #1: Type: text/plain, Size: 1594 bytes --]

Control: tag -1 + upstream moreinfo

Hello,

On Tue, May 19, 2026 at 02:50:32PM -0400, Scott Tringali wrote:
> Package: linux
> Severity: important
> Tags: patch
> X-Debbugs-Cc: stringal@mathworks.com
> 
> Package: linux
> Version: 6.12.86-1
> Severity: important
> Tags: upstream
> 
> netfs_consume_read_data() calls local_bh_enable() in hard IRQ context
> when reached via the cachefiles async read completion path.
> 
> The call chain is:
> 
>   nvme_irq                              [hard IRQ]
>     blk_mq_end_request_batch
>       iomap_dio_bio_end_io
>         cachefiles_read_complete        [cachefiles]
>           netfs_read_subreq_terminated  [netfs]
>             netfs_consume_read_data     [netfs]
>               __local_bh_enable_ip      *** WARNING ***
> 
> This fires a WARN_ON at kernel/softirq.c:386 because local_bh_enable()
> is called while in hard IRQ context (PID 0, swapper, inside <IRQ>).

There was a similar report filed upstream at
https://lore.kernel.org/all/CAKPOu+_4m80thNy5_fvROoxBm689YtA0dZ-=gcmkzwYSY4syqw@mail.gmail.com/

The patches mentioned there went into 6.14-rc1[1], though they didn't
fix all issues for the reporter there.

So I think the right course of action is to test a newer kernel first,
and if that helps (and I assume it does), prod David (on Cc:) about
maybe backporting the fixes to v6.12.y.

So Scott, you you please check if the kernel from unstable/testing or
backports fixes things for you?

Best regards
Uwe

[1] https://lore.kernel.org/linus/ca56a74a31e26d81a481304ed2f631e65883372b

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

       reply	other threads:[~2026-05-27 13:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <177921663299.22800.4367803780230080606.reportbug@ah-stringal-l.dhcp.mathworks.com>
2026-05-27 13:22 ` Uwe Kleine-König [this message]
2026-05-27 17:27   ` Bug#1137107: netfs local_bh_enable in hard IRQ via cachefiles read completion Scott Tringali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ahbuh46O8ncqe6Ob@monoceros \
    --to=u.kleine-koenig@baylibre.com \
    --cc=1137107-quiet@bugs.debian.org \
    --cc=dhowells@redhat.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=stringal@mathworks.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox