mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Finn Thain <fthain@linux-m68k.org>
To: Bart Van Assche <bvanassche@acm.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
	 kernel test robot <lkp@intel.com>,
	oe-kbuild-all@lists.linux.dev,  linux-kernel@vger.kernel.org,
	Andrew Morton <akpm@linux-foundation.org>,
	 Linux Memory Management List <linux-mm@kvack.org>,
	 Arnd Bergmann <arnd@arndb.de>,
	 James Bottomley <James.Bottomley@hansenpartnership.com>,
	 "Martin K. Petersen" <mkp@kernel.org>,
	scsi <linux-scsi@vger.kernel.org>
Subject: Re: include/linux/compiler_types.h:631:45: error: call to '__compiletime_assert_433' declared with attribute error: BUILD_BUG_ON failed: offsetof(struct qla_tgt_sess_op, atio) + sizeof(u->atio) != sizeof(*u)
Date: Tue, 24 Nov 2026 14:31:48 +1100 (AEDT)	[thread overview]
Message-ID: <85e103fe-acca-0880-1be3-cb1e7f79f9a4@linux-m68k.org> (raw)
In-Reply-To: <8a0f78e3-5483-42a2-ae27-473bbb6de915@acm.org>


On Mon, 23 Nov 2026, Bart Van Assche wrote:

> On 11/23/26 3:05 PM, Finn Thain wrote:
> > Yes, two alternative solutions were submitted in March (either remove the
> > assertion or rework it). The build bot reported the problem again in
> > September so I resubmitted the "rework" alternative. Sashiko-bot didn't
> > have much praise for that*, so now I'm leaning towards the "remove"
> > alternative. I have been advised to keep re-submitting, and I will do so
> > after a suitable back-off in retry rate i.e. 2027 or 2028.
> > 
> > *
> > https://lore.kernel.org/r/93e35f60-e465-7f76-0043-f997fe2ec8c7@linux-m68k.org
> 
> What an LLM came up with after I asked it to fix 
> https://lore.kernel.org/lkml/202603030747.VX0v4otS-lkp@intel.com/ can be 
> found below. One of the comments of the LLM is "This is essentially Finn 
> Thain's "Rework BUILD_BUG_ON() assertion" patch with your two review 
> comments from this morning applied". Sashiko reports "No issues found" 
> for the patch below. No Signed-off-by from me because I think Finn 
> should be credited for his work instead of I.
> 

Thanks, Bart. I'll take that as a vote for "rework". There is an 
associated risk though: I can't test the patch as I don't have access to 
suitable hardware. (Perhaps someone with such access will volunteer.) 

Whereas, the "remove" alternative doesn't require testing as it doesn't 
risk a regression.

I have a question for your LLM. Sashiko-bot said, in response to my patch:

    Similarly, get_datalen_for_atio() accesses the array out-of-bounds 
    when len > 0:

    drivers/scsi/qla2xxx/qla_target.h:get_datalen_for_atio() {
    ...
        return get_unaligned_be32(&atio->u.isp24.fcp_cmnd.add_cdb[len * 4]);
    ...
    }

I don't understand why the patch from your LLM did not raise the same OOB 
access concerns.

Adding a flex array to struct qla_tgt_sess_op can prevent new struct 
members being added in the wrong spot in that struct but can't prevent new 
struct members being added to struct atio7_fcp_cmnd. Neither does the 
assertion. So the "remove" alternative doesn't have all the disadvantages 
that you might expect.

      reply	other threads:[~2026-11-24  3:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-21  2:49 kernel test robot
2026-11-21  4:10 ` Finn Thain
2026-11-23  9:48   ` Geert Uytterhoeven
2026-11-23 23:05     ` Finn Thain
2026-11-23 23:37       ` Bart Van Assche
2026-11-24  3:31         ` Finn Thain [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=85e103fe-acca-0880-1be3-cb1e7f79f9a4@linux-m68k.org \
    --to=fthain@linux-m68k.org \
    --cc=James.Bottomley@hansenpartnership.com \
    --cc=akpm@linux-foundation.org \
    --cc=arnd@arndb.de \
    --cc=bvanassche@acm.org \
    --cc=geert@linux-m68k.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=mkp@kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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

all inboxes | Powered by JetHome®