lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202112101918.adnak8vR-lkp@intel.com>
Date:   Fri, 10 Dec 2021 19:25:07 +0800
From:   kernel test robot <lkp@...el.com>
To:     Kuogee Hsieh <quic_khsieh@...cinc.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Rob Clark <robdclark@...omium.org>,
        Abhinav Kumar <quic_abhinavk@...cinc.com>
Subject: [drm-msm:msm-next-plus-fixes 69/72]
 drivers/gpu/drm/msm/dp/dp_drm.c:246:2-7: WARNING: invalid free of devm_
 allocated data

tree:   https://gitlab.freedesktop.org/drm/msm.git msm-next-plus-fixes
head:   1c1dcb9d8883f42ea116d99f78e42a7c399f8278
commit: 8a3b4c17f863cde8e8743edd8faffe916c49b960 [69/72] drm/msm/dp: employ bridge mechanism for display enable and disable
config: nds32-randconfig-c004-20211208 (https://download.01.org/0day-ci/archive/20211210/202112101918.adnak8vR-lkp@intel.com/config)
compiler: nds32le-linux-gcc (GCC) 11.2.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>


cocci warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/msm/dp/dp_drm.c:246:2-7: WARNING: invalid free of devm_ allocated data

vim +246 drivers/gpu/drm/msm/dp/dp_drm.c

   225	
   226	struct drm_bridge *msm_dp_bridge_init(struct msm_dp *dp_display, struct drm_device *dev,
   227				struct drm_encoder *encoder)
   228	{
   229		int rc;
   230		struct msm_dp_bridge *dp_bridge;
   231		struct drm_bridge *bridge;
   232	
   233		dp_bridge = devm_kzalloc(dev->dev, sizeof(*dp_bridge), GFP_KERNEL);
   234		if (!dp_bridge)
   235			return ERR_PTR(-ENOMEM);
   236	
   237		dp_bridge->dp_display = dp_display;
   238	
   239		bridge = &dp_bridge->bridge;
   240		bridge->funcs = &dp_bridge_ops;
   241		bridge->encoder = encoder;
   242	
   243		rc = drm_bridge_attach(encoder, bridge, NULL, DRM_BRIDGE_ATTACH_NO_CONNECTOR);
   244		if (rc) {
   245			DRM_ERROR("failed to attach bridge, rc=%d\n", rc);
 > 246			kfree(dp_bridge);

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