syzbot


KASAN: use-after-free Read in tipc_named_reinit

Status: auto-obsoleted due to no activity on 2023/04/16 15:56
Reported-by: syzbot+521fa444d703c8285639@syzkaller.appspotmail.com
First crash: 1762d, last: 1527d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: use-after-free Read in tipc_named_reinit (2) tipc 1 949d 945d 22/28 fixed on 2023/02/24 13:50
upstream KASAN: use-after-free Read in tipc_named_reinit tipc 6 1583d 1637d 15/28 fixed on 2020/11/16 12:12
Last patch testing requests (1)
Created Duration User Patch Repo Result
2023/04/16 15:40 15m retest repro android12-5.4 OK log

Sample crash report:
tipc: 32-bit node address hash set to faff1eac
==================================================================
BUG: KASAN: use-after-free in tipc_named_reinit+0x1aa/0x360 net/tipc/name_distr.c:344
Read of size 8 at addr ffff8881cbd56000 by task kworker/0:28/4570

CPU: 0 PID: 4570 Comm: kworker/0:28 Not tainted 5.4.17-syzkaller-00005-g2303d908db80 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events tipc_net_finalize_work
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1b0/0x228 lib/dump_stack.c:118
 print_address_description+0x96/0x5d0 mm/kasan/report.c:374
 __kasan_report+0x14b/0x1c0 mm/kasan/report.c:506
 kasan_report+0x26/0x50 mm/kasan/common.c:634
 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:132
 tipc_named_reinit+0x1aa/0x360 net/tipc/name_distr.c:344
 tipc_net_finalize+0xcb/0x130 net/tipc/net.c:138
 tipc_net_finalize_work+0x54/0x80 net/tipc/net.c:150
 process_one_work+0x9d8/0x1030 kernel/workqueue.c:2270
 worker_thread+0xbbc/0x1610 kernel/workqueue.c:2416
 kthread+0x31a/0x340 kernel/kthread.c:255
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 4570 Comm: kworker/0:28 Not tainted 5.4.17-syzkaller-00005-g2303d908db80 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events tipc_net_finalize_work
RIP: 0010:nearest_obj include/linux/slub_def.h:176 [inline]
RIP: 0010:print_address_description+0x41c/0x5d0 mm/kasan/report.c:379
Code: f7 01 00 02 00 00 0f 84 c6 fc ff ff 4c 8b 63 18 48 89 d8 48 c1 e0 06 48 b9 00 00 00 00 80 08 05 00 48 01 c1 4c 89 f0 48 29 c8 <41> 8b 7c 24 18 48 99 48 f7 ff 4c 89 f0 48 29 d0 0f b7 73 2a 81 e6
RSP: 0018:ffff8881d1907b10 EFLAGS: 00010046
RAX: 0000000000000000 RBX: ffffea00072f5580 RCX: ffff8881cbd56000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff8881d1907bc0 R08: ffffffff812cf880 R09: ffffed103b743e92
R10: ffffed103b743e92 R11: 0000000000000000 R12: dead000000000400
R13: 0000000000000008 R14: ffff8881cbd56000 R15: ffff8881cbd56000
FS:  0000000000000000(0000) GS:ffff8881dba00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000758080 CR3: 00000001d7532004 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __kasan_report+0x14b/0x1c0 mm/kasan/report.c:506
 kasan_report+0x26/0x50 mm/kasan/common.c:634
 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:132
 tipc_named_reinit+0x1aa/0x360 net/tipc/name_distr.c:344
 tipc_net_finalize+0xcb/0x130 net/tipc/net.c:138
 tipc_net_finalize_work+0x54/0x80 net/tipc/net.c:150
 process_one_work+0x9d8/0x1030 kernel/workqueue.c:2270
 worker_thread+0xbbc/0x1610 kernel/workqueue.c:2416
 kthread+0x31a/0x340 kernel/kthread.c:255
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352
Modules linked in:
---[ end trace 402d44389b4b6cfa ]---
RIP: 0010:nearest_obj include/linux/slub_def.h:176 [inline]
RIP: 0010:print_address_description+0x41c/0x5d0 mm/kasan/report.c:379
Code: f7 01 00 02 00 00 0f 84 c6 fc ff ff 4c 8b 63 18 48 89 d8 48 c1 e0 06 48 b9 00 00 00 00 80 08 05 00 48 01 c1 4c 89 f0 48 29 c8 <41> 8b 7c 24 18 48 99 48 f7 ff 4c 89 f0 48 29 d0 0f b7 73 2a 81 e6
RSP: 0018:ffff8881d1907b10 EFLAGS: 00010046
RAX: 0000000000000000 RBX: ffffea00072f5580 RCX: ffff8881cbd56000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff8881d1907bc0 R08: ffffffff812cf880 R09: ffffed103b743e92
R10: ffffed103b743e92 R11: 0000000000000000 R12: dead000000000400
R13: 0000000000000008 R14: ffff8881cbd56000 R15: ffff8881cbd56000
FS:  0000000000000000(0000) GS:ffff8881dba00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000758080 CR3: 00000001d7532004 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/06 09:28 https://android.googlesource.com/kernel/common android-5.4 2303d908db80 662cf49a .config console log report syz ci2-android-5-4-kasan
2020/09/28 13:05 android12-5.4 14bc969ca0c4 6bfdbe89 .config console log report info ci2-android-5-4-kasan
2020/08/03 12:58 https://android.googlesource.com/kernel/common android-5.4 5c524b17ccd3 96dd3623 .config console log report ci2-android-5-4-kasan
2020/08/01 02:32 https://android.googlesource.com/kernel/common android-5.4 d75ddc924b99 8df85ed9 .config console log report ci2-android-5-4-kasan
2020/07/18 04:09 https://android.googlesource.com/kernel/common android-5.4 0c0d417747d8 9c812472 .config console log report ci2-android-5-4-kasan
2020/06/04 10:27 https://android.googlesource.com/kernel/common android-5.4 788fe852d3be b0d1c0d5 .config console log report ci2-android-5-4-kasan
2020/04/15 05:10 https://android.googlesource.com/kernel/common android-5.4 a9154741b880 3f3c5574 .config console log report ci2-android-5-4-kasan
2020/02/08 11:18 https://android.googlesource.com/kernel/common android-5.4 9204f620c2a9 06150bf1 .config console log report ci2-android-5-4-kasan
* Struck through repros no longer work on HEAD.