KASAN: use-after-free Write in __internal_add_timer

24 visningar
Hoppa till det första olästa meddelandet

syzbot

oläst,
4 juli 2020 13:00:162020-07-04
till syzkaller-a...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 45217b91 UPSTREAM: net: bpf: Make bpf_ktime_get_ns() avail..
git tree: android-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=16b68c6b100000
kernel config: https://syzkaller.appspot.com/x/.config?x=ca0e7e103262f74f
dashboard link: https://syzkaller.appspot.com/bug?extid=808b558a11df12fd2957
compiler: Android (6032204 based on r370808) clang version 10.0.1 (https://android.googlesource.com/toolchain/llvm-project 6e765c10313d15c02ab29977a82938f66742c3a9)

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

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+808b55...@syzkaller.appspotmail.com

==================================================================
BUG: KASAN: use-after-free in hlist_add_head include/linux/list.h:787 [inline]
BUG: KASAN: use-after-free in enqueue_timer kernel/time/timer.c:540 [inline]
BUG: KASAN: use-after-free in __internal_add_timer+0x28d/0x490 kernel/time/timer.c:553
Write of size 8 at addr ffff8881ce0eb188 by task swapper/0/0

CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.50-syzkaller-01110-g45217b91eaaa #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
<IRQ>
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x14a/0x1ce lib/dump_stack.c:118
print_address_description+0x93/0x620 mm/kasan/report.c:374
__kasan_report+0x16d/0x1e0 mm/kasan/report.c:506
kasan_report+0x36/0x60 mm/kasan/common.c:634
hlist_add_head include/linux/list.h:787 [inline]
enqueue_timer kernel/time/timer.c:540 [inline]
__internal_add_timer+0x28d/0x490 kernel/time/timer.c:553
internal_add_timer kernel/time/timer.c:595 [inline]
__mod_timer+0xbf4/0x1af0 kernel/time/timer.c:1053
mld_ifc_start_timer net/ipv6/mcast.c:1053 [inline]
mld_ifc_timer_expire+0xb38/0xc80 net/ipv6/mcast.c:2481
call_timer_fn+0x154/0x340 kernel/time/timer.c:1404
expire_timers+0x35c/0x470 kernel/time/timer.c:1449
__run_timers+0x662/0x7b0 kernel/time/timer.c:1773
run_timer_softirq+0x19/0x30 kernel/time/timer.c:1786
__do_softirq+0x2d5/0x725 kernel/softirq.c:292
invoke_softirq kernel/softirq.c:373 [inline]
irq_exit+0x16d/0x180 kernel/softirq.c:413
exiting_irq arch/x86/include/asm/apic.h:546 [inline]
smp_apic_timer_interrupt+0x281/0x3f0 arch/x86/kernel/apic/apic.c:1146
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:831
</IRQ>
RIP: 0010:default_idle+0x1f/0x30 arch/x86/kernel/process.c:573
Code: ff e8 55 15 42 fd 90 90 90 90 90 65 8b 35 d1 44 2a 7c bf 01 00 00 00 e8 4f a1 30 fd e9 07 00 00 00 0f 00 2d ab 31 49 00 fb f4 <65> 8b 35 b2 44 2a 7c bf ff ff ff ff e9 30 a1 30 fd 41 57 41 56 53
RSP: 0018:ffffffff84c07d18 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 7ecab8627a8f2e01 RBX: ffffffff84c14980 RCX: ffffffff8124c720
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffffffff84c07e20 R08: dffffc0000000000 R09: fffffbfff0982931
R10: fffffbfff0982931 R11: 0000000000000000 R12: ffffffff84d900a0
R13: 0000000000000000 R14: dffffc0000000000 R15: 1ffffffff0982930
default_idle_call kernel/sched/idle.c:94 [inline]
cpuidle_idle_call kernel/sched/idle.c:154 [inline]
do_idle+0x209/0x5e0 kernel/sched/idle.c:263
cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:355
start_kernel+0x7a3/0x873 init/main.c:784
secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:241

Allocated by task 7300:
save_stack mm/kasan/common.c:69 [inline]
set_track mm/kasan/common.c:77 [inline]
__kasan_kmalloc+0x12c/0x1c0 mm/kasan/common.c:510
__kmalloc+0xf7/0x2d0 mm/slub.c:3821
__kmalloc_node include/linux/slab.h:422 [inline]
kmalloc_node include/linux/slab.h:599 [inline]
kvmalloc_node+0xc2/0x120 mm/util.c:564
kvmalloc include/linux/mm.h:678 [inline]
kvzalloc include/linux/mm.h:686 [inline]
netif_alloc_netdev_queues net/core/dev.c:8920 [inline]
alloc_netdev_mqs+0x5bf/0xc60 net/core/dev.c:9550
sit_init_net+0x179/0x480 net/ipv6/sit.c:1854
ops_init+0x26e/0x340 net/core/net_namespace.c:137
setup_net+0x22b/0xac0 net/core/net_namespace.c:335
copy_net_ns+0x2e5/0x4a0 net/core/net_namespace.c:476
create_new_namespaces+0x57b/0x680 kernel/nsproxy.c:103
unshare_nsproxy_namespaces+0x11e/0x180 kernel/nsproxy.c:202
ksys_unshare+0x52f/0xa40 kernel/fork.c:2874
__do_sys_unshare kernel/fork.c:2942 [inline]
__se_sys_unshare kernel/fork.c:2940 [inline]
__x64_sys_unshare+0x34/0x40 kernel/fork.c:2940
do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9

Freed by task 392:
save_stack mm/kasan/common.c:69 [inline]
set_track mm/kasan/common.c:77 [inline]
kasan_set_free_info mm/kasan/common.c:332 [inline]
__kasan_slab_free+0x181/0x230 mm/kasan/common.c:471
slab_free_hook mm/slub.c:1424 [inline]
slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1457
slab_free mm/slub.c:3014 [inline]
kfree+0x12b/0x600 mm/slub.c:3975
netif_free_tx_queues net/core/dev.c:8908 [inline]
free_netdev+0x43/0x300 net/core/dev.c:9594
netdev_run_todo+0xc38/0xe90 net/core/dev.c:9353
sit_exit_batch_net+0x652/0x690 net/ipv6/sit.c:1897
ops_exit_list net/core/net_namespace.c:175 [inline]
cleanup_net+0x79c/0xd60 net/core/net_namespace.c:597
process_one_work+0x777/0xf90 kernel/workqueue.c:2274
worker_thread+0xa8f/0x1430 kernel/workqueue.c:2420
kthread+0x2df/0x300 kernel/kthread.c:255
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

The buggy address belongs to the object at ffff8881ce0eb000
which belongs to the cache kmalloc-512 of size 512
The buggy address is located 392 bytes inside of
512-byte region [ffff8881ce0eb000, ffff8881ce0eb200)
The buggy address belongs to the page:
page:ffffea0007383a00 refcount:1 mapcount:0 mapping:ffff8881da802500 index:0x0 compound_mapcount: 0
flags: 0x8000000000010200(slab|head)
raw: 8000000000010200 dead000000000100 dead000000000122 ffff8881da802500
raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
ffff8881ce0eb080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff8881ce0eb100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff8881ce0eb180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff8881ce0eb200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff8881ce0eb280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0010) - not-present page
PGD 1a04ca067 P4D 1a04ca067 PUD 1a04cb067 PMD 0
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 0 Comm: swapper/0 Tainted: G B 5.4.50-syzkaller-01110-g45217b91eaaa #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:0x0
Code: Bad RIP value.
RSP: 0018:ffff8881db809c08 EFLAGS: 00010202
RAX: ffffffff8132ff7c RBX: 0000000000000000 RCX: ffffffff84c14980
RDX: 0000000080000101 RSI: 0000000000000000 RDI: ffff8881ce0eb180
RBP: ffff8881ce0eb1a0 R08: ffffffff8132fe17 R09: ffffed103b7046e7
R10: ffffed103b7046e7 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000101 R14: ffff8881ce0eb188 R15: ffff8881ce0eb180
FS: 0000000000000000(0000) GS:ffff8881db800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 00000001a04c9004 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
call_timer_fn+0x154/0x340 kernel/time/timer.c:1404
expire_timers+0x35c/0x470 kernel/time/timer.c:1449
__run_timers+0x662/0x7b0 kernel/time/timer.c:1773
run_timer_softirq+0x19/0x30 kernel/time/timer.c:1786
__do_softirq+0x2d5/0x725 kernel/softirq.c:292
invoke_softirq kernel/softirq.c:373 [inline]
irq_exit+0x16d/0x180 kernel/softirq.c:413
exiting_irq arch/x86/include/asm/apic.h:546 [inline]
smp_apic_timer_interrupt+0x281/0x3f0 arch/x86/kernel/apic/apic.c:1146
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:831
</IRQ>
RIP: 0010:default_idle+0x1f/0x30 arch/x86/kernel/process.c:573
Code: ff e8 55 15 42 fd 90 90 90 90 90 65 8b 35 d1 44 2a 7c bf 01 00 00 00 e8 4f a1 30 fd e9 07 00 00 00 0f 00 2d ab 31 49 00 fb f4 <65> 8b 35 b2 44 2a 7c bf ff ff ff ff e9 30 a1 30 fd 41 57 41 56 53
RSP: 0018:ffffffff84c07d18 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 7ecab8627a8f2e01 RBX: ffffffff84c14980 RCX: ffffffff8124c720
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffffffff84c07e20 R08: dffffc0000000000 R09: fffffbfff0982931
R10: fffffbfff0982931 R11: 0000000000000000 R12: ffffffff84d900a0
R13: 0000000000000000 R14: dffffc0000000000 R15: 1ffffffff0982930
default_idle_call kernel/sched/idle.c:94 [inline]
cpuidle_idle_call kernel/sched/idle.c:154 [inline]
do_idle+0x209/0x5e0 kernel/sched/idle.c:263
cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:355
start_kernel+0x7a3/0x873 init/main.c:784
secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:241
Modules linked in:
CR2: 0000000000000000
---[ end trace 1e8fdc1d7dc7844b ]---
RIP: 0010:0x0
Code: Bad RIP value.
RSP: 0018:ffff8881db809c08 EFLAGS: 00010202
RAX: ffffffff8132ff7c RBX: 0000000000000000 RCX: ffffffff84c14980
RDX: 0000000080000101 RSI: 0000000000000000 RDI: ffff8881ce0eb180
RBP: ffff8881ce0eb1a0 R08: ffffffff8132fe17 R09: ffffed103b7046e7
R10: ffffed103b7046e7 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000101 R14: ffff8881ce0eb188 R15: ffff8881ce0eb180
FS: 0000000000000000(0000) GS:ffff8881db800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 00000001a04c9004 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This bug 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 bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

oläst,
8 juli 2020 18:56:242020-07-08
till syzkaller-a...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: 07da2129 ANDROID: Update ABI representation for libabigail..
git tree: android-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=131d7d6b100000
kernel config: https://syzkaller.appspot.com/x/.config?x=ac8c9b1049b6e9b
dashboard link: https://syzkaller.appspot.com/bug?extid=808b558a11df12fd2957
compiler: Android (6032204 based on r370808) clang version 10.0.1 (https://android.googlesource.com/toolchain/llvm-project 6e765c10313d15c02ab29977a82938f66742c3a9)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14e76e33100000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+808b55...@syzkaller.appspotmail.com

==================================================================
BUG: KASAN: use-after-free in hlist_add_head include/linux/list.h:787 [inline]
BUG: KASAN: use-after-free in enqueue_timer kernel/time/timer.c:540 [inline]
BUG: KASAN: use-after-free in __internal_add_timer+0x28d/0x490 kernel/time/timer.c:553
Write of size 8 at addr ffff8881c83fb188 by task syz-executor.5/7994

CPU: 1 PID: 7994 Comm: syz-executor.5 Not tainted 5.4.50-syzkaller-00011-g07da2129a868 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x14a/0x1ce lib/dump_stack.c:118
print_address_description+0x93/0x620 mm/kasan/report.c:374
__kasan_report+0x16d/0x1e0 mm/kasan/report.c:506
kasan_report+0x36/0x60 mm/kasan/common.c:634
hlist_add_head include/linux/list.h:787 [inline]
enqueue_timer kernel/time/timer.c:540 [inline]
__internal_add_timer+0x28d/0x490 kernel/time/timer.c:553
internal_add_timer kernel/time/timer.c:595 [inline]
__mod_timer+0xbf4/0x1af0 kernel/time/timer.c:1053
tun_flow_init drivers/net/tun.c:1368 [inline]
tun_set_iff drivers/net/tun.c:2832 [inline]
__tun_chr_ioctl+0x35c7/0x4bc0 drivers/net/tun.c:3088
do_vfs_ioctl+0x770/0x1750 fs/ioctl.c:47
ksys_ioctl fs/ioctl.c:714 [inline]
__do_sys_ioctl fs/ioctl.c:721 [inline]
__se_sys_ioctl fs/ioctl.c:719 [inline]
__x64_sys_ioctl+0xd4/0x110 fs/ioctl.c:719
do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45cba9
Code: 8d b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 5b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f762205fc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004f05e0 RCX: 000000000045cba9
RDX: 0000000020000300 RSI: 00000000400454ca RDI: 0000000000000003
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000005b8 R14: 00000000004c88dd R15: 00007f76220606d4

The buggy address belongs to the page:
page:ffffea000720fec0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0
flags: 0x8000000000000000()
raw: 8000000000000000 0000000000000000 ffffea000709ab08 0000000000000000
raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
ffff8881c83fb080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff8881c83fb100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff8881c83fb180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff8881c83fb200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff8881c83fb280: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================

syzbot

oläst,
3 sep. 2022 19:36:252022-09-03
till syzkaller-a...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: f0306959ab7c ANDROID: ABI: Update symbols for unisoc
git tree: android12-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=1740299d080000
kernel config: https://syzkaller.appspot.com/x/.config?x=d60ce76287fc97c0
dashboard link: https://syzkaller.appspot.com/bug?extid=808b558a11df12fd2957
compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13db657d080000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11eb1e63080000

Downloadable assets:
disk image: https://storage.googleapis.com/8d8a5d874344/disk-f0306959.raw.xz
vmlinux: https://storage.googleapis.com/1f386f3f9de8/vmlinux-f0306959.xz

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

==================================================================
BUG: KASAN: use-after-free in hlist_add_head include/linux/list.h:796 [inline]
BUG: KASAN: use-after-free in enqueue_timer kernel/time/timer.c:541 [inline]
BUG: KASAN: use-after-free in __internal_add_timer+0x2a6/0x4a0 kernel/time/timer.c:554
Write of size 8 at addr ffff8881e88d71c8 by task syz-executor683/9667

CPU: 1 PID: 9667 Comm: syz-executor683 Not tainted 5.4.197-syzkaller-00015-gf0306959ab7c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x18e/0x1d5 lib/dump_stack.c:118
print_address_description+0x8c/0x630 mm/kasan/report.c:384
__kasan_report+0xf6/0x130 mm/kasan/report.c:516
kasan_report+0x30/0x60 mm/kasan/common.c:653
hlist_add_head include/linux/list.h:796 [inline]
enqueue_timer kernel/time/timer.c:541 [inline]
__internal_add_timer+0x2a6/0x4a0 kernel/time/timer.c:554
internal_add_timer kernel/time/timer.c:604 [inline]
__mod_timer+0x9ce/0x1a40 kernel/time/timer.c:1065
tun_set_iff+0x8ca/0x1050 drivers/net/tun.c:2854
__tun_chr_ioctl+0x6c7/0x1b70 drivers/net/tun.c:3149
do_vfs_ioctl+0x6d1/0x15b0 fs/ioctl.c:47
ksys_ioctl fs/ioctl.c:742 [inline]
__do_sys_ioctl fs/ioctl.c:749 [inline]
__se_sys_ioctl fs/ioctl.c:747 [inline]
__x64_sys_ioctl+0xd4/0x110 fs/ioctl.c:747
do_syscall_64+0xcb/0x1c0 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f14585329b9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f14584e4318 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f14585ba3e8 RCX: 00007f14585329b9
RDX: 0000000020000040 RSI: 00000000400454ca RDI: 0000000000000003
RBP: 00007f14585ba3e0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 74656e2f7665642f
R13: 00007ffe391a6e8f R14: 00007f14584e4400 R15: 0000000000022000

The buggy address belongs to the page:
page:ffffea0007a235c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0
flags: 0x8000000000000000()
raw: 8000000000000000 0000000000000000 ffffea0007a235c8 0000000000000000
raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 2, migratetype Unmovable, gfp_mask 0x46dc0(GFP_KERNEL|__GFP_NOWARN|__GFP_RETRY_MAYFAIL|__GFP_COMP|__GFP_ZERO)
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook mm/page_alloc.c:2165 [inline]
prep_new_page+0x194/0x380 mm/page_alloc.c:2171
get_page_from_freelist+0x524/0x560 mm/page_alloc.c:3794
__alloc_pages_nodemask+0x2ab/0x6f0 mm/page_alloc.c:4857
__alloc_pages include/linux/gfp.h:503 [inline]
__alloc_pages_node include/linux/gfp.h:516 [inline]
alloc_pages_node include/linux/gfp.h:530 [inline]
kmalloc_order mm/slab_common.c:1342 [inline]
kmalloc_order_trace+0x2a/0xf0 mm/slab_common.c:1358
__kmalloc_node include/linux/slab.h:422 [inline]
kmalloc_node include/linux/slab.h:599 [inline]
kvmalloc_node+0x7e/0xf0 mm/util.c:564
kvmalloc include/linux/mm.h:758 [inline]
kvzalloc include/linux/mm.h:766 [inline]
alloc_netdev_mqs+0x86/0xc30 net/core/dev.c:9597
tun_set_iff+0x4f9/0x1050 drivers/net/tun.c:2814
__tun_chr_ioctl+0x6c7/0x1b70 drivers/net/tun.c:3149
do_vfs_ioctl+0x6d1/0x15b0 fs/ioctl.c:47
ksys_ioctl fs/ioctl.c:742 [inline]
__do_sys_ioctl fs/ioctl.c:749 [inline]
__se_sys_ioctl fs/ioctl.c:747 [inline]
__x64_sys_ioctl+0xd4/0x110 fs/ioctl.c:747
do_syscall_64+0xcb/0x1c0 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1176 [inline]
__free_pages_ok+0x7ee/0x920 mm/page_alloc.c:1438
free_the_page mm/page_alloc.c:4919 [inline]
__free_pages+0x45/0x1e0 mm/page_alloc.c:4925
kfree+0x1ef/0x260 mm/slub.c:4068
device_release+0x70/0x1a0 drivers/base/core.c:1776
kobject_cleanup lib/kobject.c:708 [inline]
kobject_release+0x1f3/0x3d0 lib/kobject.c:739
tun_set_iff+0xc0b/0x1050 drivers/net/tun.c:2906
__tun_chr_ioctl+0x6c7/0x1b70 drivers/net/tun.c:3149
do_vfs_ioctl+0x6d1/0x15b0 fs/ioctl.c:47
ksys_ioctl fs/ioctl.c:742 [inline]
__do_sys_ioctl fs/ioctl.c:749 [inline]
__se_sys_ioctl fs/ioctl.c:747 [inline]
__x64_sys_ioctl+0xd4/0x110 fs/ioctl.c:747
do_syscall_64+0xcb/0x1c0 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9

Memory state around the buggy address:
ffff8881e88d7080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff8881e88d7100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff8881e88d7180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff8881e88d7200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff8881e88d7280: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================

Svara alla
Svara författaren
Vidarebefordra
0 nya meddelanden