syzbot


KASAN: use-after-free Read in rds_tcp_conn_free

Status: auto-closed as invalid on 2021/09/17 07:43
Reported-by: syzbot+dea32494dedeba904c24@syzkaller.appspotmail.com
First crash: 2039d, last: 1283d

Sample crash report:
@þ (unregistering): Port device team_slave_0 removed
bond0 (unregistering): Releasing backup interface bond_slave_1
bond0 (unregistering): Releasing backup interface bond_slave_0
bond0 (unregistering): Released all slaves
==================================================================
BUG: KASAN: use-after-free in __list_del_entry_valid+0xe0/0xf0 lib/list_debug.c:51
Read of size 8 at addr ffff8880b03162f8 by task kworker/u4:1/22

CPU: 0 PID: 22 Comm: kworker/u4:1 Not tainted 4.14.232-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: netns cleanup_net
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:252
 kasan_report_error.cold+0x8a/0x191 mm/kasan/report.c:351
 kasan_report mm/kasan/report.c:409 [inline]
 __asan_report_load8_noabort+0x68/0x70 mm/kasan/report.c:430
 __list_del_entry_valid+0xe0/0xf0 lib/list_debug.c:51
 __list_del_entry include/linux/list.h:117 [inline]
 list_del include/linux/list.h:125 [inline]
 rds_tcp_conn_free+0x84/0x1c0 net/rds/tcp.c:310
 rds_conn_path_destroy net/rds/connection.c:408 [inline]
 rds_conn_destroy+0x4b3/0x730 net/rds/connection.c:439
 rds_tcp_kill_sock net/rds/tcp.c:545 [inline]
 rds_tcp_dev_event+0x79a/0xa30 net/rds/tcp.c:573
 notifier_call_chain+0x108/0x1a0 kernel/notifier.c:93
 call_netdevice_notifiers_info net/core/dev.c:1667 [inline]
 call_netdevice_notifiers net/core/dev.c:1683 [inline]
 netdev_run_todo+0x242/0xad0 net/core/dev.c:7927
 default_device_exit_batch+0x2e2/0x380 net/core/dev.c:8747
 ops_exit_list+0xf9/0x150 net/core/net_namespace.c:145
 cleanup_net+0x3b3/0x840 net/core/net_namespace.c:484
 process_one_work+0x793/0x14a0 kernel/workqueue.c:2116
 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2250
 kthread+0x30d/0x420 kernel/kthread.c:232
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404

Allocated by task 2879:
 save_stack mm/kasan/kasan.c:447 [inline]
 set_track mm/kasan/kasan.c:459 [inline]
 kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551
 kmem_cache_alloc+0x124/0x3c0 mm/slab.c:3552
 rds_tcp_conn_alloc+0x4d/0x290 net/rds/tcp.c:279
 __rds_conn_create+0xc92/0x16f0 net/rds/connection.c:223
 rds_tcp_accept_one+0x2d9/0x8b0 net/rds/tcp_listen.c:171
 rds_tcp_accept_worker+0x4d/0x70 net/rds/tcp.c:407
 process_one_work+0x793/0x14a0 kernel/workqueue.c:2116
 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2250
 kthread+0x30d/0x420 kernel/kthread.c:232
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404

Freed by task 22:
 save_stack mm/kasan/kasan.c:447 [inline]
 set_track mm/kasan/kasan.c:459 [inline]
 kasan_slab_free+0xc3/0x1a0 mm/kasan/kasan.c:524
 __cache_free mm/slab.c:3496 [inline]
 kmem_cache_free+0x7c/0x2b0 mm/slab.c:3758
 rds_conn_path_destroy net/rds/connection.c:408 [inline]
 rds_conn_destroy+0x4b3/0x730 net/rds/connection.c:439
 rds_tcp_kill_sock net/rds/tcp.c:545 [inline]
 rds_tcp_dev_event+0x79a/0xa30 net/rds/tcp.c:573
 notifier_call_chain+0x108/0x1a0 kernel/notifier.c:93
 call_netdevice_notifiers_info net/core/dev.c:1667 [inline]
 call_netdevice_notifiers net/core/dev.c:1683 [inline]
 netdev_run_todo+0x242/0xad0 net/core/dev.c:7927
 default_device_exit_batch+0x2e2/0x380 net/core/dev.c:8747
 ops_exit_list+0xf9/0x150 net/core/net_namespace.c:145
 cleanup_net+0x3b3/0x840 net/core/net_namespace.c:484
 process_one_work+0x793/0x14a0 kernel/workqueue.c:2116
 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2250
 kthread+0x30d/0x420 kernel/kthread.c:232
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404

The buggy address belongs to the object at ffff8880b03162f8
 which belongs to the cache rds_tcp_connection of size 504
The buggy address is located 0 bytes inside of
 504-byte region [ffff8880b03162f8, ffff8880b03164f0)
