[v5.15] KASAN: use-after-free Read in ip_skb_dst_mtu

0 views
Skip to first unread message

syzbot

unread,
Feb 15, 2024, 1:25:33 PMFeb 15
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 6139f2a02fe0 Linux 5.15.148
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=131b6592180000
kernel config: https://syzkaller.appspot.com/x/.config?x=c170eb20d8be8542
dashboard link: https://syzkaller.appspot.com/bug?extid=39ef7f13906d535d2ef1
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/528e8fe56997/disk-6139f2a0.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/18abf1e442f9/vmlinux-6139f2a0.xz
kernel image: https://storage.googleapis.com/syzbot-assets/0538a5d3b1f3/bzImage-6139f2a0.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+39ef7f...@syzkaller.appspotmail.com

==================================================================
BUG: KASAN: use-after-free in sk_fullsock include/net/sock.h:2746 [inline]
BUG: KASAN: use-after-free in ip_skb_dst_mtu+0x84a/0x9d0 include/net/ip.h:478
Read of size 1 at addr ffff88807ba8c012 by task syz-executor.2/3894

CPU: 0 PID: 3894 Comm: syz-executor.2 Not tainted 5.15.148-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
Call Trace:
<IRQ>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
print_address_description+0x63/0x3b0 mm/kasan/report.c:248
__kasan_report mm/kasan/report.c:434 [inline]
kasan_report+0x16b/0x1c0 mm/kasan/report.c:451
sk_fullsock include/net/sock.h:2746 [inline]
ip_skb_dst_mtu+0x84a/0x9d0 include/net/ip.h:478
__ip_finish_output+0x133/0x4a0 net/ipv4/ip_output.c:299
ipvlan_process_v4_outbound+0x3cb/0x6b0 drivers/net/ipvlan/ipvlan_core.c:443
ipvlan_process_outbound drivers/net/ipvlan/ipvlan_core.c:541 [inline]
ipvlan_xmit_mode_l3 drivers/net/ipvlan/ipvlan_core.c:604 [inline]
ipvlan_queue_xmit+0xa4c/0x1150 drivers/net/ipvlan/ipvlan_core.c:670
ipvlan_start_xmit+0x46/0x180 drivers/net/ipvlan/ipvlan_main.c:222
__netdev_start_xmit include/linux/netdevice.h:5019 [inline]
netdev_start_xmit include/linux/netdevice.h:5033 [inline]
xmit_one net/core/dev.c:3617 [inline]
dev_hard_start_xmit+0x298/0x7a0 net/core/dev.c:3633
sch_direct_xmit+0x2b2/0x5e0 net/sched/sch_generic.c:342
qdisc_restart net/sched/sch_generic.c:407 [inline]
__qdisc_run+0xae2/0x1e90 net/sched/sch_generic.c:415
qdisc_run+0x10d/0x320 include/net/pkt_sched.h:132
net_tx_action+0x73a/0x8e0 net/core/dev.c:5088
__do_softirq+0x3b3/0x93a kernel/softirq.c:558
invoke_softirq kernel/softirq.c:432 [inline]
__irq_exit_rcu+0x155/0x240 kernel/softirq.c:637
irq_exit_rcu+0x5/0x20 kernel/softirq.c:649
sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:rmqueue mm/page_alloc.c:3690 [inline]
RIP: 0010:get_page_from_freelist+0x2976/0x33c0 mm/page_alloc.c:4156
Code: 0f e8 8e 15 0a 00 48 ba 00 00 00 00 00 fc ff df f6 84 24 01 02 00 00 02 0f 85 b0 04 00 00 41 f7 c4 00 02 00 00 74 01 fb 31 c0 <48> 89 44 24 20 4d 85 f6 0f 84 55 01 00 00 4c 89 f3 49 c1 ee 03 41
RSP: 0018:ffffc90002dc7020 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 1ffff920005b8e44 RCX: ffffffff8162ee28
RDX: dffffc0000000000 RSI: ffffffff8a8b0f80 RDI: ffffc90002dc7220
RBP: ffffc90002dc72d0 R08: dffffc0000000000 R09: fffffbfff1f7a03b
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000246
R13: 0000000000000981 R14: ffffea0000f96040 R15: ffff8880b9a3fd40
__alloc_pages+0x272/0x700 mm/page_alloc.c:5421
__page_cache_alloc+0xd4/0x4a0 mm/filemap.c:1022
page_cache_ra_unbounded+0x2b1/0x930 mm/readahead.c:216
page_cache_async_readahead include/linux/pagemap.h:856 [inline]
do_async_mmap_readahead mm/filemap.c:3023 [inline]
filemap_fault+0x669/0x1470 mm/filemap.c:3079
__do_fault+0x139/0x340 mm/memory.c:3898
do_read_fault mm/memory.c:4234 [inline]
do_fault mm/memory.c:4362 [inline]
handle_pte_fault mm/memory.c:4621 [inline]
__handle_mm_fault mm/memory.c:4756 [inline]
handle_mm_fault+0x376f/0x5950 mm/memory.c:4854
faultin_page mm/gup.c:976 [inline]
__get_user_pages+0x4ed/0x11d0 mm/gup.c:1197
populate_vma_page_range+0x215/0x2a0 mm/gup.c:1529
__mm_populate+0x2a5/0x4a0 mm/gup.c:1638
mm_populate include/linux/mm.h:2632 [inline]
vm_mmap_pgoff+0x22b/0x2d0 mm/util.c:556
ksys_mmap_pgoff+0x559/0x780 mm/mmap.c:1624
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fbedd63cda9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 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 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fbedbb9c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007fbedd76b050 RCX: 00007fbedd63cda9
RDX: 00000000027fffff RSI: 0000000000600000 RDI: 0000000020000000
RBP: 00007fbedd68947a R08: 0000000000000004 R09: 0000000000000000
R10: 0000000004002011 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007fbedd76b050 R15: 00007fff01a4a168
</TASK>

