Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 3 participants 3 messages Aug 1, 2017 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Andrew,

After merging the akpm tree, today's linux-next build (powerpc allyesconfig) failed like this:

In file included from arch/powerpc/include/asm/paca.h:19:0,

                 from arch/powerpc/include/asm/hw_irq.h:42,
                 from arch/powerpc/include/asm/irqflags.h:11,
                 from include/linux/irqflags.h:15,
                 from include/linux/spinlock.h:53,
                 from include/linux/wait.h:8,
                 from include/linux/wait_bit.h:7,
                 from include/linux/fs.h:5,
                 from include/linux/buffer_head.h:11,
                 from fs/adfs/dir_f.c:12:
In function 'memcpy',
    inlined from '__adfs_dir_put' at fs/adfs/dir_f.c:318:2,
    inlined from 'adfs_f_update' at fs/adfs/dir_f.c:403:2:
include/linux/string.h:305:4: error: call to '__read_overflow2' declared with attribute error: detected read beyond size of object passed as 2nd parameter
    __read_overflow2();
    ^

I don't know why this has turned up now. I have just left it broken for now and would appreciate any fix.

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

Hi Andrew,

After merging the akpm tree, today's linux-next build (powerpc allyesconfig) failed like this:

In file included from arch/powerpc/include/asm/paca.h:19:0,

                 from arch/powerpc/include/asm/hw_irq.h:42,
                 from arch/powerpc/include/asm/irqflags.h:11,
                 from include/linux/irqflags.h:15,
                 from include/linux/spinlock.h:53,
                 from include/linux/wait.h:8,
                 from include/linux/wait_bit.h:7,
                 from include/linux/fs.h:5,
                 from include/linux/buffer_head.h:11,
                 from fs/adfs/dir_f.c:12:
In function 'memcpy',
    inlined from '__adfs_dir_put' at fs/adfs/dir_f.c:318:2,
    inlined from 'adfs_f_update' at fs/adfs/dir_f.c:403:2:
include/linux/string.h:305:4: error: call to '__read_overflow2' declared with attribute error: detected read beyond size of object passed as 2nd parameter
    __read_overflow2();
    ^
Quoted 2 lines

I don't know why this has turned up now. I have just left it broken for now and would appreciate any fix.

Thanks for the heads-up! I'm not sure why this suddenly appeared either, but Arnd has sent a patch for this now.

-Kees

Signature · 2 lines
Kees Cook
Pixel Security
#2 lore raw
Quoted 6 lines · Kees Cook
Quoted 3 lines

I don't know why this has turned up now. I have just left it broken for now and would appreciate any fix.

Thanks for the heads-up! I'm not sure why this suddenly appeared either, but Arnd has sent a patch for this now.

The main difference I see that can impact gcc's optimization steps is the unreachable() that was there in BUG() but is absent in WARN().

It's possible that the compiler decided that the entire code path leading up to the unreachable() couldn't happen, so it dropped the __read_overflow2() call as well.

Arnd