* Re: [PATCH] misc: fastrpc: fix UAF and kernel panic during cleanup on process abort
[not found] <20260427105310.4056-1-jianping.li@oss.qualcomm.com>
@ 2026-04-29 21:23 ` kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-29 21:23 UTC (permalink / raw)
To: Jianping Li, srini, amahesh, arnd, gregkh
Cc: llvm, oe-kbuild-all, Jianping Li, thierry.escande, linux-arm-msm,
dri-devel, linux-kernel, ekansh.gupta, quic_chennak, stable
Hi Jianping,
kernel test robot noticed the following build errors:
[auto build test ERROR on char-misc/char-misc-testing]
[also build test ERROR on char-misc/char-misc-next char-misc/char-misc-linus linus/master v7.1-rc1 next-20260429]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Jianping-Li/misc-fastrpc-fix-UAF-and-kernel-panic-during-cleanup-on-process-abort/20260428-043358
base: char-misc/char-misc-testing
patch link: https://lore.kernel.org/r/20260427105310.4056-1-jianping.li%40oss.qualcomm.com
patch subject: [PATCH] misc: fastrpc: fix UAF and kernel panic during cleanup on process abort
config: arm64-randconfig-002-20260430 (https://download.01.org/0day-ci/archive/20260430/202604300542.cRI7jldQ-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 5bac06718f502014fade905512f1d26d578a18f3)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260430/202604300542.cRI7jldQ-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604300542.cRI7jldQ-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/misc/fastrpc.c:437:7: error: call to undeclared function 'FASTRPC_PHYS'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
437 | FASTRPC_PHYS(buf->phys));
| ^
>> drivers/misc/fastrpc.c:437:25: error: no member named 'phys' in 'struct fastrpc_buf'
437 | FASTRPC_PHYS(buf->phys));
| ~~~ ^
drivers/misc/fastrpc.c:465:70: error: no member named 'phys' in 'struct fastrpc_buf'
465 | buf->virt = dma_alloc_coherent(dev, buf->size, (dma_addr_t *)&buf->phys, GFP_KERNEL);
| ~~~ ^
3 errors generated.
vim +/FASTRPC_PHYS +437 drivers/misc/fastrpc.c
427
428 static void fastrpc_buf_free(struct fastrpc_buf *buf)
429 {
430 struct fastrpc_user *fl = buf->fl;
431
432 if (!fl)
433 return;
434 mutex_lock(&fl->sctx->mutex);
435 if (fl->sctx->dev) {
436 dma_free_coherent(buf->dev, buf->size, buf->virt,
> 437 FASTRPC_PHYS(buf->phys));
438 kfree(buf);
439 }
440 mutex_unlock(&fl->sctx->mutex);
441 }
442
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-04-29 21:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260427105310.4056-1-jianping.li@oss.qualcomm.com>
2026-04-29 21:23 ` [PATCH] misc: fastrpc: fix UAF and kernel panic during cleanup on process abort kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox