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>] [day] [month] [year] [list]
Message-ID: <201904210810.2Ror1OIR%lkp@intel.com>
Date:   Sun, 21 Apr 2019 08:53:13 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Arnd Bergmann <arnd@...db.de>
Cc:     kbuild-all@...org, netdev@...r.kernel.org
Subject: [net-next:master 254/261] net//core/sock.c:3007:23: error: expected
 '}' before ';' token

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   5313794b7915f61d1f503bfa54fbec47ffd8be0b
commit: c7cbdbf29f488a19982cd9f4a109887f18028bbb [254/261] net: rework SIOCGSTAMP ioctl handling
config: sparc-allmodconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout c7cbdbf29f488a19982cd9f4a109887f18028bbb
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=sparc 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@...el.com>


All errors (new ones prefixed by >>):

   net//core/sock.c: In function 'sock_gettstamp':
>> net//core/sock.c:3007:23: error: expected '}' before ';' token
       .tv_sec = ts.tv_sec;
                          ^
>> net//core/sock.c:3011:4: error: expected ')' before 'return'
       return -EFAULT;
       ^~~~~~
>> net//core/sock.c:3013:2: error: expected expression before '}' token
     }
     ^

vim +3007 net//core/sock.c

  2979	
  2980	int sock_gettstamp(struct socket *sock, void __user *userstamp,
  2981			   bool timeval, bool time32)
  2982	{
  2983		struct sock *sk = sock->sk;
  2984		struct timespec64 ts;
  2985	
  2986		sock_enable_timestamp(sk, SOCK_TIMESTAMP);
  2987		ts = ktime_to_timespec64(sock_read_timestamp(sk));
  2988		if (ts.tv_sec == -1)
  2989			return -ENOENT;
  2990		if (ts.tv_sec == 0) {
  2991			ktime_t kt = ktime_get_real();
  2992			sock_write_timestamp(sk, kt);;
  2993			ts = ktime_to_timespec64(kt);
  2994		}
  2995	
  2996		if (timeval)
  2997			ts.tv_nsec /= 1000;
  2998	
  2999	#ifdef CONFIG_COMPAT_32BIT_TIME
  3000		if (time32)
  3001			return put_old_timespec32(&ts, userstamp);
  3002	#endif
  3003	#ifdef CONFIG_SPARC64
  3004		/* beware of padding in sparc64 timeval */
  3005		if (timeval && !in_compat_syscall()) {
  3006			struct __kernel_old_timeval __user tv = {
> 3007				.tv_sec = ts.tv_sec;
  3008				.tv_usec = ts.tv_nsec;
  3009			};
  3010			if (copy_to_user(userstamp, &tv, sizeof(tv))
> 3011				return -EFAULT;
  3012			return 0;
> 3013		}
  3014	#endif
  3015		return put_timespec64(&ts, userstamp);
  3016	}
  3017	EXPORT_SYMBOL(sock_gettstamp);
  3018	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Download attachment ".config.gz" of type "application/gzip" (55784 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