Allocated by task 3916:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track mm/kasan/common.c:46 [inline]
set_alloc_info mm/kasan/common.c:434 [inline]
____kasan_kmalloc+0xba/0xf0 mm/kasan/common.c:513
kasan_kmalloc include/linux/kasan.h:264 [inline]
__kmalloc+0x168/0x300 mm/slub.c:4407
kmalloc include/linux/slab.h:596 [inline]
sk_prot_alloc+0xe0/0x200 net/core/sock.c:1852
sk_alloc+0x35/0x310 net/core/sock.c:1905
packet_create+0x100/0x7a0 net/packet/af_packet.c:3316
__sock_create+0x460/0x8d0 net/socket.c:1486
sock_create net/socket.c:1537 [inline]
__sys_socket+0x132/0x370 net/socket.c:1579
__do_sys_socket net/socket.c:1588 [inline]
__se_sys_socket net/socket.c:1586 [inline]
__x64_sys_socket+0x76/0x80 net/socket.c:1586
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb

Freed by task 3894:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track+0x4b/0x80 mm/kasan/common.c:46
kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360
____kasan_slab_free+0xd8/0x120 mm/kasan/common.c:366
kasan_slab_free include/linux/kasan.h:230 [inline]
slab_free_hook mm/slub.c:1705 [inline]
slab_free_freelist_hook+0xdd/0x160 mm/slub.c:1731
slab_free mm/slub.c:3499 [inline]
kfree+0xf1/0x270 mm/slub.c:4559
sk_prot_free net/core/sock.c:1888 [inline]
__sk_destruct+0x58e/0x840 net/core/sock.c:1974
skb_orphan include/linux/skbuff.h:2896 [inline]
ip_defrag+0x203/0x2590 net/ipv4/ip_fragment.c:482
nf_ct_ipv4_gather_frags net/ipv4/netfilter/nf_defrag_ipv4.c:31 [inline]
ipv4_conntrack_defrag+0x3b1/0x580 net/ipv4/netfilter/nf_defrag_ipv4.c:86
nf_hook_entry_hookfn include/linux/netfilter.h:142 [inline]
nf_hook_slow+0xae/0x1e0 net/netfilter/core.c:584
nf_hook+0x2a6/0x430 include/linux/netfilter.h:257
__ip_local_out+0x3b2/0x4f0 net/ipv4/ip_output.c:115
ip_local_out+0x26/0x120 net/ipv4/ip_output.c:124
ipvlan_process_v4_outbound+0x3cb/0x6b0 drivers/net/ipvlan/ipvlan_core.c:443
ipvlan_process_outbound drivers/net/ipvlan/ipvlan_core.c:541 [inline]
ipvlan_xmit_mode_l3 drivers/net/ipvlan/ipvlan_core.c:604 [inline]
ipvlan_queue_xmit+0xa4c/0x1150 drivers/net/ipvlan/ipvlan_core.c:670
ipvlan_start_xmit+0x46/0x180 drivers/net/ipvlan/ipvlan_main.c:222
__netdev_start_xmit include/linux/netdevice.h:5019 [inline]
netdev_start_xmit include/linux/netdevice.h:5033 [inline]
xmit_one net/core/dev.c:3617 [inline]
dev_hard_start_xmit+0x298/0x7a0 net/core/dev.c:3633
sch_direct_xmit+0x2b2/0x5e0 net/sched/sch_generic.c:342
qdisc_restart net/sched/sch_generic.c:407 [inline]
__qdisc_run+0xae2/0x1e90 net/sched/sch_generic.c:415
qdisc_run+0x10d/0x320 include/net/pkt_sched.h:132
net_tx_action+0x73a/0x8e0 net/core/dev.c:5088
__do_softirq+0x3b3/0x93a kernel/softirq.c:558

The buggy address belongs to the object at ffff88807ba8c000
which belongs to the cache kmalloc-4k of size 4096
The buggy address is located 18 bytes inside of
4096-byte region [ffff88807ba8c000, ffff88807ba8d000)
The buggy address belongs to the page:
page:ffffea0001eea200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7ba88
head:ffffea0001eea200 order:3 compound_mapcount:0 compound_pincount:0
flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000010200 0000000000000000 dead000000000122 ffff888011c42140
raw: 0000000000000000 0000000000040004 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 3544, ts 163807024528, free_ts 163641922486
prep_new_page mm/page_alloc.c:2426 [inline]
get_page_from_freelist+0x322a/0x33c0 mm/page_alloc.c:4159
__alloc_pages+0x272/0x700 mm/page_alloc.c:5421
alloc_slab_page mm/slub.c:1775 [inline]
allocate_slab mm/slub.c:1912 [inline]
new_slab+0xbb/0x4b0 mm/slub.c:1975
___slab_alloc+0x6f6/0xe10 mm/slub.c:3008
__slab_alloc mm/slub.c:3095 [inline]
slab_alloc_node mm/slub.c:3186 [inline]
slab_alloc mm/slub.c:3228 [inline]
__kmalloc+0x1c9/0x300 mm/slub.c:4403
kmalloc include/linux/slab.h:596 [inline]
tomoyo_realpath_from_path+0xd8/0x5e0 security/tomoyo/realpath.c:254
tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
tomoyo_path_number_perm+0x225/0x810 security/tomoyo/file.c:723
security_file_ioctl+0x6d/0xa0 security/security.c:1555
__do_sys_ioctl fs/ioctl.c:868 [inline]
__se_sys_ioctl+0x47/0x160 fs/ioctl.c:860
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1340 [inline]
free_pcp_prepare mm/page_alloc.c:1391 [inline]
free_unref_page_prepare+0xc34/0xcf0 mm/page_alloc.c:3317
free_unref_page+0x95/0x2d0 mm/page_alloc.c:3396
free_slab mm/slub.c:2015 [inline]
discard_slab mm/slub.c:2021 [inline]
__unfreeze_partials+0x1b7/0x210 mm/slub.c:2507
put_cpu_partial+0x132/0x1a0 mm/slub.c:2587
do_slab_free mm/slub.c:3487 [inline]
___cache_free+0xe3/0x100 mm/slub.c:3506
qlist_free_all+0x36/0x90 mm/kasan/quarantine.c:176
kasan_quarantine_reduce+0x162/0x180 mm/kasan/quarantine.c:283
__kasan_slab_alloc+0x2f/0xc0 mm/kasan/common.c:444
kasan_slab_alloc include/linux/kasan.h:254 [inline]
slab_post_alloc_hook+0x53/0x380 mm/slab.h:519
slab_alloc_node mm/slub.c:3220 [inline]
slab_alloc mm/slub.c:3228 [inline]
__kmalloc+0x120/0x300 mm/slub.c:4403
kmalloc include/linux/slab.h:596 [inline]
tomoyo_realpath_from_path+0xd8/0x5e0 security/tomoyo/realpath.c:254
tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
tomoyo_path_perm+0x273/0x6b0 security/tomoyo/file.c:822
security_inode_getattr+0xcf/0x120 security/security.c:1348
vfs_getattr+0x26/0x360 fs/stat.c:157
vfs_statx+0x18f/0x3b0 fs/stat.c:225
vfs_fstatat fs/stat.c:243 [inline]
__do_sys_newfstatat fs/stat.c:411 [inline]
__se_sys_newfstatat fs/stat.c:405 [inline]
__x64_sys_newfstatat+0x12c/0x1b0 fs/stat.c:405

