Skip to contentSkip to conversation

linux-next: build failure after merge of the kspp tree

DISCUSSION Stephen Rothwell 3 participants 7 messages Jun 16, 2017 – Jun 19, 2017 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Kees,

After merging the kspp tree, today's linux-next build (x86_64 allmodconfig) failed like this:

In file included from include/linux/bitmap.h:8:0,

                 from include/linux/cpumask.h:11,
                 from arch/x86/include/asm/cpumask.h:4,
                 from arch/x86/include/asm/msr.h:10,
                 from arch/x86/include/asm/processor.h:20,
                 from arch/x86/include/asm/cpufeature.h:4,
                 from arch/x86/include/asm/thread_info.h:52,
                 from include/linux/thread_info.h:37,
                 from arch/x86/include/asm/preempt.h:6,
                 from include/linux/preempt.h:80,
                 from include/linux/spinlock.h:50,
                 from include/linux/mmzone.h:7,
                 from include/linux/gfp.h:5,
                 from include/linux/slab.h:14,
                 from drivers/scsi/csiostor/csio_lnode.c:37:

In function 'memcpy',
inlined from 'csio_append_attrib' at drivers/scsi/csiostor/csio_lnode.c:248:2,
inlined from 'csio_ln_fdmi_dprt_cbfn' at drivers/scsi/csiostor/csio_lnode.c:471:2:
include/linux/string.h:309:4: error: call to '__read_overflow2' declared with attribute error: detected read beyond size of object passed as 2nd parameter

    __read_overflow2();
    ^

In function 'memcpy',
inlined from 'csio_append_attrib' at drivers/scsi/csiostor/csio_lnode.c:248:2,
inlined from 'csio_ln_fdmi_rhba_cbfn' at drivers/scsi/csiostor/csio_lnode.c:337:2:
include/linux/string.h:309:4: error: call to '__read_overflow2' declared with attribute error: detected read beyond size of object passed as 2nd parameter

    __read_overflow2();
    ^

Caused by commit

b90d6eba50d7 ("include/linux/string.h: add the option of fortified string.h functions")

I have reverted that commit for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 41 lines · Stephen Rothwell

Hi Kees,

After merging the kspp tree, today's linux-next build (x86_64 allmodconfig) failed like this:

In file included from include/linux/bitmap.h:8:0,

                 from include/linux/cpumask.h:11,
                 from arch/x86/include/asm/cpumask.h:4,
                 from arch/x86/include/asm/msr.h:10,
                 from arch/x86/include/asm/processor.h:20,
                 from arch/x86/include/asm/cpufeature.h:4,
                 from arch/x86/include/asm/thread_info.h:52,
                 from include/linux/thread_info.h:37,
                 from arch/x86/include/asm/preempt.h:6,
                 from include/linux/preempt.h:80,
                 from include/linux/spinlock.h:50,
                 from include/linux/mmzone.h:7,
                 from include/linux/gfp.h:5,
                 from include/linux/slab.h:14,
                 from drivers/scsi/csiostor/csio_lnode.c:37:

In function 'memcpy',
inlined from 'csio_append_attrib' at
drivers/scsi/csiostor/csio_lnode.c:248:2,
inlined from 'csio_ln_fdmi_dprt_cbfn' at
drivers/scsi/csiostor/csio_lnode.c:471:2:
include/linux/string.h:309:4: error: call to '__read_overflow2' declared with attribute error: detected read beyond size of object passed as 2nd parameter

    __read_overflow2();
    ^

In function 'memcpy',
inlined from 'csio_append_attrib' at
drivers/scsi/csiostor/csio_lnode.c:248:2,
inlined from 'csio_ln_fdmi_rhba_cbfn' at
drivers/scsi/csiostor/csio_lnode.c:337:2:
include/linux/string.h:309:4: error: call to '__read_overflow2' declared with attribute error: detected read beyond size of object passed as 2nd parameter

    __read_overflow2();
    ^
Quoted 6 lines

Caused by commit

