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-prev] [day] [month] [year] [list]
Date:   Mon, 21 Oct 2019 16:53:05 +0800
From:   kernel test robot <rong.a.chen@...el.com>
To:     Vito Caputo <vcaputo@...garu.com>
Cc:     davem@...emloft.net, netdev@...r.kernel.org,
        linux-kernel@...r.kernel.org, lkp@...ts.01.org
Subject: [net] 635f03c839: WARNING:at_net/core/datagram.c:#__skb_datagram_iter

FYI, we noticed the following commit (built with gcc-7):

commit: 635f03c839fb2c207dc2e2cea65d382a0798abea ("[PATCH] net: core: datagram: tidy up copy functions a bit")
url: https://github.com/0day-ci/linux/commits/Vito-Caputo/net-core-datagram-tidy-up-copy-functions-a-bit/20191013-002125


in testcase: packetdrill
with following parameters:




on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 8G

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):


+-----------------------------------------------------+------------+------------+
|                                                     | 524900a212 | 635f03c839 |
+-----------------------------------------------------+------------+------------+
| boot_successes                                      | 15         | 8          |
| boot_failures                                       | 0          | 20         |
| WARNING:at_net/core/datagram.c:#__skb_datagram_iter | 0          | 20         |
| RIP:__skb_datagram_iter                             | 0          | 20         |
+-----------------------------------------------------+------------+------------+


If you fix the issue, kindly add following tag
Reported-by: kernel test robot <rong.a.chen@...el.com>


[   24.142627] WARNING: CPU: 0 PID: 5761 at net/core/datagram.c:434 __skb_datagram_iter+0x1bb/0x280
[   24.143997] Modules linked in: tun intel_rapl_msr intel_rapl_common sr_mod cdrom crct10dif_pclmul sg crc32_pclmul ata_generic crc32c_intel pata_acpi ghash_clmulni_intel bochs_drm drm_vram_helper ttm drm_kms_helper ppdev syscopyarea sysfillrect sysimgblt fb_sys_fops drm snd_pcm aesni_intel crypto_simd snd_timer cryptd snd glue_helper soundcore joydev pcspkr serio_raw ata_piix libata i2c_piix4 floppy parport_pc parport ip_tables
[   24.149092] CPU: 0 PID: 5761 Comm: packetdrill Not tainted 5.4.0-rc1-00465-g635f03c839fb2 #1
[   24.150229] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   24.151339] RIP: 0010:__skb_datagram_iter+0x1bb/0x280
[   24.152045] Code: f2 fe ff ff 48 8b 44 24 28 44 8b 44 24 20 4c 8b 4c 24 18 44 8b 5c 24 14 8b 90 bc 00 00 00 48 8b 80 c0 00 00 00 e9 13 ff ff ff <0f> 0b e9 43 ff ff ff 4c 89 e1 4c 8b 69 08 4d 85 ed 74 6f 44 0f b6
[   24.154518] RSP: 0018:ffffac078290faf8 EFLAGS: 00010297
[   24.155226] RAX: ffff96ed8afac800 RBX: 0000000000000000 RCX: ffff96ed8afacac0
[   24.156162] RDX: 00000000000002c0 RSI: 0000000000000000 RDI: ffff96ed06da6d00
[   24.157119] RBP: 0000000000000000 R08: 0000000000000410 R09: 0000000000000030
[   24.158036] R10: ffffac078290fc50 R11: 0000000000000000 R12: ffff96ed8afacaf0
[   24.158979] R13: 0000000000000034 R14: 0000000000000000 R15: 0000000000000034
[   24.159919] FS:  0000000001e39880(0000) GS:ffff96edffc00000(0000) knlGS:0000000000000000
[   24.160991] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   24.161750] CR2: 000000000188d1e0 CR3: 00000001df2de000 CR4: 00000000000406f0
[   24.162699] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   24.163646] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[   24.164589] Call Trace:
[   24.164928]  ? skb_copy_datagram_iter+0xa0/0xa0
[   24.165580]  skb_copy_datagram_iter+0x3b/0xa0
[   24.166183]  ipv6_recv_error+0xa1/0x3d0
[   24.166718]  ? ip_rcv_finish_core+0x10c/0x390
[   24.167434]  ? ip_rcv_finish+0x62/0x90
[   24.167966]  ? ip_rcv+0xd1/0xe0
[   24.168383]  ? tcp_recvmsg+0x791/0xb90
[   24.168875]  ? ip6_datagram_recv_specific_ctl+0x580/0x580
[   24.169602]  tcp_recvmsg+0x791/0xb90
[   24.170078]  ? rw_copy_check_uvector+0x5b/0x150
[   24.170705]  ? import_iovec+0x36/0xf0
[   24.171214]  inet6_recvmsg+0x5d/0x100
[   24.171703]  ___sys_recvmsg+0xf5/0x240
[   24.172226]  ? __might_fault+0x2b/0x30
[   24.172748]  ? __might_fault+0x2b/0x30
[   24.173271]  ? sock_getsockopt+0x3d4/0xb90
[   24.173842]  ? __sys_recvmsg+0x5b/0xa0
[   24.174332]  __sys_recvmsg+0x5b/0xa0
[   24.174828]  do_syscall_64+0x5b/0x1d0
[   24.175901]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[   24.177116] RIP: 0033:0x42db60
[   24.178108] Code: 40 00 41 54 55 41 89 d4 53 48 89 f5 89 fb 48 83 ec 10 e8 03 f7 ff ff 48 63 fb 41 89 c0 49 63 d4 48 89 ee b8 2f 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 1b 44 89 c7 48 89 44 24 08 e8 3b f7 ff ff 48
[   24.181690] RSP: 002b:00007ffd8ff5dff0 EFLAGS: 00000293 ORIG_RAX: 000000000000002f
[   24.183219] RAX: ffffffffffffffda RBX: 0000000000000009 RCX: 000000000042db60
[   24.184724] RDX: 0000000000002000 RSI: 0000000001e40d90 RDI: 0000000000000009
[   24.186296] RBP: 0000000001e40d90 R08: 0000000000000000 R09: 00000000000007e0
[   24.187797] R10: 0000000000000040 R11: 0000000000000293 R12: 0000000000002000
[   24.189236] R13: 0000000000434bc0 R14: 0000000000000000 R15: 0000000000000000
[   24.190659] ---[ end trace 2cde539dc387f671 ]---


To reproduce:

        # build kernel
	cd linux
	cp config-5.4.0-rc1-00465-g635f03c839fb2 .config
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage

        git clone https://github.com/intel/lkp-tests.git
        cd lkp-tests
        bin/lkp qemu -k <bzImage> job-script # job-script is attached in this email



Thanks,
Rong Chen


View attachment "config-5.4.0-rc1-00465-g635f03c839fb2" of type "text/plain" (200590 bytes)

View attachment "job-script" of type "text/plain" (4892 bytes)

Download attachment "dmesg.xz" of type "application/x-xz" (27764 bytes)

View attachment "packetdrill" of type "text/plain" (25946 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