Memory state around the buggy address:
ffff88807ba8bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88807ba8bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88807ba8c000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88807ba8c080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88807ba8c100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
----------------
Code disassembly (best guess), 1 bytes skipped:
0: e8 8e 15 0a 00 call 0xa1593
5: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx
c: fc ff df
f: f6 84 24 01 02 00 00 testb $0x2,0x201(%rsp)
16: 02
17: 0f 85 b0 04 00 00 jne 0x4cd
1d: 41 f7 c4 00 02 00 00 test $0x200,%r12d
24: 74 01 je 0x27
26: fb sti
27: 31 c0 xor %eax,%eax
* 29: 48 89 44 24 20 mov %rax,0x20(%rsp) <-- trapping instruction
2e: 4d 85 f6 test %r14,%r14
31: 0f 84 55 01 00 00 je 0x18c
37: 4c 89 f3 mov %r14,%rbx
3a: 49 c1 ee 03 shr $0x3,%r14
3e: 41 rex.B


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Feb 25, 2024, 6:46:24 AMFeb 25
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 458ce51d0356 Linux 5.15.149
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=131a425c180000
kernel config: https://syzkaller.appspot.com/x/.config?x=8c016b4e71f1c777
dashboard link: https://syzkaller.appspot.com/bug?extid=39ef7f13906d535d2ef1
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17660106180000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1262d0bc180000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/c84f9ea3bbab/disk-458ce51d.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/70bdbf46c57d/vmlinux-458ce51d.xz
kernel image: https://storage.googleapis.com/syzbot-assets/73fc8d1364f3/bzImage-458ce51d.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+39ef7f...@syzkaller.appspotmail.com

==================================================================
BUG: KASAN: use-after-free in sk_fullsock include/net/sock.h:2746 [inline]
BUG: KASAN: use-after-free in ip_skb_dst_mtu+0x84a/0x9d0 include/net/ip.h:478
Read of size 1 at addr ffff88814ac5e012 by task sshd/3499

CPU: 1 PID: 3499 Comm: sshd Not tainted 5.15.149-syzkaller #0
RIP: 0010:do_poll fs/select.c:964 [inline]
RIP: 0010:do_sys_poll+0xd60/0x11e0 fs/select.c:1014
Code: 00 00 48 89 da eb 0a e8 9e 16 a5 ff 48 8b 54 24 78 48 8d bc 24 20 01 00 00 48 89 54 24 78 48 8b 4c 24 70 e8 a2 e9 ff ff 89 c3 <c7> 44 24 20 00 00 00 00 31 ff 89 c6 e8 cf 19 a5 ff 45 31 ff 85 db
RSP: 0018:ffffc900030278a0 EFLAGS: 00000282
RAX: 00000000fffffffc RBX: 00000000fffffffc RCX: ffffffff81db09e1
RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffc900030279e0
RBP: ffffc90003027e10 R08: dffffc0000000000 R09: fffff52000604f3d
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 0000000225c17d03 R14: 0000006cf3fc5676 R15: 00000000000001d3
__do_sys_ppoll fs/select.c:1120 [inline]
__se_sys_ppoll+0x29c/0x330 fs/select.c:1100
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fd7520cfad5
Code: 85 d2 74 0d 0f 10 02 48 8d 54 24 20 0f 11 44 24 20 64 8b 04 25 18 00 00 00 85 c0 75 27 41 b8 08 00 00 00 b8 0f 01 00 00 0f 05 <48> 3d 00 f0 ff ff 76 75 48 8b 15 24 73 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffe93c814f0 EFLAGS: 00000246 ORIG_RAX: 000000000000010f
RAX: ffffffffffffffda RBX: 00000000000668a0 RCX: 00007fd7520cfad5
RDX: 00007ffe93c81510 RSI: 0000000000000004 RDI: 000055a16e34d7d0
RBP: 000055a16e34c3a0 R08: 0000000000000008 R09: 0000000000000000
R10: 00007ffe93c815f8 R11: 0000000000000246 R12: 000055a16d368aa4
R13: 0000000000000001 R14: 000055a16d3693e8 R15: 00007ffe93c81578
</TASK>