The buggy address belongs to the page:
page:ffffea0002c0c580 count:1 mapcount:0 mapping:ffff8880b0316080 index:0x0
flags: 0xfff00000000100(slab)
raw: 00fff00000000100 ffff8880b0316080 0000000000000000 0000000100000006
raw: ffffea0002581d20 ffffea00026d6860 ffff8880a49adc00 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff8880b0316180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8880b0316200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc
>ffff8880b0316280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fb
                                                                ^
 ffff8880b0316300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8880b0316380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================

Crashes (216):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/20 07:08 linux-4.14.y 7d7d1c0ab3eb a343ba6b .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/05/19 10:27 linux-4.14.y 7d7d1c0ab3eb a343ba6b .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/05/17 23:55 linux-4.14.y 7d7d1c0ab3eb a343ba6b .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/05/17 21:32 linux-4.14.y 7d7d1c0ab3eb a343ba6b .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/05/16 22:22 linux-4.14.y 7d7d1c0ab3eb f54a5c09 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/05/16 16:30 linux-4.14.y 7d7d1c0ab3eb f54a5c09 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/05/13 14:20 linux-4.14.y 7d7d1c0ab3eb ecb594cb .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/05/12 12:56 linux-4.14.y 7d7d1c0ab3eb 86294427 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/05/12 04:15 linux-4.14.y 7d7d1c0ab3eb b3c3bb8e .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/05/11 00:18 linux-4.14.y 7d7d1c0ab3eb ca873091 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/05/10 13:51 linux-4.14.y 7d7d1c0ab3eb ca873091 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/05/09 22:36 linux-4.14.y 7d7d1c0ab3eb bc5434be .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/05/09 11:58 linux-4.14.y 7d7d1c0ab3eb bc5434be .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/05/07 03:53 linux-4.14.y 7d7d1c0ab3eb 06585184 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/05/06 12:28 linux-4.14.y 7d7d1c0ab3eb 06c27ff5 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/05/06 06:29 linux-4.14.y 7d7d1c0ab3eb 06c27ff5 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/05/03 16:34 linux-4.14.y 7d7d1c0ab3eb ad61f371 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/05/03 05:14 linux-4.14.y 7d7d1c0ab3eb 77e2b668 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/05/02 07:10 linux-4.14.y 7d7d1c0ab3eb 77e2b668 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/05/01 18:52 linux-4.14.y 7d7d1c0ab3eb 77e2b668 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/05/01 12:05 linux-4.14.y 7d7d1c0ab3eb 77e2b668 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/05/01 01:25 linux-4.14.y 7d7d1c0ab3eb 77e2b668 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/04/26 11:33 linux-4.14.y cf256fbcbe34 e60b7df1 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/04/25 22:06 linux-4.14.y cf256fbcbe34 2a82f1b3 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/04/24 11:21 linux-4.14.y cf256fbcbe34 17f0b706 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/04/24 01:09 linux-4.14.y cf256fbcbe34 17f0b706 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/04/23 23:53 linux-4.14.y cf256fbcbe34 17f0b706 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/04/23 22:22 linux-4.14.y cf256fbcbe34 17f0b706 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/04/21 00:09 linux-4.14.y cf256fbcbe34 c0ced557 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/04/18 20:05 linux-4.14.y cf256fbcbe34 7e2b734b .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/04/17 12:20 linux-4.14.y cf256fbcbe34 7e2b734b .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/04/13 18:54 linux-4.14.y 958e517f4e16 a184b83e .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/04/13 08:42 linux-4.14.y 958e517f4e16 6a81331a .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/04/10 18:15 linux-4.14.y 958e517f4e16 6a81331a .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/04/10 06:17 linux-4.14.y 0cc244011f40 6a81331a .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/04/10 02:06 linux-4.14.y 0cc244011f40 6a81331a .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/04/09 13:56 linux-4.14.y 0cc244011f40 6a81331a .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/04/09 11:15 linux-4.14.y 0cc244011f40 6a81331a .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/04/08 18:10 linux-4.14.y 0cc244011f40 6a81331a .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/04/07 20:22 linux-4.14.y 0cc244011f40 6a81331a .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/04/07 02:52 linux-4.14.y bd634aa64163 6a81331a .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/04/06 21:15 linux-4.14.y bd634aa64163 6a81331a .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/04/06 09:51 linux-4.14.y bd634aa64163 6a81331a .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/04/06 08:24 linux-4.14.y bd634aa64163 6a81331a .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/04/05 02:49 linux-4.14.y bd634aa64163 6a81331a .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/04/03 13:55 linux-4.14.y bd634aa64163 6a81331a .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in rds_tcp_conn_free
2021/01/17 11:04 linux-4.14.y f79dc86058bc 813be542 .config console log report info ci2-linux-4-14
2019/04/25 09:38 linux-4.14.y 68d7a45eec10 8e3c52b1 .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.