syzbot


KASAN: invalid-access Read in __packet_get_status

Status: upstream: reported C repro on 2023/05/22 10:51
Subsystems: kasan
[Documentation on labels]
Reported-by: syzbot+64b0f633159fde08e1f1@syzkaller.appspotmail.com
First crash: 513d, last: 32d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [net?] KASAN: invalid-access Read in __packet_get_status 3 (5) 2023/12/20 22:24
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/09/11 19:59 10m retest repro upstream report log
2024/08/05 18:15 8m retest repro upstream report log
2024/07/03 19:48 10m retest repro upstream report log
2024/05/27 18:02 10m retest repro upstream report log
2024/04/24 19:38 8m retest repro upstream report log
2024/03/18 17:48 10m retest repro upstream report log
2024/02/14 19:28 10m retest repro upstream report log
2024/01/08 17:37 11m retest repro upstream report log
2023/10/30 17:26 10m retest repro upstream report log
2023/08/21 16:44 4m retest repro upstream error

Sample crash report:
==================================================================
BUG: KASAN: invalid-access in __packet_get_status+0xb0/0x12c net/packet/af_packet.c:439
Read at addr f9ff000006b78000 by task dhcpcd/3066
Pointer tag: [f9], memory tag: [f0]

CPU: 1 PID: 3066 Comm: dhcpcd Not tainted 6.7.0-syzkaller-12824-g9d64bf433c53 #0
Hardware name: linux,dummy-virt (DT)
Call trace:
 dump_backtrace+0x94/0xec arch/arm64/kernel/stacktrace.c:291
 show_stack+0x18/0x24 arch/arm64/kernel/stacktrace.c:298
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x48/0x60 lib/dump_stack.c:106
 print_address_description mm/kasan/report.c:377 [inline]
 print_report+0x108/0x618 mm/kasan/report.c:488
 kasan_report+0x88/0xac mm/kasan/report.c:601
 report_tag_fault arch/arm64/mm/fault.c:334 [inline]
 do_tag_recovery arch/arm64/mm/fault.c:346 [inline]
 __do_kernel_fault+0x17c/0x1e8 arch/arm64/mm/fault.c:393
 do_bad_area arch/arm64/mm/fault.c:493 [inline]
 do_tag_check_fault+0x78/0x8c arch/arm64/mm/fault.c:772
 do_mem_abort+0x44/0x94 arch/arm64/mm/fault.c:848
 el1_abort+0x40/0x60 arch/arm64/kernel/entry-common.c:398
 el1h_64_sync_handler+0xd8/0xe4 arch/arm64/kernel/entry-common.c:458
 el1h_64_sync+0x64/0x68 arch/arm64/kernel/entry.S:593
 __packet_get_status+0xb0/0x12c net/packet/af_packet.c:439
 packet_lookup_frame net/packet/af_packet.c:528 [inline]
 __tpacket_has_room net/packet/af_packet.c:1259 [inline]
 __packet_rcv_has_room+0xf8/0x188 net/packet/af_packet.c:1300
 tpacket_rcv+0x158/0xbcc net/packet/af_packet.c:2286
 deliver_skb net/core/dev.c:2204 [inline]
 dev_queue_xmit_nit+0x110/0x2c0 net/core/dev.c:2274
 xmit_one net/core/dev.c:3543 [inline]
 dev_hard_start_xmit+0x74/0x110 net/core/dev.c:3563
 __dev_queue_xmit+0x1c0/0xe5c net/core/dev.c:4351
 dev_queue_xmit include/linux/netdevice.h:3171 [inline]
 packet_xmit+0xcc/0x144 net/packet/af_packet.c:276
 packet_snd net/packet/af_packet.c:3081 [inline]
 packet_sendmsg+0x828/0x1530 net/packet/af_packet.c:3113
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg+0x54/0x60 net/socket.c:745
 sock_write_iter+0x98/0xf8 net/socket.c:1160
 call_write_iter include/linux/fs.h:2085 [inline]
 do_iter_readv_writev+0x10c/0x180 fs/read_write.c:741
 vfs_writev+0x128/0x2a0 fs/read_write.c:971
 do_writev+0x120/0x15c fs/read_write.c:1018
 __do_sys_writev fs/read_write.c:1091 [inline]
 __se_sys_writev fs/read_write.c:1088 [inline]
 __arm64_sys_writev+0x20/0x2c fs/read_write.c:1088
 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline]
 invoke_syscall+0x48/0x114 arch/arm64/kernel/syscall.c:51
 el0_svc_common.constprop.0+0xc0/0xe0 arch/arm64/kernel/syscall.c:136
 do_el0_svc+0x1c/0x28 arch/arm64/kernel/syscall.c:155
 el0_svc+0x34/0xd8 arch/arm64/kernel/entry-common.c:678
 el0t_64_sync_handler+0x100/0x12c arch/arm64/kernel/entry-common.c:696
 el0t_64_sync+0x19c/0x1a0 arch/arm64/kernel/entry.S:598

