==================================================================
BUG: KASAN: stack-out-of-bounds in jhash2 include/linux/jhash.h:128 [inline]
BUG: KASAN: stack-out-of-bounds in hash+0x227/0xc20 kernel/bpf/bloom_filter.c:36
Read of size 4 at addr ffffc90000ec7bc0 by task syz-executor272/297
CPU: 0 PID: 297 Comm: syz-executor272 Not tainted 6.1.68-syzkaller-00105-gf085398f0e8f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:316 [inline]
print_report+0x158/0x4e0 mm/kasan/report.c:427
kasan_report+0x13c/0x170 mm/kasan/report.c:531
__asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:350
jhash2 include/linux/jhash.h:128 [inline]
hash+0x227/0xc20 kernel/bpf/bloom_filter.c:36
bloom_map_peek_elem+0xac/0x1a0 kernel/bpf/bloom_filter.c:51
bpf_prog_00798911c748094f+0x3a/0x3e
bpf_dispatcher_nop_func include/linux/bpf.h:982 [inline]
__bpf_prog_run include/linux/filter.h:600 [inline]
bpf_prog_run include/linux/filter.h:607 [inline]
__bpf_trace_run kernel/trace/bpf_trace.c:2275 [inline]
bpf_trace_run2+0x133/0x290 kernel/trace/bpf_trace.c:2314
__bpf_trace_ext4_drop_inode+0x23/0x30 include/trace/events/ext4.h:251
__traceiter_ext4_drop_inode+0x75/0xc0 include/trace/events/ext4.h:251
trace_ext4_drop_inode include/trace/events/ext4.h:251 [inline]
ext4_drop_inode+0x145/0x1a0 fs/ext4/super.c:1366
iput_final fs/inode.c:1759 [inline]
iput+0x393/0x870 fs/inode.c:1815
do_unlinkat+0x4db/0x910 fs/namei.c:4327
__do_sys_unlink fs/namei.c:4368 [inline]
__se_sys_unlink fs/namei.c:4366 [inline]
__x64_sys_unlink+0x49/0x50 fs/namei.c:4366
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fa15d754f87
Code: 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 57 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffef05f3a78 EFLAGS: 00000206
ORIG_RAX: 0000000000000057
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa15d754f87
RDX: 00007ffef05f3aa0 RSI: 00007ffef05f3b30 RDI: 00007ffef05f3b30
RBP: 00007ffef05f3b30 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000100 R11: 0000000000000206 R12: 00007ffef05f4ba0
R13: 00005555557dd6c0 R14: 00007ffef05f4ba0 R15: 0000000000000001
The buggy address belongs to stack of task syz-executor272/297
and is located at offset 0 in frame:
bpf_trace_run2+0x0/0x290
This frame has 1 object:
[32, 48) 'args'
The buggy address belongs to the virtual mapping at
[ffffc90000ec0000, ffffc90000ec9000) created by:
copy_process+0x5c3/0x3530 kernel/fork.c:2199
The buggy address belongs to the physical page:
page:ffffea0004875300 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x121d4c
flags: 0x4000000000000000(zone=1)
raw: 4000000000000000 0000000000000000 dead000000000122 0000000000000000
raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2dc2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_ZERO), pid 293, tgid 293 (syz-executor272), ts 19832807389, free_ts 0
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x213/0x220 mm/page_alloc.c:2566
prep_new_page+0x1b/0x110 mm/page_alloc.c:2573
get_page_from_freelist+0x27ea/0x2870 mm/page_alloc.c:4397
__alloc_pages+0x3a1/0x780 mm/page_alloc.c:5684
__vmalloc_area_node mm/vmalloc.c:3062 [inline]
__vmalloc_node_range+0x89b/0x1540 mm/vmalloc.c:3234
alloc_thread_stack_node kernel/fork.c:318 [inline]
dup_task_struct+0x3d6/0x7d0 kernel/fork.c:1080
copy_process+0x5c3/0x3530 kernel/fork.c:2199
kernel_clone+0x229/0x890 kernel/fork.c:2786
__do_sys_clone kernel/fork.c:2929 [inline]
__se_sys_clone kernel/fork.c:2913 [inline]
__x64_sys_clone+0x231/0x280 kernel/fork.c:2913
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x63/0xcd
page_owner free stack trace missing
Memory state around the buggy address:
ffffc90000ec7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffffc90000ec7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffffc90000ec7b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f3 f3
^
ffffc90000ec7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffffc90000ec7c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
BUG: unable to handle page fault for address: ffffc90000ec8000
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 100000067 P4D 100000067
PUD 100154067
PMD 121356067 PTE 0
Oops: 0000 [#2] PREEMPT SMP KASAN
CPU: 0 PID: 297 Comm: syz-executor272 Tainted: G B D 6.1.68-syzkaller-00105-gf085398f0e8f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:jhash2 include/linux/jhash.h:127 [inline]
RIP: 0010:hash+0xfe/0xc20 kernel/bpf/bloom_filter.c:36
Code: fc ff df 0f b6 04 10 84 c0 0f 85 c1 00 00 00 45 03 6e f4 48 8d 7e 04 48 89 f8 48 c1 e8 03 0f b6 04 10 84 c0 0f 85 db 00 00 00 <41> 03 5e f8 48 8d 7e 08 48 89 f8 48 c1 e8 03 0f b6 04 10 84 c0 0f
RSP: 0018:ffffc90000ec7ac8 EFLAGS: 00010282
RAX: 0000000000000000 RBX: 00000000d5a121fa RCX: ffffffff8191d465
RDX: dffffc0000000000 RSI: ffffc90000ec7ffc RDI: ffffc90000ec8000
RBP: ffffc90000ec7b08 R08: 000000003ffffe60 R09: fffffbfff0ee5cfd
R10: 0000000000000000 R11: dffffc0000000001 R12: 000000005e4756df
R13: 0000000011205f4e R14: ffffc90000ec8008 R15: ffffc90000ec7ffc
FS: 00005555557dc380(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90000ec8000 CR3: 0000000121d4e000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
bloom_map_peek_elem+0xac/0x1a0 kernel/bpf/bloom_filter.c:51
bpf_prog_00798911c748094f+0x3a/0x3e
bpf_dispatcher_nop_func include/linux/bpf.h:982 [inline]
__bpf_prog_run include/linux/filter.h:600 [inline]
bpf_prog_run include/linux/filter.h:607 [inline]
__bpf_trace_run kernel/trace/bpf_trace.c:2275 [inline]
bpf_trace_run2+0x133/0x290 kernel/trace/bpf_trace.c:2314
__bpf_trace_ext4_drop_inode+0x23/0x30 include/trace/events/ext4.h:251
__traceiter_ext4_drop_inode+0x75/0xc0 include/trace/events/ext4.h:251
trace_ext4_drop_inode include/trace/events/ext4.h:251 [inline]
ext4_drop_inode+0x145/0x1a0 fs/ext4/super.c:1366
iput_final fs/inode.c:1759 [inline]
iput+0x393/0x870 fs/inode.c:1815
do_unlinkat+0x4db/0x910 fs/namei.c:4327
__do_sys_unlink fs/namei.c:4368 [inline]
__se_sys_unlink fs/namei.c:4366 [inline]
__x64_sys_unlink+0x49/0x50 fs/namei.c:4366
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fa15d754f87
Code: 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 57 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffef05f3a78 EFLAGS: 00000206 ORIG_RAX: 0000000000000057
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa15d754f87
RDX: 00007ffef05f3aa0 RSI: 00007ffef05f3b30 RDI: 00007ffef05f3b30
RBP: 00007ffef05f3b30 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000100 R11: 0000000000000206 R12: 00007ffef05f4ba0
R13: 00005555557dd6c0 R14: 00007ffef05f4ba0 R15: 0000000000000001
Modules linked in:
CR2: ffffc90000ec8000
---[ end trace 0000000000000000 ]---
RIP: 0010:jhash2 include/linux/jhash.h:127 [inline]
RIP: 0010:hash+0xfe/0xc20 kernel/bpf/bloom_filter.c:36
Code: fc ff df 0f b6 04 10 84 c0 0f 85 c1 00 00 00 45 03 6e f4 48 8d 7e 04 48 89 f8 48 c1 e8 03 0f b6 04 10 84 c0 0f 85 db 00 00 00 <41> 03 5e f8 48 8d 7e 08 48 89 f8 48 c1 e8 03 0f b6 04 10 84 c0 0f
RSP: 0018:ffffc90000e97ac8 EFLAGS: 00010282
RAX: 0000000000000000 RBX: 00000000743f56fa RCX: ffffffff8191d465
RDX: dffffc0000000000 RSI: ffffc90000e97ffc RDI: ffffc90000e98000
RBP: ffffc90000e97b08 R08: 000000003ffffe60 R09: fffffbfff0e9dfd6
R10: 0000000000000000 R11: dffffc0000000001 R12: 00000000894b4975
R13: 00000000e22e2521 R14: ffffc90000e98008 R15: ffffc90000e97ffc
FS: 00005555557dc380(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90000ec8000 CR3: 0000000121d4e000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 2 bytes skipped:
0: df 0f fisttps (%rdi)
2: b6 04 mov $0x4,%dh
4: 10 84 c0 0f 85 c1 00 adc %al,0xc1850f(%rax,%rax,8)
b: 00 00 add %al,(%rax)
d: 45 03 6e f4 add -0xc(%r14),%r13d
11: 48 8d 7e 04 lea 0x4(%rsi),%rdi
15: 48 89 f8 mov %rdi,%rax
18: 48 c1 e8 03 shr $0x3,%rax
1c: 0f b6 04 10 movzbl (%rax,%rdx,1),%eax
20: 84 c0 test %al,%al
22: 0f 85 db 00 00 00 jne 0x103
* 28: 41 03 5e f8 add -0x8(%r14),%ebx <-- trapping instruction
2c: 48 8d 7e 08 lea 0x8(%rsi),%rdi
30: 48 89 f8 mov %rdi,%rax
33: 48 c1 e8 03 shr $0x3,%rax
37: 0f b6 04 10 movzbl (%rax,%rdx,1),%eax
3b: 84 c0 test %al,%al
3d: 0f .byte 0xf