lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <0CAE3975-2A0A-4BFA-916B-16D00310710E@gmail.com>
Date:   Thu, 9 Nov 2017 16:02:53 -0500
From:   Wei Wei <dotweiba@...il.com>
To:     LKML <linux-kernel@...r.kernel.org>
Subject: [Error after setting -Og] ‘__bad_copy_from’ declared with attribute error: copy source size is too small

Hi all,

I get a compile time error after setting -Og when compiling for the latest GitHub version.
I am using `make defconfig’ to get the default x86_64 config. But previously I did this in v4.4, 
it's fine.

Modification to Makefile:
KBUILD_CFLAGS  += -O2 $(call cc-disable-warning,maybe-uninitialized,)            
       else                                                                  
       -KBUILD_CFLAGS   += -O2                                                    
       +KBUILD_CFLAGS   += -Og                                                    
       endif                                                                    
       endif   

And error info:
In file included from ./arch/x86/include/asm/preempt.h:6:0,                        
  from ./include/linux/preempt.h:80,                                              
  from ./include/linux/rcupdate.h:40,                                             
  from ./include/linux/rculist.h:10,                                              
  from ./include/linux/pid.h:4,                                                   
  from ./include/linux/sched.h:13,                                                
  from kernel/ptrace.c:12:                                                        
  In function ‘check_copy_size’,                                                  
  inlined from ‘copy_to_user’ at ./include/linux/uaccess.h:153:6,                 
  inlined from ‘ptrace_request’ at kernel/ptrace.c:934:7:                         
  ./include/linux/thread_info.h:138:4: error: call to ‘__bad_copy_from’ declared 
with attribute error: copy source size is too small
  __bad_copy_from();                                                              
  ^                                                                               
  scripts/Makefile.build:313: recipe for target 'kernel/ptrace.o' failed          
  make[1]: *** [kernel/ptrace.o] Error 1                                          
  Makefile:1023: recipe for target ‘kernel' failed  

Any help is appreciated!

Thank you,
Wei

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