syzbot


memory leak in __build_skb (3)

Status: fixed on 2023/06/08 14:41
Subsystems: wireless
[Documentation on labels]
Reported-by: syzbot+e008dccab31bd3647609@syzkaller.appspotmail.com
Fix commit: 9b25e3985477 wifi: ath9k: htc_hst: free skb in ath9k_htc_rx_msg() if there is no callback function
First crash: 485d, last: 483d
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] wifi: ath9k: htc_hst: free skb in ath9k_htc_rx_msg() if there is no callback function 9 (9) 2023/01/17 11:52
[syzbot] memory leak in __build_skb (3) 0 (1) 2023/01/01 13:29
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream memory leak in __build_skb (2) net C 330 705d 1695d 0/26 closed as invalid on 2022/10/12 18:48
upstream memory leak in __build_skb net C 19 1772d 1802d 0/26 closed as invalid on 2019/08/12 12:07

Sample crash report:
BUG: memory leak
unreferenced object 0xffff88810535b500 (size 240):
  comm "softirq", pid 0, jiffies 4294946605 (age 8.190s)
  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:
    [<ffffffff83b0df31>] __build_skb+0x21/0x60 net/core/skbuff.c:377
    [<ffffffff83b0e23e>] __netdev_alloc_skb+0x14e/0x220 net/core/skbuff.c:657
    [<ffffffff82e49530>] __dev_alloc_skb include/linux/skbuff.h:3165 [inline]
    [<ffffffff82e49530>] ath9k_hif_usb_rx_stream drivers/net/wireless/ath/ath9k/hif_usb.c:635 [inline]
    [<ffffffff82e49530>] ath9k_hif_usb_rx_cb+0x1d0/0x660 drivers/net/wireless/ath/ath9k/hif_usb.c:686
    [<ffffffff8302c52c>] __usb_hcd_giveback_urb+0xfc/0x230 drivers/usb/core/hcd.c:1671
    [<ffffffff8302c80b>] usb_hcd_giveback_urb+0x1ab/0x1c0 drivers/usb/core/hcd.c:1754
    [<ffffffff831d5874>] dummy_timer+0x8e4/0x14c0 drivers/usb/gadget/udc/dummy_hcd.c:1988
    [<ffffffff8132a8b3>] call_timer_fn+0x33/0x1f0 kernel/time/timer.c:1700
    [<ffffffff8132ab6f>] expire_timers+0xff/0x1d0 kernel/time/timer.c:1751
    [<ffffffff8132ad69>] __run_timers kernel/time/timer.c:2022 [inline]
    [<ffffffff8132ad69>] __run_timers kernel/time/timer.c:1995 [inline]
    [<ffffffff8132ad69>] run_timer_softirq+0x129/0x2f0 kernel/time/timer.c:2035
    [<ffffffff84908afb>] __do_softirq+0xeb/0x2ef kernel/softirq.c:571


Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/28 13:23 upstream 1b929c02afd3 44712fbc .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-leak memory leak in __build_skb
2022/12/30 07:49 upstream 2258c2dc850b 44712fbc .config console log report syz [disk image] [vmlinux] [kernel image] ci-upstream-gce-leak memory leak in __build_skb
* Struck through repros no longer work on HEAD.