The buggy address belongs to the physical page:
page:0000000039bb618b refcount:9 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x46b78
head:0000000039bb618b order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x1ffc18006000040(head|arch_2|arch_3|node=0|zone=0|lastcpupid=0x7ff|kasantag=0x6)
page_type: 0xffffffff()
raw: 01ffc18006000040 0000000000000000 dead000000000122 0000000000000000
raw: 0000000000000000 0000000000000000 00000009ffffffff 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff000006b77e00: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0
 ffff000006b77f00: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0
>ffff000006b78000: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0
                   ^
 ffff000006b78100: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0
 ffff000006b78200: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0
==================================================================

Crashes (64):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/20 13:22 upstream 9d64bf433c53 9bd8dcda .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2023/05/19 12:34 upstream 2d1bcbc6cd70 3bb7af1d .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/07/11 07:13 upstream a19ea421490d c699c2eb .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/03/29 15:16 upstream 317c7bc0ef03 c52bcb23 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/03/29 10:47 upstream 317c7bc0ef03 c52bcb23 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/03/27 11:38 upstream 7033999ecd7b 454571b6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/02/25 14:46 upstream ab0a97cffa0b 8d446f15 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/02/25 12:49 upstream ab0a97cffa0b 8d446f15 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/02/24 12:00 upstream 603c04e27c3e 8d446f15 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/02/23 18:19 upstream b6d69282db55 8d446f15 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/02/23 08:35 upstream ffd2cb6b718e 8d446f15 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/02/23 04:19 upstream ffd2cb6b718e 8d446f15 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/02/22 23:32 upstream 1c892cdd8fe0 bbb79582 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/02/22 17:38 upstream 39133352cbed bbb79582 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/02/22 03:55 upstream 39133352cbed 345111b5 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/02/17 11:52 upstream c1ca10ceffbb 578f7538 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/02/16 11:49 upstream 4f5e5092fdbf 578f7538 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/31 19:24 upstream 1bbb19b6eb1b 373b66cd .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/31 00:28 upstream 861c0981648f 373b66cd .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/30 16:36 upstream 861c0981648f 7f400fcb .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/30 05:59 upstream 861c0981648f 991a98f4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/29 16:49 upstream 41bccc98fb79 991a98f4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/29 09:43 upstream 41bccc98fb79 991a98f4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/28 19:41 upstream 4854cf9c61d0 cc4a4020 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/28 08:09 upstream 8a696a29c690 cc4a4020 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/27 17:34 upstream 3a5879d495b2 cc4a4020 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/26 04:13 upstream ecb1b8288dc7 cc4a4020 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/25 15:02 upstream 6098d87eaf31 cc4a4020 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/25 03:03 upstream 4759ff71f23e 1e153dc8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/24 03:05 upstream 615d30064886 1e153dc8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/23 18:25 upstream 7ed2632ec7d7 bf3b32eb .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/23 17:28 upstream 7ed2632ec7d7 bf3b32eb .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/23 09:58 upstream 7ed2632ec7d7 1c0ecc51 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/23 02:43 upstream 610347effc2e 1c0ecc51 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/22 19:32 upstream 610347effc2e 1c0ecc51 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/22 04:36 upstream 4fbbed787267 9bd8dcda .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/21 00:46 upstream 125514880ddd 9bd8dcda .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/20 19:24 upstream 125514880ddd 9bd8dcda .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/20 11:46 upstream 9d64bf433c53 9bd8dcda .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/20 08:07 upstream 9d64bf433c53 9bd8dcda .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/19 05:24 upstream b0d326da462e 21772ce4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/18 22:56 upstream b0d326da462e 21772ce4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/18 18:15 upstream 296455ade1fd 239abf84 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/18 14:54 upstream 296455ade1fd 239abf84 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/18 07:13 upstream 1b1934dbbdcf 915053c7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/18 01:59 upstream 1b1934dbbdcf 915053c7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2024/01/17 15:22 upstream 052d534373b7 c9a1c95b .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2023/07/01 19:38 upstream 3a8a670eeeaa bfc47836 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2023/07/01 00:15 upstream 3a8a670eeeaa af3053d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2023/06/23 18:14 upstream 8a28a0b6f1a1 79782afc .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2023/06/23 18:04 upstream 8a28a0b6f1a1 79782afc .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2023/06/16 04:34 upstream b6dad5178cea f3921d4d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2023/06/12 05:24 upstream 4c605260bc60 49519f06 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2023/06/06 08:43 upstream f8dba31b0a82 a4ae4f42 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2023/06/06 08:42 upstream f8dba31b0a82 a4ae4f42 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2023/06/06 08:23 upstream f8dba31b0a82 a4ae4f42 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2023/05/27 23:49 upstream 49572d536129 cf184559 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2023/05/27 23:31 upstream 49572d536129 cf184559 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2023/05/26 23:29 upstream 0d85b27b0cc6 1497c3f6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2023/05/19 10:09 upstream 2d1bcbc6cd70 3bb7af1d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2023/05/19 09:39 upstream 2d1bcbc6cd70 3bb7af1d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2023/05/19 09:39 upstream 2d1bcbc6cd70 3bb7af1d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
2023/05/19 09:12 upstream 2d1bcbc6cd70 3bb7af1d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte KASAN: invalid-access Read in __packet_get_status
* Struck through repros no longer work on HEAD.