syzbot


KASAN: global-out-of-bounds Read in ax25_hard_header (2)

Status: auto-obsoleted due to no activity on 2023/01/14 10:14
Subsystems: hams
[Documentation on labels]
First crash: 560d, last: 560d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: global-out-of-bounds Read in ax25_hard_header hams 1 904d 904d 0/26 auto-closed as invalid on 2022/01/31 09:56

Sample crash report:
==================================================================
BUG: KASAN: global-out-of-bounds in ax25_hard_header net/ax25/ax25_ip.c:60 [inline]
BUG: KASAN: global-out-of-bounds in ax25_hard_header+0xc5/0x370 net/ax25/ax25_ip.c:45
Read of size 7 at addr ffffffff8a7eb680 by task dhcpcd/3182

CPU: 1 PID: 3182 Comm: dhcpcd Not tainted 6.0.0-syzkaller-09589-g55be6084c8e0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 print_address_description mm/kasan/report.c:317 [inline]
 print_report.cold+0x59/0x719 mm/kasan/report.c:433
 kasan_report+0xb1/0x1e0 mm/kasan/report.c:495
 check_region_inline mm/kasan/generic.c:183 [inline]
 kasan_check_range+0x13d/0x180 mm/kasan/generic.c:189
 memcpy+0x20/0x60 mm/kasan/shadow.c:65
 ax25_hard_header net/ax25/ax25_ip.c:60 [inline]
 ax25_hard_header+0xc5/0x370 net/ax25/ax25_ip.c:45
 dev_hard_header include/linux/netdevice.h:3060 [inline]
 vlan_dev_hard_header+0x13d/0x510 net/8021q/vlan_dev.c:82
 dev_hard_header include/linux/netdevice.h:3060 [inline]
 lapbeth_data_transmit+0x29f/0x350 drivers/net/wan/lapbether.c:257
 lapb_data_transmit+0x8f/0xc0 net/lapb/lapb_iface.c:447
 lapb_transmit_buffer+0x183/0x390 net/lapb/lapb_out.c:149
 lapb_send_control+0x1c7/0x370 net/lapb/lapb_subr.c:251
 lapb_establish_data_link+0xe7/0x110 net/lapb/lapb_out.c:163
 lapb_device_event+0x395/0x560 net/lapb/lapb_iface.c:512
 notifier_call_chain+0xb5/0x200 kernel/notifier.c:87
 call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:1945
 call_netdevice_notifiers_extack net/core/dev.c:1983 [inline]
 call_netdevice_notifiers net/core/dev.c:1997 [inline]
 __dev_notify_flags+0x110/0x2b0 net/core/dev.c:8577
 dev_change_flags+0x112/0x170 net/core/dev.c:8615
 devinet_ioctl+0x1601/0x1ce0 net/ipv4/devinet.c:1146
 inet_ioctl+0x1e6/0x320 net/ipv4/af_inet.c:968
 sock_do_ioctl+0xcc/0x230 net/socket.c:1169
 sock_ioctl+0x2f1/0x640 net/socket.c:1286
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f1d360d50e7
Code: 3c 1c e8 1c ff ff ff 85 c0 79 87 49 c7 c4 ff ff ff ff 5b 5d 4c 89 e0 41 5c c3 66 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 61 9d 0c 00 f7 d8 64 89 01 48
RSP: 002b:00007ffe69842f78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f1d35fe76c8 RCX: 00007f1d360d50e7
RDX: 00007ffe69853168 RSI: 0000000000008914 RDI: 0000000000000037
RBP: 00007ffe69863318 R08: 00007ffe69853128 R09: 00007ffe698530d8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe69853168 R14: 0000000000000028 R15: 0000000000008914
 </TASK>

The buggy address belongs to the variable:
 bcast_addr+0x0/0x14a0

Memory state around the buggy address:
 ffffffff8a7eb580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f9
 ffffffff8a7eb600: f9 f9 f9 f9 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9
>ffffffff8a7eb680: 06 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 06 f9 f9
                   ^
 ffffffff8a7eb700: f9 f9 f9 f9 03 f9 f9 f9 f9 f9 f9 f9 00 00 00 00
 ffffffff8a7eb780: 00 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 04 f9 f9
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/12 20:39 upstream 55be6084c8e0 89b5a509 .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root KASAN: global-out-of-bounds Read in ax25_hard_header
* Struck through repros no longer work on HEAD.