syzbot


general protection fault in batadv_iv_ogm_schedule_buff

Status: fixed on 2020/07/08 18:45
Reported-by: syzbot+8769d902cb45833d9ed0@syzkaller.appspotmail.com
Fix commit: bf0ef794e197 batman-adv: Don't schedule OGM for disabled interface
First crash: 1753d, last: 1697d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in batadv_iv_ogm_schedule_buff (2) 2 1109d 1153d 0/1 auto-closed as invalid on 2022/02/23 03:02
linux-4.14 general protection fault in batadv_iv_ogm_schedule_buff 1 1666d 1666d 1/1 fixed on 2020/07/08 19:03
linux-4.14 general protection fault in batadv_iv_ogm_schedule_buff (2) 1 1583d 1583d 0/1 auto-closed as invalid on 2020/11/06 04:28
upstream general protection fault in batadv_iv_ogm_schedule_buff batman 24 1704d 1727d 15/28 fixed on 2020/04/15 17:19
linux-4.14 general protection fault in batadv_iv_ogm_schedule_buff (3) 1 1350d 1350d 0/1 auto-closed as invalid on 2021/06/27 06:13
upstream general protection fault in batadv_iv_ogm_schedule_buff (2) batman 4 1501d 1585d 0/28 auto-closed as invalid on 2021/01/27 07:05

Sample crash report:
chnl_net:caif_netlink_parms(): no params data found
batman_adv: batadv0: Interface deactivated: batadv_slave_0
batman_adv: batadv0: Removing interface: batadv_slave_0
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: 26419 Comm: kworker/u4:4 Not tainted 4.19.110-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: bat_events batadv_iv_send_outstanding_bat_ogm_packet
RIP: 0010:batadv_iv_ogm_schedule_buff+0x3d3/0x11e0 net/batman-adv/bat_iv_ogm.c:995
Code: 48 c1 ea 03 80 3c 02 00 0f 85 a5 0d 00 00 49 8b af 90 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 7d 16 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 f5
RSP: 0018:ffff8880a8b6fbd0 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 1ffff1101046fdce
RDX: 0000000000000002 RSI: ffffffff86ff1d18 RDI: 0000000000000016
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000003
R10: ffffed1015cc4732 R11: ffff8880ae623993 R12: 0000000000000001
R13: ffff8880a8b6fc68 R14: ffff88808026fa00 R15: ffff888094dce000
FS:  0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe47d049000 CR3: 0000000097014000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 batadv_iv_ogm_schedule net/batman-adv/bat_iv_ogm.c:1046 [inline]
 batadv_iv_ogm_schedule net/batman-adv/bat_iv_ogm.c:1039 [inline]
 batadv_iv_send_outstanding_bat_ogm_packet+0x5e0/0x7a0 net/batman-adv/bat_iv_ogm.c:1865
 process_one_work+0x91f/0x1640 kernel/workqueue.c:2153
 worker_thread+0x96/0xe20 kernel/workqueue.c:2296
 kthread+0x34a/0x420 kernel/kthread.c:246
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Modules linked in:
---[ end trace b3c52ae72510f749 ]---
RIP: 0010:batadv_iv_ogm_schedule_buff+0x3d3/0x11e0 net/batman-adv/bat_iv_ogm.c:995
Code: 48 c1 ea 03 80 3c 02 00 0f 85 a5 0d 00 00 49 8b af 90 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 7d 16 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 f5
RSP: 0018:ffff8880a8b6fbd0 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 1ffff1101046fdce
RDX: 0000000000000002 RSI: ffffffff86ff1d18 RDI: 0000000000000016
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000003
R10: ffffed1015cc4732 R11: ffff8880ae623993 R12: 0000000000000001
R13: ffff8880a8b6fc68 R14: ffff88808026fa00 R15: ffff888094dce000
FS:  0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe47d049000 CR3: 0000000097014000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/03/17 13:50 linux-4.19.y 339485c9a80f 749688d2 .config console log report ci2-linux-4-19
2020/03/05 01:39 linux-4.19.y a083db76118d 576fb9bc .config console log report ci2-linux-4-19
2020/02/25 14:09 linux-4.19.y f25804f38984 4c886d6a .config console log report ci2-linux-4-19
2020/01/29 19:15 linux-4.19.y 7cdefde351b6 5ed23f9a .config console log report ci2-linux-4-19
2020/01/26 00:16 linux-4.19.y d183c8e2647a f4e7270e .config console log report ci2-linux-4-19
2020/01/21 17:26 linux-4.19.y dc4ba5be1bab 8eda0b95 .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.