Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3161093pxb; Sat, 6 Feb 2021 23:21:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzgLU3Rs/I/va8CTBTm1yCfSMiHwFEiRFoCkW/pmI0qJ0BvhPnpLzQCYd+zynDjcKGc3Xo/ X-Received: by 2002:a17:906:2a42:: with SMTP id k2mr11566733eje.118.1612682507136; Sat, 06 Feb 2021 23:21:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612682507; cv=none; d=google.com; s=arc-20160816; b=NxfLxspSMxYYjLtvTlsEMbxmtesx50OdOyvmXLqH0CE2E/DN7FUd+rq8zd+BBNr7Qa 0MNLD0I9QNWIn/92ptKB1Q97jOfgS0h6/Lse5YjY9Bmc2eGk1rwJ1nhxNb2nYBgWIB+b qsYZTg/i9TlSYinjdH9f125IRaI6u5bwbEAA+CILFRSiAHUBV2f+J4s+AvuRZKa/WI9O LVcQMSrAIpma7fb7HSIARQuZcCQ6xanSUamB+FBc47t4pU72XNjIDLN3pzeP7+h2bOTI Xz8kZ8mVITLZVZpODEGtQkzTdDUs0VPAQK7d3cLtpA1/5r0R79ATsGtqxqx2KLVhMWa8 VaaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=xUTyJq/1MYIrp6IYEy72AdzuPFYzDzCFxmNycYmGDEQ=; b=I4o9P1CHI5kHQC87pq4Qsj/MxJjHRHmeM4qYK2qJLrEO2QZ+txLzxdMoThBa045Zrx FSbNxl7sUflLLgWo2+prk8o3IqOoHsNhSNsEJPi9JG88wcK1avxwYh3kZFGQd3Bs48R5 k4VxXPYK1THy7ESRq4weQvcN3aUnmOImX2MDQhqDt/hgSefGR/MAB10K4CtQmGmZsDw3 0wYIE01Kjm9SDE8O3LIHUWotNDLR+6HqAFvh2kW42NPHnWjwGBR99nZT7ehz4q0oSJuF DvFGACtM0c8ou0UvyJ1NYwqhSCcc98hMnQxr2utjrX2p6znOSvIWydPOMn70hveR7g4a GHGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f19si9000859ejb.315.2021.02.06.23.21.11; Sat, 06 Feb 2021 23:21:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229566AbhBGHVK (ORCPT + 99 others); Sun, 7 Feb 2021 02:21:10 -0500 Received: from mail-io1-f69.google.com ([209.85.166.69]:57113 "EHLO mail-io1-f69.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbhBGHVF (ORCPT ); Sun, 7 Feb 2021 02:21:05 -0500 Received: by mail-io1-f69.google.com with SMTP id m2so9365876iow.23 for ; Sat, 06 Feb 2021 23:20:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=xUTyJq/1MYIrp6IYEy72AdzuPFYzDzCFxmNycYmGDEQ=; b=cGpZAh+yMW2HFSU1NZEW32GgV+ow7onlLlgSvutXTrQOeiyHe9zou/8pUNbcXOmPRI dD+ZfXgNZyHOABpI54OTd/G42WRnmgDdq6ruAV6ssdvNGIg8iXvnLaVmYHbns+9DQtNk xHBvEZGoDjAVtZ0QpMK+ZULRGBzcI1kxBL5P4f8RF0CvaVhOaWCOe6H+myDksxw21fhp IXrLbpLljqy8VzYgNUtBYYv0f5739GuEDkwn0Evf92+/dI7Wzcc73JthdFMW7Klzg9qc h07vQfvNbRNUKtvxzCJlhQqsKBK+EN7vGtzdf1nsAsQbKtfU9pRbZ6bkppWPK0YLAPK4 xp+Q== X-Gm-Message-State: AOAM531b2HwE2UCe2/XMi4vFhKg3DltZKBBp6VAF1YyXKEJfHSo2mbaT eqab6PdM8lENFNQq9ZN2/uPxkyiUqlkRSZO9UfxmJib8ApVA MIME-Version: 1.0 X-Received: by 2002:a05:6602:12:: with SMTP id b18mr10790843ioa.134.1612682424109; Sat, 06 Feb 2021 23:20:24 -0800 (PST) Date: Sat, 06 Feb 2021 23:20:24 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000006536505bab9e3d4@google.com> Subject: memory leak in __ieee80211_beacon_get From: syzbot To: davem@davemloft.net, johannes@sipsolutions.net, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 3aaf0a27 Merge tag 'clang-format-for-linux-v5.11-rc7' of g.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=10f79330d00000 kernel config: https://syzkaller.appspot.com/x/.config?x=b7edd79f26f7c0c3 dashboard link: https://syzkaller.appspot.com/bug?extid=e832ab33619901afc64a syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13e46a40d00000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+e832ab33619901afc64a@syzkaller.appspotmail.com BUG: memory leak unreferenced object 0xffff88811682b500 (size 232): comm "softirq", pid 0, jiffies 4295119192 (age 15.070s) hex dump (first 32 bytes): 10 c5 79 16 81 88 ff ff 10 c5 79 16 81 88 ff ff ..y.......y..... 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<0000000092ce1185>] __alloc_skb+0x6d/0x280 net/core/skbuff.c:198 [<0000000027006abe>] __netdev_alloc_skb+0x6a/0x210 net/core/skbuff.c:446 [<00000000bbb79fe8>] netdev_alloc_skb include/linux/skbuff.h:2832 [inline] [<00000000bbb79fe8>] dev_alloc_skb include/linux/skbuff.h:2845 [inline] [<00000000bbb79fe8>] __ieee80211_beacon_get+0x662/0x7a0 net/mac80211/tx.c:4814 [<00000000d5da7a17>] ieee80211_beacon_get_tim+0x47/0x1c0 net/mac80211/tx.c:4928 [<0000000042c1663d>] ieee80211_beacon_get include/net/mac80211.h:4918 [inline] [<0000000042c1663d>] mac80211_hwsim_beacon_tx+0xa1/0x2c0 drivers/net/wireless/mac80211_hwsim.c:1729 [<00000000681dd69b>] __iterate_interfaces+0x125/0x260 net/mac80211/util.c:793 [<00000000025fd347>] ieee80211_iterate_active_interfaces_atomic+0x2e/0x40 net/mac80211/util.c:829 [<00000000c135ff4a>] mac80211_hwsim_beacon+0x52/0xb0 drivers/net/wireless/mac80211_hwsim.c:1782 [<0000000018e3b983>] __run_hrtimer kernel/time/hrtimer.c:1519 [inline] [<0000000018e3b983>] __hrtimer_run_queues+0x1ba/0x470 kernel/time/hrtimer.c:1583 [<00000000ac9fbd2f>] hrtimer_run_softirq+0x7e/0x100 kernel/time/hrtimer.c:1600 [<000000003b2a8015>] __do_softirq+0xbf/0x2ab kernel/softirq.c:343 [<00000000cfba3969>] asm_call_irq_on_stack+0xf/0x20 [<00000000a2e1da95>] __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] [<00000000a2e1da95>] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] [<00000000a2e1da95>] do_softirq_own_stack+0x32/0x40 arch/x86/kernel/irq_64.c:77 [<0000000075748e36>] invoke_softirq kernel/softirq.c:226 [inline] [<0000000075748e36>] __irq_exit_rcu kernel/softirq.c:420 [inline] [<0000000075748e36>] irq_exit_rcu+0x93/0xc0 kernel/softirq.c:432 [<000000006645e04e>] sysvec_apic_timer_interrupt+0x36/0x80 arch/x86/kernel/apic/apic.c:1096 [<00000000cffb1ca1>] asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:629 BUG: memory leak unreferenced object 0xffff88811682db00 (size 232): comm "softirq", pid 0, jiffies 4295119192 (age 15.070s) hex dump (first 32 bytes): 10 c5 6b 16 81 88 ff ff 10 c5 6b 16 81 88 ff ff ..k.......k..... 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<0000000092ce1185>] __alloc_skb+0x6d/0x280 net/core/skbuff.c:198 [<0000000027006abe>] __netdev_alloc_skb+0x6a/0x210 net/core/skbuff.c:446 [<00000000bbb79fe8>] netdev_alloc_skb include/linux/skbuff.h:2832 [inline] [<00000000bbb79fe8>] dev_alloc_skb include/linux/skbuff.h:2845 [inline] [<00000000bbb79fe8>] __ieee80211_beacon_get+0x662/0x7a0 net/mac80211/tx.c:4814 [<00000000d5da7a17>] ieee80211_beacon_get_tim+0x47/0x1c0 net/mac80211/tx.c:4928 [<0000000042c1663d>] ieee80211_beacon_get include/net/mac80211.h:4918 [inline] [<0000000042c1663d>] mac80211_hwsim_beacon_tx+0xa1/0x2c0 drivers/net/wireless/mac80211_hwsim.c:1729 [<00000000681dd69b>] __iterate_interfaces+0x125/0x260 net/mac80211/util.c:793 [<00000000025fd347>] ieee80211_iterate_active_interfaces_atomic+0x2e/0x40 net/mac80211/util.c:829 [<00000000c135ff4a>] mac80211_hwsim_beacon+0x52/0xb0 drivers/net/wireless/mac80211_hwsim.c:1782 [<0000000018e3b983>] __run_hrtimer kernel/time/hrtimer.c:1519 [inline] [<0000000018e3b983>] __hrtimer_run_queues+0x1ba/0x470 kernel/time/hrtimer.c:1583 [<00000000ac9fbd2f>] hrtimer_run_softirq+0x7e/0x100 kernel/time/hrtimer.c:1600 [<000000003b2a8015>] __do_softirq+0xbf/0x2ab kernel/softirq.c:343 [<00000000cfba3969>] asm_call_irq_on_stack+0xf/0x20 [<00000000a2e1da95>] __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] [<00000000a2e1da95>] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] [<00000000a2e1da95>] do_softirq_own_stack+0x32/0x40 arch/x86/kernel/irq_64.c:77 [<0000000075748e36>] invoke_softirq kernel/softirq.c:226 [inline] [<0000000075748e36>] __irq_exit_rcu kernel/softirq.c:420 [inline] [<0000000075748e36>] irq_exit_rcu+0x93/0xc0 kernel/softirq.c:432 [<000000006645e04e>] sysvec_apic_timer_interrupt+0x36/0x80 arch/x86/kernel/apic/apic.c:1096 [<00000000cffb1ca1>] asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:629 BUG: memory leak unreferenced object 0xffff888116604400 (size 512): comm "softirq", pid 0, jiffies 4295119192 (age 15.070s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<00000000d1a2675d>] __kmalloc_reserve net/core/skbuff.c:142 [inline] [<00000000d1a2675d>] __alloc_skb+0xab/0x280 net/core/skbuff.c:210 [<0000000027006abe>] __netdev_alloc_skb+0x6a/0x210 net/core/skbuff.c:446 [<00000000bbb79fe8>] netdev_alloc_skb include/linux/skbuff.h:2832 [inline] [<00000000bbb79fe8>] dev_alloc_skb include/linux/skbuff.h:2845 [inline] [<00000000bbb79fe8>] __ieee80211_beacon_get+0x662/0x7a0 net/mac80211/tx.c:4814 [<00000000d5da7a17>] ieee80211_beacon_get_tim+0x47/0x1c0 net/mac80211/tx.c:4928 [<0000000042c1663d>] ieee80211_beacon_get include/net/mac80211.h:4918 [inline] [<0000000042c1663d>] mac80211_hwsim_beacon_tx+0xa1/0x2c0 drivers/net/wireless/mac80211_hwsim.c:1729 [<00000000681dd69b>] __iterate_interfaces+0x125/0x260 net/mac80211/util.c:793 [<00000000025fd347>] ieee80211_iterate_active_interfaces_atomic+0x2e/0x40 net/mac80211/util.c:829 [<00000000c135ff4a>] mac80211_hwsim_beacon+0x52/0xb0 drivers/net/wireless/mac80211_hwsim.c:1782 [<0000000018e3b983>] __run_hrtimer kernel/time/hrtimer.c:1519 [inline] [<0000000018e3b983>] __hrtimer_run_queues+0x1ba/0x470 kernel/time/hrtimer.c:1583 [<00000000ac9fbd2f>] hrtimer_run_softirq+0x7e/0x100 kernel/time/hrtimer.c:1600 [<000000003b2a8015>] __do_softirq+0xbf/0x2ab kernel/softirq.c:343 [<00000000cfba3969>] asm_call_irq_on_stack+0xf/0x20 [<00000000a2e1da95>] __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] [<00000000a2e1da95>] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] [<00000000a2e1da95>] do_softirq_own_stack+0x32/0x40 arch/x86/kernel/irq_64.c:77 [<0000000075748e36>] invoke_softirq kernel/softirq.c:226 [inline] [<0000000075748e36>] __irq_exit_rcu kernel/softirq.c:420 [inline] [<0000000075748e36>] irq_exit_rcu+0x93/0xc0 kernel/softirq.c:432 [<000000006645e04e>] sysvec_apic_timer_interrupt+0x36/0x80 arch/x86/kernel/apic/apic.c:1096 [<00000000cffb1ca1>] asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:629 --- 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 syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches