syzbot


general protection fault in skb_clone

Status: fixed on 2017/10/24 19:00
Fix commit: 0bbd7dad34f8 tun: make tun_build_skb() thread safe
First crash: 2458d, last: 2458d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in skb_clone C 1 437d 571d 0/1 upstream: reported C repro on 2022/10/17 02:33
upstream BUG: unable to handle kernel paging request in skb_clone net 2 1000d 1045d 0/26 closed as invalid on 2021/10/04 21:36
upstream general protection fault in skb_clone (3) net 44 1442d 1445d 15/26 fixed on 2020/07/17 17:58
linux-4.19 general protection fault in skb_clone C error 2 570d 879d 0/1 upstream: reported C repro on 2021/12/12 07:38
upstream general protection fault in skb_clone (4) net C unreliable 41 583d 879d 0/26 closed as invalid on 2022/10/12 18:15
upstream general protection fault in skb_clone (2) hams 1 1626d 1623d 0/26 auto-closed as invalid on 2020/03/25 12:28
upstream general protection fault in skb_clone (5) net C done 7 556d 573d 22/26 fixed on 2023/02/24 13:50

Sample crash report:
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] SMP KASAN
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 1 PID: 7260 Comm: syz-executor0 Not tainted 4.13.0-rc5-next-20170816+ #4
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011
task: ffff88003c9dc6c0 task.stack: ffff88003aeb0000
RIP: 0010:skb_orphan_frags include/linux/skbuff.h:2538 [inline]
RIP: 0010:skb_clone+0x28d/0x480 net/core/skbuff.c:1276
RSP: 0018:ffff88003aeb6e08 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff88003e984c80 RCX: 1ffff100075d6df3
RDX: 0000000020000000 RSI: 0000000001080020 RDI: ffff880069707a68
RBP: ffff88003aeb6ee0 R08: 0000000000000000 R09: 1ffff100075d6dab
R10: ffff88003aeb6d20 R11: ffffffff85b34c40 R12: 1ffff100075d6dc3
R13: 0000000100000000 R14: 0000000001080020 R15: ffff88003aeb6eb8
FS:  00007f2fd482a700(0000) GS:ffff88003ed00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000457040 CR3: 000000006d09e000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 packet_rcv+0x1103/0x15a0 net/packet/af_packet.c:2109
 packet_rcv_fanout+0x4f5/0x7d0 net/packet/af_packet.c:1490
 deliver_skb net/core/dev.c:1859 [inline]
 __netif_receive_skb_core+0x1bbf/0x33d0 net/core/dev.c:4329
 __netif_receive_skb+0x2c/0x1b0 net/core/dev.c:4456
 netif_receive_skb_internal+0x10b/0x5e0 net/core/dev.c:4527
 netif_receive_skb+0xae/0x390 net/core/dev.c:4551
 tun_rx_batched.isra.43+0x5e7/0x860 drivers/net/tun.c:1221
 tun_get_user+0x11dd/0x2150 drivers/net/tun.c:1542
 tun_chr_write_iter+0xd8/0x190 drivers/net/tun.c:1568
 call_write_iter include/linux/fs.h:1742 [inline]
 new_sync_write fs/read_write.c:457 [inline]
 __vfs_write+0x684/0x970 fs/read_write.c:470
 vfs_write+0x189/0x510 fs/read_write.c:518
 SYSC_write fs/read_write.c:565 [inline]
 SyS_write+0xef/0x220 fs/read_write.c:557
 entry_SYSCALL_64_fastpath+0x1f/0xbe
RIP: 0033:0x40bab1
RSP: 002b:00007f2fd4829c00 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000013 RCX: 000000000040bab1
RDX: 0000000000000013 RSI: 0000000020ee9000 RDI: 0000000000000003
RBP: 0000000000708000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 00000000ffffffff
R13: 00000000000002f0 R14: 00000000006e23b0 R15: 0000000020001fd0
Code: 02 00 0f 85 a1 01 00 00 4d 8b 6d 28 4d 85 ed 0f 84 a4 fe ff ff e8 94 13 8d fd 4c 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 d7 01 00 00 49 81 7d 00 60 f7 df 83 0f 84 76 
RIP: skb_orphan_frags include/linux/skbuff.h:2538 [inline] RSP: ffff88003aeb6e08
RIP: skb_clone+0x28d/0x480 net/core/skbuff.c:1276 RSP: ffff88003aeb6e08
---[ end trace 5413f016a345a15d ]---

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/08/16 09:08 linux-next 5d51332f20b2 f93be584 .config console log report syz ci-upstream-next-kasan-gce
2017/08/16 11:56 linux-next 5d51332f20b2 f93be584 .config console log report skylake-linux-next-kasan-qemu
2017/08/16 09:02 linux-next 5d51332f20b2 f93be584 .config console log report ci-upstream-next-kasan-gce
* Struck through repros no longer work on HEAD.