syzbot


KASAN: stack-out-of-bounds Read in debug_check_no_obj_freed (5)

Status: fixed on 2018/08/07 13:43
Subsystems: mm
[Documentation on labels]
Fix commit: 99ba2b5aba24 bpf: sockhash, disallow bpf_tcp_close and update in parallel
First crash: 2142d, last: 2135d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: stack-out-of-bounds Read in debug_check_no_obj_freed (2) mm 1 2152d 2152d 0/26 closed as invalid on 2018/07/07 06:58
upstream KASAN: stack-out-of-bounds Read in debug_check_no_obj_freed fs 1 2152d 2152d 0/26 closed as invalid on 2018/07/06 15:28
upstream KASAN: stack-out-of-bounds Read in debug_check_no_obj_freed (3) kernel 1 2151d 2151d 0/26 closed as invalid on 2018/07/07 11:48
upstream KASAN: stack-out-of-bounds Read in debug_check_no_obj_freed (6) kernel 3 1983d 2012d 0/26 auto-closed as invalid on 2019/06/21 01:44
upstream KASAN: stack-out-of-bounds Read in debug_check_no_obj_freed (4) mm 1 2151d 2151d 0/26 closed as invalid on 2018/07/08 10:03

Sample crash report:
==================================================================
PANIC: double fault, error_code: 0x0
BUG: KASAN: stack-out-of-bounds in __debug_check_no_obj_freed lib/debugobjects.c:775 [inline]
BUG: KASAN: stack-out-of-bounds in debug_check_no_obj_freed+0x467/0x595 lib/debugobjects.c:815
CPU: 1 PID: 12077 Comm: syz-executor0 Not tainted 4.18.0-rc3+ #58
Read of size 8 at addr ffff8801c621e930 by task syz-executor5/12094

Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
CPU: 0 PID: 12094 Comm: syz-executor5 Not tainted 4.18.0-rc3+ #58
RIP: 0010:__lock_acquire+0x2e/0x5020 kernel/locking/lockdep.c:3294
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Code: 
Call Trace:
41 
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1c9/0x2b4 lib/dump_stack.c:113
57 41 
89 cf 
41 56 
41 55 
49 89 
 print_address_description+0x6c/0x20b mm/kasan/report.c:256
fd 
41 54 
 kasan_report_error mm/kasan/report.c:354 [inline]
 kasan_report.cold.7+0x242/0x2fe mm/kasan/report.c:412
45 
 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433
89 
 __debug_check_no_obj_freed lib/debugobjects.c:775 [inline]
 debug_check_no_obj_freed+0x467/0x595 lib/debugobjects.c:815
cc 53 
65 
 free_pages_prepare mm/page_alloc.c:1027 [inline]
 free_pcp_prepare mm/page_alloc.c:1041 [inline]
 free_unref_page_prepare mm/page_alloc.c:2732 [inline]
 free_unref_page+0x35b/0x9a0 mm/page_alloc.c:2781
4c 
8b 34 
25 40 
ee 01 
00 48 
83 e4 
f0 48 
81 ec 
60 
03 00 
 __put_single_page mm/swap.c:80 [inline]
 __put_page+0x122/0x190 mm/swap.c:114
00 48 
8b 45 
 put_page include/linux/mm.h:923 [inline]
 free_page_and_swap_cache+0x4e6/0x760 mm/swap_state.c:304
10 <89> 
94 
24 
80 
00 00 
00 48 
ba 
00 00 
00 00 
00 fc 
ff df 
48 89 
84 24 
98 
RSP: 0018:ffff8801c5b13e30 EFLAGS: 00010086
RAX: 0000000000000000 RBX: 1ffff10038b62842 RCX: 0000000000000002
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff88f92620
RBP: ffff8801c5b141b8 R08: 0000000000000000 R09: 0000000000000000
 __tlb_remove_table arch/x86/include/asm/tlb.h:30 [inline]
 tlb_remove_table+0x279/0x3b0 mm/memory.c:383
R10: ffff8801c6c8fbe0 R11: ffff8801b12a69bb R12: 0000000000000000
R13: ffffffff88f92620 R14: ffff8801b12a6240 R15: 0000000000000002
FS:  0000000001de2940(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff8801c5b13e28 CR3: 00000001a8d55000 CR4: 00000000001406e0
DR0: 0000000020000080 DR1: 0000000000000000 DR2: 0000000000000000
 ___pte_free_tlb+0xfe/0x140 arch/x86/mm/pgtable.c:66
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 __pte_free_tlb arch/x86/include/asm/pgalloc.h:73 [inline]
 free_pte_range mm/memory.c:446 [inline]
 free_pmd_range mm/memory.c:464 [inline]
 free_pud_range mm/memory.c:498 [inline]
 free_p4d_range mm/memory.c:532 [inline]
 free_pgd_range+0xc1d/0xf30 mm/memory.c:612

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/23 06:01 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/18 20:00 bpf-next 8ae71e76cf1f 809256c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/16 16:42 bpf-next 13f7432bdd8e 40cb0c9a .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/16 15:00 bpf-next 13f7432bdd8e 92a49505 .config console log report ci-upstream-bpf-next-kasan-gce
* Struck through repros no longer work on HEAD.