From: kernel test robot <lkp@intel.com>
To: Breno Rodrigues Alves <breno3011alves@gmail.com>,
gregkh@linuxfoundation.org
Cc: oe-kbuild-all@lists.linux.dev, torvalds@linux-foundation.org,
linux-media@vger.kernel.org,
linux-security-module@vger.kernel.org,
linux-kernel@vger.kernel.org,
Breno Rodrigues Alves <breno3011alves@gmail.com>
Subject: Re: [PATCH v2] media: dvb-core: extirpate defective and unsafe ULE debug block
Date: Tue, 8 Sep 2026 05:59:33 +0800 [thread overview]
Message-ID: <202609080524.kwJEdv90-lkp@intel.com> (raw)
In-Reply-To: <20260905142222.22818-1-breno3011alves@gmail.com>
Hi Breno,
kernel test robot noticed the following build errors:
[auto build test ERROR on staging/staging-testing]
[also build test ERROR on staging/staging-next staging/staging-linus linuxtv-media-pending/master media-tree/master sailus-media-tree/master linus/master linux/master sailus-media-tree/streams v7.3-rc2 next-20260907]
[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/Breno-Rodrigues-Alves/media-dvb-core-extirpate-defective-and-unsafe-ULE-debug-block/20260905-112222
base: staging/staging-testing
patch link: https://lore.kernel.org/r/20260905142222.22818-1-breno3011alves%40gmail.com
patch subject: [PATCH v2] media: dvb-core: extirpate defective and unsafe ULE debug block
config: nios2-allmodconfig (https://download.01.org/0day-ci/archive/20260908/202609080524.kwJEdv90-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260908/202609080524.kwJEdv90-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/202609080524.kwJEdv90-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
drivers/media/dvb-core/dvb_net.c: In function 'dvb_net_ule':
>> drivers/media/dvb-core/dvb_net.c:806:51: warning: passing argument 2 of 'dvb_net_ule_check_crc' makes pointer from integer without a cast [-Wint-conversion]
806 | dvb_net_ule_check_crc(&h, ule_crc, expected_crc);
| ^~~~~~~
| |
| u32 {aka unsigned int}
drivers/media/dvb-core/dvb_net.c:626:47: note: expected 'struct kvec *' but argument is of type 'u32' {aka 'unsigned int'}
626 | struct kvec iov[3],
| ~~~~~~~~~~~~^~~~~~
>> drivers/media/dvb-core/dvb_net.c:806:25: error: too few arguments to function 'dvb_net_ule_check_crc'
806 | dvb_net_ule_check_crc(&h, ule_crc, expected_crc);
| ^~~~~~~~~~~~~~~~~~~~~
drivers/media/dvb-core/dvb_net.c:625:13: note: declared here
625 | static void dvb_net_ule_check_crc(struct dvb_net_ule_handle *h,
| ^~~~~~~~~~~~~~~~~~~~~
vim +/dvb_net_ule_check_crc +806 drivers/media/dvb-core/dvb_net.c
721
722 static void dvb_net_ule(struct net_device *dev, const u8 *buf, size_t buf_len)
723 {
724 int ret;
725 struct dvb_net_ule_handle h = {
726 .dev = dev,
727 .priv = netdev_priv(dev),
728 .ethh = NULL,
729 .buf = buf,
730 .buf_len = buf_len,
731 .skipped = 0L,
732 .ts = NULL,
733 .ts_end = NULL,
734 .from_where = NULL,
735 .ts_remain = 0,
736 .how_much = 0,
737 .new_ts = 1,
738 .error = false,
739 };
740
741 /*
742 * For all TS cells in current buffer.
743 * Appearently, we are called for every single TS cell.
744 */
745 for (h.ts = h.buf, h.ts_end = h.buf + h.buf_len;
746 h.ts < h.ts_end; /* no incr. */) {
747 if (h.new_ts) {
748 /* We are about to process a new TS cell. */
749 if (dvb_net_ule_new_ts_cell(&h))
750 continue;
751 }
752
753 /* Synchronize on PUSI, if required. */
754 if (h.priv->need_pusi) {
755 if (dvb_net_ule_ts_pusi(&h))
756 continue;
757 }
758
759 if (h.new_ts) {
760 if (dvb_net_ule_new_ts(&h))
761 continue;
762 }
763
764 /* Check if new payload needs to be started. */
765 if (h.priv->ule_skb == NULL) {
766 ret = dvb_net_ule_new_payload(&h);
767 if (ret < 0)
768 return;
769 if (ret)
770 continue;
771 }
772
773 /* Copy data into our current skb. */
774 h.how_much = min(h.priv->ule_sndu_remain, (int)h.ts_remain);
775 skb_put_data(h.priv->ule_skb, h.from_where, h.how_much);
776 h.priv->ule_sndu_remain -= h.how_much;
777 h.ts_remain -= h.how_much;
778 h.from_where += h.how_much;
779
780 /* Check for complete payload. */
781 if (h.priv->ule_sndu_remain <= 0) {
782 /* Check CRC32, we've got it in our skb already. */
783 __be16 ulen = htons(h.priv->ule_sndu_len);
784 __be16 utype = htons(h.priv->ule_sndu_type);
785 const u8 *tail;
786 struct kvec iov[3] = {
787 { &ulen, sizeof ulen },
788 { &utype, sizeof utype },
789 { h.priv->ule_skb->data,
790 h.priv->ule_skb->len - 4 }
791 };
792 u32 ule_crc = ~0L, expected_crc;
793 if (h.priv->ule_dbit) {
794 /* Set D-bit for CRC32 verification,
795 * if it was set originally. */
796 ulen |= htons(0x8000);
797 }
798
799 ule_crc = iov_crc32(ule_crc, iov, 3);
800 tail = skb_tail_pointer(h.priv->ule_skb);
801 expected_crc = *(tail - 4) << 24 |
802 *(tail - 3) << 16 |
803 *(tail - 2) << 8 |
804 *(tail - 1);
805
> 806 dvb_net_ule_check_crc(&h, ule_crc, expected_crc);
807
808 /* Prepare for next SNDU. */
809 reset_ule(h.priv);
810 }
811
812 /* More data in current TS (look at the bytes following the CRC32)? */
813 if (h.ts_remain >= 2 && *((unsigned short *)h.from_where) != 0xFFFF) {
814 /* Next ULE SNDU starts right there. */
815 h.new_ts = 0;
816 h.priv->ule_skb = NULL;
817 h.priv->ule_sndu_type_1 = 0;
818 h.priv->ule_sndu_len = 0;
819 // pr_warn("More data in current TS: [%#x %#x %#x %#x]\n",
820 // *(h.from_where + 0), *(h.from_where + 1),
821 // *(h.from_where + 2), *(h.from_where + 3));
822 // pr_warn("h.ts @ %p, stopped @ %p:\n", h.ts, h.from_where + 0);
823 // hexdump(h.ts, 188);
824 } else {
825 h.new_ts = 1;
826 h.ts += TS_SZ;
827 h.priv->ts_count++;
828 if (h.priv->ule_skb == NULL) {
829 h.priv->need_pusi = 1;
830 h.priv->ule_sndu_type_1 = 0;
831 h.priv->ule_sndu_len = 0;
832 }
833 }
834 } /* for all available TS cells */
835 }
836
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2026-09-07 21:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-05 14:22 [PATCH v2] media: dvb-core: extirpate defective and unsafe ULE debug block Breno Rodrigues Alves
2026-09-07 19:13 ` kernel test robot
2026-09-07 21:59 ` kernel test robot [this message]
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=202609080524.kwJEdv90-lkp@intel.com \
--to=lkp@intel.com \
--cc=breno3011alves@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=torvalds@linux-foundation.org \
/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