syzbot


WARNING: refcount bug in skb_set_owner_w

Status: public: reported syz repro on 2019/08/09 14:49
Reported-by: syzbot+c80dd5c090edebf79ae0@syzkaller.appspotmail.com
First crash: 1728d, last: 1613d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: refcount bug in skb_set_owner_w net C done 2 1613d 1613d 15/26 fixed on 2020/01/08 01:06

Sample crash report:
audit: type=1400 audit(1575236757.950:9): avc:  denied  { map } for  pid=1780 comm="syz-execprog" path="/root/syzkaller-shm176685908" dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:file_t:s0 tclass=file permissive=1
refcount_t: saturated; leaking memory.
------------[ cut here ]------------
WARNING: CPU: 0 PID: 2192 at lib/refcount.c:78 refcount_add_not_zero.cold+0x18/0x1f lib/refcount.c:78
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 2192 Comm: syz-executor.0 Not tainted 4.14.157-syzkaller #0
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0xe5/0x154 lib/dump_stack.c:58
 panic+0x1f1/0x3da kernel/panic.c:183
 __warn.cold+0x2f/0x33 kernel/panic.c:547
 report_bug+0x20a/0x248 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x1bf/0x2d0 arch/x86/kernel/traps.c:295
 invalid_op+0x18/0x40 arch/x86/entry/entry_64.S:963
RIP: 0010:refcount_add_not_zero.cold+0x18/0x1f lib/refcount.c:78
RSP: 0018:ffff8881c9fcf5c8 EFLAGS: 00010282
RAX: 0000000000000026 RBX: 00000000ffffffff RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff9e46a420 RDI: ffffed10393f9eab
RBP: ffff8881cbabc9bc R08: 0000000000000026 R09: ffffed103b744ce9
R10: ffffed103b744ce8 R11: ffff8881dba26747 R12: 1ffff110393f9eba
R13: 0000000000080100 R14: 00000000ffffff01 R15: 0000000000000024
 refcount_add+0x17/0x40 lib/refcount.c:102
 skb_set_owner_w+0x1ef/0x300 net/core/sock.c:1846
 sock_wmalloc+0xce/0x110 net/core/sock.c:1932
 ip_append_page+0x5de/0xe50 net/ipv4/ip_output.c:1243
 udp_sendpage+0x168/0x3d0 net/ipv4/udp.c:1155
 inet_sendpage+0x197/0x5d0 net/ipv4/af_inet.c:777
 kernel_sendpage+0x84/0xd0 net/socket.c:3406
 sock_sendpage+0x84/0xa0 net/socket.c:871
 pipe_to_sendpage+0x23d/0x300 fs/splice.c:451
 splice_from_pipe_feed fs/splice.c:502 [inline]
 __splice_from_pipe+0x331/0x740 fs/splice.c:626
 splice_from_pipe+0xd9/0x140 fs/splice.c:661
 do_splice_from fs/splice.c:851 [inline]
 direct_splice_actor+0x118/0x160 fs/splice.c:1018
 splice_direct_to_actor+0x292/0x760 fs/splice.c:973
 do_splice_direct+0x177/0x240 fs/splice.c:1061
 do_sendfile+0x493/0xb20 fs/read_write.c:1445
 SYSC_sendfile64 fs/read_write.c:1506 [inline]
 SyS_sendfile64+0x11f/0x140 fs/read_write.c:1492
 do_syscall_64+0x19b/0x520 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x45a679
RSP: 002b:00007fdb31a8bc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000045a679
RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000005
RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000010001 R11: 0000000000000246 R12: 00007fdb31a8c6d4
R13: 00000000004c8652 R14: 00000000004df368 R15: 00000000ffffffff
Kernel Offset: 0x1b600000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
Rebooting in 86400 seconds..

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/12/01 21:49 android-4.14 13855a652bd5 a76bf83f .config console log report syz ci-android-414-kasan-gce-root
2019/08/09 13:48 android-4.14 b9cd593b1ba7 ede31a9b .config console log report ci-android-414-kasan-gce-root
* Struck through repros no longer work on HEAD.