Allocated by task 3567:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track mm/kasan/common.c:46 [inline]
set_alloc_info mm/kasan/common.c:434 [inline]
____kasan_kmalloc+0xba/0xf0 mm/kasan/common.c:513
kasan_kmalloc include/linux/kasan.h:264 [inline]
__kmalloc+0x168/0x300 mm/slub.c:4407
kmalloc include/linux/slab.h:596 [inline]
sk_prot_alloc+0xe0/0x200 net/core/sock.c:1852
sk_alloc+0x35/0x310 net/core/sock.c:1905
packet_create+0x100/0x7a0 net/packet/af_packet.c:3316
__sock_create+0x460/0x8d0 net/socket.c:1486
sock_create net/socket.c:1537 [inline]
__sys_socket+0x132/0x370 net/socket.c:1579
__do_sys_socket net/socket.c:1588 [inline]
__se_sys_socket net/socket.c:1586 [inline]
__x64_sys_socket+0x76/0x80 net/socket.c:1586
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb

Freed by task 3499:
The buggy address belongs to the object at ffff88814ac5e000
which belongs to the cache kmalloc-4k of size 4096
The buggy address is located 18 bytes inside of
4096-byte region [ffff88814ac5e000, ffff88814ac5f000)
The buggy address belongs to the page:
page:ffffea00052b1600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14ac58
head:ffffea00052b1600 order:3 compound_mapcount:0 compound_pincount:0
flags: 0x57ff00000010200(slab|head|node=1|zone=2|lastcpupid=0x7ff)
raw: 057ff00000010200 dead000000000100 dead000000000122 ffff888011c42140
raw: 0000000000000000 0000000000040004 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, ts 8807362240, free_ts 0
prep_new_page mm/page_alloc.c:2426 [inline]
get_page_from_freelist+0x322a/0x33c0 mm/page_alloc.c:4159
__alloc_pages+0x272/0x700 mm/page_alloc.c:5421
alloc_page_interleave+0x22/0x1c0 mm/mempolicy.c:2031
alloc_slab_page mm/slub.c:1775 [inline]
allocate_slab mm/slub.c:1912 [inline]
new_slab+0xbb/0x4b0 mm/slub.c:1975
___slab_alloc+0x6f6/0xe10 mm/slub.c:3008
__slab_alloc mm/slub.c:3095 [inline]
slab_alloc_node mm/slub.c:3186 [inline]
slab_alloc mm/slub.c:3228 [inline]
kmem_cache_alloc_trace+0x1a0/0x290 mm/slub.c:3245
kmalloc include/linux/slab.h:591 [inline]
kzalloc include/linux/slab.h:721 [inline]
kobject_uevent_env+0x283/0x8d0 lib/kobject_uevent.c:524
rx_queue_add_kobject net/core/net-sysfs.c:1070 [inline]
net_rx_queue_update_kobjects+0x215/0x470 net/core/net-sysfs.c:1110
register_queue_kobjects net/core/net-sysfs.c:1767 [inline]
netdev_register_kobject+0x222/0x310 net/core/net-sysfs.c:2018
register_netdevice+0x108c/0x1720 net/core/dev.c:10354
register_netdev+0x37/0x50 net/core/dev.c:10478
nr_proto_init+0x16f/0x822 net/netrom/af_netrom.c:1424
do_one_initcall+0x22b/0x7a0 init/main.c:1299
do_initcall_level+0x157/0x207 init/main.c:1372
do_initcalls+0x49/0x86 init/main.c:1388
kernel_init_freeable+0x425/0x5b5 init/main.c:1612
page_owner free stack trace missing

Memory state around the buggy address:
ffff88814ac5df00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88814ac5df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88814ac5e000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88814ac5e080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88814ac5e100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
----------------
Code disassembly (best guess):
0: 00 00 add %al,(%rax)
2: 48 89 da mov %rbx,%rdx
5: eb 0a jmp 0x11
7: e8 9e 16 a5 ff call 0xffa516aa
c: 48 8b 54 24 78 mov 0x78(%rsp),%rdx
11: 48 8d bc 24 20 01 00 lea 0x120(%rsp),%rdi
18: 00
19: 48 89 54 24 78 mov %rdx,0x78(%rsp)
1e: 48 8b 4c 24 70 mov 0x70(%rsp),%rcx
23: e8 a2 e9 ff ff call 0xffffe9ca
28: 89 c3 mov %eax,%ebx
* 2a: c7 44 24 20 00 00 00 movl $0x0,0x20(%rsp) <-- trapping instruction
31: 00
32: 31 ff xor %edi,%edi
34: 89 c6 mov %eax,%esi
36: e8 cf 19 a5 ff call 0xffa51a0a
3b: 45 31 ff xor %r15d,%r15d
3e: 85 db test %ebx,%ebx


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Reply all
Reply to author
Forward
0 new messages