syzbot


general protection fault in batadv_iv_ogm_queue_add

Status: auto-closed as invalid on 2020/02/25 18:51
Reported-by: syzbot+59b7dd207667c81b9481@syzkaller.appspotmail.com
First crash: 1882d, last: 1865d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in batadv_iv_ogm_queue_add syz error 502 1721d 1859d 0/1 upstream: reported syz repro on 2019/11/03 07:10
upstream general protection fault in batadv_iv_ogm_queue_add batman 20 1859d 1873d 0/28 closed as dup on 2019/10/21 06:54

Sample crash report:
kasan: GPF could be caused by NULL-ptr deref or user memory access
could not allocate digest TFM handle nhpoly1305-avx2
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 40 Comm: kworker/u4:2 Not tainted 4.19.80 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
could not allocate digest TFM handle nhpoly1305-avx2
Workqueue: bat_events batadv_iv_send_outstanding_bat_ogm_packet
RIP: 0010:batadv_iv_ogm_queue_add+0x49/0x1120 net/batman-adv/bat_iv_ogm.c:791
Code: 48 89 75 b8 48 89 4d c0 4c 89 45 b0 44 89 4d d0 e8 8c 51 98 fa 48 8d 7b 03 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 18 0d 00 00
RSP: 0018:ffff8880a98d7b68 EFLAGS: 00010246
could not allocate digest TFM handle nhpoly1305-avx2
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffff8880a5a9b5c0
RDX: 0000000000000000 RSI: ffffffff86d275b4 RDI: 0000000000000003
RBP: ffff8880a98d7c00 R08: ffff8880a5a9b5c0 R09: 0000000000000001
R10: ffffed101531af74 R11: 0000000000000003 R12: dffffc0000000000
R13: ffff8880a5a9b5c0 R14: ffffed1014b536c7 R15: 000000010000810d
could not allocate digest TFM handle nhpoly1305-avx2
FS:  0000000000000000(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000007136b4 CR3: 000000005f855000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
kobject: 'loop0' (0000000089c1a04e): kobject_uevent_env
Call Trace:
kobject: 'loop0' (0000000089c1a04e): fill_kobj_path: path = '/devices/virtual/block/loop0'
 batadv_iv_ogm_schedule+0xb72/0xf10 net/batman-adv/bat_iv_ogm.c:995
 batadv_iv_send_outstanding_bat_ogm_packet+0x590/0x740 net/batman-adv/bat_iv_ogm.c:1823
 process_one_work+0x989/0x1750 kernel/workqueue.c:2153
kobject: 'loop1' (000000009e5f1649): kobject_uevent_env
kobject: 'loop1' (000000009e5f1649): fill_kobj_path: path = '/devices/virtual/block/loop1'
 worker_thread+0x98/0xe40 kernel/workqueue.c:2296
 kthread+0x354/0x420 kernel/kthread.c:246
kobject: 'loop0' (0000000089c1a04e): kobject_uevent_env
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
kobject: 'loop0' (0000000089c1a04e): fill_kobj_path: path = '/devices/virtual/block/loop0'
Modules linked in:
---[ end trace cd0a7f4a9b1ff017 ]---
kobject: 'loop1' (000000009e5f1649): kobject_uevent_env
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
kobject: 'loop1' (000000009e5f1649): fill_kobj_path: path = '/devices/virtual/block/loop1'
CPU: 0 PID: 16108 Comm: syz-executor.2 Tainted: G      D           4.19.80 #0
kobject: 'loop1' (000000009e5f1649): kobject_uevent_env
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x172/0x1f0 lib/dump_stack.c:113
 fail_dump lib/fault-inject.c:51 [inline]
 should_fail.cold+0xa/0x1b lib/fault-inject.c:149
kobject: 'loop1' (000000009e5f1649): fill_kobj_path: path = '/devices/virtual/block/loop1'
 __should_failslab+0x121/0x190 mm/failslab.c:32
RIP: 0010:batadv_iv_ogm_queue_add+0x49/0x1120 net/batman-adv/bat_iv_ogm.c:791
 should_failslab+0x9/0x14 mm/slab_common.c:1557
 slab_pre_alloc_hook mm/slab.h:424 [inline]
 slab_alloc_node mm/slab.c:3304 [inline]
 kmem_cache_alloc_node_trace+0x274/0x720 mm/slab.c:3666
Code: 48 89 75 b8 48 89 4d c0 4c 89 45 b0 44 89 4d d0 e8 8c 51 98 fa 48 8d 7b 03 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 18 0d 00 00
 __do_kmalloc_node mm/slab.c:3688 [inline]
 __kmalloc_node_track_caller+0x3d/0x80 mm/slab.c:3703
 __kmalloc_reserve.isra.0+0x40/0xf0 net/core/skbuff.c:137
 __alloc_skb+0x10b/0x5f0 net/core/skbuff.c:205
RSP: 0018:ffff8880a98d7b68 EFLAGS: 00010246
 alloc_skb include/linux/skbuff.h:995 [inline]
 netlink_alloc_large_skb net/netlink/af_netlink.c:1189 [inline]
 netlink_sendmsg+0x97b/0xd70 net/netlink/af_netlink.c:1883
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffff8880a5a9b5c0
 sock_sendmsg_nosec net/socket.c:622 [inline]
 sock_sendmsg+0xd7/0x130 net/socket.c:632
RDX: 0000000000000000 RSI: ffffffff86d275b4 RDI: 0000000000000003
 sock_write_iter+0x27c/0x3e0 net/socket.c:901
RBP: ffff8880a98d7c00 R08: ffff8880a5a9b5c0 R09: 0000000000000001
 call_write_iter include/linux/fs.h:1820 [inline]
 new_sync_write fs/read_write.c:474 [inline]
 __vfs_write+0x587/0x810 fs/read_write.c:487
R10: ffffed101531af74 R11: 0000000000000003 R12: dffffc0000000000
 vfs_write+0x20c/0x560 fs/read_write.c:549
R13: ffff8880a5a9b5c0 R14: ffffed1014b536c7 R15: 000000010000810d
 ksys_write+0x14f/0x2d0 fs/read_write.c:599
FS:  0000000000000000(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
 __do_sys_write fs/read_write.c:611 [inline]
 __se_sys_write fs/read_write.c:608 [inline]
 __x64_sys_write+0x73/0xb0 fs/read_write.c:608
 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
RIP: 0033:0x459f39
Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fa48f2ecc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
CR2: 00007f8d02cf7000 CR3: 0000000091593000 CR4: 00000000001406e0
RAX: ffffffffffffffda RBX: 00007fa48f2ecc90 RCX: 0000000000459f39
RDX: 00000000000002e4 RSI: 0000000020000140 RDI: 0000000000000003
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa48f2ed6d4
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
R13: 00000000004c68f2 R14: 00000000004e19c0 R15: 0000000000000004
could not allocate digest TFM handle nhpoly1305-avx2
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
could not allocate digest TFM handle nhpoly1305-avx2
kobject: 'loop2' (00000000588457a8): kobject_uevent_env

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/28 18:50 linux-4.19.y c3038e718a19 439d7b14 .config console log report ci2-linux-4-19
2019/10/28 03:11 linux-4.19.y c3038e718a19 25bb509e .config console log report ci2-linux-4-19
2019/10/26 08:25 linux-4.19.y c3038e718a19 413926c5 .config console log report ci2-linux-4-19
2019/10/11 18:09 linux-4.19.y dafd634415a7 426631dd .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.