mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: syzbot <syzbot+489e907b2a026a6f5fa0@syzkaller.appspotmail.com>
To: kernel@pengutronix.de, linux-can@vger.kernel.org,
	 linux-kernel@vger.kernel.org, mkl@pengutronix.de,
	o.rempel@pengutronix.de,  robin@protonic.nl,
	socketcan@hartkopp.net, syzkaller-bugs@googlegroups.com
Subject: [syzbot] [can?] memory leak in j1939_netdev_start (2)
Date: Fri, 21 Aug 2026 17:10:29 -0700	[thread overview]
Message-ID: <6a88e8f5.91706f20.16b6e3.02ac.GAE@google.com> (raw)

Hello,

syzbot found the following issue on:

HEAD commit:    8d3ae59288f1 Linux 7.2
git tree:       upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=14728679580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=11ad91fcc8fa7933
dashboard link: https://syzkaller.appspot.com/bug?extid=489e907b2a026a6f5fa0
compiler:       gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=165f3949580000
C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=14c8b6c6580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/735a458674ac/disk-8d3ae592.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/fbf50adb0745/vmlinux-8d3ae592.xz
kernel image: https://storage.googleapis.com/syzbot-assets/6effa5f7f690/bzImage-8d3ae592.xz

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

BUG: memory leak
unreferenced object 0xffff88812c9ca000 (size 8192):
  comm "syz.0.17", pid 6047, jiffies 4294942443
  hex dump (first 32 bytes):
    c0 36 87 2e 81 88 ff ff c0 36 87 2e 81 88 ff ff  .6.......6......
    00 00 00 00 00 00 00 00 00 80 77 2e 81 88 ff ff  ..........w.....
  backtrace (crc d013ab57):
    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
    slab_post_alloc_hook mm/slub.c:4597 [inline]
    slab_alloc_node mm/slub.c:4917 [inline]
    __kmalloc_cache_noprof+0x356/0x440 mm/slub.c:5485
    _kmalloc_noprof include/linux/slab.h:988 [inline]
    _kzalloc_noprof include/linux/slab.h:1309 [inline]
    j1939_priv_create net/can/j1939/main.c:131 [inline]
    j1939_netdev_start+0x168/0x710 net/can/j1939/main.c:268
    j1939_sk_bind+0x223/0x5a0 net/can/j1939/socket.c:506
    __sys_bind_socket net/socket.c:1920 [inline]
    __sys_bind_socket net/socket.c:1912 [inline]
    __sys_bind+0x131/0x160 net/socket.c:1951
    __do_sys_bind net/socket.c:1956 [inline]
    __se_sys_bind net/socket.c:1954 [inline]
    __x64_sys_bind+0x1c/0x30 net/socket.c:1954
    do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
    do_syscall_64+0xf8/0x610 arch/x86/entry/syscall_64.c:94
    entry_SYSCALL_64_after_hwframe+0x77/0x7f

BUG: memory leak
unreferenced object 0xffff88812e8736c0 (size 192):
  comm "syz.0.17", pid 6047, jiffies 4294942443
  hex dump (first 32 bytes):
    00 a0 9c 2c 81 88 ff ff 00 a0 9c 2c 81 88 ff ff  ...,.......,....
    08 07 06 05 04 03 02 01 20 00 00 00 00 00 00 00  ........ .......
  backtrace (crc 2ba0e4b2):
    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
    slab_post_alloc_hook mm/slub.c:4597 [inline]
    slab_alloc_node mm/slub.c:4917 [inline]
    __kmalloc_cache_noprof+0x356/0x440 mm/slub.c:5485
    _kmalloc_noprof include/linux/slab.h:988 [inline]
    _kzalloc_noprof include/linux/slab.h:1309 [inline]
    j1939_ecu_create_locked+0x5c/0x200 net/can/j1939/bus.c:155
    j1939_local_ecu_get+0x102/0x140 net/can/j1939/bus.c:293
    j1939_sk_bind+0x38c/0x5a0 net/can/j1939/socket.c:529
    __sys_bind_socket net/socket.c:1920 [inline]
    __sys_bind_socket net/socket.c:1912 [inline]
    __sys_bind+0x131/0x160 net/socket.c:1951
    __do_sys_bind net/socket.c:1956 [inline]
    __se_sys_bind net/socket.c:1954 [inline]
    __x64_sys_bind+0x1c/0x30 net/socket.c:1954
    do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
    do_syscall_64+0xf8/0x610 arch/x86/entry/syscall_64.c:94
    entry_SYSCALL_64_after_hwframe+0x77/0x7f

