syzbot


memory leak in device_add

Status: closed as invalid on 2019/10/04 18:08
Subsystems: kernel
[Documentation on labels]
First crash: 1733d, last: 1733d
Cause bisection: the cause commit could be any of (bisect log):
  013955a65567 net: phy: realtek: rename RTL8211F_PAGE_SELECT to RTL821x_PAGE_SELECT
  513588dd44b0 net: phy: realtek: add RTL8201F phy-id and functions
  

Sample crash report:
BUG: memory leak
unreferenced object 0xffff88810c26e100 (size 256):
  comm "syz-executor284", pid 7060, jiffies 4294941055 (age 7.900s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 08 e1 26 0c 81 88 ff ff  ..........&.....
    08 e1 26 0c 81 88 ff ff 70 ca 09 82 ff ff ff ff  ..&.....p.......
  backtrace:
    [<000000003f0314c9>] kmemleak_alloc_recursive /./include/linux/kmemleak.h:43 [inline]
    [<000000003f0314c9>] slab_post_alloc_hook /mm/slab.h:522 [inline]
    [<000000003f0314c9>] slab_alloc /mm/slab.c:3319 [inline]
    [<000000003f0314c9>] kmem_cache_alloc_trace+0x145/0x280 /mm/slab.c:3548
    [<00000000846ca0b2>] kmalloc /./include/linux/slab.h:552 [inline]
    [<00000000846ca0b2>] kzalloc /./include/linux/slab.h:748 [inline]
    [<00000000846ca0b2>] device_private_init /drivers/base/core.c:1971 [inline]
    [<00000000846ca0b2>] device_add+0x65b/0x890 /drivers/base/core.c:2021
    [<00000000453dcc36>] netdev_register_kobject+0xa6/0x1b0 /net/core/net-sysfs.c:1746
    [<000000000c468425>] register_netdevice+0x397/0x600 /net/core/dev.c:8723
    [<00000000c663cb50>] veth_newlink+0x1ee/0x420 /drivers/net/veth.c:1302
    [<000000000ba6283c>] __rtnl_newlink+0x892/0xb30 /net/core/rtnetlink.c:3196
    [<000000003cb2a79b>] rtnl_newlink+0x4e/0x80 /net/core/rtnetlink.c:3254
    [<000000005744df56>] rtnetlink_rcv_msg+0x36e/0x480 /net/core/rtnetlink.c:5223
    [<0000000065491e2b>] netlink_rcv_skb+0x61/0x170 /net/netlink/af_netlink.c:2477
    [<00000000508ddc26>] rtnetlink_rcv+0x1d/0x30 /net/core/rtnetlink.c:5241
    [<00000000b757d3ad>] netlink_unicast_kernel /net/netlink/af_netlink.c:1302 [inline]
    [<00000000b757d3ad>] netlink_unicast+0x1ec/0x2d0 /net/netlink/af_netlink.c:1328
    [<000000004088031a>] netlink_sendmsg+0x270/0x480 /net/netlink/af_netlink.c:1917
    [<000000007e9d1cd7>] sock_sendmsg_nosec /net/socket.c:637 [inline]
    [<000000007e9d1cd7>] sock_sendmsg+0x54/0x70 /net/socket.c:657
    [<00000000882ea403>] ___sys_sendmsg+0x393/0x3c0 /net/socket.c:2311
    [<00000000cd370b61>] __sys_sendmsg+0x80/0xf0 /net/socket.c:2356
    [<000000003ac6c397>] __do_sys_sendmsg /net/socket.c:2365 [inline]
    [<000000003ac6c397>] __se_sys_sendmsg /net/socket.c:2363 [inline]
    [<000000003ac6c397>] __x64_sys_sendmsg+0x23/0x30 /net/socket.c:2363


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/07/21 11:41 upstream c6dd78fcb8ee 1656845f .config console log report syz C ci-upstream-gce-leak
* Struck through repros no longer work on HEAD.