Ubuntu 22.04 - dkms script from r8168-dkms debian package crashes at installation / reinstallation with kernel 6.5.0-14-generic

Bug #2049771 reported by Leonid Heidt
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
r8168 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

This is a bug report concerning

 https://launchpad.net/ubuntu/+source/r8168

for the binary debian package called r8168-dkms on Ubuntu 22.04 (Jammy).

After the recent upgrade from kernel

 6.2.0-39-generic

to

 6.5.0-14-generic

the rebuilding of the dkms driver rtl8168 from this package breakes with the attached log of dkms script.

~$ sudo dpkg-reconfigure r8168-dkms

...

Building initial module for 6.5.0-14-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/r8168-dkms.0.crash'
Error! Bad return status for module build on kernel: 6.5.0-14-generic (x86_64)
Consult /var/lib/dkms/r8168/8.049.02/build/make.log for more information.

Revision history for this message
Leonid Heidt (leonid-heidt) wrote :
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in r8168 (Ubuntu):
status: New → Confirmed
Revision history for this message
Reinhard Katzmann (suamor) wrote :
Download full text (3.3 KiB)

This issue is still present in the latest 6.5.0-21-generic kernel.

/var/lib/dkms/r8168/8.049.02/build/r8168_n.c: In function ‘rtl8168_set_mac_address’:
/var/lib/dkms/r8168/8.049.02/build/r8168_n.c:24197:19: warning: passing argument 1 of ‘__builtin_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qua
lifiers]
24197 | memcpy(dev->dev_addr, addr->sa_data, dev->addr_len);
      | ~~~^~~~~~~~~~
./include/linux/fortify-string.h:648:27: note: in definition of macro ‘__fortify_memcpy_chk’
  648 | __underlying_##op(p, q, __fortify_size); \
      | ^
/var/lib/dkms/r8168/8.049.02/build/r8168_n.c:24197:9: note: in expansion of macro ‘memcpy’
24197 | memcpy(dev->dev_addr, addr->sa_data, dev->addr_len);
      | ^~~~~~
/var/lib/dkms/r8168/8.049.02/build/r8168_n.c:24197:19: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
24197 | memcpy(dev->dev_addr, addr->sa_data, dev->addr_len);
      | ~~~^~~~~~~~~~
./include/linux/fortify-string.h:648:27: note: in definition of macro ‘__fortify_memcpy_chk’
  648 | __underlying_##op(p, q, __fortify_size); \
      | ^
/var/lib/dkms/r8168/8.049.02/build/r8168_n.c:24197:9: note: in expansion of macro ‘memcpy’
24197 | memcpy(dev->dev_addr, addr->sa_data, dev->addr_len);
      | ^~~~~~
/var/lib/dkms/r8168/8.049.02/build/r8168_n.c:24199:32: warning: passing argument 2 of ‘rtl8168_rar_set’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
24199 | rtl8168_rar_set(tp, dev->dev_addr);
      | ~~~^~~~~~~~~~
/var/lib/dkms/r8168/8.049.02/build/r8168_n.c:575:59: note: expected ‘uint8_t *’ {aka ‘unsigned char *’} but argument is of type ‘const unsigned char *’
  575 | void rtl8168_rar_set(struct rtl8168_private *tp, uint8_t *addr);
      | ~~~~~~~~~^~~~
/var/lib/dkms/r8168/8.049.02/build/r8168_n.c: In function ‘r8168_csum_workaround’:
/var/lib/dkms/r8168/8.049.02/build/r8168_n.c:27733:24: error: implicit declaration of function ‘skb_gso_segment’; did you mean ‘skb_gso_reset’? [-Werror=implicit-function-declaration]
27733 | segs = skb_gso_segment(skb, features);
      | ^~~~~~~~~~~~~~~
      | skb_gso_reset
/var/lib/dkms/r8168/8.049.02/build/r8168_n.c:27733:22: warning: assignment to ‘struct sk_buff *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
27733 | segs = skb_gso_segment(skb, features);
      | ^
/var/lib/dkms/r8168/8.049.02/build/r8168_n.c: In function ‘rtl8168_resume’:
/var/lib/dkms/r8168/8.049.02/build/r8168_n.c:28693:32: warning: passing argument 2 of ‘rtl8168_rar_set’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
28693 | rtl8168_rar_set(tp, dev->dev_addr);
      | ~~~^~~~~~~~~~
/var/lib/dkms/r8168/8.049.02/build/r8168_n.c:24214:26: note: expected ‘uint8_t *’ {aka ‘unsigned char *’} but argu...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.