RAX: ffffffffffffffda RBX: 00007fd191c52aa0 RCX: 0000000000452cf9
RDX: 0000000000000555 RSI: 00000000204ce000 RDI: 0000000000000013
RBP: 00007fd191c52a90 R08: 0000000020e26fe4 R09: 000000000000001c
R10: 0000000000000000 R11: 0000000000000212 R12: 00000000004b798c
R13: 00007fd191c52bc8 R14: 00000000004b798c R15: 0000000000000000
BUG: unable to handle kernel paging request at ffffffff0001eea6
==================================================================
BUG: KASAN: use-after-free in rb_first_postorder+0x7c/0xa0 lib/rbtree.c:671
Read of size 8 at addr ffff8801d92ca840 by task syz-executor3/13991
CPU: 0 PID: 13991 Comm: syz-executor3 Not tainted 4.15.0-rc7-next-20180115+ #97
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x194/0x257 lib/dump_stack.c:53
print_address_description+0x73/0x250 mm/kasan/report.c:256
kasan_report_error mm/kasan/report.c:354 [inline]
kasan_report+0x23b/0x360 mm/kasan/report.c:412
__asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433
rb_first_postorder+0x7c/0xa0 lib/rbtree.c:671
tipc_group_join+0x120/0x2d0 net/tipc/group.c:210
tipc_sk_join net/tipc/socket.c:2781 [inline]
tipc_setsockopt+0x67e/0xcc0 net/tipc/socket.c:2876
SYSC_setsockopt net/socket.c:1823 [inline]
SyS_setsockopt+0x189/0x360 net/socket.c:1802
entry_SYSCALL_64_fastpath+0x29/0xa0
RIP: 0033:0x452cf9
RSP: 002b:00007f88b463ac58 EFLAGS: 00000212 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000452cf9
RDX: 0000000000000087 RSI: 000000000000010f RDI: 0000000000000015
RBP: 000000000000004d R08: 0000000000000010 R09: 0000000000000000
R10: 0000000020f38000 R11: 0000000000000212 R12: 00000000006ee7d8
R13: 00000000ffffffff R14: 00007f88b463b6d4 R15: 0000000000000000
Allocated by task 13991:
save_stack+0x43/0xd0 mm/kasan/kasan.c:447
set_track mm/kasan/kasan.c:459 [inline]
kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:552
kmem_cache_alloc_trace+0x136/0x750 mm/slab.c:3607
kmalloc include/linux/slab.h:512 [inline]
kzalloc include/linux/slab.h:701 [inline]
tipc_group_create+0x144/0x900 net/tipc/group.c:180
tipc_sk_join net/tipc/socket.c:2762 [inline]
tipc_setsockopt+0x274/0xcc0 net/tipc/socket.c:2876
SYSC_setsockopt net/socket.c:1823 [inline]
SyS_setsockopt+0x189/0x360 net/socket.c:1802
entry_SYSCALL_64_fastpath+0x29/0xa0
Freed by task 13991:
save_stack+0x43/0xd0 mm/kasan/kasan.c:447
set_track mm/kasan/kasan.c:459 [inline]
__kasan_slab_free+0x11a/0x170 mm/kasan/kasan.c:520
kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:527
__cache_free mm/slab.c:3485 [inline]
kfree+0xd9/0x260 mm/slab.c:3800
tipc_group_delete+0x2c8/0x3d0 net/tipc/group.c:234
tipc_sk_join net/tipc/socket.c:2775 [inline]
tipc_setsockopt+0xba3/0xcc0 net/tipc/socket.c:2876
SYSC_setsockopt net/socket.c:1823 [inline]
SyS_setsockopt+0x189/0x360 net/socket.c:1802
entry_SYSCALL_64_fastpath+0x29/0xa0
The buggy address belongs to the object at ffff8801d92ca840
which belongs to the cache kmalloc-128 of size 128
The buggy address is located 0 bytes inside of
128-byte region [ffff8801d92ca840, ffff8801d92ca8c0)
The buggy address belongs to the page:
page:ffffea000764b280 count:1 mapcount:0 mapping:ffff8801d92ca000 index:0x0
flags: 0x2fffc0000000100(slab)
raw: 02fffc0000000100 ffff8801d92ca000 0000000000000000 0000000100000015
raw: ffffea0007639820 ffffea0007639460 ffff8801dac00640 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff8801d92ca700: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
ffff8801d92ca780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff8801d92ca800: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb
^
ffff8801d92ca880: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
ffff8801d92ca900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================