Hi Luiz, kernel test robot noticed the following build warnings: [auto build test WARNING on linus/master] [also build test WARNING on v6.6-rc1 next-20230915] [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/Luiz-Augusto-von-Dentz/Bluetooth-hci_codec-Fix-leaking-content-of-local_codecs/20230916-075018 base: linus/master patch link: https://lore.kernel.org/r/20230915234742.3739283-1-luiz.dentz%40gmail.com patch subject: [PATCH v3 1/2] Bluetooth: hci_core: Fix build warnings config: parisc-randconfig-002-20230916 (https://download.01.org/0day-ci/archive/20230916/202309160927.DmionDGV-lkp@xxxxxxxxx/config) compiler: hppa-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230916/202309160927.DmionDGV-lkp@xxxxxxxxx/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@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202309160927.DmionDGV-lkp@xxxxxxxxx/ All warnings (new ones prefixed by >>): net/bluetooth/hci_event.c: In function 'hci_cc_read_class_of_dev': >> net/bluetooth/hci_event.c:521:9: warning: 'memcpy' writing 3 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=] 521 | memcpy(hdev->dev_class, rp->dev_class, 3); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: note: destination object is likely at address zero vim +/memcpy +521 net/bluetooth/hci_event.c e5b0ad69c97a04f Abhishek Pandit-Subedi 2021-03-03 510 c8992cffbe7411c Luiz Augusto von Dentz 2021-12-01 511 static u8 hci_cc_read_class_of_dev(struct hci_dev *hdev, void *data, c8992cffbe7411c Luiz Augusto von Dentz 2021-12-01 512 struct sk_buff *skb) a9de9248064bfc8 Marcel Holtmann 2007-10-20 513 { c8992cffbe7411c Luiz Augusto von Dentz 2021-12-01 514 struct hci_rp_read_class_of_dev *rp = data; e3f3a1aea8719ac Luiz Augusto von Dentz 2021-12-01 515 e3f3a1aea8719ac Luiz Augusto von Dentz 2021-12-01 516 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status); a9de9248064bfc8 Marcel Holtmann 2007-10-20 517 a9de9248064bfc8 Marcel Holtmann 2007-10-20 518 if (rp->status) c8992cffbe7411c Luiz Augusto von Dentz 2021-12-01 519 return rp->status; a9de9248064bfc8 Marcel Holtmann 2007-10-20 520 a9de9248064bfc8 Marcel Holtmann 2007-10-20 @521 memcpy(hdev->dev_class, rp->dev_class, 3); a9de9248064bfc8 Marcel Holtmann 2007-10-20 522 e3f3a1aea8719ac Luiz Augusto von Dentz 2021-12-01 523 bt_dev_dbg(hdev, "class 0x%.2x%.2x%.2x", hdev->dev_class[2], e3f3a1aea8719ac Luiz Augusto von Dentz 2021-12-01 524 hdev->dev_class[1], hdev->dev_class[0]); c8992cffbe7411c Luiz Augusto von Dentz 2021-12-01 525 c8992cffbe7411c Luiz Augusto von Dentz 2021-12-01 526 return rp->status; a9de9248064bfc8 Marcel Holtmann 2007-10-20 527 } a9de9248064bfc8 Marcel Holtmann 2007-10-20 528 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki