Hello,
syzbot found the following crash on:
HEAD commit: ef244c30 Linux 4.19.81
git tree: linux-4.19.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=14653f34e00000
kernel config:
https://syzkaller.appspot.com/x/.config?x=a3e67c0671e5c5e7
dashboard link:
https://syzkaller.appspot.com/bug?extid=1eb0ac3e1381b5a0a6bf
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
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+1eb0ac...@syzkaller.appspotmail.com
nla_parse: 7 callbacks suppressed
netlink: 2 bytes leftover after parsing attributes in process
`syz-executor.3'.
==================================================================
BUG: KASAN: use-after-free in memset include/linux/string.h:333 [inline]
BUG: KASAN: use-after-free in __alloc_skb+0x381/0x5f0 net/core/skbuff.c:234
Write of size 32 at addr ffff88819589fb40 by task syz-executor.3/10719
CPU: 0 PID: 10719 Comm: syz-executor.3 Not tainted 4.19.81 #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+0x172/0x1f0 lib/dump_stack.c:113
print_address_description.cold+0x7c/0x20d mm/kasan/report.c:256
kasan_report_error mm/kasan/report.c:354 [inline]
kasan_report mm/kasan/report.c:412 [inline]
kasan_report.cold+0x8c/0x2ba mm/kasan/report.c:396
check_memory_region_inline mm/kasan/kasan.c:260 [inline]
check_memory_region+0x123/0x190 mm/kasan/kasan.c:267
memset+0x24/0x40 mm/kasan/kasan.c:285
memset include/linux/string.h:333 [inline]
__alloc_skb+0x381/0x5f0 net/core/skbuff.c:234
alloc_skb include/linux/skbuff.h:995 [inline]
alloc_skb_with_frags+0x93/0x590 net/core/skbuff.c:5303
sock_alloc_send_pskb+0x72d/0x8a0 net/core/sock.c:2085
sock_alloc_send_skb+0x32/0x40 net/core/sock.c:2102
mld_newpack+0x1d7/0x7f0 net/ipv6/mcast.c:1611
add_grhead.isra.0+0x299/0x370 net/ipv6/mcast.c:1715
add_grec+0x7e7/0x10c0 net/ipv6/mcast.c:1846
mld_send_cr net/ipv6/mcast.c:1972 [inline]
mld_ifc_timer_expire+0x3d4/0x8a0 net/ipv6/mcast.c:2479
call_timer_fn+0x18d/0x720 kernel/time/timer.c:1326
expire_timers kernel/time/timer.c:1363 [inline]
__run_timers kernel/time/timer.c:1684 [inline]
__run_timers kernel/time/timer.c:1652 [inline]
run_timer_softirq+0x64f/0x16a0 kernel/time/timer.c:1697
__do_softirq+0x25c/0x921 kernel/softirq.c:292
invoke_softirq kernel/softirq.c:372 [inline]
irq_exit+0x180/0x1d0 kernel/softirq.c:412
exiting_irq arch/x86/include/asm/apic.h:536 [inline]
smp_apic_timer_interrupt+0x13b/0x550 arch/x86/kernel/apic/apic.c:1094
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:893
</IRQ>
RIP: 0010:page_remove_file_rmap mm/rmap.c:1218 [inline]
RIP: 0010:page_remove_rmap+0x550/0x12c0 mm/rmap.c:1300
Code: ff 45 84 f6 0f 85 3b 05 00 00 e8 6b 27 d2 ff 4c 89 e7 e8 23 0c 0d 00
4c 89 e7 e8 ab 66 04 00 31 ff 89 c3 89 c6 e8 d0 28 d2 ff <85> db 74 6a e8
47 27 d2 ff 49 8d 7c 24 54 be 04 00 00 00 e8 18 ad
RSP: 0018:ffff8880403ef6b0 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff81989ff0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005
RBP: ffff8880403ef6f0 R08: ffff8880984f8100 R09: ffffed1015d04733
R10: ffffed1015d04732 R11: ffff8880ae823993 R12: ffffea00021ad380
R13: ffffea00021ad388 R14: 0000000000000000 R15: dead000000000100
zap_pte_range mm/memory.c:1338 [inline]
zap_pmd_range mm/memory.c:1440 [inline]
zap_pud_range mm/memory.c:1469 [inline]
zap_p4d_range mm/memory.c:1490 [inline]
unmap_page_range+0xd80/0x1e70 mm/memory.c:1511
unmap_single_vma+0x19d/0x300 mm/memory.c:1556
unmap_vmas+0xae/0x180 mm/memory.c:1586
exit_mmap+0x2c2/0x530 mm/mmap.c:3097
__mmput kernel/fork.c:1010 [inline]
mmput+0x15f/0x4c0 kernel/fork.c:1031
exit_mm kernel/exit.c:546 [inline]
do_exit+0x899/0x2fa0 kernel/exit.c:863
do_group_exit+0x135/0x370 kernel/exit.c:979
get_signal+0x3ec/0x1fc0 kernel/signal.c:2574
do_signal+0x95/0x1960 arch/x86/kernel/signal.c:821
exit_to_usermode_loop+0x244/0x2c0 arch/x86/entry/common.c:163
prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
do_syscall_64+0x53d/0x620 arch/x86/entry/common.c:296
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45a219
Code: ad 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 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f591c7ebcf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: 0000000000000001 RBX: 000000000075bf28 RCX: 000000000045a219
RDX: 00000000004c974d RSI: 0000000000000081 RDI: 000000000075bf2c
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000003 R11: 0000000000000246 R12: 000000000075bf2c
R13: 00007ffc94eef76f R14: 00007f591c7ec9c0 R15: 000000000075bf2c
The buggy address belongs to the page:
page:ffffea00065627c0 count:0 mapcount:0 mapping:0000000000000000 index:0x0
flags: 0x6fffc0000000000()
raw: 06fffc0000000000 ffffea00065627c8 ffffea00065627c8 0000000000000000
raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff88819589fa00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff88819589fa80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
> ffff88819589fb00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff88819589fb80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff88819589fc00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
---
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.