BUG: memory leak
unreferenced object 0xffff88812c9c8000 (size 8192):
  comm "syz.0.24", pid 6048, jiffies 4294942445
  hex dump (first 32 bytes):
    40 ab e4 12 81 88 ff ff 40 ab e4 12 81 88 ff ff  @.......@.......
    00 00 00 00 00 00 00 00 00 80 77 2e 81 88 ff ff  ..........w.....
  backtrace (crc da7feccc):
    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
    slab_post_alloc_hook mm/slub.c:4597 [inline]
    slab_alloc_node mm/slub.c:4917 [inline]
    __kmalloc_cache_noprof+0x356/0x440 mm/slub.c:5485
    _kmalloc_noprof include/linux/slab.h:988 [inline]
    _kzalloc_noprof include/linux/slab.h:1309 [inline]
    j1939_priv_create net/can/j1939/main.c:131 [inline]
    j1939_netdev_start+0x168/0x710 net/can/j1939/main.c:268
    j1939_sk_bind+0x223/0x5a0 net/can/j1939/socket.c:506
    __sys_bind_socket net/socket.c:1920 [inline]
    __sys_bind_socket net/socket.c:1912 [inline]
    __sys_bind+0x131/0x160 net/socket.c:1951
    __do_sys_bind net/socket.c:1956 [inline]
    __se_sys_bind net/socket.c:1954 [inline]
    __x64_sys_bind+0x1c/0x30 net/socket.c:1954
    do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
    do_syscall_64+0xf8/0x610 arch/x86/entry/syscall_64.c:94
    entry_SYSCALL_64_after_hwframe+0x77/0x7f

BUG: memory leak
unreferenced object 0xffff888112e4ab40 (size 192):
  comm "syz.0.24", pid 6048, jiffies 4294942445
  hex dump (first 32 bytes):
    00 80 9c 2c 81 88 ff ff 00 80 9c 2c 81 88 ff ff  ...,.......,....
    08 07 06 05 04 03 02 01 20 00 00 00 00 00 00 00  ........ .......
  backtrace (crc 73ecd91d):
    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
    slab_post_alloc_hook mm/slub.c:4597 [inline]
    slab_alloc_node mm/slub.c:4917 [inline]
    __kmalloc_cache_noprof+0x356/0x440 mm/slub.c:5485
    _kmalloc_noprof include/linux/slab.h:988 [inline]
    _kzalloc_noprof include/linux/slab.h:1309 [inline]
    j1939_ecu_create_locked+0x5c/0x200 net/can/j1939/bus.c:155
    j1939_local_ecu_get+0x102/0x140 net/can/j1939/bus.c:293
    j1939_sk_bind+0x38c/0x5a0 net/can/j1939/socket.c:529
    __sys_bind_socket net/socket.c:1920 [inline]
    __sys_bind_socket net/socket.c:1912 [inline]
    __sys_bind+0x131/0x160 net/socket.c:1951
    __do_sys_bind net/socket.c:1956 [inline]
    __se_sys_bind net/socket.c:1954 [inline]
    __x64_sys_bind+0x1c/0x30 net/socket.c:1954
    do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
    do_syscall_64+0xf8/0x610 arch/x86/entry/syscall_64.c:94
    entry_SYSCALL_64_after_hwframe+0x77/0x7f

BUG: memory leak
unreferenced object 0xffff88812c9d6000 (size 8192):
  comm "syz.0.25", pid 6050, jiffies 4294942445
  hex dump (first 32 bytes):
    80 3d 69 13 81 88 ff ff 80 3d 69 13 81 88 ff ff  .=i......=i.....
    00 00 00 00 00 00 00 00 00 80 77 2e 81 88 ff ff  ..........w.....
  backtrace (crc cb2b95df):
    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
    slab_post_alloc_hook mm/slub.c:4597 [inline]
    slab_alloc_node mm/slub.c:4917 [inline]
    __kmalloc_cache_noprof+0x356/0x440 mm/slub.c:5485
    _kmalloc_noprof include/linux/slab.h:988 [inline]
    _kzalloc_noprof include/linux/slab.h:1309 [inline]
    j1939_priv_create net/can/j1939/main.c:131 [inline]
    j1939_netdev_start+0x168/0x710 net/can/j1939/main.c:268
    j1939_sk_bind+0x223/0x5a0 net/can/j1939/socket.c:506
    __sys_bind_socket net/socket.c:1920 [inline]
    __sys_bind_socket net/socket.c:1912 [inline]
    __sys_bind+0x131/0x160 net/socket.c:1951
    __do_sys_bind net/socket.c:1956 [inline]
    __se_sys_bind net/socket.c:1954 [inline]
    __x64_sys_bind+0x1c/0x30 net/socket.c:1954
    do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
    do_syscall_64+0xf8/0x610 arch/x86/entry/syscall_64.c:94
    entry_SYSCALL_64_after_hwframe+0x77/0x7f

