Linux Watchdog driver development
 help / color / mirror / Atom feed
From: w15303746062  <w15303746062@163.com>
To: "Guenter Roeck" <linux@roeck-us.net>
Cc: wim@linux-watchdog.org, linux-watchdog@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	"Mingyu Wang" <25181214217@stu.xidian.edu.cn>
Subject: Re:Re: [PATCH] watchdog: wdt_pci: Fix shared IRQ storm and complete system lockup
Date: Mon, 11 May 2026 12:52:35 +0800 (CST)	[thread overview]
Message-ID: <403be50f.4887.19e15613e85.Coremail.w15303746062@163.com> (raw)
In-Reply-To: <a32f5c51-1e72-4208-92db-c5a000f3d43d@roeck-us.net>





From: Mingyu Wang <25181214217@stu.xidian.edu.cn>

Hi Guenter,

Point taken. You are absolutely right that relying on an unverified macro to synthesize hardware behavior is flawed. I apologize for not making the virtualized and synthesized nature of this test setup clear in the initial patch description. 

Since the true physical hardware behavior cannot be verified, and the driver does not actively evaluate that bit, we agree that applying a patch based on this assumption is inappropriate. 

I will drop this patch. Thank you for the rigorous review and for pointing out this limitation in our testing methodology.

Best regards,
Mingyu










At 2026-05-11 12:39:26, "Guenter Roeck" <linux@roeck-us.net> wrote:
>Hi,
>
>On 5/10/26 20:08, w15303746062 wrote:
>> 
>> 
>> From: Mingyu Wang <25181214217@stu.xidian.edu.cn>
>> 
>> Hi Guenter,
>> 
>> You are correct; standard QEMU does not support the WDT500/501.
>> 
>> We observed this issue using DevGen, an automated framework we are developing. It synthesizes QEMU virtual device models directly from Linux driver source code using LLM guidance, allowing us to fuzz legacy or obscure drivers that lack physical hardware or official emulators.
>> 
>> Because the synthesized device is an imperfect model, it generated unexpected interrupt loads on a heavily shared PCI IRQ line (shared with the i2c-i801 controller in our setup). However, this successfully exposed a real logic flaw: the `wdt_pci` driver registers an `IRQF_SHARED` handler but fails to verify the `WDC_SR_IRQ` bit. It erroneously claimed the interrupts, bypassed the kernel's spurious IRQ defenses, and caused a livelock.
>> 
>> I understand this hardware is essentially obsolete. The patch provides a purely defensive fix for a legitimate API violation (unverified shared IRQ).
>> 
>> If applying this adds unnecessary churn, please feel free to drop it, or perhaps consider marking the driver as BROKEN. I leave it entirely to your judgment.
>> 
>
>That is entirely not the problem. The problem is that your AI implemented
>a QEMU emulation without really knowing what the hardware is doing while
>guessing what status bits unused by the driver mean for the real hardware.
>We (and the AI) actually don't know what the WDC_SR_IRQ does, or if it
>is indeed low active. That is just a guess. I can not accept a patch
>based on a guess, much less one making unconfirmed claims.
>
>If the driver is indeed unused or obsolete is a completely different
>question. Marking it as BROKEN without real evidence that it is indeed
>broken, just because some AI believes that it is broken, would be
>inappropriate.
>
>Please note that I also find the patch description inappropriate and
>misleading. It suggests that the problem was observed on real hardware,
>while it was actually observed with a qemu implementation implemented by AI
>based on the driver itself, including guesswork about status bits unused
>by the driver.
>
>Guenter

      reply	other threads:[~2026-05-11  4:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-09 12:16 [PATCH] watchdog: wdt_pci: Fix shared IRQ storm and complete system lockup w15303746062
2026-05-09 13:52 ` Guenter Roeck
2026-05-11  1:27   ` w15303746062
2026-05-11  3:00     ` Guenter Roeck
2026-05-11  3:08       ` w15303746062
2026-05-11  4:39         ` Guenter Roeck
2026-05-11  4:52           ` w15303746062 [this message]

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=403be50f.4887.19e15613e85.Coremail.w15303746062@163.com \
    --to=w15303746062@163.com \
    --cc=25181214217@stu.xidian.edu.cn \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=wim@linux-watchdog.org \
    /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