b90d6eba50d7 ("include/linux/string.h: add the option of fortified
string.h functions")

I have reverted that commit for today.

That's this one: https://lkml.org/lkml/2017/5/9/613, which is in
https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git/ in the 4.13/scsi-queue and for-next branches. I think that's why Kees didn't include it but I get he needs to add that.

#3 lore raw
In reply to Daniel Micay
Quoted 47 lines · Daniel Micay
Quoted 46 lines · Stephen Rothwell

Hi Kees,

After merging the kspp tree, today's linux-next build (x86_64 allmodconfig) failed like this:

In file included from include/linux/bitmap.h:8:0,

                 from include/linux/cpumask.h:11,
                 from arch/x86/include/asm/cpumask.h:4,
                 from arch/x86/include/asm/msr.h:10,
                 from arch/x86/include/asm/processor.h:20,
                 from arch/x86/include/asm/cpufeature.h:4,
                 from arch/x86/include/asm/thread_info.h:52,
                 from include/linux/thread_info.h:37,
                 from arch/x86/include/asm/preempt.h:6,
                 from include/linux/preempt.h:80,
                 from include/linux/spinlock.h:50,
                 from include/linux/mmzone.h:7,
                 from include/linux/gfp.h:5,
                 from include/linux/slab.h:14,
                 from drivers/scsi/csiostor/csio_lnode.c:37:

In function 'memcpy',
inlined from 'csio_append_attrib' at
drivers/scsi/csiostor/csio_lnode.c:248:2,
inlined from 'csio_ln_fdmi_dprt_cbfn' at
drivers/scsi/csiostor/csio_lnode.c:471:2:
include/linux/string.h:309:4: error: call to '__read_overflow2' declared with attribute error: detected read beyond size of object passed as 2nd parameter

    __read_overflow2();
    ^

In function 'memcpy',
inlined from 'csio_append_attrib' at
drivers/scsi/csiostor/csio_lnode.c:248:2,
inlined from 'csio_ln_fdmi_rhba_cbfn' at
drivers/scsi/csiostor/csio_lnode.c:337:2:
include/linux/string.h:309:4: error: call to '__read_overflow2' declared with attribute error: detected read beyond size of object passed as 2nd parameter

    __read_overflow2();
    ^

Caused by commit

b90d6eba50d7 ("include/linux/string.h: add the option of fortified
string.h functions")

Quoted 6 lines
Quoted 1 line

I have reverted that commit for today.

That's this one: https://lkml.org/lkml/2017/5/9/613, which is in
https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git/ in the 4.13/scsi-queue and for-next branches. I think that's why Kees didn't include it but I get he needs to add that.

I'm so confused -- isn't this in next? All the build tests I did were against yesterday's -next which includes this from what I can see...

-Kees

Signature · 2 lines
Kees Cook
Pixel Security
#4 lore raw

Hi Kees,

Quoted 3 lines · On Thu, 15 Jun 2017 20:20:47 -0700 Kees Cook <[email protected]> wrote:

I'm so confused -- isn't this in next? All the build tests I did were against yesterday's -next which includes this from what I can see...

It is in next, but gets merged after the kspp tree ... so, this is when inter-tree dependencies are a pain - I can merge the kspp tree later, but then you have to remember which trees Linus must merge before you send your pull request. That's why we like to have all trees be effectively stand alone (as much as possible).

Signature · 2 lines
Cheers,
Stephen Rothwell
#5 lore raw

Hi Stephen,

Quoted 5 lines · On Fri, 16 Jun 2017 13:31:44 +1000 Stephen Rothwell <[email protected]>…

Hi Kees,

Quoted 1 line · On Thu, 15 Jun 2017 20:20:47 -0700 Kees Cook <[email protected]> wrote:
Quoted 8 lines
Quoted 2 lines

I'm so confused -- isn't this in next? All the build tests I did were against yesterday's -next which includes this from what I can see...

It is in next, but gets merged after the kspp tree ... so, this is when inter-tree dependencies are a pain - I can merge the kspp tree later, but then you have to remember which trees Linus must merge before you send your pull request. That's why we like to have all trees be effectively stand alone (as much as possible).

OK, for now I have moved the merging of the kspp tree to after everything else (except Andrew's quilt series). This will (unfortunately) hide some dependencies between trees.

Signature · 2 lines
Cheers,
Stephen Rothwell
#6 lore raw
Quoted 17 lines · Stephen Rothwell

Hi Stephen,

Quoted 5 lines · On Fri, 16 Jun 2017 13:31:44 +1000 Stephen Rothwell <[email protected]>…

Hi Kees,

Quoted 1 line · On Thu, 15 Jun 2017 20:20:47 -0700 Kees Cook <[email protected]> wrote:
Quoted 8 lines
Quoted 2 lines

I'm so confused -- isn't this in next? All the build tests I did were against yesterday's -next which includes this from what I can see...

It is in next, but gets merged after the kspp tree ... so, this is when inter-tree dependencies are a pain - I can merge the kspp tree later, but then you have to remember which trees Linus must merge before you send your pull request. That's why we like to have all trees be effectively stand alone (as much as possible).

Quoted 3 lines

OK, for now I have moved the merging of the kspp tree to after everything else (except Andrew's quilt series). This will (unfortunately) hide some dependencies between trees.

In the other thread Andrew asked that I just have it all go through -mm, so I've removed it from KSPP and sent the series his way (with you in Cc).

Thanks!

-Kees

Signature · 2 lines
Kees Cook
Pixel Security