BUG: memory leak
unreferenced object 0xffff888113693d80 (size 192):
  comm "syz.0.25", pid 6050, jiffies 4294942445
  hex dump (first 32 bytes):
    00 60 9d 2c 81 88 ff ff 00 60 9d 2c 81 88 ff ff  .`.,.....`.,....
    08 07 06 05 04 03 02 01 20 00 00 00 00 00 00 00  ........ .......
  backtrace (crc 35e45c5a):
    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
    slab_post_alloc_hook mm/slub.c:4597 [inline]
    slab_alloc_node mm/slub.c:4917 [inline]
    __kmalloc_cache_noprof+0x356/0x440 mm/slub.c:5485
    _kmalloc_noprof include/linux/slab.h:988 [inline]
    _kzalloc_noprof include/linux/slab.h:1309 [inline]
    j1939_ecu_create_locked+0x5c/0x200 net/can/j1939/bus.c:155
    j1939_local_ecu_get+0x102/0x140 net/can/j1939/bus.c:293
    j1939_sk_bind+0x38c/0x5a0 net/can/j1939/socket.c:529
    __sys_bind_socket net/socket.c:1920 [inline]
    __sys_bind_socket net/socket.c:1912 [inline]
    __sys_bind+0x131/0x160 net/socket.c:1951
    __do_sys_bind net/socket.c:1956 [inline]
    __se_sys_bind net/socket.c:1954 [inline]
    __x64_sys_bind+0x1c/0x30 net/socket.c:1954
    do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
    do_syscall_64+0xf8/0x610 arch/x86/entry/syscall_64.c:94
    entry_SYSCALL_64_after_hwframe+0x77/0x7f

BUG: memory leak
unreferenced object 0xffff88812c9d4000 (size 8192):
  comm "syz.0.26", pid 6051, jiffies 4294942446
  hex dump (first 32 bytes):
    c0 e3 ed 12 81 88 ff ff c0 e3 ed 12 81 88 ff ff  ................
    00 00 00 00 00 00 00 00 00 80 77 2e 81 88 ff ff  ..........w.....
  backtrace (crc eb403d26):
    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
    slab_post_alloc_hook mm/slub.c:4597 [inline]
    slab_alloc_node mm/slub.c:4917 [inline]
    __kmalloc_cache_noprof+0x356/0x440 mm/slub.c:5485
    _kmalloc_noprof include/linux/slab.h:988 [inline]
    _kzalloc_noprof include/linux/slab.h:1309 [inline]
    j1939_priv_create net/can/j1939/main.c:131 [inline]
    j1939_netdev_start+0x168/0x710 net/can/j1939/main.c:268
    j1939_sk_bind+0x223/0x5a0 net/can/j1939/socket.c:506
    __sys_bind_socket net/socket.c:1920 [inline]
    __sys_bind_socket net/socket.c:1912 [inline]
    __sys_bind+0x131/0x160 net/socket.c:1951
    __do_sys_bind net/socket.c:1956 [inline]
    __se_sys_bind net/socket.c:1954 [inline]
    __x64_sys_bind+0x1c/0x30 net/socket.c:1954
    do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
    do_syscall_64+0xf8/0x610 arch/x86/entry/syscall_64.c:94
    entry_SYSCALL_64_after_hwframe+0x77/0x7f

connection error: failed to recv *flatrpc.ExecutorMessageRawT: EOF


---
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.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

             reply	other threads:[~2026-08-22  0:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-22  0:10 syzbot [this message]
2026-08-24 14:19 ` Forwarded: #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 0a0d1d55dad570724bf8c7ea83409639cfb4be9b syzbot
     [not found] <07298701-c46e-4151-9ecb-75c7fc021e35@yandex.ru>
2026-08-24 16:11 ` [syzbot] [can?] memory leak in j1939_netdev_start (2) syzbot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6a88e8f5.91706f20.16b6e3.02ac.GAE@google.com \
    --to=syzbot+489e907b2a026a6f5fa0@syzkaller.appspotmail.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-can@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mkl@pengutronix.de \
    --cc=o.rempel@pengutronix.de \
    --cc=robin@protonic.nl \
    --cc=socketcan@hartkopp.net \
    --cc=syzkaller-bugs@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®